wpcom-colors.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. <?php
  2. add_color_rule( 'bg', '#ffffff', array(
  3. // #ffffff
  4. array(
  5. 'body,
  6. button:active,
  7. input[type="button"]:active,
  8. input[type="reset"]:active,
  9. input[type="submit"]:active,
  10. button:focus,
  11. input[type="button"]:focus,
  12. input[type="reset"]:focus,
  13. input[type="submit"]:focus,
  14. button:hover,
  15. input[type="button"]:hover,
  16. input[type="reset"]:hover,
  17. input[type="submit"]:hover,
  18. input[type="text"],
  19. input[type="email"],
  20. input[type="url"],
  21. input[type="password"],
  22. input[type="search"],
  23. textarea,
  24. .search-form:before,
  25. .menu-toggle,
  26. .dropdown-toggle,
  27. .main-navigation > div > ul,
  28. .comment-navigation a,
  29. .posts-navigation a,
  30. .sidebar-toggle,
  31. .page-links a,
  32. .post-link .genericon,
  33. #infinite-handle span button,
  34. #infinite-handle span button:active,
  35. #infinite-handle span button:focus,
  36. #infinite-handle span button:hover,
  37. .main-navigation.toggled > div,
  38. .main-navigation > div:before,
  39. .main-navigation ul ul,
  40. .main-navigation ul ul li,
  41. #comments #respond #comment-form-comment,
  42. #comments #comment-form-share-text-padder,
  43. #comments #respond .comment-form-fields div.comment-form-input,
  44. #comments .comment #respond #comment-form-comment,
  45. #comments .comment #comment-form-share-text-padder,
  46. #comments .comment #respond .comment-form-fields div.comment-form-input,
  47. .widget_akismet_widget .a-stats a:active,
  48. .widget_akismet_widget .a-stats a:focus,
  49. .widget_akismet_widget .a-stats a:hover', 'background-color'
  50. ),
  51. array(
  52. 'mark,
  53. ins,
  54. button,
  55. input[type="button"],
  56. input[type="reset"],
  57. input[type="submit"],
  58. .comment-navigation a:active,
  59. .comment-navigation a:focus,
  60. .comment-navigation a:hover,
  61. .posts-navigation a:active,
  62. .posts-navigation a:focus,
  63. .posts-navigation a:hover,
  64. .sticky-post,
  65. #infinite-handle span button:active,
  66. #infinite-handle span button:focus,
  67. #infinite-handle span button:hover,
  68. .widget_akismet_widget .a-stats a', 'color'
  69. ),
  70. // #555555
  71. array(
  72. 'blockquote', 'color', 'bg', 6.35
  73. ),
  74. // #777777
  75. array(
  76. 'caption,
  77. .footer-navigation a,
  78. .post-navigation .meta-nav,
  79. .widget_recent_entries .post-date,
  80. .widget_rss cite,
  81. .widget_rss .rss-date,
  82. .site-description,
  83. .entry-hero .entry-meta a,
  84. .content-area .entry-meta,
  85. .content-area .entry-meta a,
  86. .entry-footer,
  87. .entry-footer a,
  88. .page-links,
  89. .page-links > .page-links-title,
  90. .author-info .author-title,
  91. .comment-list .comment-reply-title small,
  92. .comment-metadata,
  93. .comment-reply-link,
  94. .comment-metadata a,
  95. .comment-list .comment-reply-title small a,
  96. .wp-caption,
  97. .gallery-caption,
  98. .site-content .jetpack-recipe .jetpack-recipe-meta,
  99. .hentry div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post-context,
  100. .widget_goodreads div[class^="gr_custom_author"]', 'color', 'bg', 4.3
  101. ),
  102. array(
  103. '::input-placeholder', 'color', 'bg', 4.3
  104. ),
  105. array(
  106. '::-webkit-input-placeholder', 'color', 'bg', 4.3
  107. ),
  108. array(
  109. ':-moz-placeholder', 'color', 'bg', 4.3
  110. ),
  111. array(
  112. '::-moz-placeholder', 'color', 'bg', 4.3
  113. ),
  114. array(
  115. '::-ms-input-placeholder', 'color', 'bg', 4.3
  116. ),
  117. // #dddddd
  118. array(
  119. 'hr,
  120. .widget-area:before,
  121. .comment-list:before,
  122. .comment-navigation + .comment-respond:before,
  123. div#jp-relatedposts:before', 'background-color', 'bg', 1.34
  124. ),
  125. array(
  126. 'input[type="text"],
  127. input[type="email"],
  128. input[type="url"],
  129. input[type="password"],
  130. input[type="search"],
  131. textarea,
  132. .search-form .search-submit,
  133. .search-form .search-submit:active,
  134. .search-form .search-submit:focus,
  135. .search-form .search-submit:hover,
  136. .menu-toggle,
  137. .menu-toggle:active,
  138. .menu-toggle:focus,
  139. .menu-toggle:hover,
  140. .dropdown-toggle,
  141. .dropdown-toggle:active,
  142. .dropdown-toggle:focus,
  143. .dropdown-toggle:hover,
  144. .main-navigation > div > ul,
  145. .sidebar-toggle,
  146. .sidebar-toggle:active,
  147. .sidebar-toggle:focus,
  148. .sidebar-toggle:hover,
  149. .author-info,
  150. .search-toggle,
  151. .search-toggle:active,
  152. .search-toggle:focus,
  153. .search-toggle:hover,
  154. .page-links a,
  155. .page-links > span,
  156. .page-links a:active,
  157. .page-links a:focus,
  158. .page-links a:hover,
  159. .main-navigation ul ul,
  160. #comments #respond #comment-form-comment,
  161. #comments #comment-form-share-text-padder,
  162. #comments #respond .comment-form-fields div.comment-form-input,
  163. .widget.top_rated .pd_top_rated_holder_posts > p,
  164. .widget.top_rated ul', 'border-color', 'bg', 1.34
  165. ),
  166. array(
  167. 'th,
  168. td,
  169. .footer-widget-inner .widget,
  170. .site-header,
  171. .featured-content,
  172. .comment-list', 'border-bottom-color', 'bg', 1.34
  173. ),
  174. array(
  175. '.rtl .site-main,
  176. .widget-area', 'border-left-color', 'bg', 1.34
  177. ),
  178. array(
  179. '.site-main,
  180. .rtl .widget-area', 'border-right-color', 'bg', 1.34
  181. ),
  182. array(
  183. 'table,
  184. .footer-navigation,
  185. .comment-navigation + .comment-respond,
  186. .footer-widget,
  187. .comments-area,
  188. div#jp-relatedposts,
  189. .search-navigation,
  190. .header-image', 'border-top-color', 'bg', 1.34
  191. ),
  192. array(
  193. 'blockquote:before', 'color', 'bg', 1.34
  194. ),
  195. array(
  196. 'a:focus,
  197. .bypostauthor .fn,
  198. div#jp-relatedposts a:focus', 'outline-color', 'bg', 1.34
  199. ),
  200. // #eeeeee
  201. array(
  202. 'pre,
  203. thead,
  204. .search-form.hover:before,
  205. .menu-toggle:active,
  206. .menu-toggle:focus,
  207. .menu-toggle:hover,
  208. .dropdown-toggle:active,
  209. .dropdown-toggle:focus,
  210. .dropdown-toggle:hover,
  211. .post-navigation a:active,
  212. .post-navigation a:focus,
  213. .post-navigation a:hover,
  214. .sidebar-toggle:active,
  215. .sidebar-toggle:focus,
  216. .sidebar-toggle:hover,
  217. .search-toggle:active,
  218. .search-toggle:focus,
  219. .search-toggle:hover,
  220. .search-form.hover:before,
  221. .page-links a,
  222. .page-links > span,
  223. .page-links a:active,
  224. .page-links a:focus,
  225. .page-links a:hover', 'background-color', 'bg', 1.12
  226. ),
  227. array(
  228. '.comment-navigation a,
  229. .posts-navigation a,
  230. .post-navigation a,
  231. .gallery,
  232. #infinite-handle span button', 'border-color', 'bg', 1.12
  233. ),
  234. array(
  235. '.main-navigation > div > ul > li:last-child,
  236. .main-navigation ul,
  237. .widget_archive ul,
  238. .widget_categories ul,
  239. .widget_links ul,
  240. .widget_meta ul,
  241. .widget_nav_menu ul,
  242. .widget_pages ul,
  243. .widget_recent_comments ul,
  244. .widget_recent_entries ul,
  245. .widget_rss ul,
  246. .page-header,
  247. .entry-footer > span:last-of-type,
  248. .comment-list .comment:not(:last-of-type),
  249. .comment-list .depth-1:not(:last-of-type),
  250. .sd-like.jetpack-likes-widget-wrapper,
  251. .sd-rating,
  252. .sd-sharing-enabled:not(#jp-post-flair),
  253. .widget_goodreads div[class^="gr_custom_each_container"]:last-of-type,
  254. .widget_rss_links ul,
  255. .widget_rss_links p:last-of-type,
  256. .hentry .wpcom-reblog-snapshot .reblogger-note,
  257. .widget_authors ul,
  258. .widget_jp_blogs_i_follow ol,
  259. .widget_blog-stats ul,
  260. .widget_top-clicks ul,
  261. .widget_top-posts ul,
  262. .widget.top_rated ul,
  263. .widget_upcoming_events_widget ul,
  264. .widget_recent_comments tr,
  265. .widget_recent_comments td', 'border-bottom-color', 'bg', 1.12
  266. ),
  267. array(
  268. '.main-navigation .nav-menu > li + li,
  269. .footer-navigation li + li', 'border-left-color', 'bg', 1.12
  270. ),
  271. array(
  272. '.rtl .main-navigation .nav-menu > li + li,
  273. .rtl .footer-navigation li + li', 'border-right-color', 'bg', 1.12
  274. ),
  275. array(
  276. '.main-navigation li,
  277. .posts-navigation,
  278. .widget_archive li,
  279. .widget_categories li,
  280. .widget_links li,
  281. .widget_meta li,
  282. .widget_nav_menu li,
  283. .widget_pages li,
  284. .widget_recent_comments li,
  285. .widget_recent_entries li,
  286. .widget_rss li,
  287. .archive .hentry,
  288. .blog .hentry,
  289. .search .hentry,
  290. .entry-footer .byline,
  291. .entry-footer .cat-links,
  292. .entry-footer .comments-link,
  293. .entry-footer .edit-link,
  294. .entry-footer .posted-on,
  295. .entry-footer .tags-links,
  296. .page-links,
  297. .comment-list .comment .comment:first-of-type,
  298. .comment-list .comment-respond,
  299. #infinite-handle,
  300. .infinite-loader,
  301. .archive .infinite-wrap .hentry:first-of-type,
  302. .blog .infinite-wrap .hentry:first-of-type,
  303. .search .infinite-wrap .hentry:first-of-type,
  304. .widget_goodreads div[class^="gr_custom_each_container"],
  305. .widget_rss_links li,
  306. .widget_rss_links p,
  307. .widget_authors li,
  308. .widget_jp_blogs_i_follow li,
  309. .widgets-list-layout li,
  310. .widget_top-clicks li,
  311. .widget_top-posts li,
  312. .widget.top_rated li,
  313. .widget_upcoming_events_widget li,
  314. .widget_recent_comments table', 'border-top-color', 'bg', 1.12
  315. ),
  316. ), __( 'Background' ) );
  317. add_color_rule( 'fg1', '#222222', array(
  318. // #222222
  319. array(
  320. '.toggled .menu-toggle,
  321. .main-navigation.toggled > div,
  322. .social-navigation,
  323. .bottom-navigation,
  324. .sidebar-toggle.toggled,
  325. .site-top,
  326. .toggled .search-toggle,
  327. .search-header .search-form,
  328. .site-social,
  329. .site-footer,
  330. #infinite-footer', 'background-color'
  331. ),
  332. array(
  333. '.toggled .menu-toggle,
  334. .sidebar-toggle.toggled,
  335. .toggled .search-toggle,
  336. .wp-block-button .wp-block-button__link:active,
  337. .wp-block-button .wp-block-button__link:focus,
  338. .wp-block-button .wp-block-button__link:hover', 'border-color'
  339. ),
  340. array(
  341. '.main-navigation.toggled > div:before,
  342. .search-header.toggled .search-toggle:after', 'border-bottom-color'
  343. ),
  344. // #444444
  345. array(
  346. '.toggled .menu-toggle:active,
  347. .toggled .menu-toggle:focus,
  348. .toggled .menu-toggle:hover,
  349. .sidebar-toggle.toggled:active,
  350. .sidebar-toggle.toggled:focus,
  351. .sidebar-toggle.toggled:hover,
  352. .toggled .search-toggle:active,
  353. .toggled .search-toggle:focus,
  354. .toggled .search-toggle:hover', 'background-color', 'fg1', 2
  355. ),
  356. array(
  357. '.toggled .menu-toggle:active,
  358. .toggled .menu-toggle:focus,
  359. .toggled .menu-toggle:hover,
  360. .sidebar-toggle.toggled:active,
  361. .sidebar-toggle.toggled:focus,
  362. .sidebar-toggle.toggled:hover,
  363. .toggled .search-toggle:active,
  364. .toggled .search-toggle:focus,
  365. .toggled .search-toggle:hover', 'border-color', 'fg1', 2
  366. ),
  367. array(
  368. '.social-navigation,
  369. .bottom-navigation,
  370. .site-social', 'border-bottom-color', 'fg1', 2
  371. ),
  372. array(
  373. '.secondary-navigation li + li', 'border-left-color', 'fg1', 2
  374. ),
  375. array(
  376. '.rtl .secondary-navigation li + li', 'border-right-color', 'fg1', 2
  377. ),
  378. array(
  379. '.site-info .sep,
  380. .wp-block-button .wp-block-button__link:active,
  381. .wp-block-button .wp-block-button__link:focus,
  382. .wp-block-button .wp-block-button__link:hover,
  383. .is-style-outline>.wp-block-button__link:not(.has-text-color):active,
  384. .is-style-outline>.wp-block-button__link:not(.has-text-color):focus,
  385. .is-style-outline>.wp-block-button__link:not(.has-text-color):hover', 'color', 'fg1', 2
  386. ),
  387. // #555555
  388. array(
  389. '.social-navigation a:focus,
  390. .secondary-navigation a:focus,
  391. .bottom-navigation a:focus,
  392. .site-info a:focus', 'outline-color', 'fg1', 2.625
  393. ),
  394. // #cccccc
  395. array(
  396. '.social-navigation a,
  397. .secondary-navigation a,
  398. .bottom-navigation a,
  399. .site-top,
  400. .site-info,
  401. .site-info a,
  402. #infinite-footer,
  403. #infinite-footer .blog-info a', 'color', 'fg1', 9.4
  404. ),
  405. // #ffffff
  406. array(
  407. '.toggled .menu-toggle,
  408. .social-navigation a:active,
  409. .social-navigation a:focus,
  410. .social-navigation a:hover,
  411. .secondary-navigation a:active,
  412. .secondary-navigation a:focus,
  413. .secondary-navigation a:hover,
  414. .bottom-navigation a:active,
  415. .bottom-navigation a:focus,
  416. .bottom-navigation a:hover,
  417. .sidebar-toggle.toggled,
  418. .toggled .search-toggle,
  419. .site-info a:active,
  420. .site-info a:focus,
  421. .site-info a:hover,
  422. #infinite-footer .blog-credits a:active,
  423. #infinite-footer .blog-credits a:focus,
  424. #infinite-footer .blog-credits a:hover,
  425. #infinite-footer .blog-info a:active,
  426. #infinite-footer .blog-info a:focus,
  427. #infinite-footer .blog-info a:hover', 'color', 'fg1', 14
  428. ),
  429. ), __( 'Contrast' ) );
  430. add_color_rule( 'link', '#d11415', array(
  431. array(
  432. 'mark,
  433. ins,
  434. button,
  435. input[type="button"],
  436. input[type="reset"],
  437. input[type="submit"],
  438. .comment-navigation a:active,
  439. .comment-navigation a:focus,
  440. .comment-navigation a:hover,
  441. .posts-navigation a:active,
  442. .posts-navigation a:focus,
  443. .posts-navigation a:hover,
  444. .featured-content .hentry:not(.has-post-thumbnail):hover .post-thumbnail,
  445. .featured-content .hentry:not(.has-post-thumbnail) .post-thumbnail:focus,
  446. .sticky-post,
  447. .post-link,
  448. #infinite-handle span button:active,
  449. #infinite-handle span button:focus,
  450. #infinite-handle span button:hover,
  451. .widget_akismet_widget .a-stats a,
  452. .milestone-widget .milestone-header,
  453. .wp-block-button .wp-block-button__link', 'background-color', 'bg', 2
  454. ),
  455. array(
  456. 'button,
  457. input[type="button"],
  458. input[type="reset"],
  459. input[type="submit"],
  460. .comment-navigation a:active,
  461. .comment-navigation a:focus,
  462. .comment-navigation a:hover,
  463. .posts-navigation a:active,
  464. .posts-navigation a:focus,
  465. .posts-navigation a:hover,
  466. #infinite-handle span button:active,
  467. #infinite-handle span button:focus,
  468. #infinite-handle span button:hover,
  469. .widget_akismet_widget .a-stats a,
  470. .wp-block-button .wp-block-button__link', 'border-color', 'bg', 2
  471. ),
  472. array(
  473. 'pre', 'border-left-color', 'bg', 2
  474. ),
  475. array(
  476. '.rtl pre', 'border-right-color', 'bg', 2
  477. ),
  478. array(
  479. 'button:active,
  480. input[type="button"]:active,
  481. input[type="reset"]:active,
  482. input[type="submit"]:active,
  483. button:focus,
  484. input[type="button"]:focus,
  485. input[type="reset"]:focus,
  486. input[type="submit"]:focus,
  487. button:hover,
  488. input[type="button"]:hover,
  489. input[type="reset"]:hover,
  490. input[type="submit"]:hover,
  491. .search-form:before,
  492. a,
  493. .menu-toggle:active,
  494. .menu-toggle:focus,
  495. .menu-toggle:hover,
  496. .dropdown-toggle,
  497. .dropdown-toggle:active,
  498. .dropdown-toggle:focus,
  499. .dropdown-toggle:hover,
  500. .main-navigation a:active,
  501. .main-navigation a:focus,
  502. .main-navigation a:hover,
  503. .main-navigation .current_page_item > a,
  504. .main-navigation .current-menu-item > a,
  505. .main-navigation .current_page_ancestor > a,
  506. .footer-navigation a:active,
  507. .footer-navigation a:focus,
  508. .footer-navigation a:hover,
  509. .comment-navigation a,
  510. .posts-navigation a,
  511. .post-navigation a:active .post-title,
  512. .post-navigation a:focus .post-title,
  513. .post-navigation a:hover .post-title,
  514. .sidebar-toggle:active,
  515. .sidebar-toggle:focus,
  516. .sidebar-toggle:hover,
  517. .search-toggle:active,
  518. .search-toggle:focus,
  519. .search-toggle:hover,
  520. .site-title,
  521. .page-links > span,
  522. .page-links a:active,
  523. .page-links a:focus,
  524. .page-links a:hover,
  525. .post-link .genericon,
  526. .required,
  527. .site-content .contact-form label span,
  528. #infinite-handle span button,
  529. .widget_goodreads div[class^="gr_custom_title"] a,
  530. .main-navigation .menu-item-has-children > a:after,
  531. #comments #respond .comment-form-service a,
  532. .widget_akismet_widget .a-stats a:active,
  533. .widget_akismet_widget .a-stats a:focus,
  534. .widget_akismet_widget .a-stats a:hover,
  535. .widget_akismet_widget .a-stats a:active .count,
  536. .widget_akismet_widget .a-stats a:focus .count,
  537. .widget_akismet_widget .a-stats a:hover .count,
  538. .widget_authors > ul > li > a:active,
  539. .widget_authors > ul > li > a:focus,
  540. .widget_authors > ul > li > a:hover,
  541. .is-style-outline>.wp-block-button__link:not(.has-text-color)', 'color', 'bg', 2
  542. ),
  543. ), __( 'Accent' ) );
  544. add_color_rule( 'extra', '#222222', array(
  545. array(
  546. 'abbr,
  547. acronym', 'border-bottom-color', 'bg', 12
  548. ),
  549. array(
  550. 'body,
  551. button,
  552. input,
  553. select,
  554. textarea,
  555. .menu-toggle,
  556. .main-navigation a,
  557. .post-navigation a,
  558. .sidebar-toggle,
  559. .widget_tag_cloud a:before,
  560. .search-toggle,
  561. .site-title a:active,
  562. .site-title a:focus,
  563. .site-title a:hover,
  564. .content-area .entry-meta a:active,
  565. .content-area .entry-meta a:focus,
  566. .content-area .entry-meta a:hover,
  567. .entry-footer a:active,
  568. .entry-footer a:focus,
  569. .entry-footer a:hover,
  570. .page-links a,
  571. .comment-list .comment-reply-title small a:active,
  572. .comment-list .comment-reply-title small a:focus,
  573. .comment-list .comment-reply-title small a:hover,
  574. .comment-metadata a:active,
  575. .comment-metadata a:focus,
  576. .comment-metadata a:hover,
  577. .comment-reply-link:active,
  578. .comment-reply-link:focus,
  579. .comment-reply-link:hover,
  580. .widget_goodreads div[class^="gr_custom_title"] a:active,
  581. .widget_goodreads div[class^="gr_custom_title"] a:focus,
  582. .widget_goodreads div[class^="gr_custom_title"] a:hover,
  583. .widget_goodreads div[class^="gr_custom_container"] div[class^="gr_custom_author"] a:active,
  584. .widget_goodreads div[class^="gr_custom_container"] div[class^="gr_custom_author"] a:focus,
  585. .widget_goodreads div[class^="gr_custom_container"] div[class^="gr_custom_author"] a:hover,
  586. #comments #respond .comment-form-fields p.comment-form-posting-as,
  587. #comments #respond .comment-form-fields p.comment-form-log-out,
  588. #comments #respond #comment-form-identity #comment-form-nascar p,
  589. #comments #respond #comment-form-load-service p,
  590. #comments #respond #comment-form-comment textarea,
  591. #comments #comment-form-share-text-padder textarea,
  592. #comments #respond .comment-form-fields label,
  593. #comments #respond .comment-form-fields label span.required,
  594. #comments #respond .comment-form-fields label span.nopublish,
  595. #comments #respond .comment-form-fields div.comment-form-input input,
  596. #comments #respond .comment-form-service a:active,
  597. #comments #respond .comment-form-service a:focus,
  598. #comments #respond .comment-form-service a:hover,
  599. .widget_authors > ul > li > a,
  600. .wp_widget_tag_cloud a:before', 'color', 'bg', 12
  601. ),
  602. ) );
  603. /* Extra CSS */
  604. function canard_extra_css() { ?>
  605. #comments #respond p.form-submit input#comment-submit,
  606. .widget_flickr #flickr_badge_uber_wrapper td a:last-child {
  607. background: #222 !important;
  608. border-color: #222 !important;
  609. }
  610. #comments #respond .form-submit input#comment-submit:active,
  611. #comments #respond .form-submit input#comment-submit:focus,
  612. #comments #respond .form-submit input#comment-submit:hover,
  613. .widget_flickr #flickr_badge_uber_wrapper td a:last-child:active,
  614. .widget_flickr #flickr_badge_uber_wrapper td a:last-child:focus,
  615. .widget_flickr #flickr_badge_uber_wrapper td a:last-child:hover {
  616. background: #fff !important;
  617. color: #222 !important;
  618. }
  619. @media screen and (min-width: 960px) {
  620. .entry-hero .entry-meta,
  621. .entry-hero .entry-meta a {
  622. color: #fff !important;
  623. }
  624. }
  625. <?php
  626. }
  627. add_theme_support( 'custom_colors_extra_css', 'canard_extra_css' );
  628. /* Additional color palettes */
  629. add_color_palette( array(
  630. '#ffffff',
  631. '',
  632. '#553a99',
  633. '#222222',
  634. '',
  635. ), 'White and Purple' );
  636. add_color_palette( array(
  637. '#ffffff',
  638. '',
  639. '#e66000',
  640. '#222222',
  641. '',
  642. ), 'White and Orange' );
  643. add_color_palette( array(
  644. '#ffffff',
  645. '',
  646. '#00a100',
  647. '#222222',
  648. '',
  649. ), 'White and Green' );
  650. add_color_palette( array(
  651. '#eeeeee',
  652. '',
  653. '#ea4c89',
  654. '#111111',
  655. '',
  656. ), 'Light Grey and Fuschia' );
  657. add_color_palette( array(
  658. '#505050',
  659. '',
  660. '#ffb900',
  661. '#a3a3a3',
  662. '',
  663. ), 'Dark Grey and Yellow' );
  664. add_color_palette( array(
  665. '#222222',
  666. '',
  667. '#d11415',
  668. '#dddddd',
  669. '',
  670. ), 'Black and Red' );