remove noscript inline style

This commit is contained in:
Wonderfall 2022-07-31 01:16:39 +02:00
parent 4f5eea2395
commit 18b691c534
2 changed files with 0 additions and 44 deletions

View File

@ -25,11 +25,6 @@
aria-label="search" type="search" autocomplete="off">
<ul id="searchResults" aria-label="search results"></ul>
<noscript>
<style>
#searchInput {
display: none;
}
</style>
Enable JavaScript to use the search function.
</noscript>
</div>

View File

@ -85,45 +85,6 @@
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}">
{{ end -}}
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
{{- if (and (ne site.Params.defaultTheme "light") (ne site.Params.defaultTheme "dark")) }}
<style>
@media (prefers-color-scheme: dark) {
:root {
--theme: rgb(29, 30, 32);
--entry: rgb(46, 46, 51);
--primary: rgb(218, 218, 219);
--secondary: rgb(155, 156, 157);
--tertiary: rgb(65, 66, 68);
--content: rgb(196, 196, 197);
--code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51);
}
.list {
background: var(--theme);
}
.list:not(.dark)::-webkit-scrollbar-track {
background: 0 0;
}
.list:not(.dark)::-webkit-scrollbar-thumb {
border-color: var(--theme);
}
}
</style>
{{- end }}
</noscript>
{{- partial "extend_head.html" . -}}
{{- /* Misc */}}