wpcom-colors.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <?php
  2. /* Custom Colors: Ixion */
  3. //Background
  4. add_color_rule( 'bg', '#ffffff', array(
  5. array( 'body, ins, mark,
  6. .site-header .search-form-icon:before,
  7. .site-header .search-form .search-field,
  8. .footer-widgets .widget', 'background-color' ),
  9. array( '.entry-author,
  10. .widget,
  11. hr,
  12. .testimonials .hentry', 'background-color', '-0.3' ),
  13. ) );
  14. add_color_rule( 'txt', '#192930', array(
  15. array( '.featured-content .hentry,
  16. .header-overlay', 'background-color' ),
  17. array( '.header-overlay:before', 'background-color' ),
  18. array( 'h1,
  19. h2,
  20. h3,
  21. h4,
  22. h5,
  23. h6,
  24. .entry-title a,
  25. .entry-title a:visited,
  26. .entry-title,
  27. .page-title,
  28. .widget-title,
  29. .widget a,
  30. .site-title,
  31. .comments-title,
  32. .site-title a,
  33. .site-title a:visited', 'color', 'bg' ),
  34. ),
  35. __( 'Headings' ) );
  36. add_color_rule( 'link', '#d7b221', array(
  37. array( '#infinite-handle span,
  38. .button,
  39. .comment-navigation .nav-next a,
  40. .comment-navigation .nav-previous a,
  41. .main-navigation .menu-toggle,
  42. .post-navigation .nav-next a,
  43. .post-navigation .nav-previous a,
  44. .posts-navigation .nav-next a,
  45. .posts-navigation .nav-previous a,
  46. button,
  47. input[type="button"],
  48. input[type="reset"],
  49. input[type="submit"]', 'background-color' ),
  50. array( '#infinite-handle span:active,
  51. #infinite-handle span:focus,
  52. #infinite-handle span:hover,
  53. .button:active,
  54. .button:focus,
  55. .button:hover,
  56. button:active,
  57. button:focus,
  58. button:hover,
  59. input[type="button"]:active,
  60. input[type="button"]:focus,
  61. input[type="button"]:hover,
  62. input[type="reset"]:active,
  63. input[type="reset"]:focus,
  64. input[type="reset"]:hover,
  65. input[type="submit"]:active,
  66. input[type="submit"]:focus,
  67. input[type="submit"]:hover', 'background-color', '-0.5' ),
  68. array( '.main-navigation ul ul', 'border-top-color' ),
  69. array( '.main-navigation ul ul:before', 'color' ),
  70. array( '.comment-metadata .edit-link a,
  71. .site-header .jetpack-social-navigation a:hover,
  72. .jetpack_widget_social_icons a:hover,
  73. .jetpack_widget_social_icons a:focus,
  74. .widget_wpcom_social_media_icons_widget a:hover,
  75. .widget_wpcom_social_media_icons_widget a:focus,
  76. a,
  77. a:visited,
  78. .main-navigation .nav-menu > li > a,
  79. .testimonials .edit-link a,
  80. .testimonials .edit-link a:visited', 'color', 'bg' ),
  81. array( 'a:hover, a:focus, a:active', 'color', 'bg', 2 ),
  82. array( '.featured-content .hentry:hover .entry-title a', 'color', 'txt' ),
  83. ),
  84. __( 'Links & Buttons' ) );
  85. //Extra rules
  86. add_color_rule( 'extra', '#ffffff', array(
  87. array( '#infinite-handle span,
  88. .button,
  89. .comment-navigation .nav-next a,
  90. .comment-navigation .nav-previous a,
  91. .main-navigation .menu-toggle,
  92. .post-navigation .nav-next a,
  93. .post-navigation .nav-previous a,
  94. .posts-navigation .nav-next a,
  95. .posts-navigation .nav-previous a,
  96. button,
  97. input[type="button"],
  98. input[type="reset"],
  99. input[type="submit"],
  100. #infinite-handle span:active,
  101. #infinite-handle span:focus,
  102. #infinite-handle span:hover,
  103. .button:active,
  104. .button:focus,
  105. .button:hover,
  106. .comment-navigation .nav-next a,
  107. .comment-navigation .nav-previous a,
  108. .main-navigation .menu-toggle,
  109. .post-navigation .nav-next a,
  110. .post-navigation .nav-previous a,
  111. .posts-navigation .nav-next a,
  112. .posts-navigation .nav-previous a,
  113. button:active,
  114. button:focus,
  115. button:hover,
  116. input[type="button"]:active,
  117. input[type="button"]:focus,
  118. input[type="button"]:hover,
  119. input[type="reset"]:active,
  120. input[type="reset"]:focus,
  121. input[type="reset"]:hover,
  122. input[type="submit"]:active,
  123. input[type="submit"]:focus,
  124. input[type="submit"]:hover', 'color', 'link' ),
  125. array( '.site-description, .featured-content .hentry .entry-title a', 'color', 'txt', 10 ),
  126. ) );
  127. add_color_rule( 'extra', '#192930', array(
  128. array( '.comment-author,
  129. .footer-widgets .widget a,
  130. body,
  131. button', 'color', 'bg', 12 ),
  132. ) );
  133. add_color_rule( 'extra', '#eeece8', array(
  134. array( '#respond h3,
  135. .comments-title,
  136. .featured-content,
  137. .hentry,
  138. .page-header,
  139. .recent-posts-header,
  140. .singular .entry-title,
  141. .site-header,
  142. .utility-container,
  143. .recent-posts:after,
  144. .site-footer,
  145. .site-info,
  146. .site-header .search-form .search-field,
  147. .site-header .search-form-icon:before,
  148. .site-header .jetpack-social-navigation a:before', 'border-color', 0.3 ),
  149. ) );
  150. add_color_rule( 'extra', '#a5a29d', array(
  151. array( '.comment-metadata,
  152. .entry-footer,
  153. .entry-meta,
  154. .footer-widgets .widget-title,
  155. .main-navigation ul > li.current-menu-item > a,
  156. .main-navigation ul > li.current_page_item > a,
  157. .more-recent-posts,
  158. .more-recent-posts:visited,
  159. .more-testimonials,
  160. .more-testimonials:visited,
  161. .search-form-icon:before,
  162. .site-header .jetpack-social-navigation a,
  163. .site-info,
  164. div#jp-relatedposts h3.jp-relatedposts-headline', 'color', 'bg' ),
  165. array( '.search-form-icon:before,
  166. .search-form .search-field', 'border-color', 0.3 ),
  167. ) );
  168. //Additional palettes
  169. add_color_palette( array(
  170. '#333333',
  171. '#fefefe',
  172. '#386ea8',
  173. ), 'Dark' );
  174. add_color_palette( array(
  175. '#f5f0e9',
  176. '#42566a',
  177. '#a84c38',
  178. ), 'Blue' );
  179. add_color_palette( array(
  180. '#f9f9f9',
  181. '#211d1b',
  182. '#c74f04',
  183. ), 'Orange' );
  184. add_color_palette( array(
  185. '#ffffff',
  186. '#c9d8ca',
  187. '#467b52',
  188. ), 'Green' );
  189. add_color_palette( array(
  190. '#fcfcfc',
  191. '#212121',
  192. '#b50c0c',
  193. ), 'Red' );
  194. add_color_palette( array(
  195. '#1b211f',
  196. '#444444',
  197. '#27ae93',
  198. ), 'Teal' );