wpcom-colors.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. <?php
  2. /* Custom Colors: Redhill */
  3. // Background Color
  4. // $config-global--color-background-default
  5. add_color_rule(
  6. 'bg',
  7. '#FFFFFF',
  8. array(
  9. // Background-color
  10. array(
  11. '.screen-reader-text:focus,
  12. body,
  13. .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
  14. table.is-style-stripes tbody tr:nth-child(odd),
  15. body .widget_eu_cookie_law_widget #eu-cookie-law,
  16. body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
  17. .main-navigation > div,
  18. .main-navigation > div > ul > li > .sub-menu',
  19. 'background-color',
  20. ),
  21. // Text-color
  22. array(
  23. '.a8c-posts-list-item__featured span,
  24. .a8c-posts-list__view-all,
  25. .a8c-posts-list__view-all:focus,
  26. .a8c-posts-list__view-all:hover,
  27. .button,
  28. .button:focus,
  29. .button:hover,
  30. .sticky-post,
  31. .wp-block-button__link,
  32. .wp-block-button__link:focus,
  33. .wp-block-button__link:hover,
  34. .wp-block-file .wp-block-file__button,
  35. .wp-block-file a.wp-block-file__button:active,
  36. .wp-block-file a.wp-block-file__button:focus,
  37. .wp-block-file a.wp-block-file__button:hover,
  38. .wp-block-file a.wp-block-file__button:visited,
  39. .wp-block-file__button,
  40. .wp-block-file__button:focus,
  41. .wp-block-file__button:hover,
  42. .wp-block-search .wp-block-search__button,
  43. .wp-block-gallery .blocks-gallery-image figcaption,
  44. .wp-block-gallery .blocks-gallery-item figcaption,
  45. .wp-block-pullquote.is-style-solid-color,
  46. body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
  47. body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
  48. body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
  49. body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept,
  50. body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
  51. button,
  52. button.has-focus,
  53. button:focus,
  54. button:hover,
  55. button[data-load-more-btn],
  56. input.has-focus[type="submit"],
  57. input:focus[type="submit"],
  58. input:hover[type="submit"],
  59. input[type="submit"],
  60. .main-navigation > div > ul > li.current-menu-item > a,
  61. .main-navigation > div > ul > li.current-menu-item li > a,
  62. .main-navigation > div > ul > li.focus > a,
  63. .main-navigation > div > ul > li.focus li > a,
  64. .main-navigation > div > ul > li:hover > a,
  65. .main-navigation > div > ul > li:hover li > a',
  66. 'color',
  67. ),
  68. // Background-color lightened
  69. array(
  70. '.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
  71. table.is-style-stripes tbody tr:nth-child(odd)',
  72. 'background-color',
  73. '+1',
  74. ),
  75. // Border-bottom-color lightened
  76. array(
  77. '.comments-area .comment-list,
  78. .widget_archive ul,
  79. .widget_authors ul,
  80. .widget_categories ul,
  81. .widget_jp_blogs_i_follow ul,
  82. .widget_links ul,
  83. .widget_meta ul,
  84. .widget_nav_menu ul,
  85. .widget_pages ul,
  86. .widget_recent_comments ul,
  87. .widget_recent_entries ul,
  88. .widget_rss ul,
  89. .widget_rss_links ul,
  90. .widget_top-click ul,
  91. .widget_top-posts ul,
  92. .widget_upcoming_events_widget ul',
  93. 'border-bottom-color',
  94. '+1',
  95. ),
  96. // Border-bottom-color lightened
  97. array(
  98. '.comments-area .children > li,
  99. .comments-area .comment-list > li,
  100. .widget_archive li,
  101. .widget_authors li,
  102. .widget_categories li,
  103. .widget_jp_blogs_i_follow li,
  104. .widget_links li,
  105. .widget_meta li,
  106. .widget_nav_menu li,
  107. .widget_pages li,
  108. .widget_recent_comments li,
  109. .widget_recent_entries li,
  110. .widget_rss li,
  111. .widget_rss_links li,
  112. .widget_top-click li,
  113. .widget_top-posts li,
  114. .widget_upcoming_events_widget li',
  115. 'border-top-color',
  116. '+1',
  117. ),
  118. /**
  119. * Utility Classes
  120. */
  121. // Text-color
  122. array(
  123. '.has-primary-background-color[class],
  124. .has-primary-background-color.has-background-dim[class],
  125. .has-secondary-background-color[class],
  126. .has-secondary-background-color.has-background-dim[class],
  127. .has-foreground-background-color[class],
  128. .has-foreground-background-color.has-background-dim[class],
  129. .has-foreground-dark-background-color[class],
  130. .has-foreground-dark-background-color.has-background-dim[class],
  131. .has-foreground-light-background-color[class],
  132. .has-foreground-light-background-color.has-background-dim[class],
  133. .has-background-color[class],
  134. .has-background-dark-color[class],
  135. .has-background-light-color[class]',
  136. 'color',
  137. ),
  138. // Background-color
  139. array(
  140. '.has-background-background-color[class],
  141. .has-background-background-color.has-background-dim[class]',
  142. 'background-color',
  143. ),
  144. // Text-color darkened
  145. array(
  146. '.has-background-dark-color[class],
  147. .has-background-dark-color.has-background-dim[class]',
  148. 'color',
  149. '-1',
  150. ),
  151. // Background-color darkened
  152. array(
  153. '.has-background-dark-background-color[class],
  154. .has-background-dark-background-color.has-background-dim[class]',
  155. 'background-color',
  156. '-1',
  157. ),
  158. // Text-color lightened
  159. array(
  160. '.has-background-light-color[class],
  161. .has-background-light-color.has-background-dim[class]',
  162. 'color',
  163. '+1',
  164. ),
  165. // Background-color lightened
  166. array(
  167. '.has-background-light-background-color[class],
  168. .has-background-light-background-color.has-background-dim[class]',
  169. 'background-color',
  170. '+1',
  171. ),
  172. /**
  173. * Grays
  174. * Uses a slightly darker color
  175. */
  176. // Border-color
  177. array(
  178. '.wp-block-code,
  179. .wp-block-table td,
  180. .wp-block-table th,
  181. body .widget_eu_cookie_law_widget #eu-cookie-law,
  182. input[type="color"],
  183. input[type="date"],
  184. input[type="datetime"],
  185. input[type="datetime-local"],
  186. input[type="email"],
  187. input[type="month"],
  188. input[type="number"],
  189. input[type="password"],
  190. input[type="range"],
  191. input[type="search"],
  192. input[type="tel"],
  193. input[type="text"],
  194. input[type="time"],
  195. input[type="url"],
  196. input[type="week"],
  197. .wp-block-search .wp-block-search__input:focus,
  198. select,
  199. table td,
  200. table th,
  201. textarea,
  202. ',
  203. 'border-color',
  204. '-1',
  205. ),
  206. // Border-top-color
  207. array(
  208. '.comment-list .children > li,
  209. .comment-list > li,
  210. .entry-footer,
  211. .wp-block-pullquote,
  212. #jp-relatedposts h3.jp-relatedposts-headline em:before',
  213. 'border-top-color',
  214. '-1',
  215. ),
  216. // Border-bottom-color
  217. array(
  218. '.comment-list,
  219. .wp-block-pullquote,
  220. hr,
  221. hr.wp-block-separator',
  222. 'border-bottom-color',
  223. '-1',
  224. ),
  225. // Color
  226. array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
  227. // Background-color
  228. array(
  229. '.comments-area:before,
  230. .post-navigation:before,
  231. .pagination:before,
  232. body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept.has-focus,
  233. body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:focus,
  234. body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:hover',
  235. 'background-color',
  236. '-1',
  237. ),
  238. ),
  239. __( 'Background Color' )
  240. );
  241. // Link Color
  242. // $config-global--color-primary-default
  243. add_color_rule(
  244. 'link',
  245. '#CA2017',
  246. array(
  247. // Background-color
  248. array(
  249. '.a8c-posts-list-item__featured span,
  250. .a8c-posts-list__view-all,
  251. .button,
  252. .main-navigation #toggle:focus + #toggle-menu,
  253. .sticky-post,
  254. .wp-block-button__link,
  255. .wp-block-file .wp-block-file__button,
  256. .wp-block-file__button,
  257. .wp-block-pullquote.is-style-solid-color,
  258. body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
  259. button,
  260. button[data-load-more-btn],
  261. .wp-block-search .wp-block-search__button,
  262. .wp-block-search .wp-block-search__button:focus,
  263. .wp-block-search .wp-block-search__button:hover,
  264. .wp-block-search .wp-block-search__button:not(.has-background-color):hover,
  265. input[type="submit"],
  266. .main-navigation > div > ul > li.current-menu-item > a,
  267. .main-navigation > div > ul > li.current-menu-item li.current-menu-item > a,
  268. .main-navigation > div > ul > li.current-menu-item li.focus > a,
  269. .main-navigation > div > ul > li.current-menu-item li:hover > a,
  270. .main-navigation > div > ul > li.focus > a,
  271. .main-navigation > div > ul > li.focus li.current-menu-item > a,
  272. .main-navigation > div > ul > li.focus li.focus > a,
  273. .main-navigation > div > ul > li.focus li:hover > a,
  274. .main-navigation > div > ul > li:hover > a,
  275. .main-navigation > div > ul > li:hover li.current-menu-item > a,
  276. .main-navigation > div > ul > li:hover li.focus > a,
  277. .main-navigation > div > ul > li:hover li:hover > a',
  278. 'background-color',
  279. ),
  280. // Text-color
  281. array(
  282. '.a8c-posts-list-item__title a:active,
  283. .a8c-posts-list-item__title a:focus,
  284. .a8c-posts-list-item__title a:hover,
  285. .comment-meta .comment-metadata a:active,
  286. .comment-meta .comment-metadata a:focus,
  287. .comment-meta .comment-metadata a:hover,
  288. .comment-navigation a:active,
  289. .comment-navigation a:focus,
  290. .comment-navigation a:hover,
  291. .footer-navigation .footer-menu a:hover,
  292. .main-navigation a:hover,
  293. .page-title a:active,
  294. .page-title a:focus,
  295. .page-title a:hover,
  296. .pagination .nav-links > *.current,
  297. .pagination .nav-links > *:active,
  298. .pagination .nav-links > *:focus,
  299. .pagination .nav-links > *:hover,
  300. .post-navigation a:active,
  301. .post-navigation a:focus,
  302. .post-navigation a:hover,
  303. .site-info a:hover,
  304. .site-title a:hover,
  305. .social-navigation a,
  306. .wp-block-button.is-style-outline.wp-block-button__link,
  307. .wp-block-button.is-style-outline .wp-block-button__link,
  308. .wp-block-button.is-style-outline:not(.has-text-color),
  309. .wp-block-button.is-style-outline:not(.has-text-color):active,
  310. .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
  311. .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):active,
  312. .wp-block-newspack-blocks-homepage-articles article .entry-title a,
  313. .wp-block-newspack-blocks-homepage-articles article .entry-title a:active,
  314. .wp-block-newspack-blocks-homepage-articles article .entry-title a:focus,
  315. .wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
  316. a,
  317. article .entry-header .entry-title a:active,
  318. article .entry-header .entry-title a:focus,
  319. article .entry-header .entry-title a:hover',
  320. 'color',
  321. ),
  322. // Border color left
  323. array( '.wp-block-quote', 'border-left-color' ),
  324. // Border color right
  325. array(
  326. '.wp-block-quote[style*="text-align: right"],
  327. .wp-block-quote[style*="text-align:right"]',
  328. 'border-right-color',
  329. ),
  330. /**
  331. * Utility Classes
  332. */
  333. // Text-color
  334. array(
  335. '.has-primary-color[class],
  336. .has-primary-color.has-background-dim[class]',
  337. 'color',
  338. ),
  339. // Background-color
  340. array(
  341. '.has-primary-background-color[class],
  342. .has-primary-background-color.has-background-dim[class]',
  343. 'background-color',
  344. ),
  345. ),
  346. __( 'Link Color' )
  347. );
  348. // Text Color (Gray)
  349. // $config-global--color-foreground-default
  350. add_color_rule(
  351. 'txt',
  352. '#222222',
  353. array(
  354. // Text-color
  355. array(
  356. '.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
  357. .a8c-posts-list__item .a8c-posts-list-item__meta a:hover,
  358. .comment-meta .comment-metadata,
  359. .comment-meta .comment-metadata a:active,
  360. .comment-meta .comment-metadata a:hover,
  361. .entry-footer a:active,
  362. .entry-footer a:hover,
  363. .entry-meta a:active,
  364. .entry-meta a:hover,
  365. .main-navigation,
  366. .main-navigation a,
  367. .main-navigation a:link,
  368. .main-navigation a:visited,
  369. .post-navigation a,
  370. .screen-reader-text:focus,
  371. .social-navigation a:hover,
  372. .wp-block-button.is-style-outline .wp-block-button__link.has-focus,
  373. .wp-block-button.is-style-outline .wp-block-button__link:focus,
  374. .wp-block-button.is-style-outline .wp-block-button__link:hover,
  375. .wp-block-button.is-style-outline.wp-block-button__link.has-focus,
  376. .wp-block-button.is-style-outline.wp-block-button__link:focus,
  377. .wp-block-button.is-style-outline.wp-block-button__link:hover,
  378. .wp-block-code,
  379. .wp-block-code pre,
  380. .wp-block-newspack-blocks-homepage-articles article .cat-links a:active,
  381. .wp-block-newspack-blocks-homepage-articles article .cat-links a:hover,
  382. .wp-block-newspack-blocks-homepage-articles article .entry-meta a:active,
  383. .wp-block-newspack-blocks-homepage-articles article .entry-meta a:hover,
  384. .wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
  385. .wp-block-pullquote,
  386. .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
  387. table.is-style-stripes tbody tr:nth-child(odd),
  388. a:hover,
  389. body,
  390. body .widget_eu_cookie_law_widget #eu-cookie-law,
  391. body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept',
  392. 'color',
  393. ),
  394. // Background-color
  395. array(
  396. '.a8c-posts-list__view-all:focus,
  397. .a8c-posts-list__view-all:hover,
  398. .button:focus,
  399. .button:hover,
  400. .has-focus.a8c-posts-list__view-all,
  401. .has-focus.button,
  402. .has-focus.wp-block-button__link,
  403. .has-focus.wp-block-file__button,
  404. .has-foreground-background-color[class],
  405. .wp-block-button__link:focus,
  406. .wp-block-button__link:hover,
  407. .wp-block-file__button:focus,
  408. .wp-block-file__button:hover,
  409. body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
  410. body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
  411. body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept,
  412. body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
  413. button.has-focus,
  414. button:focus,
  415. button:hover,
  416. input.has-focus[type="submit"],
  417. input:focus[type="submit"],
  418. input:hover[type="submit"],
  419. .main-navigation > div > ul > li.current-menu-item li > a,
  420. .main-navigation > div > ul > li.focus li > a,
  421. .main-navigation > div > ul > li:hover li > a',
  422. 'background-color',
  423. ),
  424. // Border-color
  425. array(
  426. 'input[type="color"]:focus,
  427. input[type="date"]:focus,
  428. input[type="datetime"]:focus,
  429. input[type="datetime-local"]:focus,
  430. input[type="email"]:focus,
  431. input[type="month"]:focus,
  432. input[type="number"]:focus,
  433. input[type="password"]:focus,
  434. input[type="range"]:focus,
  435. input[type="search"]:focus,
  436. input[type="tel"]:focus,
  437. input[type="text"]:focus,
  438. input[type="time"]:focus,
  439. input[type="url"]:focus,
  440. input[type="week"]:focus,
  441. textarea:focus',
  442. 'border-color',
  443. ),
  444. // Border-top-color
  445. array( '.site', 'border-top-color' ),
  446. // Text-color brightened
  447. array(
  448. '.a8c-posts-list__item .a8c-posts-list-item__meta,
  449. .comment-meta .comment-metadata,
  450. .comment-navigation a,
  451. .entry-footer,
  452. .entry-meta,
  453. .footer-navigation .footer-menu,
  454. .pagination .nav-links > *,
  455. .post-navigation .meta-nav,
  456. .site-branding,
  457. .site-info,
  458. .wp-block-image figcaption,
  459. .wp-block-latest-comments .wp-block-latest-comments__comment-date,
  460. .wp-block-latest-posts .wp-block-latest-posts__post-date,
  461. .wp-block-newspack-blocks-homepage-articles article .cat-links,
  462. .wp-block-newspack-blocks-homepage-articles article .entry-meta,
  463. .wp-block-pullquote .wp-block-pullquote__citation,
  464. .wp-block-pullquote cite,
  465. .wp-block-pullquote footer,
  466. .wp-block-quote .wp-block-quote__citation,
  467. .wp-block-quote cite,
  468. .wp-block-quote footer,
  469. .wp-block-quote.is-large .wp-block-quote__citation,
  470. .wp-block-quote.is-large cite,
  471. .wp-block-quote.is-large footer,
  472. .wp-block-quote.is-style-large .wp-block-quote__citation,
  473. .wp-block-quote.is-style-large cite,
  474. .wp-block-quote.is-style-large footer,
  475. .wp-block-video figcaption,
  476. figcaption',
  477. 'color',
  478. '+2',
  479. ),
  480. // Text-color darkened
  481. array( '.site-title', 'color', '-1' ),
  482. // Border-color darkened
  483. array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'border-color', '-1' ),
  484. // Border-color with less opacity (dim)
  485. array( '.wp-block-search .wp-block-search__input', 'border-color', 0.8 ),
  486. /**
  487. * Utility Classes
  488. */
  489. // Foreground
  490. array(
  491. '.has-background-background-color[class],
  492. .has-background-background-color.has-background-dim[class],
  493. .has-background-dark-background-color[class],
  494. .has-background-dark-background-color.has-background-dim[class],
  495. .has-background-light-background-color[class],
  496. .has-background-light-background-color.has-background-dim[class],
  497. .has-foreground-color[class]',
  498. 'color',
  499. ),
  500. // Background-color
  501. array(
  502. '.has-background-dim[class],
  503. .has-foreground-background-color[class],
  504. .has-foreground-background-color.has-background-dim[class]',
  505. 'background-color',
  506. ),
  507. // Text-color darkened
  508. array(
  509. '.has-foreground-dark-color[class],
  510. .has-foreground-dark-color.has-background-dim[class]',
  511. 'color',
  512. '-1',
  513. ),
  514. // Background-color darkened
  515. array(
  516. '.has-foreground-dark-background-color[class],
  517. .has-foreground-dark-background-color.has-background-dim[class]',
  518. 'background-color',
  519. '-1',
  520. ),
  521. // Text-color brightened
  522. array(
  523. '.has-foreground-light-color[class],
  524. .has-foreground-light-color.has-background-dim[class]',
  525. 'color',
  526. '+2',
  527. ),
  528. // Background-color brightened
  529. array(
  530. '.has-foreground-light-background-color[class],
  531. .has-foreground-light-background-color.has-background-dim[class]',
  532. 'background-color',
  533. '+2',
  534. ),
  535. ),
  536. __( 'Text Color' )
  537. );
  538. // Accent Color
  539. // $config-global--color-secondary-default
  540. add_color_rule(
  541. 'fg1',
  542. '#007FDB',
  543. array(
  544. /**
  545. * Utility Classes
  546. */
  547. // Text-color
  548. array(
  549. '.has-secondary-color[class],
  550. .has-secondary-color.has-background-dim[class]',
  551. 'color',
  552. ),
  553. // Background-color
  554. array(
  555. '.has-secondary-background-color[class],
  556. .has-secondary-background-color.has-background-dim[class]',
  557. 'background-color',
  558. ),
  559. ),
  560. __( 'Secondary Color' )
  561. );
  562. /**
  563. * Custom CSS
  564. */
  565. function redhill_custom_colors_extra_css() { ?>
  566. @media screen and (max-width: 560px) {
  567. /* Prevent background color hovers on mobile */
  568. .site-header .main-navigation > div,
  569. .site-header .main-navigation > div > ul > li.current-menu-item > a,
  570. .site-header .main-navigation > div > ul > li.current-menu-item li.current-menu-item > a,
  571. .site-header .main-navigation > div > ul > li.current-menu-item li.focus > a,
  572. .site-header .main-navigation > div > ul > li.current-menu-item li:hover > a,
  573. .site-header .main-navigation > div > ul > li.focus > a,
  574. .site-header .main-navigation > div > ul > li.focus li.current-menu-item > a,
  575. .site-header .main-navigation > div > ul > li.focus li.focus > a,
  576. .site-header .main-navigation > div > ul > li.focus li:hover > a,
  577. .site-header .main-navigation > div > ul > li:hover > a,
  578. .site-header .main-navigation > div > ul > li:hover li.current-menu-item > a,
  579. .site-header .main-navigation > div > ul > li:hover li.focus > a,
  580. .site-header .main-navigation > div > ul > li:hover li:hover > a,
  581. .site-header .main-navigation > div > ul > li:hover li > a {
  582. background: transparent;
  583. color: inherit;
  584. }
  585. .site-header .main-navigation > div > ul > li.current-menu-item li.focus > a,
  586. .site-header .main-navigation > div > ul > li.current-menu-item li:hover > a,
  587. .site-header .main-navigation > div > ul > li.focus > a,
  588. .site-header .main-navigation > div > ul > li.focus li.current-menu-item > a,
  589. .site-header .main-navigation > div > ul > li.focus li.focus > a,
  590. .site-header .main-navigation > div > ul > li.focus li:hover > a,
  591. .site-header .main-navigation > div > ul > li:hover > a,
  592. .site-header .main-navigation > div > ul > li:hover li.current-menu-item > a,
  593. .site-header .main-navigation > div > ul > li:hover li.focus > a,
  594. .site-header .main-navigation > div > ul > li:hover li:hover > a {
  595. text-decoration: underline;
  596. }
  597. }
  598. <?php
  599. }
  600. add_theme_support( 'custom_colors_extra_css', 'redhill_custom_colors_extra_css' );
  601. /**
  602. * Featured Varia Palettes
  603. */
  604. // Light
  605. add_color_palette(
  606. array(
  607. '#FFFFFF',
  608. '#1D1E1E',
  609. '#C8133E',
  610. '#4E2F4B',
  611. ),
  612. 'Light'
  613. );
  614. // Medium
  615. add_color_palette(
  616. array(
  617. '#EEF4F7',
  618. '#242527',
  619. '#35845D',
  620. '#233252',
  621. ),
  622. 'Medium'
  623. );
  624. // Dark
  625. add_color_palette(
  626. array(
  627. '#1F2527',
  628. '#FFFFFF',
  629. '#9FD3E8',
  630. '#FBE6AA',
  631. ),
  632. 'Dark'
  633. );