Skip to content

Commit

Permalink
PLANET-5606 Center search buttons svg icons
Browse files Browse the repository at this point in the history
  • Loading branch information
mleray committed Nov 3, 2020
1 parent c85e347 commit 99a6f6d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/src/scss/pages/search/_filter-sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@
padding: 0 $n10;
color: $white;

svg {
margin-right: 4px;
vertical-align: baseline;
}

&:hover {
color: $grey-80;
cursor: pointer;
Expand Down
16 changes: 16 additions & 0 deletions assets/src/scss/pages/search/_search-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,25 @@
font-size: $font-size-sm;
line-height: 2.75;

svg {
margin-right: 4px;
vertical-align: baseline;
}

// We need this margin exception for tablets because otherwise the button moves to 2 lines.
@include medium-and-up {
svg {
margin-right: 0;
}
}

@include large-and-up {
margin-top: 2px;
line-height: 3;

svg {
margin-right: 4px;
}
}

i {
Expand Down

0 comments on commit 99a6f6d

Please sign in to comment.