Skip to content

Commit

Permalink
fix(ButtonGroup): remove strict css structure
Browse files Browse the repository at this point in the history
  • Loading branch information
vvpvvp committed Dec 3, 2018
1 parent 31c9101 commit 0745ac7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions doc/components/demos/basic/button2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
<h4>Button Group</h4>
<div class="buttons">
<ButtonGroup>
<Button color="primary" icon="h-icon-left"></Button>
<Button color="primary" icon="h-icon-right"></Button>
<Button color="primary" v-tooltip content="后退" icon="h-icon-left"></Button>
<Button color="primary" v-tooltip content="前进" icon="h-icon-right"></Button>
</ButtonGroup>
<ButtonGroup>
<Button icon="h-icon-inbox">Create</Button>
Expand Down
10 changes: 5 additions & 5 deletions themes/native/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
&-group {
display: inline-block;
vertical-align: middle;
>.@{btn-prefix} {
.@{btn-prefix} {
border-radius: 0;
float: left;
+.@{btn-prefix} {
Expand All @@ -177,17 +177,17 @@
border-radius: 0 50% 50% 0;
}
}
>.@{btn-prefix}[disabled]{
.@{btn-prefix}[disabled]{
z-index: -1;
}
&-l>.@{btn-prefix} {
&-l .@{btn-prefix} {
font-size: 110%;
padding: 10px 20px;
}
&-s>.@{btn-prefix} {
&-s .@{btn-prefix} {
padding: 5px 8px;
}
&-xs>.@{btn-prefix} {
&-xs .@{btn-prefix} {
padding: 2px 6px;
font-size: 90%;
}
Expand Down

0 comments on commit 0745ac7

Please sign in to comment.