Add @switch-color to control switch colors (#8940)

This commit is contained in:
Graeme Yeates 2018-01-11 21:02:34 -05:00 committed by 偏右
parent 88e0c9b436
commit b9b5abab33
2 changed files with 4 additions and 3 deletions

View File

@ -393,6 +393,7 @@
@switch-height: 22px;
@switch-sm-height: 16px;
@switch-disabled-opacity: 0.4;
@switch-color: @primary-color;
// Pagination
// ---

View File

@ -68,11 +68,11 @@
}
&-checked&-loading:before {
color: @primary-color;
color: @switch-color;
}
&:focus {
box-shadow: 0 0 0 2px fade(@primary-color, 20%);
box-shadow: 0 0 0 2px fade(@switch-color, 20%);
outline: 0;
}
@ -127,7 +127,7 @@
}
&-checked {
background-color: @primary-color;
background-color: @switch-color;
.@{switch-prefix-cls}-inner {
margin-left: 6px;