Merge pull request #20841 from ant-design/feature

chore: feature merge into master
This commit is contained in:
二货机器人 2020-01-12 23:39:50 +08:00 committed by GitHub
commit 23bbc40180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -631,6 +631,8 @@
// ---
@switch-height: 22px;
@switch-sm-height: 16px;
@switch-min-width: 44px;
@switch-sm-min-width: 28px;
@switch-sm-checked-margin-left: -(@switch-sm-height - 3px);
@switch-disabled-opacity: 0.4;
@switch-color: @primary-color;

View File

@ -10,7 +10,7 @@
position: relative;
display: inline-block;
box-sizing: border-box;
min-width: 44px;
min-width: @switch-min-width;
height: @switch-height;
line-height: @switch-height - 2px;
vertical-align: middle;
@ -101,7 +101,7 @@
}
&-small {
min-width: 28px;
min-width: @switch-sm-min-width;
height: @switch-sm-height;
line-height: @switch-sm-height - 2px;