From a488553962be3ea95dab67d867e4e647f686d990 Mon Sep 17 00:00:00 2001 From: suzalflueck Date: Wed, 29 Nov 2023 14:37:53 -0800 Subject: [PATCH 1/3] Reworked style for desktop layouts to behave more consistently --- frontend/src/assets/main.css | 46 +++++++++++++-------- frontend/src/components/AuthoritySelect.vue | 9 +--- frontend/src/components/DistrictSelect.vue | 2 +- frontend/src/components/Footer.vue | 2 +- frontend/src/components/OffshoreSelect.vue | 24 ++++------- frontend/src/components/SchoolSelect.vue | 25 ++++++----- frontend/src/views/HomeView.vue | 21 ++++------ 7 files changed, 60 insertions(+), 69 deletions(-) diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index 99347e45..caaab610 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -1,28 +1,33 @@ @import './base.css'; #app { - max-width: 1280px; - margin: 0 auto; - padding: 0rem; font-family: 'BCSans', 'Noto Sans', Verdana, Arial, sans-serif; font-weight: normal; } +#main { + max-width: 1280px; + padding: 0rem; +} + a { color: #2a6496; } +div.v-application__wrap { + min-height: 100vh; /* override dvh property */ +} + +.full-width { + margin-left: calc(-1*(100vw - 1024px)/2); + margin-right: calc(-1*(100vw - 1024px)/2); +} + @media (max-width: 768px) { #app { min-width: 1130px; /* Adjust as needed */ padding: 0; /* Adjust as needed */ } - - .full-width { - margin: 0 calc(-1*(100vw - 768px)/2); - padding: 0 calc((100vw - 768px)/2); - background-color: red; - } } .school-search{ margin-left:175px @@ -43,10 +48,12 @@ button.link-btn, .link-btn .v-btn__content { } .territorial-acknowledgement { - background-color: #494949; - color: #fff; - border-bottom: 3px solid #FCBA19; - border-top: 3px solid #FCBA19; + background-color: #292929; + color: #faf9f8; + font-size: 14px; + line-height: 21px; + border-bottom: 4px solid #FCBA19; + border-top: 4px solid #FCBA19; } .v-toolbar__extension { @@ -76,11 +83,14 @@ button.link-btn, .link-btn .v-btn__content { #app { display: grid; - padding: 0; + padding: 0!important; + margin: 0 auto; } - .full-width { - margin: 0 calc(-1*(100vw - 1024px)/2); - padding: 0 calc((100vw - 1024px)/2); - } + /* .full-width { + position: relative; + width: 100vw; + left: calc(-1*(100vw - 1280px)/2); + padding: 0!important; + } */ } diff --git a/frontend/src/components/AuthoritySelect.vue b/frontend/src/components/AuthoritySelect.vue index 747f11dd..4dd969ca 100644 --- a/frontend/src/components/AuthoritySelect.vue +++ b/frontend/src/components/AuthoritySelect.vue @@ -19,17 +19,10 @@ function goToAuthority() { } }) } - -function downloadAuthorityMailing() { - alert('TODO - Implement authority mailing download') -} -function downloadAuthorityContacts() { - alert('TODO - Implement authority contacts download') -}