fix button padding

This commit is contained in:
afc163 2015-12-02 22:31:24 +08:00
parent fc2edb386c
commit cf6ed2ae36
4 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

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

View File

@ -69,11 +69,11 @@
@btn-disable-bg : #f3f5f7;
@btn-disable-border : @border-color-base;
@btn-padding-base : 4px 15px;
@btn-padding-base : 4px 11px;
@btn-border-radius-base : 6px;
@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-padding-sm : 1px 7px;