mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
49 lines
1.0 KiB
SCSS
49 lines
1.0 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@include b(checkbox) {
|
|
& {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
.n-checkbox__label {
|
|
font-size: 13px;
|
|
color: #63E2B7;
|
|
margin-left: 6px;
|
|
}
|
|
.n-checkbox__checkbox {
|
|
& {
|
|
height: 14px;
|
|
width: 14px;
|
|
box-sizing: border-box;
|
|
border: 1px solid #63E2B7;
|
|
background-color: transparent;
|
|
border-radius: 4px;
|
|
position: relative;
|
|
|
|
}
|
|
&.is-checked {
|
|
background-color: #63E2B7;
|
|
}
|
|
.n-checkbox-checkbox__inner {
|
|
&::after {
|
|
box-sizing: content-box;
|
|
content: "";
|
|
border: 1.5px solid #5C647B;
|
|
border-left: 0;
|
|
border-top: 0;
|
|
height: 8px;
|
|
left: 4px;
|
|
position: absolute;
|
|
top: 0px;
|
|
transform: rotate(45deg) scaleY(0);
|
|
width: 3px;
|
|
transform-origin: center;
|
|
}
|
|
&.is-checked::after {
|
|
transform: rotate(45deg) scaleY(1);
|
|
}
|
|
}
|
|
}
|
|
} |