Skip to content

Commit

Permalink
fix: refine footer logo scaling rules
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSlug committed Apr 27, 2022
1 parent 127106b commit 6c4a8a6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
12 changes: 8 additions & 4 deletions src/_includes/partials/components/logos.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<div class="logos">
{%- svg_sprite "logo-hewlett" -%}
{%- svg_sprite "logo-floe" -%}
{%- svg_sprite "logo-idrc-wordmark" -%}
{%- svg_sprite "logo-ocadu" -%}
<div class="logos__group">
{%- svg_sprite "logo-hewlett" -%}
{%- svg_sprite "logo-floe" -%}
</div>
<div class="logos__group">
{%- svg_sprite "logo-idrc-wordmark" -%}
{%- svg_sprite "logo-ocadu" -%}
</div>
</div>
17 changes: 12 additions & 5 deletions src/assets/styles/components/_logos.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
display: flex;
flex-wrap: wrap;
gap: 2rem;
justify-content: space-around;

svg {
display: inline-block;
fill: $footerColour;
height: 3rem;
max-width: 100%;
}
}

.logos svg {
display: block;
fill: $footerColour;
height: 3rem;
.logos__group {
display: flex;
flex: 1 1 47%;
gap: 2rem;
justify-content: space-around;
max-width: 100%;
}

Expand Down

0 comments on commit 6c4a8a6

Please sign in to comment.