60 lines
1.0 KiB
SCSS
60 lines
1.0 KiB
SCSS
.checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
&--text {
|
|
color: currentColor;
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
.checkbox_main {
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: relative;
|
|
background-color: #fff;
|
|
border: 1px solid #c2c2c2;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
line-height: 40px;
|
|
&--normal {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
&--small {
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
&--round {
|
|
border-radius: 50%;
|
|
}
|
|
&--circle {
|
|
border-radius: 10px;
|
|
}
|
|
// 选中
|
|
&--selected {
|
|
border-color: $color_main;
|
|
}
|
|
}
|
|
.checkbox_main_no_selected {
|
|
border: 0 !important;
|
|
}
|
|
.checkbox_item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.no_checkbox_item {
|
|
border: 0 !important;
|
|
background-color: #dddddd !important;
|
|
}
|
|
.checkbox_item_select {
|
|
background-color: $color_main;
|
|
border: 0;
|
|
color: #fff;
|
|
width: 100%;
|
|
height: 100%;
|
|
text-align: center;
|
|
line-height: 40px;
|
|
}
|