From 0ef9c5be1e9d143a2d1351d75bd2b51660b5945a Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Mon, 25 Jun 2018 16:23:43 +0300 Subject: [PATCH] Footer styles changed to more generic If you have customized Footer, consider extracting that component before upstream update. --- src/components/Footer/Footer.css | 43 +++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/src/components/Footer/Footer.css b/src/components/Footer/Footer.css index b277bfd0..d72503f3 100644 --- a/src/components/Footer/Footer.css +++ b/src/components/Footer/Footer.css @@ -44,6 +44,10 @@ max-width: 1056px; margin: 0 auto; } + + @media (--viewportLarge) { + padding: 0 24px; + } } /* Mobile only social media links */ @@ -67,25 +71,30 @@ .links { /* Layout */ display: flex; - flex-direction: row; - justify-content: space-between; + flex-wrap: wrap; + justify-content: flex-start; width: 100%; - margin-bottom: 42px; + margin-bottom: 18px; @media (--viewportMedium) { + flex-wrap: nowrap; + justify-content: space-between; margin-bottom: 0; } } /* Desktop: logo and organization stuff */ .organization { + flex-shrink: 0; flex-basis: 220px; display: none; margin-right: 24px; + margin-bottom: 24px; @media (--viewportMedium) { display: block; order: 1; + margin-right: 12px; } } @@ -127,9 +136,12 @@ .infoLinks { order: 2; flex-basis: 165px; + margin-right: 24px; + margin-bottom: 24px; @media (--viewportMedium) { padding-top: 2px; + margin-right: 12px; } } @@ -139,8 +151,9 @@ } .listItem { - height: 24px; + min-height: 24px; margin-bottom: 6px; + @media (--viewportMedium) { margin-bottom: 0; } @@ -149,6 +162,7 @@ .link { /* Font */ @apply --marketplaceH4FontStyles; + line-height: 20px; color: var(--matterColor); transition: var(--transitionStyleButton); @@ -170,8 +184,12 @@ .searches { order: 3; flex-basis: 165px; + margin-right: 24px; + margin-bottom: 24px; + @media (--viewportMedium) { padding-top: 2px; + margin-right: 12px; } } @@ -179,32 +197,29 @@ /* This is not always visible */ .searchesExtra { order: 4; - display: none; flex-basis: 165px; - - @media (min-width: 550px) { - display: block; - } + margin-right: 24px; + margin-bottom: 24px; @media (--viewportMedium) { - display: none; - } - - @media (--viewportLarge) { - display: block; padding-top: 2px; + margin-right: 12px; } } /* Desktop: extra links (social media links and legal links) */ .extraLinks { + flex-shrink: 0; order: 5; display: none; flex-basis: 109px; + margin-right: 24px; + margin-bottom: 24px; @media (--viewportMedium) { display: flex; flex-direction: column; + margin-right: 12px; } }