WordPress 4.7
[autoinstalls/wordpress.git] / wp-admin / css / colors / _admin.scss
1
2 @import 'variables';
3 @import 'mixins';
4
5
6 body {
7         background: $body-background;
8 }
9
10
11 /* Links */
12
13 a {
14         color: $link;
15
16         &:hover,
17         &:active,
18         &:focus {
19                 color: $link-focus;
20         }
21 }
22
23 #media-upload a.del-link:hover,
24 div.dashboard-widget-submit input:hover,
25 .subsubsub a:hover,
26 .subsubsub a.current:hover {
27         color: $link-focus;
28 }
29
30
31 /* Forms */
32
33 input[type=checkbox]:checked:before {
34         color: $form-checked;
35 }
36
37 input[type=radio]:checked:before {
38         background: $form-checked;
39 }
40
41 .wp-core-ui input[type="reset"]:hover,
42 .wp-core-ui input[type="reset"]:active {
43         color: $link-focus;
44 }
45
46
47 /* Core UI */
48
49 .wp-core-ui {
50         .button-primary {
51                 @include button( $button-color );
52         }
53
54         .wp-ui-primary {
55                 color: $text-color;
56                 background-color: $base-color;
57         }
58         .wp-ui-text-primary {
59                 color: $base-color;
60         }
61
62         .wp-ui-highlight {
63                 color: $menu-highlight-text;
64                 background-color: $menu-highlight-background;
65         }
66         .wp-ui-text-highlight {
67                 color: $menu-highlight-background;
68         }
69
70         .wp-ui-notification {
71                 color: $menu-bubble-text;
72                 background-color: $menu-bubble-background;
73         }
74         .wp-ui-text-notification {
75                 color: $menu-bubble-background;
76         }
77
78         .wp-ui-text-icon {
79                 color: $menu-icon;
80         }
81 }
82
83
84 /* List tables */
85
86 .wrap .add-new-h2:hover, /* deprecated */
87 .wrap .page-title-action:hover,
88 .tablenav .tablenav-pages a:hover,
89 .tablenav .tablenav-pages a:focus {
90         color: $menu-text;
91         background-color: $menu-background;
92 }
93
94 .view-switch a.current:before {
95         color: $menu-background;
96 }
97
98 .view-switch a:hover:before {
99         color: $menu-bubble-background;
100 }
101
102
103 /* Admin Menu */
104
105 #adminmenuback,
106 #adminmenuwrap,
107 #adminmenu {
108         background: $menu-background;
109 }
110
111 #adminmenu a {
112         color: $menu-text;
113 }
114
115 #adminmenu div.wp-menu-image:before {
116         color: $menu-icon;
117 }
118
119 #adminmenu a:hover,
120 #adminmenu li.menu-top:hover,
121 #adminmenu li.opensub > a.menu-top,
122 #adminmenu li > a.menu-top:focus {
123         color: $menu-highlight-text;
124         background-color: $menu-highlight-background;
125 }
126
127 #adminmenu li.menu-top:hover div.wp-menu-image:before,
128 #adminmenu li.opensub > a.menu-top div.wp-menu-image:before {
129         color: $menu-highlight-icon;
130 }
131
132
133 /* Active tabs use a bottom border color that matches the page background color. */
134
135 .about-wrap h2 .nav-tab-active,
136 .nav-tab-active,
137 .nav-tab-active:hover {
138         background-color: $body-background;
139         border-bottom-color: $body-background;
140 }
141
142
143 /* Admin Menu: submenu */
144
145 #adminmenu .wp-submenu,
146 #adminmenu .wp-has-current-submenu .wp-submenu,
147 #adminmenu .wp-has-current-submenu.opensub .wp-submenu,
148 .folded #adminmenu .wp-has-current-submenu .wp-submenu,
149 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
150         background: $menu-submenu-background;
151 }
152
153 #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after {
154         border-right-color: $menu-submenu-background;
155 }
156
157 #adminmenu .wp-submenu .wp-submenu-head {
158         color: $menu-submenu-text;
159 }
160
161 #adminmenu .wp-submenu a,
162 #adminmenu .wp-has-current-submenu .wp-submenu a,
163 .folded #adminmenu .wp-has-current-submenu .wp-submenu a,
164 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
165 #adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
166         color: $menu-submenu-text;
167
168         &:focus, &:hover {
169                 color: $menu-submenu-focus-text;
170         }
171 }
172
173
174 /* Admin Menu: current */
175
176 #adminmenu .wp-submenu li.current a,
177 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a,
178 #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
179         color: $menu-submenu-current-text;
180
181         &:hover, &:focus {
182                 color: $menu-submenu-focus-text;
183         }
184 }
185
186 ul#adminmenu a.wp-has-current-submenu:after,
187 ul#adminmenu > li.current > a.current:after {
188     border-right-color: $body-background;
189 }
190
191 #adminmenu li.current a.menu-top,
192 #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
193 #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,
194 .folded #adminmenu li.current.menu-top {
195         color: $menu-current-text;
196         background: $menu-current-background;
197 }
198
199 #adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
200 #adminmenu a.current:hover div.wp-menu-image:before,
201 #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,
202 #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,
203 #adminmenu li:hover div.wp-menu-image:before,
204 #adminmenu li a:focus div.wp-menu-image:before,
205 #adminmenu li.opensub div.wp-menu-image:before,
206 .ie8 #adminmenu li.opensub div.wp-menu-image:before {
207         color: $menu-current-icon;
208 }
209
210
211 /* Admin Menu: bubble */
212
213 #adminmenu .awaiting-mod,
214 #adminmenu .update-plugins {
215         color: $menu-bubble-text;
216         background: $menu-bubble-background;
217 }
218
219 #adminmenu li.current a .awaiting-mod,
220 #adminmenu li a.wp-has-current-submenu .update-plugins,
221 #adminmenu li:hover a .awaiting-mod,
222 #adminmenu li.menu-top:hover > a .update-plugins {
223         color: $menu-bubble-current-text;
224         background: $menu-bubble-current-background;
225 }
226
227
228 /* Admin Menu: collapse button */
229
230 #collapse-button {
231     color: $menu-collapse-text;
232 }
233
234 #collapse-button:hover,
235 #collapse-button:focus {
236     color: $menu-submenu-focus-text;
237 }
238
239 /* Admin Bar */
240
241 #wpadminbar {
242         color: $menu-text;
243         background: $menu-background;
244 }
245
246 #wpadminbar .ab-item,
247 #wpadminbar a.ab-item,
248 #wpadminbar > #wp-toolbar span.ab-label,
249 #wpadminbar > #wp-toolbar span.noticon {
250         color: $menu-text;
251 }
252
253 #wpadminbar .ab-icon,
254 #wpadminbar .ab-icon:before,
255 #wpadminbar .ab-item:before,
256 #wpadminbar .ab-item:after {
257         color: $menu-icon;
258 }
259
260 #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
261 #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
262 #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
263 #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
264 #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
265         color: $menu-submenu-focus-text;
266         background: $menu-submenu-background;
267 }
268
269 #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
270 #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
271 #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
272         color: $menu-submenu-focus-text;
273 }
274
275 #wpadminbar:not(.mobile) li:hover .ab-icon:before,
276 #wpadminbar:not(.mobile) li:hover .ab-item:before,
277 #wpadminbar:not(.mobile) li:hover .ab-item:after,
278 #wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
279         color: $menu-highlight-icon;
280 }
281
282
283 /* Admin Bar: submenu */
284
285 #wpadminbar .menupop .ab-sub-wrapper {
286         background: $menu-submenu-background;
287 }
288
289 #wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
290 #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
291         background: $menu-submenu-background-alt;
292 }
293
294 #wpadminbar .ab-submenu .ab-item,
295 #wpadminbar .quicklinks .menupop ul li a,
296 #wpadminbar .quicklinks .menupop.hover ul li a,
297 #wpadminbar.nojs .quicklinks .menupop:hover ul li a {
298         color: $menu-submenu-text;
299 }
300
301 #wpadminbar .quicklinks li .blavatar,
302 #wpadminbar .menupop .menupop > .ab-item:before {
303         color: $menu-icon;
304 }
305
306 #wpadminbar .quicklinks .menupop ul li a:hover,
307 #wpadminbar .quicklinks .menupop ul li a:focus,
308 #wpadminbar .quicklinks .menupop ul li a:hover strong,
309 #wpadminbar .quicklinks .menupop ul li a:focus strong,
310 #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a,
311 #wpadminbar .quicklinks .menupop.hover ul li a:hover,
312 #wpadminbar .quicklinks .menupop.hover ul li a:focus,
313 #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
314 #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
315 #wpadminbar li:hover .ab-icon:before,
316 #wpadminbar li:hover .ab-item:before,
317 #wpadminbar li a:focus .ab-icon:before,
318 #wpadminbar li .ab-item:focus:before,
319 #wpadminbar li .ab-item:focus .ab-icon:before,
320 #wpadminbar li.hover .ab-icon:before,
321 #wpadminbar li.hover .ab-item:before,
322 #wpadminbar li:hover #adminbarsearch:before,
323 #wpadminbar li #adminbarsearch.adminbar-focused:before {
324         color: $menu-submenu-focus-text;
325 }
326
327 #wpadminbar .quicklinks li a:hover .blavatar,
328 #wpadminbar .quicklinks li a:focus .blavatar,
329 #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar,
330 #wpadminbar .menupop .menupop > .ab-item:hover:before,
331 #wpadminbar.mobile .quicklinks .ab-icon:before,
332 #wpadminbar.mobile .quicklinks .ab-item:before {
333         color: $menu-submenu-focus-text;
334 }
335
336 #wpadminbar.mobile .quicklinks .hover .ab-icon:before,
337 #wpadminbar.mobile .quicklinks .hover .ab-item:before {
338         color: $menu-icon;
339 }
340
341
342 /* Admin Bar: search */
343
344 #wpadminbar #adminbarsearch:before {
345         color: $menu-icon;
346 }
347
348 #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
349         color: $menu-text;
350         background: $adminbar-input-background;
351 }
352
353 /* Admin Bar: my account */
354
355 #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
356         border-color: $adminbar-avatar-frame;
357         background-color: $adminbar-avatar-frame;
358 }
359
360 #wpadminbar #wp-admin-bar-user-info .display-name {
361         color: $menu-text;
362 }
363
364 #wpadminbar #wp-admin-bar-user-info a:hover .display-name {
365         color: $menu-submenu-focus-text;
366 }
367
368 #wpadminbar #wp-admin-bar-user-info .username {
369         color: $menu-submenu-text;
370 }
371
372
373 /* Pointers */
374
375 .wp-pointer .wp-pointer-content h3 {
376         background-color: $highlight-color;
377         border-color: darken( $highlight-color, 5% );
378 }
379
380 .wp-pointer .wp-pointer-content h3:before {
381         color: $highlight-color;
382 }
383
384 .wp-pointer.wp-pointer-top .wp-pointer-arrow,
385 .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,
386 .wp-pointer.wp-pointer-undefined .wp-pointer-arrow,
387 .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner {
388         border-bottom-color: $highlight-color;
389 }
390
391
392 /* Media */
393
394 .media-item .bar,
395 .media-progress-bar div {
396         background-color: $highlight-color;
397 }
398
399 .details.attachment {
400         box-shadow:
401                 inset 0 0 0 3px #fff,
402                 inset 0 0 0 7px $highlight-color;
403 }
404
405 .attachment.details .check {
406         background-color: $highlight-color;
407         box-shadow: 0 0 0 1px #fff, 0 0 0 2px $highlight-color;
408 }
409
410 .media-selection .attachment.selection.details .thumbnail {
411         -webkit-box-shadow:
412                 0px 0px 0px 1px #fff,
413                 0px 0px 0px 3px $highlight-color;
414         box-shadow:
415                 0px 0px 0px 1px #fff,
416                 0px 0px 0px 3px $highlight-color;
417 }
418
419
420 /* Themes */
421
422 .theme-browser .theme.active .theme-name,
423 .theme-browser .theme.add-new-theme a:hover:after,
424 .theme-browser .theme.add-new-theme a:focus:after {
425         background: $highlight-color;
426 }
427
428 .theme-browser .theme.add-new-theme a:hover span:after,
429 .theme-browser .theme.add-new-theme a:focus span:after {
430         color: $highlight-color;
431 }
432
433 .theme-section.current,
434 .theme-filter.current {
435         border-bottom-color: $menu-background;
436 }
437
438 body.more-filters-opened .more-filters {
439         color: $menu-text;
440         background-color: $menu-background;
441 }
442
443 body.more-filters-opened .more-filters:before {
444         color: $menu-text;
445 }
446
447 body.more-filters-opened .more-filters:hover,
448 body.more-filters-opened .more-filters:focus {
449         background-color: $menu-highlight-background;
450         color: $menu-highlight-text;
451 }
452
453 body.more-filters-opened .more-filters:hover:before,
454 body.more-filters-opened .more-filters:focus:before {
455         color: $menu-highlight-text;
456 }
457
458 /* Widgets */
459
460 .widgets-chooser li.widgets-chooser-selected {
461         background-color: $menu-highlight-background;
462         color: $menu-highlight-text;
463 }
464
465 .widgets-chooser li.widgets-chooser-selected:before,
466 .widgets-chooser li.widgets-chooser-selected:focus:before {
467         color: $menu-highlight-text;
468 }
469
470 /* Responsive Component */
471
472 div#wp-responsive-toggle a:before {
473         color: $menu-icon;
474 }
475
476 .wp-responsive-open div#wp-responsive-toggle a {
477         // ToDo: make inset border
478         border-color: transparent;
479         background: $menu-highlight-background;
480 }
481
482 .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a {
483         background: $menu-submenu-background;
484 }
485
486 .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before {
487         color: $menu-icon;
488 }
489
490 /* TinyMCE */
491
492 .mce-container.mce-menu .mce-menu-item:hover,
493 .mce-container.mce-menu .mce-menu-item.mce-selected,
494 .mce-container.mce-menu .mce-menu-item:focus,
495 .mce-container.mce-menu .mce-menu-item-normal.mce-active,
496 .mce-container.mce-menu .mce-menu-item-preview.mce-active {
497         background: $highlight-color;
498 }