author | ymh <ymh.work@gmail.com> |
Tue, 15 Dec 2020 13:49:49 +0100 | |
changeset 16 | a86126ab1dd4 |
parent 9 | 177826044cd9 |
child 18 | be944660c56a |
permissions | -rw-r--r-- |
5 | 1 |
#adminmenuback, |
2 |
#adminmenuwrap, |
|
3 |
#adminmenu, |
|
4 |
#adminmenu .wp-submenu { |
|
5 |
width: 160px; |
|
6 |
background-color: #23282d; |
|
7 |
} |
|
8 |
||
9 |
#adminmenuback { |
|
10 |
position: fixed; |
|
11 |
top: 0; |
|
12 |
bottom: -120px; |
|
13 |
z-index: 1; /* positive z-index to avoid elastic scrolling woes in Safari */ |
|
14 |
} |
|
15 |
||
16 | 16 |
.php-error #adminmenuback { |
17 |
position: absolute; |
|
18 |
} |
|
19 |
||
20 |
.php-error #adminmenuback, |
|
21 |
.php-error #adminmenuwrap { |
|
22 |
margin-top: 2em; |
|
23 |
} |
|
24 |
||
5 | 25 |
#adminmenu { |
26 |
clear: left; |
|
27 |
margin: 12px 0; |
|
28 |
padding: 0; |
|
29 |
list-style: none; |
|
30 |
} |
|
31 |
||
32 |
.folded #adminmenuback, |
|
33 |
.folded #adminmenuwrap, |
|
34 |
.folded #adminmenu, |
|
35 |
.folded #adminmenu li.menu-top { |
|
36 |
width: 36px; |
|
37 |
} |
|
38 |
||
39 |
.icon16 { |
|
40 |
height: 18px; |
|
41 |
width: 18px; |
|
42 |
padding: 6px 6px; |
|
43 |
margin: -6px 0 0 -8px; |
|
44 |
float: left; |
|
45 |
} |
|
46 |
||
47 |
/* New Menu icons */ |
|
48 |
||
49 |
.icon16:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
50 |
color: #82878c; /* same as new icons */ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
51 |
font: normal 20px/1 dashicons; |
5 | 52 |
speak: none; |
53 |
padding: 6px 0; |
|
54 |
height: 34px; |
|
55 |
width: 20px; |
|
56 |
display: inline-block; |
|
57 |
-webkit-font-smoothing: antialiased; |
|
58 |
-moz-osx-font-smoothing: grayscale; |
|
59 |
transition: all .1s ease-in-out; |
|
60 |
} |
|
61 |
||
62 |
.icon16.icon-dashboard:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
63 |
content: "\f226"; |
5 | 64 |
} |
65 |
||
66 |
.icon16.icon-post:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
67 |
content: "\f109"; |
5 | 68 |
} |
69 |
||
70 |
.icon16.icon-media:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
71 |
content: "\f104"; |
5 | 72 |
} |
73 |
||
74 |
.icon16.icon-links:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
75 |
content: "\f103"; |
5 | 76 |
} |
77 |
||
78 |
.icon16.icon-page:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
79 |
content: "\f105"; |
5 | 80 |
} |
81 |
||
82 |
.icon16.icon-comments:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
83 |
content: "\f101"; |
5 | 84 |
margin-top: 1px; |
85 |
} |
|
86 |
||
87 |
.icon16.icon-appearance:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
88 |
content: "\f100"; |
5 | 89 |
} |
90 |
||
91 |
.icon16.icon-plugins:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
92 |
content: "\f106"; |
5 | 93 |
} |
94 |
||
95 |
.icon16.icon-users:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
96 |
content: "\f110"; |
5 | 97 |
} |
98 |
||
99 |
.icon16.icon-tools:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
100 |
content: "\f107"; |
5 | 101 |
} |
102 |
||
103 |
.icon16.icon-settings:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
104 |
content: "\f108"; |
5 | 105 |
} |
106 |
||
107 |
.icon16.icon-site:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
108 |
content: "\f541"; |
5 | 109 |
} |
110 |
||
111 |
.icon16.icon-generic:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
112 |
content: "\f111"; |
5 | 113 |
} |
114 |
||
115 |
/* hide background-image for icons above */ |
|
116 |
.icon16.icon-dashboard, |
|
117 |
.menu-icon-dashboard div.wp-menu-image, |
|
118 |
.icon16.icon-post, |
|
119 |
.menu-icon-post div.wp-menu-image, |
|
120 |
.icon16.icon-media, |
|
121 |
.menu-icon-media div.wp-menu-image, |
|
122 |
.icon16.icon-links, |
|
123 |
.menu-icon-links div.wp-menu-image, |
|
124 |
.icon16.icon-page, |
|
125 |
.menu-icon-page div.wp-menu-image, |
|
126 |
.icon16.icon-comments, |
|
127 |
.menu-icon-comments div.wp-menu-image, |
|
128 |
.icon16.icon-appearance, |
|
129 |
.menu-icon-appearance div.wp-menu-image, |
|
130 |
.icon16.icon-plugins, |
|
131 |
.menu-icon-plugins div.wp-menu-image, |
|
132 |
.icon16.icon-users, |
|
133 |
.menu-icon-users div.wp-menu-image, |
|
134 |
.icon16.icon-tools, |
|
135 |
.menu-icon-tools div.wp-menu-image, |
|
136 |
.icon16.icon-settings, |
|
137 |
.menu-icon-settings div.wp-menu-image, |
|
138 |
.icon16.icon-site, |
|
139 |
.menu-icon-site div.wp-menu-image, |
|
140 |
.icon16.icon-generic, |
|
141 |
.menu-icon-generic div.wp-menu-image { |
|
142 |
background-image: none !important; |
|
143 |
} |
|
144 |
||
145 |
/*------------------------------------------------------------------------------ |
|
146 |
7.0 - Main Navigation (Left Menu) |
|
147 |
------------------------------------------------------------------------------*/ |
|
148 |
||
149 |
#adminmenuwrap { |
|
150 |
position: relative; |
|
151 |
float: left; |
|
152 |
z-index: 9990; |
|
153 |
} |
|
154 |
||
155 |
/* side admin menu */ |
|
156 |
#adminmenu * { |
|
157 |
-webkit-user-select: none; |
|
158 |
-moz-user-select: none; |
|
159 |
-ms-user-select: none; |
|
160 |
user-select: none; |
|
161 |
} |
|
162 |
||
163 |
#adminmenu li { |
|
164 |
margin: 0; |
|
165 |
padding: 0; |
|
166 |
cursor: pointer; |
|
167 |
} |
|
168 |
||
169 |
#adminmenu a { |
|
170 |
display: block; |
|
9 | 171 |
line-height: 1.3; |
5 | 172 |
padding: 2px 5px; |
173 |
color: #eee; |
|
174 |
} |
|
175 |
||
176 |
#adminmenu .wp-submenu a { |
|
177 |
color: #b4b9be; |
|
9 | 178 |
color: rgba(240, 245, 250, 0.7); |
16 | 179 |
font-size: 13px; |
180 |
line-height: 1.4; |
|
181 |
margin: 0; |
|
182 |
padding: 5px 0; |
|
5 | 183 |
} |
184 |
||
185 |
#adminmenu .wp-submenu a:hover, |
|
186 |
#adminmenu .wp-submenu a:focus { |
|
187 |
background: none; |
|
188 |
} |
|
189 |
||
190 |
#adminmenu a:hover, |
|
191 |
#adminmenu li.menu-top > a:focus, |
|
192 |
#adminmenu .wp-submenu a:hover, |
|
193 |
#adminmenu .wp-submenu a:focus { |
|
194 |
color: #00b9eb; |
|
195 |
} |
|
196 |
||
197 |
#adminmenu li.menu-top { |
|
198 |
border: none; |
|
199 |
min-height: 34px; |
|
200 |
position: relative; |
|
201 |
} |
|
202 |
||
203 |
#adminmenu .wp-submenu { |
|
204 |
list-style: none; |
|
205 |
position: absolute; |
|
206 |
top: -1000em; |
|
207 |
left: 160px; |
|
208 |
overflow: visible; |
|
209 |
word-wrap: break-word; |
|
210 |
} |
|
211 |
||
212 |
#adminmenu .wp-submenu, |
|
213 |
.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, |
|
214 |
.folded #adminmenu .wp-has-current-submenu .wp-submenu { |
|
215 |
padding: 7px 0 8px; |
|
216 |
z-index: 9999; |
|
217 |
background-color: #32373c; |
|
9 | 218 |
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); |
5 | 219 |
} |
220 |
||
221 |
.js #adminmenu .sub-open, |
|
222 |
.js #adminmenu .opensub .wp-submenu, |
|
223 |
#adminmenu a.menu-top:focus + .wp-submenu, |
|
224 |
.no-js li.wp-has-submenu:hover .wp-submenu { |
|
225 |
top: -1px; |
|
226 |
} |
|
227 |
||
228 |
#adminmenu .wp-has-current-submenu .wp-submenu, |
|
229 |
.no-js li.wp-has-current-submenu:hover .wp-submenu, |
|
230 |
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu, |
|
231 |
#adminmenu .wp-has-current-submenu .wp-submenu.sub-open, |
|
232 |
#adminmenu .wp-has-current-submenu.opensub .wp-submenu { |
|
233 |
position: relative; |
|
234 |
z-index: 3; |
|
235 |
top: auto; |
|
236 |
left: auto; |
|
237 |
right: auto; |
|
238 |
bottom: auto; |
|
239 |
border: 0 none; |
|
240 |
margin-top: 0; |
|
241 |
box-shadow: none; |
|
242 |
background-color: #32373c; |
|
243 |
} |
|
244 |
||
245 |
/* ensure that wp-submenu's box shadow doesn't appear on top of the focused menu item's background. */ |
|
246 |
#adminmenu li.menu-top:hover, |
|
247 |
#adminmenu li.opensub > a.menu-top, |
|
248 |
#adminmenu li > a.menu-top:focus { |
|
249 |
position: relative; |
|
250 |
background-color: #191e23; |
|
251 |
color: #00b9eb; |
|
252 |
} |
|
253 |
||
254 |
.folded #adminmenu li.menu-top:hover, |
|
255 |
.folded #adminmenu li.opensub > a.menu-top, |
|
256 |
.folded #adminmenu li > a.menu-top:focus { |
|
257 |
z-index: 10000; |
|
258 |
} |
|
259 |
||
260 |
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, |
|
261 |
#adminmenu li.current a.menu-top, |
|
262 |
.folded #adminmenu li.wp-has-current-submenu, |
|
263 |
.folded #adminmenu li.current.menu-top, |
|
264 |
#adminmenu .wp-menu-arrow, |
|
265 |
#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head, |
|
266 |
#adminmenu .wp-menu-arrow div { |
|
267 |
background: #0073aa; |
|
268 |
color: #fff; |
|
269 |
} |
|
270 |
||
271 |
.folded #adminmenu .wp-submenu.sub-open, |
|
272 |
.folded #adminmenu .opensub .wp-submenu, |
|
273 |
.folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, |
|
274 |
.folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu, |
|
275 |
.folded #adminmenu a.menu-top:focus + .wp-submenu, |
|
276 |
.folded #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu, |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
277 |
.no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu { |
5 | 278 |
top: 0; |
279 |
left: 36px; |
|
280 |
} |
|
281 |
||
282 |
.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, |
|
283 |
.folded #adminmenu .wp-has-current-submenu .wp-submenu { |
|
284 |
position: absolute; |
|
285 |
top: -1000em; |
|
286 |
} |
|
287 |
||
288 |
#adminmenu .wp-not-current-submenu .wp-submenu, |
|
289 |
.folded #adminmenu .wp-has-current-submenu .wp-submenu { |
|
290 |
min-width: 160px; |
|
291 |
width: auto; |
|
292 |
} |
|
293 |
||
294 |
#adminmenu .wp-submenu li.current, |
|
295 |
#adminmenu .wp-submenu li.current a, |
|
296 |
#adminmenu .opensub .wp-submenu li.current a, |
|
297 |
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, |
|
298 |
#adminmenu .wp-submenu li.current a:hover, |
|
299 |
#adminmenu .wp-submenu li.current a:focus { |
|
300 |
color: #fff; |
|
301 |
} |
|
302 |
||
303 |
#adminmenu .wp-not-current-submenu li > a, |
|
304 |
.folded #adminmenu .wp-has-current-submenu li > a { |
|
305 |
padding-right: 16px; |
|
306 |
padding-left: 14px; |
|
9 | 307 |
/* Exclude from the transition the outline for Windows High Contrast mode */ |
308 |
transition: all .1s ease-in-out, outline 0s; |
|
5 | 309 |
} |
310 |
||
311 |
#adminmenu .wp-has-current-submenu ul > li > a, |
|
312 |
.folded #adminmenu li.menu-top .wp-submenu > li > a { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
313 |
padding: 5px 12px; |
5 | 314 |
} |
315 |
||
316 |
#adminmenu a.menu-top, |
|
317 |
#adminmenu .wp-submenu-head { |
|
318 |
font-size: 14px; |
|
319 |
font-weight: 400; |
|
9 | 320 |
line-height: 1.3; |
5 | 321 |
padding: 0; |
322 |
} |
|
323 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
324 |
#adminmenu .wp-submenu-head { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
325 |
display: none; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
326 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
327 |
|
5 | 328 |
.folded #adminmenu .wp-menu-name { |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
329 |
position: absolute; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
330 |
left: -999px; |
5 | 331 |
} |
332 |
||
333 |
.folded #adminmenu .wp-submenu-head { |
|
334 |
display: block; |
|
335 |
} |
|
336 |
||
337 |
#adminmenu .wp-submenu li { |
|
338 |
padding: 0; |
|
339 |
margin: 0; |
|
340 |
} |
|
341 |
||
342 |
#adminmenu .wp-menu-image img { |
|
343 |
padding: 9px 0 0 0; |
|
344 |
opacity: 0.6; |
|
345 |
filter: alpha(opacity=60); |
|
346 |
} |
|
347 |
||
348 |
#adminmenu div.wp-menu-name { |
|
349 |
padding: 8px 0; |
|
350 |
} |
|
351 |
||
352 |
#adminmenu div.wp-menu-image { |
|
353 |
float: left; |
|
354 |
width: 36px; |
|
355 |
height: 34px; |
|
356 |
margin: 0; |
|
357 |
text-align: center; |
|
358 |
} |
|
359 |
||
360 |
#adminmenu div.wp-menu-image.svg { |
|
361 |
background-repeat: no-repeat; |
|
362 |
background-position: center; |
|
363 |
background-size: 20px auto; |
|
364 |
} |
|
365 |
||
366 |
div.wp-menu-image:before { |
|
367 |
color: #a0a5aa; |
|
9 | 368 |
color: rgba(240, 245, 250, 0.6); |
5 | 369 |
padding: 7px 0; |
370 |
transition: all .1s ease-in-out; |
|
371 |
} |
|
372 |
||
373 |
#adminmenu div.wp-menu-image:before { |
|
374 |
color: #a0a5aa; |
|
9 | 375 |
color: rgba(240, 245, 250, 0.6); |
5 | 376 |
} |
377 |
||
378 |
#adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before, |
|
379 |
#adminmenu .wp-has-current-submenu div.wp-menu-image:before, |
|
380 |
#adminmenu .current div.wp-menu-image:before, |
|
381 |
#adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before, |
|
382 |
#adminmenu a.current:hover div.wp-menu-image:before, |
|
383 |
#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, |
|
384 |
#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before { |
|
385 |
color: #fff; |
|
386 |
} |
|
387 |
||
388 |
#adminmenu li:hover div.wp-menu-image:before, |
|
389 |
#adminmenu li a:focus div.wp-menu-image:before, |
|
390 |
#adminmenu li.opensub div.wp-menu-image:before { |
|
391 |
color: #00b9eb; |
|
392 |
} |
|
393 |
||
394 |
.folded #adminmenu div.wp-menu-image { |
|
395 |
width: 35px; |
|
396 |
height: 30px; |
|
397 |
position: absolute; |
|
398 |
z-index: 25; |
|
399 |
} |
|
400 |
||
401 |
.folded #adminmenu a.menu-top { |
|
402 |
height: 34px; |
|
403 |
} |
|
404 |
||
405 |
/* Sticky admin menu */ |
|
406 |
.sticky-menu #adminmenuwrap { |
|
407 |
position: fixed; |
|
408 |
} |
|
409 |
||
410 |
/* A new arrow */ |
|
411 |
||
412 |
.wp-menu-arrow { |
|
413 |
display: none !important; |
|
414 |
} |
|
415 |
||
416 |
ul#adminmenu a.wp-has-current-submenu { |
|
417 |
position: relative; |
|
418 |
} |
|
419 |
||
420 |
ul#adminmenu a.wp-has-current-submenu:after, |
|
421 |
ul#adminmenu > li.current > a.current:after { |
|
422 |
right: 0; |
|
423 |
border: solid 8px transparent; |
|
424 |
content: " "; |
|
425 |
height: 0; |
|
426 |
width: 0; |
|
427 |
position: absolute; |
|
428 |
pointer-events: none; |
|
429 |
border-right-color: #f1f1f1; |
|
430 |
top: 50%; |
|
431 |
margin-top: -8px; |
|
432 |
} |
|
433 |
||
434 |
.folded ul#adminmenu li:hover a.wp-has-current-submenu:after { |
|
435 |
display: none; |
|
436 |
} |
|
437 |
||
438 |
.folded ul#adminmenu a.wp-has-current-submenu:after, |
|
439 |
.folded ul#adminmenu > li a.current:after { |
|
440 |
border-width: 4px; |
|
441 |
margin-top: -4px; |
|
442 |
} |
|
443 |
||
444 |
/* flyout menu arrow */ |
|
445 |
#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { |
|
446 |
right: 0; |
|
447 |
border: solid transparent; |
|
448 |
content: " "; |
|
449 |
height: 0; |
|
450 |
width: 0; |
|
451 |
position: absolute; |
|
452 |
pointer-events: none; |
|
453 |
border-width: 8px; |
|
454 |
top: 10px; |
|
455 |
z-index: 10000; |
|
456 |
} |
|
457 |
||
458 |
.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { |
|
459 |
border-width: 4px; |
|
460 |
margin-top: -4px; |
|
461 |
top: 18px; |
|
462 |
} |
|
463 |
||
464 |
#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { |
|
465 |
border-right-color: #32373c; |
|
466 |
} |
|
467 |
||
468 |
#adminmenu li.menu-top:hover .wp-menu-image img, |
|
469 |
#adminmenu li.wp-has-current-submenu .wp-menu-image img { |
|
470 |
opacity: 1; |
|
471 |
filter: alpha(opacity=100); |
|
472 |
} |
|
473 |
||
474 |
#adminmenu li.wp-menu-separator { |
|
475 |
height: 5px; |
|
476 |
padding: 0; |
|
477 |
margin: 0 0 6px 0; |
|
478 |
cursor: inherit; |
|
479 |
} |
|
480 |
||
481 |
/* @todo: is this even needed given that it's nested beneath the above li.wp-menu-separator? */ |
|
482 |
#adminmenu div.separator { |
|
483 |
height: 2px; |
|
484 |
padding: 0; |
|
485 |
} |
|
486 |
||
487 |
#adminmenu .wp-submenu .wp-submenu-head { |
|
488 |
color: #fff; |
|
489 |
font-weight: 400; |
|
490 |
font-size: 14px; |
|
491 |
padding: 8px 4px 8px 11px; |
|
492 |
margin: -7px 0px 4px; |
|
493 |
} |
|
494 |
||
495 |
#adminmenu li.current, |
|
496 |
.folded #adminmenu li.wp-menu-open { |
|
497 |
border: 0 none; |
|
498 |
} |
|
499 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
500 |
/* @todo: consider to use a single rule for these counters and the list table comments counters. */ |
5 | 501 |
#adminmenu .awaiting-mod, |
502 |
#adminmenu .update-plugins { |
|
503 |
display: inline-block; |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
504 |
vertical-align: top; |
9 | 505 |
box-sizing: border-box; |
506 |
margin: 1px 0 -1px 2px; |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
507 |
padding: 0 5px; |
9 | 508 |
min-width: 18px; |
509 |
height: 18px; |
|
510 |
border-radius: 9px; |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
511 |
background-color: #ca4a1f; |
5 | 512 |
color: #fff; |
9 | 513 |
font-size: 11px; |
514 |
line-height: 1.6; |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
515 |
text-align: center; |
5 | 516 |
z-index: 26; |
517 |
} |
|
518 |
||
519 |
#adminmenu li.current a .awaiting-mod, |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
520 |
#adminmenu li a.wp-has-current-submenu .update-plugins { |
9 | 521 |
background-color: #ca4a1f; |
5 | 522 |
color: #fff; |
523 |
} |
|
524 |
||
525 |
#adminmenu li span.count-0 { |
|
526 |
display: none; |
|
527 |
} |
|
528 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
529 |
#collapse-button { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
530 |
display: block; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
531 |
width: 100%; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
532 |
height: 34px; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
533 |
margin: 0; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
534 |
border: none; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
535 |
padding: 0; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
536 |
position: relative; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
537 |
overflow: visible; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
538 |
background: none; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
539 |
color: #aaa; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
540 |
cursor: pointer; |
9 | 541 |
} |
542 |
||
543 |
#collapse-button:hover { |
|
544 |
color: #00b9eb; |
|
5 | 545 |
} |
546 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
547 |
#collapse-button:focus { |
5 | 548 |
color: #00b9eb; |
9 | 549 |
/* Only visible in Windows High Contrast mode */ |
550 |
outline: 1px solid transparent; |
|
551 |
outline-offset: -1px; |
|
5 | 552 |
} |
553 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
554 |
#collapse-button .collapse-button-icon, |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
555 |
#collapse-button .collapse-button-label { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
556 |
/* absolutely positioned to avoid 1px shift in IE when button is pressed */ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
557 |
display: block; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
558 |
position: absolute; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
559 |
top: 0; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
560 |
left: 0; |
9 | 561 |
} |
562 |
||
563 |
#collapse-button .collapse-button-label { |
|
564 |
top: 8px; |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
565 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
566 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
567 |
#collapse-button .collapse-button-icon { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
568 |
width: 36px; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
569 |
height: 34px; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
570 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
571 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
572 |
#collapse-button .collapse-button-label { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
573 |
padding: 0 0 0 36px; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
574 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
575 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
576 |
.folded #collapse-button .collapse-button-label { |
5 | 577 |
display: none; |
578 |
} |
|
579 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
580 |
#collapse-button .collapse-button-icon:after { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
581 |
content: "\f148"; |
5 | 582 |
display: block; |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
583 |
position: relative; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
584 |
top: 7px; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
585 |
text-align: center; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
586 |
font: normal 20px/1 dashicons !important; |
5 | 587 |
speak: none; |
588 |
-webkit-font-smoothing: antialiased; |
|
589 |
-moz-osx-font-smoothing: grayscale; |
|
590 |
} |
|
591 |
||
592 |
/* rtl:ignore */ |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
593 |
.folded #collapse-button .collapse-button-icon:after, |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
594 |
.rtl #collapse-button .collapse-button-icon:after { |
5 | 595 |
transform: rotate(180deg); |
596 |
} |
|
597 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
598 |
.rtl.folded #collapse-button .collapse-button-icon:after { |
5 | 599 |
transform: none; |
600 |
} |
|
601 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
602 |
#collapse-button .collapse-button-icon:after, |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
603 |
#collapse-button .collapse-button-label { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
604 |
transition: all .1s ease-in-out; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
605 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
606 |
|
5 | 607 |
/** |
608 |
* Toolbar menu toggle |
|
609 |
*/ |
|
610 |
li#wp-admin-bar-menu-toggle { |
|
611 |
display: none; |
|
612 |
} |
|
613 |
||
614 |
/* Hide-if-customize for items we can't add classes to */ |
|
615 |
.customize-support #menu-appearance a[href="themes.php?page=custom-header"], |
|
616 |
.customize-support #menu-appearance a[href="themes.php?page=custom-background"] { |
|
617 |
display: none; |
|
618 |
} |
|
619 |
||
620 |
/* Auto-folding of the admin menu */ |
|
621 |
@media only screen and (max-width: 960px) { |
|
622 |
.auto-fold #wpcontent, |
|
623 |
.auto-fold #wpfooter { |
|
624 |
margin-left: 36px; |
|
625 |
} |
|
626 |
||
627 |
.auto-fold #adminmenuback, |
|
628 |
.auto-fold #adminmenuwrap, |
|
629 |
.auto-fold #adminmenu, |
|
630 |
.auto-fold #adminmenu li.menu-top { |
|
631 |
width: 36px; |
|
632 |
} |
|
633 |
||
634 |
.auto-fold #adminmenu .wp-submenu.sub-open, |
|
635 |
.auto-fold #adminmenu .opensub .wp-submenu, |
|
636 |
.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, |
|
637 |
.auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu, |
|
638 |
.auto-fold #adminmenu a.menu-top:focus + .wp-submenu, |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
639 |
.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { |
5 | 640 |
top: 0px; |
641 |
left: 36px; |
|
642 |
} |
|
643 |
||
644 |
.auto-fold #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, |
|
645 |
.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { |
|
646 |
position: absolute; |
|
647 |
top: -1000em; |
|
648 |
margin-right: -1px; |
|
649 |
padding: 7px 0 8px; |
|
650 |
z-index: 9999; |
|
651 |
} |
|
652 |
||
653 |
.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { |
|
654 |
min-width: 150px; |
|
655 |
width: auto; |
|
656 |
} |
|
657 |
||
658 |
.auto-fold #adminmenu .wp-has-current-submenu li > a { |
|
659 |
padding-right: 16px; |
|
660 |
padding-left: 14px; |
|
661 |
} |
|
662 |
||
663 |
||
664 |
.auto-fold #adminmenu li.menu-top .wp-submenu > li > a { |
|
665 |
padding-left: 12px; |
|
666 |
} |
|
667 |
||
668 |
.auto-fold #adminmenu .wp-menu-name { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
669 |
position: absolute; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
670 |
left: -999px; |
5 | 671 |
} |
672 |
||
673 |
.auto-fold #adminmenu .wp-submenu-head { |
|
674 |
display: block; |
|
675 |
} |
|
676 |
||
677 |
.auto-fold #adminmenu div.wp-menu-image { |
|
678 |
height: 30px; |
|
679 |
width: 34px; |
|
680 |
position: absolute; |
|
681 |
z-index: 25; |
|
682 |
} |
|
683 |
||
684 |
.auto-fold #adminmenu a.menu-top { |
|
685 |
height: 34px; |
|
686 |
} |
|
687 |
||
688 |
.auto-fold #adminmenu li.wp-menu-open { |
|
689 |
border: 0 none; |
|
690 |
} |
|
691 |
||
692 |
.auto-fold #adminmenu .wp-has-current-submenu.menu-top-last { |
|
693 |
margin-bottom: 0; |
|
694 |
} |
|
695 |
||
696 |
.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after { |
|
697 |
display: none; |
|
698 |
} |
|
699 |
||
700 |
.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { |
|
701 |
border-width: 4px; |
|
702 |
margin-top: -4px; |
|
703 |
top: 16px; |
|
704 |
} |
|
705 |
||
706 |
.auto-fold ul#adminmenu a.wp-has-current-submenu:after, |
|
707 |
.auto-fold ul#adminmenu > li a.current:after { |
|
708 |
border-width: 4px; |
|
709 |
margin-top: -4px; |
|
710 |
} |
|
711 |
||
712 |
.auto-fold #adminmenu li.menu-top:hover, |
|
713 |
.auto-fold #adminmenu li.opensub > a.menu-top, |
|
714 |
.auto-fold #adminmenu li > a.menu-top:focus { |
|
715 |
z-index: 10000; |
|
716 |
} |
|
717 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
718 |
.auto-fold #collapse-menu .collapse-button-label { |
5 | 719 |
display: none; |
720 |
} |
|
721 |
||
722 |
/* rtl:ignore */ |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
723 |
.auto-fold #collapse-button .collapse-button-icon:after { |
5 | 724 |
transform: rotate(180deg); |
725 |
} |
|
726 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
727 |
.rtl.auto-fold #collapse-button .collapse-button-icon:after { |
5 | 728 |
transform: none; |
729 |
} |
|
730 |
||
731 |
} |
|
732 |
||
9 | 733 |
@media screen and (max-width: 782px) { |
5 | 734 |
.auto-fold #wpcontent { |
735 |
position: relative; |
|
736 |
margin-left: 0; |
|
737 |
padding-left: 10px; |
|
738 |
} |
|
739 |
||
740 |
.sticky-menu #adminmenuwrap { |
|
741 |
position: relative; |
|
742 |
z-index: auto; |
|
743 |
top: 0; |
|
744 |
} |
|
745 |
||
746 |
/* Sidebar Adjustments */ |
|
747 |
.auto-fold #adminmenu, |
|
748 |
.auto-fold #adminmenuback, |
|
749 |
.auto-fold #adminmenuwrap { |
|
750 |
position: absolute; |
|
751 |
width: 190px; |
|
752 |
z-index: 100; |
|
753 |
} |
|
754 |
||
16 | 755 |
.auto-fold #adminmenuback { |
756 |
position: fixed; |
|
757 |
} |
|
758 |
||
5 | 759 |
.auto-fold #adminmenuback, |
760 |
.auto-fold #adminmenuwrap { |
|
761 |
display: none; |
|
762 |
} |
|
763 |
||
764 |
.auto-fold .wp-responsive-open #adminmenuback, |
|
765 |
.auto-fold .wp-responsive-open #adminmenuwrap { |
|
766 |
display: block; |
|
767 |
} |
|
768 |
||
769 |
.auto-fold #adminmenu li.menu-top { |
|
770 |
width: 100%; |
|
771 |
} |
|
772 |
||
773 |
/* Resize the admin menu items to a comfortable touch size */ |
|
774 |
.auto-fold #adminmenu li a { |
|
775 |
font-size: 16px; |
|
776 |
padding: 5px; |
|
777 |
} |
|
778 |
||
779 |
.auto-fold #adminmenu li.menu-top .wp-submenu > li > a { |
|
780 |
padding: 10px 10px 10px 20px; |
|
781 |
} |
|
782 |
||
783 |
/* Restore the menu names */ |
|
784 |
.auto-fold #adminmenu .wp-menu-name { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
785 |
position: static; |
5 | 786 |
margin-left: 35px; |
787 |
} |
|
788 |
||
789 |
/* Switch the arrow side */ |
|
790 |
.auto-fold ul#adminmenu a.wp-has-current-submenu:after, |
|
791 |
.auto-fold ul#adminmenu > li.current > a.current:after { |
|
792 |
border-width: 8px; |
|
793 |
margin-top: -8px; |
|
794 |
} |
|
795 |
||
796 |
.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { |
|
797 |
display: none; |
|
798 |
} |
|
799 |
||
800 |
/* Make the submenus appear correctly when tapped. */ |
|
801 |
#adminmenu .wp-submenu { |
|
802 |
position: relative; |
|
803 |
display: none; |
|
804 |
} |
|
805 |
||
806 |
.auto-fold #adminmenu .selected .wp-submenu, |
|
807 |
.auto-fold #adminmenu .wp-menu-open .wp-submenu { |
|
808 |
position: relative; |
|
809 |
display: block; |
|
810 |
top: 0; |
|
811 |
left: -1px; |
|
812 |
box-shadow: none; |
|
813 |
} |
|
814 |
||
815 |
.auto-fold #adminmenu .selected .wp-submenu:after, |
|
816 |
.auto-fold #adminmenu .wp-menu-open .wp-submenu:after { |
|
817 |
display: none; |
|
818 |
} |
|
819 |
||
820 |
.auto-fold #adminmenu .opensub .wp-submenu { |
|
821 |
display: none; |
|
822 |
} |
|
823 |
||
824 |
.auto-fold #adminmenu .selected .wp-submenu { |
|
825 |
display: block; |
|
826 |
} |
|
827 |
||
828 |
.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after { |
|
829 |
display: block; |
|
830 |
} |
|
831 |
||
832 |
.auto-fold #adminmenu a.menu-top:focus + .wp-submenu, |
|
833 |
.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { |
|
834 |
position: relative; |
|
835 |
left: -1px; |
|
836 |
right: 0; |
|
837 |
top: 0; |
|
838 |
} |
|
839 |
||
840 |
/* Remove submenu headers and adjust sub meu*/ |
|
841 |
#adminmenu .wp-submenu .wp-submenu-head { |
|
842 |
display: none; |
|
843 |
} |
|
844 |
||
845 |
/* Toolbar menu toggle */ |
|
846 |
#wp-responsive-toggle { |
|
847 |
position: fixed; |
|
848 |
top: 5px; |
|
849 |
left: 4px; |
|
850 |
padding-right: 10px; |
|
851 |
z-index: 99999; |
|
852 |
border: none; |
|
853 |
box-sizing: border-box; |
|
854 |
} |
|
855 |
||
856 |
#wpadminbar #wp-admin-bar-menu-toggle a { |
|
857 |
display: block; |
|
858 |
padding: 0; |
|
859 |
overflow: hidden; |
|
860 |
outline: none; |
|
861 |
text-decoration: none; |
|
862 |
border: 1px solid transparent; |
|
863 |
background: none; |
|
864 |
height: 44px; |
|
865 |
margin-left: -1px; |
|
866 |
} |
|
867 |
||
868 |
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { |
|
869 |
background: #32373c; |
|
870 |
} |
|
871 |
||
872 |
li#wp-admin-bar-menu-toggle { |
|
873 |
display: block; |
|
874 |
} |
|
875 |
||
876 |
#wpadminbar #wp-admin-bar-menu-toggle a:hover { |
|
877 |
border: 1px solid transparent; |
|
878 |
} |
|
879 |
||
880 |
#wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
881 |
content: "\f228"; |
5 | 882 |
display: inline-block; |
883 |
float: left; |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
884 |
font: normal 40px/45px dashicons; |
5 | 885 |
vertical-align: middle; |
886 |
outline: none; |
|
887 |
margin: 0; |
|
888 |
-webkit-font-smoothing: antialiased; |
|
889 |
-moz-osx-font-smoothing: grayscale; |
|
890 |
height: 44px; |
|
891 |
width: 50px; |
|
892 |
padding: 0; |
|
893 |
border: none; |
|
894 |
text-align: center; |
|
895 |
text-decoration: none; |
|
896 |
box-sizing: border-box; |
|
897 |
} |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
898 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
899 |
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
900 |
color: #00b9eb; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
901 |
} |
5 | 902 |
} |
903 |
||
904 |
/* Smartphone */ |
|
905 |
@media screen and (max-width: 600px) { |
|
906 |
#adminmenuwrap, |
|
907 |
#adminmenuback { |
|
908 |
display: none; |
|
909 |
} |
|
910 |
||
911 |
.wp-responsive-open #adminmenuwrap, |
|
912 |
.wp-responsive-open #adminmenuback { |
|
913 |
display: block; |
|
914 |
} |
|
915 |
||
916 |
.auto-fold #adminmenu { |
|
917 |
top: 46px; |
|
918 |
} |
|
919 |
} |