Skip to content

Commit

Permalink
Fix tall search box in Firefox
Browse files Browse the repository at this point in the history
* FF has an issue with flexbox and set width
* setting flex only when focused
  • Loading branch information
davkal committed Jun 14, 2016
1 parent b4abe58 commit 8a845ec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions client/app/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -1271,8 +1271,7 @@ h2 {
border-radius: 0;
background: transparent;
color: @text-color;
flex: 1;
width: 60px;
width: 100px;

&:focus {
outline: none;
Expand Down Expand Up @@ -1320,6 +1319,12 @@ h2 {
transition: transform 0.3s 0.3s @base-ease, opacity 0.3s 0.3s @base-ease;
}

&-focused &-input-field,
&-filled &-input-field,
&-pinned &-input-field {
flex: 1;
}

&-focused,
&-filled,
&-pinned {
Expand Down

0 comments on commit 8a845ec

Please sign in to comment.