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) | |
download | www-79491efb04351c3a3f5225f154eb8e3ce8a25de8.tar.gz www-79491efb04351c3a3f5225f154eb8e3ce8a25de8.zip |
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 @@ | |||
5 | .navbar { | 5 | .navbar { |
6 | margin-bottom: 0px; | 6 | margin-bottom: 0px; |
7 | } | 7 | } |
8 | |||
9 | .sidebar-nav { | ||
10 | padding: 9px 0; | ||
11 | } | ||
12 | |||
13 | .dropdown-menu .sub-menu { | ||
14 | left: 100%; | ||
15 | position: absolute; | ||
16 | top: 0; | ||
17 | visibility: hidden; | ||
18 | margin-top: -1px; | ||
19 | } | ||
20 | |||
21 | .dropdown-menu li:hover .sub-menu { | ||
22 | visibility: visible; | ||
23 | } | ||
24 | |||
25 | .dropdown:hover .dropdown-menu { | ||
26 | display: block; | ||
27 | } | ||
28 | |||
29 | .nav-tabs .dropdown-menu, .nav-pills .dropdown-menu, .navbar .dropdown-menu { | ||
30 | margin-top: 0; | ||
31 | } | ||
32 | |||
33 | .navbar .sub-menu:before { | ||
34 | border-bottom: 7px solid transparent; | ||
35 | border-left: none; | ||
36 | border-right: 7px solid rgba(0, 0, 0, 0.2); | ||
37 | border-top: 7px solid transparent; | ||
38 | left: -7px; | ||
39 | top: 10px; | ||
40 | } | ||
41 | .navbar .sub-menu:after { | ||
42 | border-top: 6px solid transparent; | ||
43 | border-left: none; | ||
44 | border-right: 6px solid #fff; | ||
45 | border-bottom: 6px solid transparent; | ||
46 | left: 10px; | ||
47 | top: 11px; | ||
48 | left: -6px; | ||
49 | } | ||