mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Add @switch-color to control switch colors (#8940)
This commit is contained in:
parent
88e0c9b436
commit
b9b5abab33
@ -393,6 +393,7 @@
|
||||
@switch-height: 22px;
|
||||
@switch-sm-height: 16px;
|
||||
@switch-disabled-opacity: 0.4;
|
||||
@switch-color: @primary-color;
|
||||
|
||||
// Pagination
|
||||
// ---
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user