wpcom-colors.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. <?php
  2. /* Custom Colors: Scratchpad */
  3. //Background
  4. add_color_rule( 'bg', '#bdcbcc', array(
  5. array( 'body', 'background-color', '#ffffff', 3 ),
  6. // Colour - contrast against background
  7. array( '#masthead .site-description,
  8. body:not(.single) .format-audio .entry-title a,
  9. body:not(.single) .format-gallery .entry-title a,
  10. body:not(.single) .format-image .entry-title a,
  11. body:not(.single) .format-quote .entry-title a,
  12. body:not(.single) .format-video .entry-title a,
  13. .post-navigation-container a,
  14. .post-navigation-container a:hover,
  15. .page-header p,
  16. .error404 .page-content > p,
  17. .search-no-results .page-content > p', 'color', 'bg', 5 ),
  18. array( 'body:not(.single) .format-audio .entry-meta,
  19. body:not(.single) .format-audio .entry-meta a,
  20. body:not(.single) .format-gallery .entry-meta,
  21. body:not(.single) .format-gallery .entry-meta a,
  22. body:not(.single) .format-image .entry-meta,
  23. body:not(.single) .format-image .entry-meta a,
  24. body:not(.single) .format-quote .entry-meta,
  25. body:not(.single) .format-quote .entry-meta a,
  26. body:not(.single) .format-video .entry-meta,
  27. body:not(.single) .format-video .entry-meta a,
  28. #colophon .site-info,
  29. #colophon .site-info a,
  30. #infinite-handle span button,
  31. #infinite-handle span button:hover,
  32. #infinite-handle span button:focus,
  33. .post-navigation-container .post-navigation-header,
  34. .posts-navigation .nav-previous a,
  35. .posts-navigation .nav-next a', 'color', 'bg', 3 ),
  36. array( '.single #primary .author-info', 'background-color', 0.1 ),
  37. // Background colour - contrast against background
  38. array( '.main-navigation ul ul a', 'background-color', 'bg', 2 ),
  39. array( '.main-navigation ul ul a:hover', 'background-color', 'bg', 3 ),
  40. array( 'body:not(.single) .format-aside,
  41. .widget:nth-of-type(4n+2)', 'background-color', 'bg', 4 ),
  42. array( '.binderclip0,
  43. .line0,
  44. .stamp1', 'fill', 'bg', 3 ),
  45. // Background - slight opacity
  46. array( '.page-links a', 'background-color', 0.2 ),
  47. array( '.page-links a:hover', 'background-color', 0.1 ),
  48. // Border - contrast against background
  49. array( '#infinite-handle span button,
  50. #infinite-handle span button:hover,
  51. #infinite-handle span button:focus,
  52. .posts-navigation .nav-previous a,
  53. .posts-navigation .nav-next a', 'border-color', 'bg', 3 ),
  54. // Border Color - contrast against white - top triangle
  55. array( '.main-navigation ul ul:before', 'border-bottom-color', 'bg', 2 ),
  56. array('.main-navigation ul ul ul:before', 'border-right-color', 'bg', 2 ),
  57. array('.rtl .main-navigation ul ul ul:before', 'border-left-color', 'bg', 2 ),
  58. // Color; already contrasts against this colour
  59. array( 'body:not(.single) .format-aside .entry-header .entry-title a,
  60. .widget:nth-of-type(4n+2),
  61. .widget:nth-of-type(4n+2) a,
  62. .widget:nth-of-type(4n+2) #flickr_badge_uber_wrapper a:hover,
  63. .widget:nth-of-type(4n+2) #flickr_badge_uber_wrapper a:link,
  64. .widget:nth-of-type(4n+2) #flickr_badge_uber_wrapper a:active,
  65. .widget:nth-of-type(4n+2) #flickr_badge_uber_wrapper a:visited,
  66. .widget:nth-of-type(4n+2).widget_goodreads div[class^="gr_custom_author"],
  67. .widget:nth-of-type(4n+2) button,
  68. .widget:nth-of-type(4n+2) input[type="button"],
  69. .widget:nth-of-type(4n+2) input[type="reset"],
  70. .widget:nth-of-type(4n+2) input[type="submit"],
  71. .widget:nth-of-type(4n+2) button:hover,
  72. .widget:nth-of-type(4n+2) input[type="button"]:hover,
  73. .widget:nth-of-type(4n+2) input[type="reset"]:hover,
  74. .widget:nth-of-type(4n+2) input[type="submit"]:hover,
  75. .widget:nth-of-type(4n+2) button:focus,
  76. .widget:nth-of-type(4n+2) input[type="button"]:focus,
  77. .widget:nth-of-type(4n+2) input[type="reset"]:focus,
  78. .widget:nth-of-type(4n+2) input[type="submit"]:focus,
  79. .widget:nth-of-type(4n+2) .wp-caption,
  80. .widget:nth-of-type(4n+2) .wp-caption-text,
  81. .widget:nth-of-type(4n+2) .widget_rss .rss-date,
  82. body:not(.single) .format-aside,
  83. body:not(.single) .format-aside a', 'color' ),
  84. array( 'body:not(.single) .format-aside .entry-content', 'color', 0.8 ),
  85. array( 'body:not(.single) .format-aside .entry-meta,
  86. body:not(.single) .format-aside .entry-meta .entry-meta,
  87. body:not(.single) .format-aside .entry-meta a', 'color', 0.6 ),
  88. // Border Colour; bg already contrasts against this colour
  89. array('.widget:nth-of-type(4n+2).widget_archive > ul,
  90. .widget:nth-of-type(4n+2).widget_archive li,
  91. .widget:nth-of-type(4n+2).widget_categories > ul,
  92. .widget:nth-of-type(4n+2).widget_categories li,
  93. .widget:nth-of-type(4n+2).widget_jp_blogs_i_follow > ol,
  94. .widget:nth-of-type(4n+2).widget_jp_blogs_i_follow li,
  95. .widget:nth-of-type(4n+2).widget_jetpack_posts_i_like > ul,
  96. .widget:nth-of-type(4n+2).widget_jetpack_posts_i_like li,
  97. .widget:nth-of-type(4n+2).widget_links > ul,
  98. .widget:nth-of-type(4n+2).widget_links li,
  99. .widget:nth-of-type(4n+2).widget_meta > ul,
  100. .widget:nth-of-type(4n+2).widget_meta li,
  101. .widget:nth-of-type(4n+2).widget_nav_menu > ul,
  102. .widget:nth-of-type(4n+2).widget_nav_menu li,
  103. .widget:nth-of-type(4n+2).widget_pages > ul,
  104. .widget:nth-of-type(4n+2).widget_pages li,
  105. .widget:nth-of-type(4n+2).widget_recent_entries > ul,
  106. .widget:nth-of-type(4n+2).widget_recent_entries li,
  107. .widget:nth-of-type(4n+2).widget_recent_comments > ul,
  108. .widget:nth-of-type(4n+2).widget_recent_comments li,
  109. .widget:nth-of-type(4n+2).widget_rss > ul,
  110. .widget:nth-of-type(4n+2).widget_rss li,
  111. .widget:nth-of-type(4n+2).widget_rss_links > ul,
  112. .widget:nth-of-type(4n+2).widget_rss_links li,
  113. .widget:nth-of-type(4n+2).widget_top-clicks > ul,
  114. .widget:nth-of-type(4n+2).widget_top-clicks li,
  115. .widget:nth-of-type(4n+2).widget_top-posts > ul,
  116. .widget:nth-of-type(4n+2).widget_top-posts li,
  117. .widget:nth-of-type(4n+2).widget.top_rated #top_posts,
  118. .widget:nth-of-type(4n+2).widget.top_rated li,
  119. .widget:nth-of-type(4n+2) table,
  120. .widget:nth-of-type(4n+2) table td,
  121. .widget:nth-of-type(4n+2) table th,
  122. .widget:nth-of-type(4n+2).widget_goodreads div[class^="gr_custom_each_container"],
  123. .widget:nth-of-type(4n+2).widget_goodreads div[class^="gr_custom_container"],
  124. .widget:nth-of-type(4n+2) button,
  125. .widget:nth-of-type(4n+2) input[type="button"],
  126. .widget:nth-of-type(4n+2) input[type="reset"],
  127. .widget:nth-of-type(4n+2) input[type="submit"],
  128. .widget:nth-of-type(4n+2) button:hover,
  129. .widget:nth-of-type(4n+2) input[type="button"]:hover,
  130. .widget:nth-of-type(4n+2) input[type="reset"]:hover,
  131. .widget:nth-of-type(4n+2) input[type="submit"]:hover,
  132. .widget:nth-of-type(4n+2) button:focus,
  133. .widget:nth-of-type(4n+2) input[type="button"]:focus,
  134. .widget:nth-of-type(4n+2) input[type="reset"]:focus,
  135. .widget:nth-of-type(4n+2) input[type="submit"]:focus,
  136. .widget:nth-of-type(4n+2) .wp-caption,
  137. .widget:nth-of-type(4n+2) .wp-caption-text,
  138. .widget:nth-of-type(4n+2).widget_calendar tbody td a:after', 'border-color' ),
  139. // Colour - contrast against white
  140. array( 'a,
  141. a:hover,
  142. a:focus,
  143. a:active,
  144. .single #primary .author-link:hover,
  145. .page-links,
  146. .page-links span,
  147. .page-header .page-title,
  148. .page .edit-link a', 'color', '#ffffff', 5 ),
  149. array( '.main-navigation a,
  150. .single #primary article.post .tags-links a,
  151. .single #primary article.jetpack-portfolio .tags-links a,
  152. .single #primary article.attachment .tags-links a,
  153. .single #primary .author-link', 'color', '#ffffff', 3 ),
  154. // Border colour - contrast against white
  155. array( '.page-header .page-title:before,
  156. .page-header .page-title:after', 'border-color', '#ffffff', 2 ),
  157. ),
  158. __( 'Color 1' ) );
  159. // Blue
  160. add_color_rule( 'txt', '#2a44b6', array(
  161. // Colour
  162. array( 'body:not(.single) .format-status,
  163. .widget:nth-of-type(4n+1),
  164. .widget:nth-of-type(4n+1) a,
  165. .widget:nth-of-type(4n+1) #flickr_badge_uber_wrapper a:hover,
  166. .widget:nth-of-type(4n+1) #flickr_badge_uber_wrapper a:link,
  167. .widget:nth-of-type(4n+1) #flickr_badge_uber_wrapper a:active,
  168. .widget:nth-of-type(4n+1) #flickr_badge_uber_wrapper a:visited,
  169. .widget:nth-of-type(4n+1).widget_goodreads div[class^="gr_custom_author"],
  170. .widget:nth-of-type(4n+1) button,
  171. .widget:nth-of-type(4n+1) input[type="button"],
  172. .widget:nth-of-type(4n+1) input[type="reset"],
  173. .widget:nth-of-type(4n+1) input[type="submit"],
  174. .widget:nth-of-type(4n+1) button:hover,
  175. .widget:nth-of-type(4n+1) input[type="button"]:hover,
  176. .widget:nth-of-type(4n+1) input[type="reset"]:hover,
  177. .widget:nth-of-type(4n+1) input[type="submit"]:hover,
  178. .widget:nth-of-type(4n+1) button:focus,
  179. .widget:nth-of-type(4n+1) input[type="button"]:focus,
  180. .widget:nth-of-type(4n+1) input[type="reset"]:focus,
  181. .widget:nth-of-type(4n+1) input[type="submit"]:focus,
  182. .widget:nth-of-type(4n+1) .wp-caption,
  183. .widget:nth-of-type(4n+1) .wp-caption-text,
  184. .widget:nth-of-type(4n+1) .widget_rss .rss-date', 'color', '#ffffff', 4 ),
  185. array( 'body:not(.single) .format-status .entry-meta,
  186. body:not(.single) .format-status .entry-meta a', 'color', '#ffffff', 3 ),
  187. // Border Colour
  188. array( '.widget:nth-of-type(4n+1) button,
  189. .widget:nth-of-type(4n+1) input[type="button"],
  190. .widget:nth-of-type(4n+1) input[type="reset"],
  191. .widget:nth-of-type(4n+1) input[type="submit"],
  192. .widget:nth-of-type(4n+1) button:hover,
  193. .widget:nth-of-type(4n+1) input[type="button"]:hover,
  194. .widget:nth-of-type(4n+1) input[type="reset"]:hover,
  195. .widget:nth-of-type(4n+1) input[type="submit"]:hover,
  196. .widget:nth-of-type(4n+1) button:focus,
  197. .widget:nth-of-type(4n+1) input[type="button"]:focus,
  198. .widget:nth-of-type(4n+1) input[type="reset"]:focus,
  199. .widget:nth-of-type(4n+1) input[type="submit"]:focus,
  200. .widget:nth-of-type(4n+1) .wp-caption,
  201. .widget:nth-of-type(4n+1) .wp-caption-text,
  202. .widget:nth-of-type(4n+1).widget_calendar tbody td a:after', 'border-color', '#ffffff', 2 ),
  203. // Fill
  204. array( '.pen0', 'fill', '#ffffff', 3 ),
  205. ),
  206. __( 'Color 2' ) );
  207. // Orange
  208. add_color_rule( 'link', '#d16221', array(
  209. // Background colour - contrast against white
  210. array( 'article .mejs-container.mejs-audio', 'background-color', '#ffffff', 3 ),
  211. // Background color - contrast against link
  212. array( 'article .mejs-controls .mejs-time-rail .mejs-time-total,
  213. article .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total', 'background-color', 'link', 4 ),
  214. array( 'article .mejs-audio .mejs-controls .mejs-time-rail .mejs-time-loaded,
  215. article .mejs-audio .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current', 'background-color', 'link', 3 ),
  216. // Colour - contrast against white
  217. array( '.cat-links a,
  218. body:not(.single) .hentry .more-link:hover,
  219. body:not(.single) .format-link .entry-header a,
  220. .single #primary article.post .tags-links .tags-header,
  221. .single #primary article.jetpack-portfolio .tags-links .tags-header,
  222. .single #primary article.attachment .tags-links .tags-header,
  223. .page #primary article.page .tags-links .tags-header', 'color', '#ffffff' ),
  224. // Border colour
  225. array( '.page-header .page-title,
  226. .widget_calendar tbody td a:hover:after', 'border-color' ),
  227. array( '.page-links span:after', 'border-color', '#ffffff', 2 ),
  228. // Fill
  229. array( '.pencil0,
  230. .movie-ticket0', 'fill', '#ffffff' ),
  231. ),
  232. __( 'Color 3' ) );
  233. // Light yellow
  234. add_color_rule( 'fg1', '#efe8be', array(
  235. // Background-color
  236. array( 'body:not(.single) .format-quote .entry-content,
  237. .widget:nth-of-type(4n+3)', 'background-color' ),
  238. // Color - contrast against this colour
  239. array( 'body:not(.single) .format-quote .entry-content', 'color', 'fg1', 4 ),
  240. array( '.widget:nth-of-type(4n+3),
  241. .widget:nth-of-type(4n+3) a,
  242. .widget:nth-of-type(4n+3) #flickr_badge_uber_wrapper a:hover,
  243. .widget:nth-of-type(4n+3) #flickr_badge_uber_wrapper a:link,
  244. .widget:nth-of-type(4n+3) #flickr_badge_uber_wrapper a:active,
  245. .widget:nth-of-type(4n+3) #flickr_badge_uber_wrapper a:visited,
  246. .widget:nth-of-type(4n+3).widget_goodreads div[class^="gr_custom_author"],
  247. .widget:nth-of-type(4n+3) button,
  248. .widget:nth-of-type(4n+3) input[type="button"],
  249. .widget:nth-of-type(4n+3) input[type="reset"],
  250. .widget:nth-of-type(4n+3) input[type="submit"],
  251. .widget:nth-of-type(4n+3) button:hover,
  252. .widget:nth-of-type(4n+3) input[type="button"]:hover,
  253. .widget:nth-of-type(4n+3) input[type="reset"]:hover,
  254. .widget:nth-of-type(4n+3) input[type="submit"]:hover,
  255. .widget:nth-of-type(4n+3) button:focus,
  256. .widget:nth-of-type(4n+3) input[type="button"]:focus,
  257. .widget:nth-of-type(4n+3) input[type="reset"]:focus,
  258. .widget:nth-of-type(4n+3) input[type="submit"]:focus,
  259. .widget:nth-of-type(4n+3) .wp-caption,
  260. .widget:nth-of-type(4n+3) .wp-caption-text,
  261. .widget:nth-of-type(4n+3) .widget_rss .rss-date', 'color', 'fg1', 6 ),
  262. array( 'body:not(.single) .format-quote .entry-content .quote', 'fill', 'fg1', 2),
  263. // Border colour - contrast against this colour
  264. array( '.widget:nth-of-type(4n+3) button,
  265. .widget:nth-of-type(4n+3) input[type="button"],
  266. .widget:nth-of-type(4n+3) input[type="reset"],
  267. .widget:nth-of-type(4n+3) input[type="submit"],
  268. .widget:nth-of-type(4n+3) button:hover,
  269. .widget:nth-of-type(4n+3) input[type="button"]:hover,
  270. .widget:nth-of-type(4n+3) input[type="reset"]:hover,
  271. .widget:nth-of-type(4n+3) input[type="submit"]:hover,
  272. .widget:nth-of-type(4n+3) button:focus,
  273. .widget:nth-of-type(4n+3) input[type="button"]:focus,
  274. .widget:nth-of-type(4n+3) input[type="reset"]:focus,
  275. .widget:nth-of-type(4n+3) input[type="submit"]:focus,
  276. .widget:nth-of-type(4n+3) .wp-caption,
  277. .widget:nth-of-type(4n+3) .wp-caption-text,
  278. .widget:nth-of-type(4n+3).widget_calendar tbody td a:after', 'border-color', 'fg1', 2 ),
  279. ),
  280. __( 'Color 4' ) );
  281. // Bright Blue
  282. add_color_rule( 'fg2', '#2590ec', array(
  283. // Background color
  284. array( '.widget:nth-of-type(4n+4)', 'background-color' ),
  285. // Background color - contrast against while
  286. array( '.entry-content .jetpack-recipe-title', 'background-color', '#ffffff', 3 ),
  287. // Color - contrast against this color
  288. array( '.widget:nth-of-type(4n+4),
  289. .widget:nth-of-type(4n+4) a,
  290. .widget:nth-of-type(4n+4) #flickr_badge_uber_wrapper a:hover,
  291. .widget:nth-of-type(4n+4) #flickr_badge_uber_wrapper a:link,
  292. .widget:nth-of-type(4n+4) #flickr_badge_uber_wrapper a:active,
  293. .widget:nth-of-type(4n+4) #flickr_badge_uber_wrapper a:visited,
  294. .widget:nth-of-type(4n+4).widget_goodreads div[class^="gr_custom_author"],
  295. .widget:nth-of-type(4n+4) button,
  296. .widget:nth-of-type(4n+4) input[type="button"],
  297. .widget:nth-of-type(4n+4) input[type="reset"],
  298. .widget:nth-of-type(4n+4) input[type="submit"],
  299. .widget:nth-of-type(4n+4) button:hover,
  300. .widget:nth-of-type(4n+4) input[type="button"]:hover,
  301. .widget:nth-of-type(4n+4) input[type="reset"]:hover,
  302. .widget:nth-of-type(4n+4) input[type="submit"]:hover,
  303. .widget:nth-of-type(4n+4) button:focus,
  304. .widget:nth-of-type(4n+4) input[type="button"]:focus,
  305. .widget:nth-of-type(4n+4) input[type="reset"]:focus,
  306. .widget:nth-of-type(4n+4) input[type="submit"]:focus,
  307. .widget:nth-of-type(4n+4) .wp-caption,
  308. .widget:nth-of-type(4n+4) .wp-caption-text,
  309. .widget:nth-of-type(4n+4) .widget_rss .rss-date', 'color', 'fg2', 6 ),
  310. // Border colour - contrast against this colour
  311. array( '.widget:nth-of-type(4n+4).widget_archive > ul,
  312. .widget:nth-of-type(4n+4).widget_archive li,
  313. .widget:nth-of-type(4n+4).widget_categories > ul,
  314. .widget:nth-of-type(4n+4).widget_categories li,
  315. .widget:nth-of-type(4n+4).widget_jp_blogs_i_follow > ol,
  316. .widget:nth-of-type(4n+4).widget_jp_blogs_i_follow li,
  317. .widget:nth-of-type(4n+4).widget_jetpack_posts_i_like > ul,
  318. .widget:nth-of-type(4n+4).widget_jetpack_posts_i_like li,
  319. .widget:nth-of-type(4n+4).widget_links > ul,
  320. .widget:nth-of-type(4n+4).widget_links li,
  321. .widget:nth-of-type(4n+4).widget_meta > ul,
  322. .widget:nth-of-type(4n+4).widget_meta li,
  323. .widget:nth-of-type(4n+4).widget_nav_menu > ul,
  324. .widget:nth-of-type(4n+4).widget_nav_menu li,
  325. .widget:nth-of-type(4n+4).widget_pages > ul,
  326. .widget:nth-of-type(4n+4).widget_pages li,
  327. .widget:nth-of-type(4n+4).widget_recent_entries > ul,
  328. .widget:nth-of-type(4n+4).widget_recent_entries li,
  329. .widget:nth-of-type(4n+4).widget_recent_comments > ul,
  330. .widget:nth-of-type(4n+4).widget_recent_comments li,
  331. .widget:nth-of-type(4n+4).widget_rss > ul,
  332. .widget:nth-of-type(4n+4).widget_rss li,
  333. .widget:nth-of-type(4n+4).widget_rss_links > ul,
  334. .widget:nth-of-type(4n+4).widget_rss_links li,
  335. .widget:nth-of-type(4n+4).widget_top-clicks > ul,
  336. .widget:nth-of-type(4n+4).widget_top-clicks li,
  337. .widget:nth-of-type(4n+4).widget_top-posts > ul,
  338. .widget:nth-of-type(4n+4).widget_top-posts li,
  339. .widget:nth-of-type(4n+4).widget.top_rated #top_posts,
  340. .widget:nth-of-type(4n+4).widget.top_rated li,
  341. .widget:nth-of-type(4n+4) table,
  342. .widget:nth-of-type(4n+4) table td,
  343. .widget:nth-of-type(4n+4) table th,
  344. .widget:nth-of-type(4n+4).widget_goodreads div[class^="gr_custom_each_container"],
  345. .widget:nth-of-type(4n+4).widget_goodreads div[class^="gr_custom_container"],
  346. .widget:nth-of-type(4n+4) button,
  347. .widget:nth-of-type(4n+4) input[type="button"],
  348. .widget:nth-of-type(4n+4) input[type="reset"],
  349. .widget:nth-of-type(4n+4) input[type="submit"],
  350. .widget:nth-of-type(4n+4) button:hover,
  351. .widget:nth-of-type(4n+4) input[type="button"]:hover,
  352. .widget:nth-of-type(4n+4) input[type="reset"]:hover,
  353. .widget:nth-of-type(4n+4) input[type="submit"]:hover,
  354. .widget:nth-of-type(4n+4) button:focus,
  355. .widget:nth-of-type(4n+4) input[type="button"]:focus,
  356. .widget:nth-of-type(4n+4) input[type="reset"]:focus,
  357. .widget:nth-of-type(4n+4) input[type="submit"]:focus,
  358. .widget:nth-of-type(4n+4) .wp-caption,
  359. .widget:nth-of-type(4n+4) .wp-caption-text,
  360. .widget:nth-of-type(4n+4).widget_calendar tbody td a:after', 'border-color', 'fg2', 2 ),
  361. // Border color - contrast against white
  362. array( '.entry-content .jetpack-recipe:before,
  363. .entry-content .jetpack-recipe .jetpack-recipe-content', 'border-color', '#ffffff', 2 ),
  364. // Fill
  365. array( '.grip-pencil0,
  366. .grip-pencil2', 'fill', 'bg', 3 ),
  367. ),
  368. __( 'Color 5' ) );
  369. add_color_rule( 'extra', '#ffffff', array(
  370. // Colour - contrast against bg
  371. array( '#masthead .site-title a', 'color', 'bg', 6 ),
  372. ),
  373. '' );
  374. add_color_rule( 'extra', '#444444', array(
  375. // Fill - contrast against bg
  376. // array( '.highlighter0', 'fill', 'bg', 2 ),
  377. ),
  378. '' );
  379. /* Extra CSS */
  380. function scratchpad_extra_css() { ?>
  381. #page:before {
  382. background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
  383. background: -webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,0.35) 0%,rgba(255,255,255,0) 50%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
  384. background: radial-gradient(ellipse at center, rgba(255,255,255,0.35) 0%,rgba(255,255,255,0) 50%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  385. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#59ffffff', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  386. }
  387. /* Menu */
  388. .main-navigation ul ul a {
  389. border-color: rgba(255,255,255,0.3);
  390. }
  391. .main-navigation ul ul li:last-child a {
  392. border: 0;
  393. }
  394. /* Post background colours */
  395. body:not(.single) .format-standard,
  396. body:not(.single) .format-chat,
  397. .single #primary article.post,
  398. .single #primary article.jetpack-portfolio,
  399. .single #primary article.attachment,
  400. .page #primary article.page,
  401. .search .type-page {
  402. background-color: #fff;
  403. }
  404. /* Background patterns - grid */
  405. body:not(.single) .format-quote .entry-content,
  406. .widget:nth-of-type(4n+3) {
  407. background-image: linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
  408. }
  409. /* Background patterns - torn paper */
  410. body:not(.single) .format-status span.paper-top {
  411. background-image: linear-gradient(90deg, #<?php echo get_background_color(); ?> 7px, transparent 7px), radial-gradient(#<?php echo get_background_color(); ?> 8px, transparent 8px);
  412. }
  413. /* Underlines */
  414. .entry-header .entry-title a:hover,
  415. .post-navigation-container a:hover,
  416. .single #primary .author-description h2 a:hover {
  417. box-shadow: inset 0 -5px 0 0 rgba(0,0,0,0.1);;
  418. }
  419. /* Ruler */
  420. article .mejs-container.mejs-audio {
  421. background-image: linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px)
  422. }
  423. /* Pen */
  424. .pen1 {
  425. opacity: 0.6;
  426. }
  427. /* Stamp */
  428. .stamp2 {
  429. fill: rgba(255,255,255,0.5);
  430. }
  431. @media only screen and (max-width: 800px) {
  432. #masthead .main-navigation a,
  433. #masthead .main-navigation ul ul a {
  434. background-color: transparent;
  435. color: inherit;
  436. }
  437. #masthead .main-navigation a:hover,
  438. #masthead .main-navigation ul ul a:hover {
  439. color: #333;
  440. }
  441. }
  442. <?php
  443. }
  444. add_theme_support( 'custom_colors_extra_css', 'scratchpad_extra_css' );
  445. //Additional palettes
  446. add_color_palette( array(
  447. '#4b596c',
  448. '#e97633',
  449. '#c44d58',
  450. '#e4b3b3',
  451. '#a6b4c8',
  452. ), 'Featured 1' );
  453. add_color_palette( array(
  454. '#c44d58',
  455. '#537349',
  456. '#ced89d',
  457. '#dfba74',
  458. '#f1edd0'
  459. ), 'Featured 2' );
  460. add_color_palette( array(
  461. '#c9d1d3',
  462. '#d2411c',
  463. '#4d8da1',
  464. '#504d4d',
  465. '#f2f2f2'
  466. ), 'Featured 3' );
  467. add_color_palette( array(
  468. '#2790b0',
  469. '#4e4d4a',
  470. '#94ba65',
  471. '#98d1e6',
  472. '#dbe6ca'
  473. ), 'Featured 4' );
  474. add_color_palette( array(
  475. '#793a57',
  476. '#cf1040',
  477. '#73a99d',
  478. '#e1c479',
  479. '#98d1e6'
  480. ), 'Featured 5' );