Browse Source

fix: buttongroup style bug

pull/77/merge
tangjinzhou 6 years ago
parent
commit
38b18d3d2e
  1. 12
      components/button/style/mixin.less

12
components/button/style/mixin.less

@ -271,6 +271,12 @@
> span:first-child > .@{btnClassName} { > span:first-child > .@{btnClassName} {
margin-left: 0; margin-left: 0;
} }
> .@{btnClassName}:first-child:last-child {
border-radius: @btn-border-radius-base;
}
> span:first-child:last-child > .@{btnClassName} {
border-radius: @btn-border-radius-base;
}
> .@{btnClassName}:first-child:not(:last-child), > .@{btnClassName}:first-child:not(:last-child),
> span:first-child:not(:last-child) > .@{btnClassName} { > span:first-child:not(:last-child) > .@{btnClassName} {
@ -285,6 +291,12 @@
} }
&-sm { &-sm {
> .@{btnClassName}:first-child:last-child {
border-radius: @btn-border-radius-sm;
}
> span:first-child:last-child > .@{btnClassName} {
border-radius: @btn-border-radius-sm;
}
> .@{btnClassName}:first-child:not(:last-child), > .@{btnClassName}:first-child:not(:last-child),
> span:first-child:not(:last-child) > .@{btnClassName} { > span:first-child:not(:last-child) > .@{btnClassName} {
border-bottom-left-radius: @btn-border-radius-sm; border-bottom-left-radius: @btn-border-radius-sm;

Loading…
Cancel
Save