mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
feat(Checkbox): improve cursor
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user