Browse Source

fix button variable

pull/40/head
afc163 10 years ago
parent
commit
b407c5e924
  1. 10
      style/components/button.less
  2. 4
      style/mixins/button.less
  3. 2
      style/themes/default/custom.less

10
style/components/button.less

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

4
style/mixins/button.less

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

2
style/themes/default/custom.less

@ -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…
Cancel
Save