2019-02-06 10:24:29 +00:00
|
|
|
@import "variables";
|
2018-12-11 11:57:07 +00:00
|
|
|
|
2019-10-28 16:31:33 +00:00
|
|
|
.vn-check {
|
2019-10-04 10:33:16 +00:00
|
|
|
& > .btn {
|
2019-09-30 18:46:22 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
transition: background 250ms;
|
|
|
|
|
|
|
|
& > .mark {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
border-width: 0;
|
|
|
|
}
|
2019-10-01 09:15:15 +00:00
|
|
|
}
|
2019-10-28 16:31:33 +00:00
|
|
|
& > vn-icon {
|
|
|
|
margin-left: 5px;
|
|
|
|
color: $color-font-secondary;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2019-10-04 10:33:16 +00:00
|
|
|
&.checked > .btn {
|
2019-10-28 16:31:33 +00:00
|
|
|
border-color: transparent;
|
2019-11-10 10:08:44 +00:00
|
|
|
background-color: $color-button;
|
2019-09-30 18:46:22 +00:00
|
|
|
|
2019-10-01 09:15:15 +00:00
|
|
|
& > .mark {
|
2019-09-30 18:46:22 +00:00
|
|
|
top: 0;
|
|
|
|
left: 4px;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
width: 7px;
|
|
|
|
height: 13px;
|
|
|
|
border: 2px solid $color-font-dark;
|
|
|
|
border-top: 0;
|
|
|
|
border-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-10-04 10:33:16 +00:00
|
|
|
&.indeterminate > .btn > .mark {
|
2019-10-01 09:15:15 +00:00
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
width: 12px;
|
|
|
|
height: 2px;
|
|
|
|
border-bottom: 2px solid #666;
|
|
|
|
}
|
2019-10-28 16:31:33 +00:00
|
|
|
&.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
|
|
|
}
|