Fix main page visibility for noscript users
The body tag of the home page was previously hidden until the page was finished loading to prevent a flash of unstyled content, but this broke functionality for users who disallow javascript. This adds in a new noscript tag to manually enable visibility of the body element, as well as automatically displaying the config section (since its visibility is also typically handled by javascript).
This commit is contained in:
parent
776d618dad
commit
4bae5cab2e
|
@ -26,7 +26,14 @@
|
|||
{% if config.dark %}
|
||||
<link rel="stylesheet" href="/static/css/dark-theme.css"/>
|
||||
{% endif %}
|
||||
<title>Whoogle Search</title>
|
||||
<noscript>
|
||||
<style>
|
||||
#main { display: inherit !important; }
|
||||
.content { max-height: 520px; padding: 18px; border-radius: 10px; }
|
||||
.collapsible { display: none; }
|
||||
</style>
|
||||
</noscript>
|
||||
<title>Whoogle Search</title>
|
||||
</head>
|
||||
<body id="main" style="display: none; background-color: {{ '#000' if config.dark else '#fff' }}">
|
||||
<div class="search-container">
|
||||
|
|
Loading…
Reference in New Issue
Block a user