_admin.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. @import 'variables';
  2. @import 'mixins';
  3. @function url-friendly-colour( $color ) {
  4. @return '%23' + str-slice( '#{ $color }', 2, -1 );
  5. }
  6. body {
  7. background: $body-background;
  8. }
  9. /* Links */
  10. a {
  11. color: $link;
  12. &:hover,
  13. &:active,
  14. &:focus {
  15. color: $link-focus;
  16. }
  17. }
  18. #post-body .misc-pub-post-status:before,
  19. #post-body #visibility:before,
  20. .curtime #timestamp:before,
  21. #post-body .misc-pub-revisions:before,
  22. span.wp-media-buttons-icon:before {
  23. color: currentColor;
  24. }
  25. .wp-core-ui .button-link {
  26. color: $link;
  27. &:hover,
  28. &:active,
  29. &:focus {
  30. color: $link-focus;
  31. }
  32. }
  33. .media-modal .delete-attachment,
  34. .media-modal .trash-attachment,
  35. .media-modal .untrash-attachment,
  36. .wp-core-ui .button-link-delete {
  37. color: #a00;
  38. }
  39. .media-modal .delete-attachment:hover,
  40. .media-modal .trash-attachment:hover,
  41. .media-modal .untrash-attachment:hover,
  42. .media-modal .delete-attachment:focus,
  43. .media-modal .trash-attachment:focus,
  44. .media-modal .untrash-attachment:focus,
  45. .wp-core-ui .button-link-delete:hover,
  46. .wp-core-ui .button-link-delete:focus {
  47. color: #dc3232;
  48. }
  49. /* Forms */
  50. input[type=checkbox]:checked::before {
  51. content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour($form-checked)}%27%2F%3E%3C%2Fsvg%3E");
  52. }
  53. input[type=radio]:checked::before {
  54. background: $form-checked;
  55. }
  56. .wp-core-ui input[type="reset"]:hover,
  57. .wp-core-ui input[type="reset"]:active {
  58. color: $link-focus;
  59. }
  60. input[type="text"]:focus,
  61. input[type="password"]:focus,
  62. input[type="color"]:focus,
  63. input[type="date"]:focus,
  64. input[type="datetime"]:focus,
  65. input[type="datetime-local"]:focus,
  66. input[type="email"]:focus,
  67. input[type="month"]:focus,
  68. input[type="number"]:focus,
  69. input[type="search"]:focus,
  70. input[type="tel"]:focus,
  71. input[type="text"]:focus,
  72. input[type="time"]:focus,
  73. input[type="url"]:focus,
  74. input[type="week"]:focus,
  75. input[type="checkbox"]:focus,
  76. input[type="radio"]:focus,
  77. select:focus,
  78. textarea:focus {
  79. border-color: $highlight-color;
  80. box-shadow: 0 0 0 1px $highlight-color;
  81. }
  82. /* Core UI */
  83. .wp-core-ui {
  84. .button {
  85. border-color: #7e8993;
  86. color: #32373c;
  87. }
  88. .button.hover,
  89. .button:hover,
  90. .button.focus,
  91. .button:focus {
  92. border-color: darken( #7e8993, 5% );
  93. color: darken( #32373c, 5% );
  94. }
  95. .button.focus,
  96. .button:focus {
  97. border-color: #7e8993;
  98. color: darken( #32373c, 5% );
  99. box-shadow: 0 0 0 1px #32373c;
  100. }
  101. .button:active {
  102. border-color: #7e8993;
  103. color: darken( #32373c, 5% );
  104. box-shadow: none;
  105. }
  106. .button.active,
  107. .button.active:focus,
  108. .button.active:hover {
  109. border-color: $button-color;
  110. color: darken( #32373c, 5% );
  111. box-shadow: inset 0 2px 5px -3px $button-color;
  112. }
  113. .button.active:focus {
  114. box-shadow: 0 0 0 1px #32373c;
  115. }
  116. @if ( $low-contrast-theme != "true" ) {
  117. .button,
  118. .button-secondary {
  119. color: $highlight-color;
  120. border-color: $highlight-color;
  121. }
  122. .button.hover,
  123. .button:hover,
  124. .button-secondary:hover{
  125. border-color: darken($highlight-color, 10);
  126. color: darken($highlight-color, 10);
  127. }
  128. .button.focus,
  129. .button:focus,
  130. .button-secondary:focus {
  131. border-color: lighten($highlight-color, 10);
  132. color: darken($highlight-color, 20);;
  133. box-shadow: 0 0 0 1px lighten($highlight-color, 10);
  134. }
  135. .button-primary {
  136. &:hover {
  137. color: #fff;
  138. }
  139. }
  140. }
  141. .button-primary {
  142. @include button( $button-color );
  143. }
  144. .button-group > .button.active {
  145. border-color: $button-color;
  146. }
  147. .wp-ui-primary {
  148. color: $text-color;
  149. background-color: $base-color;
  150. }
  151. .wp-ui-text-primary {
  152. color: $base-color;
  153. }
  154. .wp-ui-highlight {
  155. color: $menu-highlight-text;
  156. background-color: $menu-highlight-background;
  157. }
  158. .wp-ui-text-highlight {
  159. color: $menu-highlight-background;
  160. }
  161. .wp-ui-notification {
  162. color: $menu-bubble-text;
  163. background-color: $menu-bubble-background;
  164. }
  165. .wp-ui-text-notification {
  166. color: $menu-bubble-background;
  167. }
  168. .wp-ui-text-icon {
  169. color: $menu-icon;
  170. }
  171. }
  172. /* List tables */
  173. @if $low-contrast-theme == "true" {
  174. .wrap .page-title-action:hover {
  175. color: $menu-text;
  176. background-color: $menu-background;
  177. }
  178. } @else {
  179. .wrap .page-title-action,
  180. .wrap .page-title-action:active {
  181. border: 1px solid $highlight-color;
  182. color: $highlight-color;
  183. }
  184. .wrap .page-title-action:hover {
  185. color: darken($highlight-color, 10);
  186. border-color: darken($highlight-color, 10);
  187. }
  188. .wrap .page-title-action:focus {
  189. border-color: lighten($highlight-color, 10);
  190. color: darken($highlight-color, 20);;
  191. box-shadow: 0 0 0 1px lighten($highlight-color, 10);
  192. }
  193. }
  194. .view-switch a.current:before {
  195. color: $menu-background;
  196. }
  197. .view-switch a:hover:before {
  198. color: $menu-bubble-background;
  199. }
  200. /* Admin Menu */
  201. #adminmenuback,
  202. #adminmenuwrap,
  203. #adminmenu {
  204. background: $menu-background;
  205. }
  206. #adminmenu a {
  207. color: $menu-text;
  208. }
  209. #adminmenu div.wp-menu-image:before {
  210. color: $menu-icon;
  211. }
  212. #adminmenu a:hover,
  213. #adminmenu li.menu-top:hover,
  214. #adminmenu li.opensub > a.menu-top,
  215. #adminmenu li > a.menu-top:focus {
  216. color: $menu-highlight-text;
  217. background-color: $menu-highlight-background;
  218. }
  219. #adminmenu li.menu-top:hover div.wp-menu-image:before,
  220. #adminmenu li.opensub > a.menu-top div.wp-menu-image:before {
  221. color: $menu-highlight-icon;
  222. }
  223. /* Active tabs use a bottom border color that matches the page background color. */
  224. .about-wrap .nav-tab-active,
  225. .nav-tab-active,
  226. .nav-tab-active:hover {
  227. background-color: $body-background;
  228. border-bottom-color: $body-background;
  229. }
  230. /* Admin Menu: submenu */
  231. #adminmenu .wp-submenu,
  232. #adminmenu .wp-has-current-submenu .wp-submenu,
  233. #adminmenu .wp-has-current-submenu.opensub .wp-submenu,
  234. #adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
  235. background: $menu-submenu-background;
  236. }
  237. #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,
  238. #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after {
  239. border-right-color: $menu-submenu-background;
  240. }
  241. #adminmenu .wp-submenu .wp-submenu-head {
  242. color: $menu-submenu-text;
  243. }
  244. #adminmenu .wp-submenu a,
  245. #adminmenu .wp-has-current-submenu .wp-submenu a,
  246. #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
  247. #adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
  248. color: $menu-submenu-text;
  249. &:focus, &:hover {
  250. color: $menu-submenu-focus-text;
  251. }
  252. }
  253. /* Admin Menu: current */
  254. #adminmenu .wp-submenu li.current a,
  255. #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a,
  256. #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
  257. color: $menu-submenu-current-text;
  258. &:hover, &:focus {
  259. color: $menu-submenu-focus-text;
  260. }
  261. }
  262. ul#adminmenu a.wp-has-current-submenu:after,
  263. ul#adminmenu > li.current > a.current:after {
  264. border-right-color: $body-background;
  265. }
  266. #adminmenu li.current a.menu-top,
  267. #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
  268. #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,
  269. .folded #adminmenu li.current.menu-top {
  270. color: $menu-current-text;
  271. background: $menu-current-background;
  272. }
  273. #adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
  274. #adminmenu a.current:hover div.wp-menu-image:before,
  275. #adminmenu li.current div.wp-menu-image:before,
  276. #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,
  277. #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,
  278. #adminmenu li:hover div.wp-menu-image:before,
  279. #adminmenu li a:focus div.wp-menu-image:before,
  280. #adminmenu li.opensub div.wp-menu-image:before {
  281. color: $menu-current-icon;
  282. }
  283. /* Admin Menu: bubble */
  284. #adminmenu .awaiting-mod,
  285. #adminmenu .update-plugins {
  286. color: $menu-bubble-text;
  287. background: $menu-bubble-background;
  288. }
  289. #adminmenu li.current a .awaiting-mod,
  290. #adminmenu li a.wp-has-current-submenu .update-plugins,
  291. #adminmenu li:hover a .awaiting-mod,
  292. #adminmenu li.menu-top:hover > a .update-plugins {
  293. color: $menu-bubble-current-text;
  294. background: $menu-bubble-current-background;
  295. }
  296. /* Admin Menu: collapse button */
  297. #collapse-button {
  298. color: $menu-collapse-text;
  299. }
  300. #collapse-button:hover,
  301. #collapse-button:focus {
  302. color: $menu-submenu-focus-text;
  303. }
  304. /* Admin Bar */
  305. #wpadminbar {
  306. color: $menu-text;
  307. background: $menu-background;
  308. }
  309. #wpadminbar .ab-item,
  310. #wpadminbar a.ab-item,
  311. #wpadminbar > #wp-toolbar span.ab-label,
  312. #wpadminbar > #wp-toolbar span.noticon {
  313. color: $menu-text;
  314. }
  315. #wpadminbar .ab-icon,
  316. #wpadminbar .ab-icon:before,
  317. #wpadminbar .ab-item:before,
  318. #wpadminbar .ab-item:after {
  319. color: $menu-icon;
  320. }
  321. #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
  322. #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
  323. #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
  324. #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
  325. #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
  326. color: $menu-submenu-focus-text;
  327. background: $menu-submenu-background;
  328. }
  329. #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
  330. #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
  331. #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
  332. color: $menu-submenu-focus-text;
  333. }
  334. #wpadminbar:not(.mobile) li:hover .ab-icon:before,
  335. #wpadminbar:not(.mobile) li:hover .ab-item:before,
  336. #wpadminbar:not(.mobile) li:hover .ab-item:after,
  337. #wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
  338. color: $menu-submenu-focus-text;
  339. }
  340. /* Admin Bar: submenu */
  341. #wpadminbar .menupop .ab-sub-wrapper {
  342. background: $menu-submenu-background;
  343. }
  344. #wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
  345. #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
  346. background: $menu-submenu-background-alt;
  347. }
  348. #wpadminbar .ab-submenu .ab-item,
  349. #wpadminbar .quicklinks .menupop ul li a,
  350. #wpadminbar .quicklinks .menupop.hover ul li a,
  351. #wpadminbar.nojs .quicklinks .menupop:hover ul li a {
  352. color: $menu-submenu-text;
  353. }
  354. #wpadminbar .quicklinks li .blavatar,
  355. #wpadminbar .menupop .menupop > .ab-item:before {
  356. color: $menu-icon;
  357. }
  358. #wpadminbar .quicklinks .menupop ul li a:hover,
  359. #wpadminbar .quicklinks .menupop ul li a:focus,
  360. #wpadminbar .quicklinks .menupop ul li a:hover strong,
  361. #wpadminbar .quicklinks .menupop ul li a:focus strong,
  362. #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a,
  363. #wpadminbar .quicklinks .menupop.hover ul li a:hover,
  364. #wpadminbar .quicklinks .menupop.hover ul li a:focus,
  365. #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
  366. #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
  367. #wpadminbar li:hover .ab-icon:before,
  368. #wpadminbar li:hover .ab-item:before,
  369. #wpadminbar li a:focus .ab-icon:before,
  370. #wpadminbar li .ab-item:focus:before,
  371. #wpadminbar li .ab-item:focus .ab-icon:before,
  372. #wpadminbar li.hover .ab-icon:before,
  373. #wpadminbar li.hover .ab-item:before,
  374. #wpadminbar li:hover #adminbarsearch:before,
  375. #wpadminbar li #adminbarsearch.adminbar-focused:before {
  376. color: $menu-submenu-focus-text;
  377. }
  378. #wpadminbar .quicklinks li a:hover .blavatar,
  379. #wpadminbar .quicklinks li a:focus .blavatar,
  380. #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar,
  381. #wpadminbar .menupop .menupop > .ab-item:hover:before,
  382. #wpadminbar.mobile .quicklinks .ab-icon:before,
  383. #wpadminbar.mobile .quicklinks .ab-item:before {
  384. color: $menu-submenu-focus-text;
  385. }
  386. #wpadminbar.mobile .quicklinks .hover .ab-icon:before,
  387. #wpadminbar.mobile .quicklinks .hover .ab-item:before {
  388. color: $menu-icon;
  389. }
  390. /* Admin Bar: search */
  391. #wpadminbar #adminbarsearch:before {
  392. color: $menu-icon;
  393. }
  394. #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
  395. color: $menu-text;
  396. background: $adminbar-input-background;
  397. }
  398. /* Admin Bar: recovery mode */
  399. #wpadminbar #wp-admin-bar-recovery-mode {
  400. color: $adminbar-recovery-exit-text;
  401. background-color: $adminbar-recovery-exit-background;
  402. }
  403. #wpadminbar #wp-admin-bar-recovery-mode .ab-item,
  404. #wpadminbar #wp-admin-bar-recovery-mode a.ab-item {
  405. color: $adminbar-recovery-exit-text;
  406. }
  407. #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item,
  408. #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
  409. #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
  410. #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
  411. color: $adminbar-recovery-exit-text;
  412. background-color: $adminbar-recovery-exit-background-alt;
  413. }
  414. /* Admin Bar: my account */
  415. #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
  416. border-color: $adminbar-avatar-frame;
  417. background-color: $adminbar-avatar-frame;
  418. }
  419. #wpadminbar #wp-admin-bar-user-info .display-name {
  420. color: $menu-text;
  421. }
  422. #wpadminbar #wp-admin-bar-user-info a:hover .display-name {
  423. color: $menu-submenu-focus-text;
  424. }
  425. #wpadminbar #wp-admin-bar-user-info .username {
  426. color: $menu-submenu-text;
  427. }
  428. /* Pointers */
  429. .wp-pointer .wp-pointer-content h3 {
  430. background-color: $highlight-color;
  431. border-color: darken( $highlight-color, 5% );
  432. }
  433. .wp-pointer .wp-pointer-content h3:before {
  434. color: $highlight-color;
  435. }
  436. .wp-pointer.wp-pointer-top .wp-pointer-arrow,
  437. .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,
  438. .wp-pointer.wp-pointer-undefined .wp-pointer-arrow,
  439. .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner {
  440. border-bottom-color: $highlight-color;
  441. }
  442. /* Media */
  443. .media-item .bar,
  444. .media-progress-bar div {
  445. background-color: $highlight-color;
  446. }
  447. .details.attachment {
  448. box-shadow:
  449. inset 0 0 0 3px #fff,
  450. inset 0 0 0 7px $highlight-color;
  451. }
  452. .attachment.details .check {
  453. background-color: $highlight-color;
  454. box-shadow: 0 0 0 1px #fff, 0 0 0 2px $highlight-color;
  455. }
  456. .media-selection .attachment.selection.details .thumbnail {
  457. box-shadow: 0 0 0 1px #fff, 0 0 0 3px $highlight-color;
  458. }
  459. /* Themes */
  460. .theme-browser .theme.active .theme-name,
  461. .theme-browser .theme.add-new-theme a:hover:after,
  462. .theme-browser .theme.add-new-theme a:focus:after {
  463. background: $highlight-color;
  464. }
  465. .theme-browser .theme.add-new-theme a:hover span:after,
  466. .theme-browser .theme.add-new-theme a:focus span:after {
  467. color: $highlight-color;
  468. }
  469. .theme-section.current,
  470. .theme-filter.current {
  471. border-bottom-color: $menu-background;
  472. }
  473. body.more-filters-opened .more-filters {
  474. color: $menu-text;
  475. background-color: $menu-background;
  476. }
  477. body.more-filters-opened .more-filters:before {
  478. color: $menu-text;
  479. }
  480. body.more-filters-opened .more-filters:hover,
  481. body.more-filters-opened .more-filters:focus {
  482. background-color: $menu-highlight-background;
  483. color: $menu-highlight-text;
  484. }
  485. body.more-filters-opened .more-filters:hover:before,
  486. body.more-filters-opened .more-filters:focus:before {
  487. color: $menu-highlight-text;
  488. }
  489. /* Widgets */
  490. .widgets-chooser li.widgets-chooser-selected {
  491. background-color: $menu-highlight-background;
  492. color: $menu-highlight-text;
  493. }
  494. .widgets-chooser li.widgets-chooser-selected:before,
  495. .widgets-chooser li.widgets-chooser-selected:focus:before {
  496. color: $menu-highlight-text;
  497. }
  498. /* Nav Menus */
  499. .nav-menus-php .item-edit:focus:before {
  500. box-shadow:
  501. 0 0 0 1px lighten($button-color, 10),
  502. 0 0 2px 1px $button-color;
  503. }
  504. /* Responsive Component */
  505. div#wp-responsive-toggle a:before {
  506. color: $menu-icon;
  507. }
  508. .wp-responsive-open div#wp-responsive-toggle a {
  509. // ToDo: make inset border
  510. border-color: transparent;
  511. background: $menu-highlight-background;
  512. }
  513. .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a {
  514. background: $menu-submenu-background;
  515. }
  516. .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before {
  517. color: $menu-icon;
  518. }
  519. /* TinyMCE */
  520. .mce-container.mce-menu .mce-menu-item:hover,
  521. .mce-container.mce-menu .mce-menu-item.mce-selected,
  522. .mce-container.mce-menu .mce-menu-item:focus,
  523. .mce-container.mce-menu .mce-menu-item-normal.mce-active,
  524. .mce-container.mce-menu .mce-menu-item-preview.mce-active {
  525. background: $highlight-color;
  526. }
  527. /* Customizer */
  528. .wp-core-ui {
  529. #customize-controls .control-section:hover > .accordion-section-title,
  530. #customize-controls .control-section .accordion-section-title:hover,
  531. #customize-controls .control-section.open .accordion-section-title,
  532. #customize-controls .control-section .accordion-section-title:focus {
  533. color: $link;
  534. border-left-color: $button-color;
  535. }
  536. .customize-controls-close:focus,
  537. .customize-controls-close:hover,
  538. .customize-controls-preview-toggle:focus,
  539. .customize-controls-preview-toggle:hover {
  540. color: $link;
  541. border-top-color: $button-color;
  542. }
  543. .customize-panel-back:hover,
  544. .customize-panel-back:focus,
  545. .customize-section-back:hover,
  546. .customize-section-back:focus {
  547. color: $link;
  548. border-left-color: $button-color;
  549. }
  550. .customize-screen-options-toggle:hover,
  551. .customize-screen-options-toggle:active,
  552. .customize-screen-options-toggle:focus,
  553. .active-menu-screen-options .customize-screen-options-toggle,
  554. #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,
  555. #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,
  556. #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus {
  557. color: $link;
  558. }
  559. .customize-screen-options-toggle:focus:before,
  560. #customize-controls .customize-info .customize-help-toggle:focus:before,
  561. &.wp-customizer button:focus .toggle-indicator:before,
  562. .menu-item-bar .item-delete:focus:before,
  563. #available-menu-items .item-add:focus:before,
  564. #customize-save-button-wrapper .save:focus,
  565. #publish-settings:focus {
  566. box-shadow:
  567. 0 0 0 1px lighten($button-color, 10),
  568. 0 0 2px 1px $button-color;
  569. }
  570. #customize-controls .customize-info.open .customize-help-toggle,
  571. #customize-controls .customize-info .customize-help-toggle:focus,
  572. #customize-controls .customize-info .customize-help-toggle:hover {
  573. color: $link;
  574. }
  575. .control-panel-themes .customize-themes-section-title:focus,
  576. .control-panel-themes .customize-themes-section-title:hover {
  577. border-left-color: $button-color;
  578. color: $link;
  579. }
  580. .control-panel-themes .theme-section .customize-themes-section-title.selected:after {
  581. background: $button-color;
  582. }
  583. .control-panel-themes .customize-themes-section-title.selected {
  584. color: $link;
  585. }
  586. #customize-theme-controls .control-section:hover > .accordion-section-title:after,
  587. #customize-theme-controls .control-section .accordion-section-title:hover:after,
  588. #customize-theme-controls .control-section.open .accordion-section-title:after,
  589. #customize-theme-controls .control-section .accordion-section-title:focus:after,
  590. #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after,
  591. #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,
  592. #customize-outer-theme-controls .control-section.open .accordion-section-title:after,
  593. #customize-outer-theme-controls .control-section .accordion-section-title:focus:after {
  594. color: $link;
  595. }
  596. .customize-control .attachment-media-view .button-add-media:focus {
  597. background-color: #fbfbfc;
  598. border-color: $button-color;
  599. border-style: solid;
  600. box-shadow: 0 0 0 1px $button-color;
  601. outline: 2px solid transparent;
  602. }
  603. .wp-full-overlay-footer .devices button:focus,
  604. .wp-full-overlay-footer .devices button.active:hover {
  605. border-bottom-color: $button-color;
  606. }
  607. .wp-full-overlay-footer .devices button:hover:before,
  608. .wp-full-overlay-footer .devices button:focus:before {
  609. color: $button-color;
  610. }
  611. .wp-full-overlay .collapse-sidebar:hover,
  612. .wp-full-overlay .collapse-sidebar:focus {
  613. color: $button-color;
  614. }
  615. .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow,
  616. .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow {
  617. box-shadow:
  618. 0 0 0 1px lighten($button-color, 10),
  619. 0 0 2px 1px $button-color;
  620. }
  621. &.wp-customizer .theme-overlay .theme-header .close:focus,
  622. &.wp-customizer .theme-overlay .theme-header .close:hover,
  623. &.wp-customizer .theme-overlay .theme-header .right:focus,
  624. &.wp-customizer .theme-overlay .theme-header .right:hover,
  625. &.wp-customizer .theme-overlay .theme-header .left:focus,
  626. &.wp-customizer .theme-overlay .theme-header .left:hover {
  627. border-bottom-color: $button-color;
  628. color: $link;
  629. }
  630. }
  631. /* Welcome Panel */
  632. .welcome-panel {
  633. background-color: mix($dashboard-accent-1, white, 12%);
  634. }
  635. .welcome-panel-header-image .about-six {
  636. fill: $dashboard-accent-1;
  637. }
  638. .welcome-panel-header-image .about-zero {
  639. fill: $dashboard-accent-2;
  640. }
  641. [class*="welcome-panel-icon"] {
  642. background-color: $dashboard-icon-background;
  643. }