From c5e53057ebfad5b50d568c96dbbd15279beb9e5f Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 29 Mar 2025 15:59:42 +0100 Subject: [PATCH] hotfix: post-upgrade adjustments --- src/App.vue | 10 --------- src/components/App/AppHeader.vue | 8 +++---- src/components/Global/DonationCard.vue | 16 +++++--------- src/components/JournalView/JournalHeader.vue | 13 ++++++----- src/components/StationsView/StationTable.vue | 6 +++-- src/styles/_global.scss | 23 ++++++++++++++------ src/views/DriverView.vue | 3 ++- src/views/StationsView.vue | 8 +++---- 8 files changed, 42 insertions(+), 45 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1015ec3..e038b56 100644 --- a/src/App.vue +++ b/src/App.vue @@ -169,16 +169,6 @@ export default defineComponent({ diff --git a/src/components/StationsView/StationTable.vue b/src/components/StationsView/StationTable.vue index 770c80c..7801640 100644 --- a/src/components/StationsView/StationTable.vue +++ b/src/components/StationsView/StationTable.vue @@ -403,6 +403,8 @@ export default defineComponent({ @use '../../styles/responsive'; @use '../../styles/icons'; +@use 'sass:color'; + $rowCol: #424242; .station_table { @@ -503,13 +505,13 @@ tr, vertical-align: middle; &:nth-child(even) { - background-color: lighten($rowCol, 5); + background-color: color.adjust($rowCol, $lightness: 5%); color: white; } &:hover, &:focus { - background-color: lighten($rowCol, 20); + background-color: color.adjust($rowCol, $lightness: 15%); } td { diff --git a/src/styles/_global.scss b/src/styles/_global.scss index aec8919..d4dadc7 100644 --- a/src/styles/_global.scss +++ b/src/styles/_global.scss @@ -140,18 +140,27 @@ a { color: inherit; } +a.a-row { + display: table-row; +} + a:focus-visible { outline: 1px solid var(--clr-primary); } -.route-active, -.route[data-active='true'] { - color: #ffc014; - font-weight: 700; -} +.route-link { + margin: 0 0.2em; + transition: color 100ms; -a.a-row { - display: table-row; + &-active, + &[data-active='true'] { + color: var(--clr-primary); + font-weight: bold; + } + + &:hover { + color: var(--clr-primary); + } } ul { diff --git a/src/views/DriverView.vue b/src/views/DriverView.vue index 88cedbf..94daf32 100644 --- a/src/views/DriverView.vue +++ b/src/views/DriverView.vue @@ -148,6 +148,7 @@ function copyStockToClipboard() {