mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-21 18:11:37 +01:00
Refactor noscript styles to not break with code formatter
This commit is contained in:
parent
772f571161
commit
a2b3be0169
@ -44,7 +44,10 @@
|
||||
.top-link {
|
||||
display: none;
|
||||
}
|
||||
{{- if (and (ne .Site.Params.defaultTheme "light") (ne .Site.Params.defaultTheme "dark")) }}
|
||||
|
||||
</style>
|
||||
{{- if (and (ne .Site.Params.defaultTheme "light") (ne .Site.Params.defaultTheme "dark")) }}
|
||||
<style>
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--theme: #1d1e20;
|
||||
@ -57,18 +60,22 @@
|
||||
--code-bg: #37383e;
|
||||
--border: #333;
|
||||
}
|
||||
|
||||
.list {
|
||||
background: var(--theme);
|
||||
}
|
||||
|
||||
.list:not(.dark)::-webkit-scrollbar-track {
|
||||
background: 0 0;
|
||||
}
|
||||
|
||||
.list:not(.dark)::-webkit-scrollbar-thumb {
|
||||
border-color: var(--theme);
|
||||
}
|
||||
}
|
||||
{{- end }}
|
||||
</style>
|
||||
{{- end }}
|
||||
|
||||
</noscript>
|
||||
<header class="header">
|
||||
<nav class="nav">
|
||||
|
Loading…
Reference in New Issue
Block a user