2020-03-08 16:32:25 +08:00

60 lines
1.2 KiB
SCSS

.luna-left-addon {
font-size: 16px;
text-align: center;
line-height: 36px;
height: 36px;
position: relative;
cursor: pointer;
transition: all 0.3s ease;
color: #777;
&.collapse {
height: 40px;
color: #8c8c8c;
border-bottom: 1px solid #bfbfbf;
}
&.locked {
color: red !important;
}
&.active {
color: #fff !important;
background-color: $color-brand1-9 !important;
&.disabled {
color: #fff;
background-color: $color-fill1-7;
}
}
&.disabled {
cursor: not-allowed;
color: $color-text1-1;
}
&:hover {
background-color: $color-brand1-1;
color: $color-brand1-6;
&:before {
content: attr(data-tooltip);
display: block;
position: absolute;
left: 50px;
top: 5px;
line-height: 18px;
font-size: 12px;
white-space: nowrap;
padding: 6px 8px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.75);
color: #fff;
z-index: 100;
}
&:after {
content: '';
display: block;
position: absolute;
left: 40px;
top: 15px;
border: 5px solid transparent;
border-right-color: rgba(0, 0, 0, 0.75);
z-index: 100;
}
}
}