fix button variable

This commit is contained in:
afc163 2015-07-09 10:56:28 +08:00
parent 2bd8ede57c
commit b407c5e924
3 changed files with 8 additions and 8 deletions

View File

@ -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;
}
}

View File

@ -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,

View File

@ -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;