Skip to content

Commit

Permalink
Merge pull request #1222 from greenpeace/planet-5606
Browse files Browse the repository at this point in the history
PLANET-5606 Center search buttons svg icons
  • Loading branch information
mleray authored Nov 4, 2020
2 parents ae4bb3d + 99a6f6d commit 5ed59fe
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 5ed59fe

Please sign in to comment.