mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
fix button variable
This commit is contained in:
parent
2bd8ede57c
commit
b407c5e924
@ -11,22 +11,22 @@
|
||||
.btn-primary;
|
||||
|
||||
.@{btnPrefixClass}-group &:not(:first-child):not(:last-child) {
|
||||
border-right-color: @btn-primary-border;
|
||||
border-left-color: btn-primary-border;
|
||||
border-right-color: @btn-group-border;
|
||||
border-left-color: @btn-group-border;
|
||||
}
|
||||
|
||||
.@{btnPrefixClass}-group &:first-child {
|
||||
&:not(:last-child) {
|
||||
border-right-color: @btn-primary-border;
|
||||
border-right-color: @btn-group-border;
|
||||
}
|
||||
}
|
||||
|
||||
.@{btnPrefixClass}-group &:last-child:not(:first-child) {
|
||||
border-left-color: @btn-primary-border;
|
||||
border-left-color: @btn-group-border;
|
||||
}
|
||||
|
||||
.@{btnPrefixClass}-group & + .@{btnPrefixClass} {
|
||||
border-left-color: @btn-primary-border;
|
||||
border-left-color: @btn-group-border;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
}
|
||||
&:active,
|
||||
&.active {
|
||||
.button-color(shade(@color, 5%); shade(@background, 5%); shade(@border, 5%));
|
||||
.button-color(shade(@color, 5%); shade(@background, 5%); shade(@background, 5%));
|
||||
}
|
||||
&:active,
|
||||
&.active {
|
||||
@ -133,7 +133,7 @@
|
||||
|
||||
// primary button style
|
||||
.btn-primary() {
|
||||
.button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
|
||||
.button-variant(@btn-primary-color; @btn-primary-bg; @primary-color);
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
|
@ -46,7 +46,7 @@
|
||||
|
||||
@btn-primary-color : #fff;
|
||||
@btn-primary-bg : @primary-color;
|
||||
@btn-primary-border : shade(@primary-color, 5%);
|
||||
@btn-group-border : shade(@primary-color, 5%);
|
||||
|
||||
@btn-default-color : #666;
|
||||
@btn-default-bg : #f4f4f4;
|
||||
|
Loading…
Reference in New Issue
Block a user