Skip to content

Commit

Permalink
Merge pull request #47 from jerone/issues/multi-row-tool-bar
Browse files Browse the repository at this point in the history
🐛 Buttons overflow/wrap. Fixes #38
  • Loading branch information
jerone committed May 26, 2015
2 parents dcbfa75 + 9a04537 commit d0a8cd8
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions styles/tool-bar.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
background-color: @base-background-color;
border: 1px solid @base-border-color;
color: @text-color;
display: flex;
justify-content: flex-start;

button.tool-bar-btn {
background-color: @base-background-color;
background-image: inherit;
border-color: @base-background-color;
cursor: pointer;
float: left;
flex: 0 0 auto;
margin: @button-margin-size;
padding: 0;

Expand All @@ -23,8 +25,8 @@
}
&:focus,
&:hover {
outline: none;
border-color: @button-border-color;
outline: none;
}
}

Expand All @@ -39,16 +41,12 @@
border: 0 none;
border-left: @button-border-size solid @button-background-color;
border-right: @button-border-size solid @button-border-color;
display: block;
float: left;
margin: @button-margin-size + 3 0;
}
&.tool-bar-vertical .tool-bar-spacer {
border: 0 none;
border-bottom: @button-border-size solid @button-background-color;
border-top: @button-border-size solid @button-border-color;
display: block;
float: left;
margin: 0 @button-margin-size + 3;
}

Expand All @@ -66,12 +64,17 @@
line-height: @size;

&.tool-bar-horizontal {
height: @size + (@button-border-size * 3)+ (@button-margin-size * 2);
flex-direction: row;
width: 100%;
flex-wrap: wrap;
}
&.tool-bar-vertical {
flex-direction: column;
height: 100%;
width: @size + (@button-border-size * 3) + (@button-margin-size * 2);
overflow-x: auto;
&::-webkit-scrollbar {
display: none;
}
}

.tool-bar-btn {
Expand Down

0 comments on commit d0a8cd8

Please sign in to comment.