From cb8dca1b2f2ad7cdf37270e33835297b5e17a47f Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Thu, 20 Jun 2019 18:10:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20checks=20=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/components/form/_checks.scss | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scss/components/form/_checks.scss b/scss/components/form/_checks.scss index 6a933388..1f79a80b 100644 --- a/scss/components/form/_checks.scss +++ b/scss/components/form/_checks.scss @@ -1,6 +1,5 @@ .#{$ns}Checkbox { margin: 0 $gap-sm 0 0; - cursor: pointer; font-weight: $fontWeightNormal; user-select: none; @@ -15,6 +14,7 @@ } > i { + cursor: pointer; line-height: 1; background-color: #fff; display: inline-block; @@ -23,6 +23,7 @@ + span { margin-left: $Checkbox-gap; + cursor: pointer; &:empty { display: none; @@ -63,11 +64,18 @@ &[disabled] + i { border-color: lighten($Checkbox-color, 5%); + cursor: default; &:before { background-color: lighten($Checkbox-color, 5%); + border-color: $white; } } + + &[disabled] + i + span { + cursor: default; + color: $text--muted-color; + } } > i { @@ -121,6 +129,7 @@ > i { position: relative; + cursor: pointer; &:before { content: ""; @@ -159,14 +168,21 @@ &[disabled] + i { border-color: lighten($Radio-color, 5%); + cursor: default; &:before { background-color: lighten($Radio-color, 5%); } } + + &[disabled] + i + span { + cursor: default; + color: $text--muted-color; + } } > i { + cursor: pointer; width: $Radio-size; height: $Radio-size; border: px2rem(1px) solid $Radio-color;