mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-24 07:29:16 +08:00
feat(Checkbox): improve cursor
This commit is contained in:
parent
3d10d42fcc
commit
719928cb5a
@ -4,13 +4,23 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
||||
&--disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&--label-disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
flex: none;
|
||||
height: 1em;
|
||||
font-size: @checkbox-size;
|
||||
line-height: 1em;
|
||||
cursor: pointer;
|
||||
|
||||
.van-icon {
|
||||
display: block;
|
||||
@ -41,6 +51,8 @@
|
||||
}
|
||||
|
||||
&--disabled {
|
||||
cursor: not-allowed;
|
||||
|
||||
.van-icon {
|
||||
background-color: @checkbox-disabled-background-color;
|
||||
border-color: @checkbox-disabled-icon-color;
|
||||
|
@ -4,13 +4,23 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
||||
&--disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&--label-disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
flex: none;
|
||||
height: 1em;
|
||||
font-size: @radio-size;
|
||||
line-height: 1em;
|
||||
cursor: pointer;
|
||||
|
||||
.van-icon {
|
||||
display: block;
|
||||
@ -41,6 +51,8 @@
|
||||
}
|
||||
|
||||
&--disabled {
|
||||
cursor: not-allowed;
|
||||
|
||||
.van-icon {
|
||||
background-color: @radio-disabled-background-color;
|
||||
border-color: @radio-disabled-icon-color;
|
||||
|
Loading…
x
Reference in New Issue
Block a user