diff options
-rw-r--r-- | app/views/partials/header.php | 4 | ||||
-rw-r--r-- | app/views/partials/navigator.php | 3 | ||||
-rw-r--r-- | app/views/snippets/stylesheets.php | 7 |
3 files changed, 9 insertions, 5 deletions
diff --git a/app/views/partials/header.php b/app/views/partials/header.php index 7432617..a57e625 100644 --- a/app/views/partials/header.php +++ b/app/views/partials/header.php @@ -1,7 +1,5 @@ <!DOCTYPE html> - -<script>document.write('<html class="has-navbar-fixed-top" lang="en-us">');</script> -<noscript><html lang="en-us"></noscript> +<html class="has-navbar-fixed-top" lang="en-us"> <head> diff --git a/app/views/partials/navigator.php b/app/views/partials/navigator.php index 44a1ff5..05888c8 100644 --- a/app/views/partials/navigator.php +++ b/app/views/partials/navigator.php @@ -1,6 +1,5 @@ - <script>document.write('<nav id="navbar" class="navbar is-fixed-top" aria-label="main navigation">');</script> - <noscript><nav id="navbar" class="navbar" aria-label="main navigation"></noscript> + <nav id="navbar" class="navbar is-fixed-top" aria-label="main navigation"> <div class="container"> diff --git a/app/views/snippets/stylesheets.php b/app/views/snippets/stylesheets.php index 2636e19..e3e2cc9 100644 --- a/app/views/snippets/stylesheets.php +++ b/app/views/snippets/stylesheets.php @@ -1,3 +1,10 @@ +<noscript> + <style> + .has-navbar-fixed-top { padding-top: 0 !important; } + .is-fixed-top { position: unset !important; } + </style> +</noscript> + <link rel="stylesheet" href="/css/tdro.css"> <?php if ($theme->color() === 'dark') { ?> |