fix button padding

pull/619/head
afc163 9 years ago
parent fc2edb386c
commit cf6ed2ae36

@ -64,7 +64,7 @@
.animation(loadingCircle 1s infinite linear); .animation(loadingCircle 1s infinite linear);
height: 12px; height: 12px;
line-height: 12px; line-height: 12px;
right: 12px; right: 11px;
top: 50%; top: 50%;
margin-top: -6px; margin-top: -6px;
opacity: 1; opacity: 1;
@ -75,7 +75,7 @@
&-sm&-loading { &-sm&-loading {
padding-right: 24px; padding-right: 24px;
&:after { &:after {
right: 8px; right: 7px;
} }
} }

@ -134,7 +134,7 @@
.@{dropdown-prefix-cls}-button { .@{dropdown-prefix-cls}-button {
&.ant-btn-group > .ant-btn:last-child:not(:first-child) { &.ant-btn-group > .ant-btn:last-child:not(:first-child) {
padding-right: 8px; padding-right: 7px;
} }
.anticon-down { .anticon-down {
.iconfont-size-under-12px(10px); .iconfont-size-under-12px(10px);

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

@ -69,11 +69,11 @@
@btn-disable-bg : #f3f5f7; @btn-disable-bg : #f3f5f7;
@btn-disable-border : @border-color-base; @btn-disable-border : @border-color-base;
@btn-padding-base : 4px 15px; @btn-padding-base : 4px 11px;
@btn-border-radius-base : 6px; @btn-border-radius-base : 6px;
@btn-font-size-lg : 14px; @btn-font-size-lg : 14px;
@btn-padding-lg : 4px 15px 5px 15px; @btn-padding-lg : 4px 11px 5px 11px;
@btn-border-radius-lg : @btn-border-radius-base; @btn-border-radius-lg : @btn-border-radius-base;
@btn-padding-sm : 1px 7px; @btn-padding-sm : 1px 7px;

Loading…
Cancel
Save