diff options
author | ng0 <ng0@n0.is> | 2019-02-24 00:26:13 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-24 00:26:13 +0000 |
commit | 79491efb04351c3a3f5225f154eb8e3ce8a25de8 (patch) | |
tree | b31c8063a189d1067d73d09b24839d81598f01a8 | |
parent | fa5763f06d0b32b811017eb3c261e46594148a74 (diff) |
Attempt navbar support for no js
-rw-r--r-- | static/navbar.css | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/static/navbar.css b/static/navbar.css index 9b60f816..f8d6f3b7 100644 --- a/static/navbar.css +++ b/static/navbar.css @@ -5,3 +5,45 @@ .navbar { margin-bottom: 0px; } + +.sidebar-nav { + padding: 9px 0; +} + +.dropdown-menu .sub-menu { + left: 100%; + position: absolute; + top: 0; + visibility: hidden; + margin-top: -1px; +} + +.dropdown-menu li:hover .sub-menu { + visibility: visible; +} + +.dropdown:hover .dropdown-menu { + display: block; +} + +.nav-tabs .dropdown-menu, .nav-pills .dropdown-menu, .navbar .dropdown-menu { + margin-top: 0; +} + +.navbar .sub-menu:before { + border-bottom: 7px solid transparent; + border-left: none; + border-right: 7px solid rgba(0, 0, 0, 0.2); + border-top: 7px solid transparent; + left: -7px; + top: 10px; +} +.navbar .sub-menu:after { + border-top: 6px solid transparent; + border-left: none; + border-right: 6px solid #fff; + border-bottom: 6px solid transparent; + left: 10px; + top: 11px; + left: -6px; + } |