From 469967febaf6d5b10a9c1c086d1948bf27a2c76a Mon Sep 17 00:00:00 2001 From: James Byun Date: Fri, 22 Mar 2024 16:51:03 -0700 Subject: [PATCH] close button updates, sidepanel width --- src/frontend/src/Components/Map.scss | 44 +++++++++++++++++-- src/frontend/src/Components/map/mapPopup.scss | 22 +++++++++- 2 files changed, 60 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/Components/Map.scss b/src/frontend/src/Components/Map.scss index b4206e904..094b5b96e 100644 --- a/src/frontend/src/Components/Map.scss +++ b/src/frontend/src/Components/Map.scss @@ -71,10 +71,10 @@ } &.open { - min-width: 340px; + min-width: 390px; .panel-content { - min-width: 340px; + min-width: 390px; } @media (max-width: 767px) { @@ -95,17 +95,53 @@ .close-panel { position: absolute; - top: 1rem; + top: 2rem; right: 1rem; padding: 0; min-width: 0; line-height: 1.25rem; - height: auto; + height: 2rem; + width: 2rem; + border-radius: 50%; background: none; border: none; font-size: 1rem; } + .close-panel:has(+ .panel-content .popup.closure), + .close-panel:has(+ .panel-content .popup.major) { + color: #CE3E39; + &:hover { + background: lighten(#CE3E39, 38%); + } + + } + + .close-panel:has(+ .panel-content .popup.minor), + .close-panel:has(+ .panel-content .popup.roadConditions) + { + color: #584215; + &:hover { + background: lighten(#584215, 60%); + } + } + + .close-panel:has(+ .panel-content .popup.popup--camera), + { + color: $BC-Blue; + &:hover { + background: lighten($BC-Blue, 70%); + } + } + + .close-panel:has(+ .panel-content .popup.popup--ferry), + { + color: #2E8540; + &:hover { + background: lighten(#2E8540, 60%); + } + } + .panel-content { flex: 1; } diff --git a/src/frontend/src/Components/map/mapPopup.scss b/src/frontend/src/Components/map/mapPopup.scss index ff6c81bc1..febbce196 100644 --- a/src/frontend/src/Components/map/mapPopup.scss +++ b/src/frontend/src/Components/map/mapPopup.scss @@ -234,17 +234,26 @@ .location { color: #9C2024; - font-size: 1rem; + font-size: 0.875rem; margin-top: 0; } } + &__description { + time { + font-size: 0.875rem; + &:hover { + color: $Type-Link; + } + } + } + } } &.minor, &.roadConditions { .popup__title { background-color: #FEEBC2; - border-top: 4px solid #584215; + border-top: 4px solid $BC-Yellow; .name { color: #584215; @@ -259,8 +268,17 @@ .location { color: #474543; + font-size: 0.875rem; } } + &__description { + time { + font-size: 0.875rem; + &:hover { + color: $Type-Link; + } + } + } } } }