hotfix: post-upgrade adjustments

This commit is contained in:
2025-03-29 15:59:42 +01:00
parent 4ba5d544af
commit c5e53057eb
8 changed files with 42 additions and 45 deletions
-10
View File
@@ -169,16 +169,6 @@ export default defineComponent({
<style lang="scss"> <style lang="scss">
@use './styles/animations'; @use './styles/animations';
.route {
margin: 0 0.2em;
&-active,
&[data-active='true'] {
color: var(--clr-primary);
font-weight: bold;
}
}
// APP // APP
#app { #app {
color: white; color: white;
+4 -4
View File
@@ -45,17 +45,17 @@
</span> </span>
<span class="header_links"> <span class="header_links">
<router-link class="route" active-class="route-active" to="/" exact> <router-link class="route-link" active-class="route-link-active" to="/" exact>
{{ $t('app.sceneries') }} {{ $t('app.sceneries') }}
</router-link> </router-link>
/ /
<router-link class="route" active-class="route-active" to="/trains">{{ <router-link class="route-link" active-class="route-link-active" to="/trains">{{
$t('app.trains') $t('app.trains')
}}</router-link> }}</router-link>
/ /
<router-link <router-link
class="route" class="route-link"
active-class="route-active" active-class="route-link-active"
:data-active="$route.path.startsWith('/journal')" :data-active="$route.path.startsWith('/journal')"
to="/journal" to="/journal"
> >
+6 -10
View File
@@ -198,30 +198,26 @@ a.discord {
.actions-container > .action { .actions-container > .action {
&.paypal { &.paypal {
$btnColor: #254069; background-color: #254069;
background-color: $btnColor;
&:hover { &:hover {
background-color: lighten($btnColor, 5%); background-color: #2f5185;
} }
} }
&.coffee { &.coffee {
$btnColor: #009255; background-color: #009255;
background-color: $btnColor;
&:hover { &:hover {
background-color: lighten($btnColor, 5%); background-color: #00a35f;
} }
} }
&.exit { &.exit {
$btnColor: #686868; background-color: #686868;
background-color: $btnColor;
&:hover { &:hover {
background-color: lighten($btnColor, 5%); background-color: #8d8d8d;
} }
} }
} }
+7 -6
View File
@@ -1,11 +1,16 @@
<template> <template>
<section class="journal-header"> <section class="journal-header">
<div class="journal-type-options"> <div class="journal-type-options">
<router-link class="router-link" active-class="route-active" to="/journal/timetables" exact> <router-link
class="route-link"
active-class="route-link-active"
to="/journal/timetables"
exact
>
{{ $t('journal.section-timetables') }} {{ $t('journal.section-timetables') }}
</router-link> </router-link>
&nbsp;&bull;&nbsp; &nbsp;&bull;&nbsp;
<router-link class="router-link" active-class="route-active" to="/journal/dispatchers"> <router-link class="route-link" active-class="route-link-active" to="/journal/dispatchers">
{{ $t('journal.section-dispatchers') }} {{ $t('journal.section-dispatchers') }}
</router-link> </router-link>
</div> </div>
@@ -39,8 +44,4 @@ export default defineComponent({});
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.router-link.active {
color: gold;
}
</style> </style>
+4 -2
View File
@@ -403,6 +403,8 @@ export default defineComponent({
@use '../../styles/responsive'; @use '../../styles/responsive';
@use '../../styles/icons'; @use '../../styles/icons';
@use 'sass:color';
$rowCol: #424242; $rowCol: #424242;
.station_table { .station_table {
@@ -503,13 +505,13 @@ tr,
vertical-align: middle; vertical-align: middle;
&:nth-child(even) { &:nth-child(even) {
background-color: lighten($rowCol, 5); background-color: color.adjust($rowCol, $lightness: 5%);
color: white; color: white;
} }
&:hover, &:hover,
&:focus { &:focus {
background-color: lighten($rowCol, 20); background-color: color.adjust($rowCol, $lightness: 15%);
} }
td { td {
+16 -7
View File
@@ -140,18 +140,27 @@ a {
color: inherit; color: inherit;
} }
a.a-row {
display: table-row;
}
a:focus-visible { a:focus-visible {
outline: 1px solid var(--clr-primary); outline: 1px solid var(--clr-primary);
} }
.route-active, .route-link {
.route[data-active='true'] { margin: 0 0.2em;
color: #ffc014; transition: color 100ms;
font-weight: 700;
}
a.a-row { &-active,
display: table-row; &[data-active='true'] {
color: var(--clr-primary);
font-weight: bold;
}
&:hover {
color: var(--clr-primary);
}
} }
ul { ul {
+2 -1
View File
@@ -148,6 +148,7 @@ function copyStockToClipboard() {
<style lang="scss" scoped> <style lang="scss" scoped>
@use '../styles/responsive'; @use '../styles/responsive';
@use 'sass:color';
$viewBgCol: #1a1a1a; $viewBgCol: #1a1a1a;
@@ -176,7 +177,7 @@ $viewBgCol: #1a1a1a;
border-radius: 0.5em 0.5em 0 0; border-radius: 0.5em 0.5em 0 0;
&:hover { &:hover {
background-color: lighten($viewBgCol, 10); background-color: color.adjust($viewBgCol, $lightness: 10%);
} }
} }
+3 -5
View File
@@ -106,15 +106,13 @@ export default defineComponent({
button.btn-donation { button.btn-donation {
margin-left: auto; margin-left: auto;
$btnColor: #254069; background-color: #254069;
background-color: $btnColor;
&:hover { &:hover {
background-color: lighten($btnColor, 5%); background-color: #2e4f81;
} }
@include responsive.smallScreen{ @include responsive.smallScreen {
span { span {
display: none; display: none;
} }