diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-05-17 05:30:10 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-05-17 05:30:10 -0400 |
commit | 48e0d578c7f65e6a0ab8d293217983ba8bb21c00 (patch) | |
tree | af5e689dc324d8fe481d1ce156fbecfac942d3ad | |
parent | 7bd205c61c5d6359e82e3d031c55abe8934a76e4 (diff) | |
download | thedroneely.com-48e0d578c7f65e6a0ab8d293217983ba8bb21c00.tar.gz thedroneely.com-48e0d578c7f65e6a0ab8d293217983ba8bb21c00.tar.bz2 thedroneely.com-48e0d578c7f65e6a0ab8d293217983ba8bb21c00.zip |
app/views/partials/navigator: Use noscript style override
-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') { ?> |