Browse Source

alter button padding

pull/1058/head
afc163 9 years ago
parent
commit
95242534e0
  1. 12
      style/mixins/button.less
  2. 4
      style/themes/default/custom.less

12
style/mixins/button.less

@ -250,8 +250,8 @@
.@{btnClassName}:not(:first-child):not(:last-child) {
border-radius: 0;
padding-left: 7px;
padding-right: 7px;
padding-left: 8px;
padding-right: 8px;
}
> .@{btnClassName}:first-child {
@ -259,14 +259,14 @@
&:not(:last-child) {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
padding-right: 7px;
padding-right: 8px;
}
}
> .@{btnClassName}:last-child:not(:first-child) {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
padding-left: 7px;
padding-left: 8px;
}
& > & {
@ -281,13 +281,13 @@
> .@{btnClassName}:last-child {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
padding-right: 7px;
padding-right: 8px;
}
}
& > &:last-child:not(:first-child) > .@{btnClassName}:first-child {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
padding-left: 7px;
padding-left: 8px;
}
}

4
style/themes/default/custom.less

@ -70,10 +70,10 @@
@btn-disable-bg : #f4f4f4;
@btn-disable-border : @border-color-base;
@btn-padding-base : 4px 11px;
@btn-padding-base : 4px 15px;
@btn-font-size-lg : 14px;
@btn-padding-lg : 4px 11px 5px 11px;
@btn-padding-lg : 4px 15px 5px 15px;
@btn-padding-sm : 1px 7px;

Loading…
Cancel
Save