From 484dc0f5071ea5a56a8a3a64b57829e7eb9ac0e4 Mon Sep 17 00:00:00 2001 From: Cathy Hu Date: Fri, 4 Sep 2020 14:41:36 +0200 Subject: [PATCH] [frontend] Add searchbar css in hoods page --- .../app/hoodspage/hoodspage.component.scss | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/kibicara-frontend/src/app/hoodspage/hoodspage.component.scss b/kibicara-frontend/src/app/hoodspage/hoodspage.component.scss index 652b82f..a59f831 100644 --- a/kibicara-frontend/src/app/hoodspage/hoodspage.component.scss +++ b/kibicara-frontend/src/app/hoodspage/hoodspage.component.scss @@ -1,6 +1,5 @@ .searchbar { - margin-top: 30px; - width: 100%; + width: calc(100% - 24px); padding-left: 10px; padding-right: 10px; padding-top: 10px; @@ -12,8 +11,7 @@ .page { padding-left: 10%; padding-right: 10%; - margin-bottom: 5%; - margin-top: 50px; + margin-bottom: 3%; } .list { @@ -31,7 +29,6 @@ h1 { } .banner { - padding-top: 15%; background: url("../../assets/hoods2.jpg"); background-size: 100%; width: 100%; @@ -41,12 +38,23 @@ h1 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; + @media (max-width: 600px) { + grid-template-columns: 1fr; + gap: 0px; + } + margin-bottom: 20px; } .text { - padding-top: 20px; - padding-bottom: 10px; + padding-top: 40px; + padding-bottom: 30px; color: gray; font-size: 1.4375rem; line-height: 1.875rem; + @media (max-width: 600px) { + grid-template-columns: 1fr; + padding-top: 0px; + padding-bottom: 0px; + text-align: center; + } }