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

44 lines
969 B
SCSS

@import "variables";
vn-check {
& > .btn {
border-radius: 2px;
transition: background 250ms;
& > .mark {
box-sizing: border-box;
position: absolute;
display: block;
border-width: 0;
}
}
&.checked > .btn {
border-color: $color-main;
background-color: $color-main;
& > .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;
}
& > vn-icon {
margin-left: 5px;
color: $color-font-secondary;
vertical-align: middle;
}
}