docs/styles/right-panel.less

150 lines
2.9 KiB
Plaintext

.details {
background-color: @color-background;
margin: 0;
padding: 0;
box-sizing: border-box;
flex: 1;
display: flex;
flex-direction: column;
.header-section {
position: absolute;
top: 10px;
.text {
font-size: 14px;
color: @gray-darker;
font-weight: 500;
margin-left: 1.2rem;
.status {
font-size: 10px;
font-weight: 500;
position: relative;
left: 1rem;
&.running {
color: @brand-positive;
}
&.paused {
color: @gray-lighter;
}
&.stopped {
color: @gray-lighter;
}
&.downloading {
color: @brand-action;
}
}
}
}
.details-subheader {
flex: 0 auto;
display: flex;
flex-direction: row;
position: relative;
border-bottom: 1px solid @color-divider;
background-color: white;
height: 45px;
font-size: 10px;
color: @gray-normal;
.details-header-actions {
flex: 1 auto;
text-align: left;
.action {
display: inline-block;
position: relative;
img {
width: 35px;
height: 35px;
}
&.disabled {
opacity: 0.3;
&:active {
img, .btn-label {
-webkit-filter: brightness(1);
}
}
}
&:active {
img, .btn-label {
-webkit-filter: brightness(0.8);
}
}
.action-icon {
color: @gray-normal;
margin-right: 15px;
}
.btn-label {
position: absolute;
color: @brand-action;
font-size: 9px;
width: 200px;
top: 38px;
&.view {
left: 8px;
}
&.restart {
left: 3px;
}
&.stop {
left: 8px;
}
&.start {
left: 8px;
}
&.terminal {
left: 1px;
}
visibility: hidden;
}
}
}
.details-subheader-tabs {
flex: 1 auto;
text-align: right;
margin-right: 3px;
margin-top: 3px;
}
}
.tab {
font-weight: 400;
display: inline-block;
margin: 0 0.6rem;
transition: all 0.3s;
color: @gray-normal;
border-bottom: 3px solid transparent;
text-align: center;
min-width: 30px;
padding-bottom: 0.2rem;
&.active {
color: @gray-darkest;
border-bottom: 3px solid @brand-primary;
}
&.disabled {
opacity: 0.5;
&:hover {
border-bottom: 3px solid transparent;
}
}
&:hover {
color: @gray-darkest;
}
}
.details-progress {
flex: 1 auto;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-top: -70px;
h2 {
margin-bottom: 20px;
text-align: center;
}
}
.details-panel {
flex: 1;
overflow: auto;
background-color: white;
}
}