Browse Source

perf: update buttongroup style

pull/77/merge
tangjinzhou 6 years ago
parent
commit
617cbdccd0
  1. 8
      components/button/style/mixin.less

8
components/button/style/mixin.less

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

Loading…
Cancel
Save