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

44 lines
969 B
SCSS
Raw Normal View History

2019-02-06 10:24:29 +00:00
@import "variables";
2017-11-02 07:46:09 +00:00
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;
2019-02-08 16:49:51 +00:00
color: $color-font-secondary;
vertical-align: middle;
2019-02-20 07:57:51 +00:00
}
2019-01-21 10:45:53 +00:00
}