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