fix the blue border in some scenes (#4382)

This commit is contained in:
Rex 2016-12-30 14:27:23 +08:00 committed by ddcat1115
parent 959fc6b2e3
commit c8a16b10bd
2 changed files with 11 additions and 1 deletions

View File

@ -16,6 +16,10 @@
.@{btn-prefix-cls}-group &:not(:first-child):not(:last-child) { .@{btn-prefix-cls}-group &:not(:first-child):not(:last-child) {
border-right-color: @btn-group-border; border-right-color: @btn-group-border;
border-left-color: @btn-group-border; border-left-color: @btn-group-border;
&:disabled {
border-color: @btn-default-border;
}
} }
.@{btn-prefix-cls}-group &:first-child { .@{btn-prefix-cls}-group &:first-child {
@ -28,7 +32,7 @@
} }
.@{btn-prefix-cls}-group &:last-child:not(:first-child), .@{btn-prefix-cls}-group &:last-child:not(:first-child),
.@{btn-prefix-cls}-group & + .@{btn-prefix-cls} { .@{btn-prefix-cls}-group & + & {
border-left-color: @btn-group-border; border-left-color: @btn-group-border;
&[disabled] { &[disabled] {
border-left-color: @btn-default-border; border-left-color: @btn-default-border;

View File

@ -76,12 +76,18 @@
display: inline-block; display: inline-block;
> .@{btnClassName} { > .@{btnClassName} {
position: relative; position: relative;
z-index: 1;
&:hover, &:hover,
&:focus, &:focus,
&:active, &:active,
&.active { &.active {
z-index: 2; z-index: 2;
} }
&:disabled {
z-index: 0;
}
} }
// size // size