wpcom-colors.php 19 KB

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