Set logo text color in light and dark mode
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Adrian Simmons 2021-11-13 22:37:15 +00:00
parent faa3c3b156
commit a957df0a59
3 changed files with 9 additions and 1 deletions

View File

@ -144,6 +144,7 @@ $vikunja-nav-logo-full-width: 164px;
.logo {
display: none;
color: var(--logo-text-color);
@media screen and (min-width: $tablet) {
align-self: stretch;

View File

@ -1,7 +1,7 @@
<template>
<div class="no-auth-wrapper">
<div class="noauth-container">
<Logo width="400" height="117" />
<Logo class="logo" width="400" height="117" />
<div class="message is-info" v-if="motd !== ''">
<div class="message-header">
<p>{{ $t('misc.info') }}</p>
@ -36,4 +36,8 @@ const motd = computed(() => store.state.config.motd)
margin: 0 auto;
padding: 1rem;
}
.logo {
color: var(--logo-text-color);
}
</style>

View File

@ -79,6 +79,8 @@
// Define custom color variable to alow change in dark mode
--card-border-color: var(--grey-200);
--logo-text-color: hsl(180, 1%, 15%);
&.dark {
@ -113,5 +115,6 @@
// Custom color variables we need to override
--card-border-color: hsla(var(--grey-100-hsl), 0.3);
--logo-text-color: var(--grey-700);
}
}