From 003dde41b462fe06916fb194532f737a4ef16f30 Mon Sep 17 00:00:00 2001 From: alexvcs Date: Wed, 18 Dec 2024 14:01:14 -0500 Subject: [PATCH] style pages and make them responsive Co-authored-by: Steve Smodish --- base-client/src/app/app.component.scss | 11 ++++-- .../components/navbar/navbar.component.html | 2 +- .../components/navbar/navbar.component.scss | 2 +- .../regular-section.component.scss | 37 ++++++++----------- .../trending-section.component.scss | 1 - base-client/src/styles/_variables.scss | 3 +- 6 files changed, 27 insertions(+), 29 deletions(-) diff --git a/base-client/src/app/app.component.scss b/base-client/src/app/app.component.scss index c02bdbe..d774054 100644 --- a/base-client/src/app/app.component.scss +++ b/base-client/src/app/app.component.scss @@ -13,25 +13,30 @@ main { .layout { display: grid; + grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; + justify-items: center; gap: 0; @media (min-width: $breakpoint-desktop) { grid-template-rows: 1fr; grid-template-columns: 121px 1fr; + justify-items: start; + gap: 25px; } } .content-container { - margin-left: 16px; margin-top: 24px; + max-width: calc(100vw - 32px); - @media (min-width: $breakpoint-tablet) { - margin-left: 25px; + @media (min-width: $breakpoint-tablet) { margin-top: 33px; + max-width: calc(100vw - 50px); } @media (min-width: $breakpoint-desktop) { margin-top: 64px; + max-width: calc(100vw - 191px); } } \ No newline at end of file diff --git a/base-client/src/app/components/navbar/navbar.component.html b/base-client/src/app/components/navbar/navbar.component.html index 372da45..3442fa0 100644 --- a/base-client/src/app/components/navbar/navbar.component.html +++ b/base-client/src/app/components/navbar/navbar.component.html @@ -1,7 +1,7 @@