Make logos switch based on dark mode
This commit is contained in:
@@ -225,6 +225,21 @@ table {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo-light {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
.logo-dark {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
.logo-light {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.logo-dark {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .slider {
|
> .slider {
|
||||||
@@ -570,7 +585,7 @@ table {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
@include menu-style;
|
@include menu-style;
|
||||||
|
|
||||||
background-color: var(--color-bg-mobile-menu-header);
|
background-color: var(--color-bg-mobile-menu-header);
|
||||||
color: var(--color-fg-mobile-menu);
|
color: var(--color-fg-mobile-menu);
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
themes/tsc_vfl/assets/img/logo_hv_dark.png
Normal file
BIN
themes/tsc_vfl/assets/img/logo_hv_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 382 KiB |
BIN
themes/tsc_vfl/assets/img/logo_tsc_dark.png
Normal file
BIN
themes/tsc_vfl/assets/img/logo_tsc_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 193 KiB |
@@ -1,10 +1,12 @@
|
|||||||
<div id="header">
|
<div id="header">
|
||||||
<div class="logo-row">
|
<div class="logo-row">
|
||||||
<a href="/" class="logo">
|
<a href="/" class="logo">
|
||||||
<img src="{{ ((resources.Get "img/logo_tsc.png").Fit "400x68 webp" | fingerprint).Permalink }}">
|
<img src="{{ ((resources.Get "img/logo_tsc.png").Fit "400x68 webp" | fingerprint).Permalink }}" class="logo-light">
|
||||||
|
<img src="{{ ((resources.Get "img/logo_tsc_dark.png").Fit "400x68 webp" | fingerprint).Permalink }}" class="logo-dark">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://www.vfl-sindelfingen.de/" class="logo-vfl">
|
<a href="https://www.vfl-sindelfingen.de/" class="logo-vfl">
|
||||||
<img src="{{ ((resources.Get "img/logo_hv.png").Fit "100x68 webp" | fingerprint).Permalink }}">
|
<img src="{{ ((resources.Get "img/logo_hv.png").Fit "100x68 webp" | fingerprint).Permalink }}" class="logo-light" alt="VfL Sindelfingen">
|
||||||
|
<img src="{{ ((resources.Get "img/logo_hv_dark.png").Fit "100x68 webp" | fingerprint).Permalink }}" class="logo-dark" alt="VfL Sindelfingen">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
|
|||||||
Reference in New Issue
Block a user