Commit 154b2aa
committed
ui: css-ify navigation bar frontend
Rely on an almost-pure CSS implementation for the navigation bar. The
old implementation was quite ugly, as it relied on the javascript
cloning a bunch of HTML nodes to create the mobile-only dropdown.
Instead, just do this duplication when generating the HTML (the cloning
of nodes was not cloning event handlers, so depending on the order in
which JS files were loaded, registering event handler to navbar items
was impossible. Or rather, they would only work on the desktop version).
This also eliminates the use of some jQuery, which is always nice. The
cost here are some animations, but really, we don't need those.
While we're at it, remove some unused css definitions. This entire part
of the code pre-dates pointercrate, and stems from when I was messing
around with doing my own Bootstrap-style css framework when I was in
high school, to learn webdev. Good times.
Signed-off-by: stadust <43299462+stadust@users.noreply.github.com>1 parent 3a198f7 commit 154b2aa
File tree
3 files changed
+43
-130
lines changed- pointercrate-core-pages
- src
- static
- css
- js
3 files changed
+43
-130
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
59 | 69 | | |
60 | 70 | | |
61 | 71 | | |
| |||
69 | 79 | | |
70 | 80 | | |
71 | 81 | | |
72 | | - | |
| 82 | + | |
73 | 83 | | |
74 | 84 | | |
75 | 85 | | |
76 | 86 | | |
77 | 87 | | |
78 | | - | |
| 88 | + | |
79 | 89 | | |
80 | | - | |
| 90 | + | |
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
88 | 103 | | |
89 | 104 | | |
90 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | | - | |
74 | | - | |
75 | 72 | | |
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 77 | | |
94 | | - | |
| 78 | + | |
95 | 79 | | |
96 | 80 | | |
97 | 81 | | |
| |||
124 | 108 | | |
125 | 109 | | |
126 | 110 | | |
127 | | - | |
128 | | - | |
| 111 | + | |
129 | 112 | | |
130 | 113 | | |
131 | 114 | | |
| |||
143 | 126 | | |
144 | 127 | | |
145 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
146 | 133 | | |
147 | 134 | | |
148 | 135 | | |
| |||
155 | 142 | | |
156 | 143 | | |
157 | 144 | | |
| 145 | + | |
158 | 146 | | |
159 | 147 | | |
160 | 148 | | |
161 | 149 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 150 | | |
175 | 151 | | |
176 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 3 | | |
12 | 4 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 5 | + | |
28 | 6 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
79 | 10 | | |
80 | 11 | | |
81 | 12 | | |
82 | | - | |
83 | | - | |
84 | 13 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 14 | + | |
| 15 | + | |
94 | 16 | | |
0 commit comments