wpcom-colors.php 20 KB

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