salix/front/core/components/check/style.scss

53 lines
1.2 KiB
SCSS
Raw Normal View History

2019-02-06 10:24:29 +00:00
@import "variables";
.vn-check {
& > .btn {
border-radius: 2px;
transition: background 250ms;
& > .mark {
box-sizing: border-box;
position: absolute;
display: block;
border-width: 0;
}
}
& > vn-icon {
margin-left: 5px;
color: $color-font-secondary;
vertical-align: middle;
}
&.checked > .btn {
border-color: transparent;
2019-11-10 10:08:44 +00:00
background-color: $color-button;
& > .mark {
top: 0;
left: 4px;
transform: rotate(45deg);
width: 7px;
height: 13px;
border: 2px solid $color-font-dark;
border-top: 0;
border-left: 0;
}
}
&.indeterminate > .btn > .mark {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 12px;
height: 2px;
border-bottom: 2px solid #666;
}
&.disabled.checked > .btn {
background-color: $color-font-secondary;
2019-02-20 07:57:51 +00:00
}
2022-01-20 13:07:25 +00:00
&[triple-state]:not(.indeterminate):not(.checked) {
.btn {
background-color: lighten($color-alert, 5%);
}
}
2019-01-21 10:45:53 +00:00
}