Refactor noscript styles to not break with code formatter

This commit is contained in:
Aditya Telange 2021-03-25 10:55:11 +05:30
parent 772f571161
commit a2b3be0169
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -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">