wpcom-colors.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. /* Custom Colors: Button 2 */
  3. //Background
  4. add_color_rule( 'bg', '#f8f8f8', array(
  5. array( 'body', 'background-color' ),
  6. ) );
  7. add_color_rule( 'txt', '#f78769', array(
  8. array( '#infinite-handle span button:active,
  9. #infinite-handle span button:focus,
  10. #infinite-handle span button:hover,
  11. #infinite-handle span:hover button,
  12. .flex-control-paging li a.flex-active,
  13. .flex-control-paging li a:hover,
  14. .jetpack-social-navigation ul a:hover,
  15. .tags-links a:hover,
  16. .widget_tag_cloud a:hover,
  17. .button:active,
  18. .button:focus,
  19. .button:hover,
  20. button:active,
  21. button:focus,
  22. button:hover,
  23. input[type="button"]:active,
  24. input[type="button"]:focus,
  25. input[type="button"]:hover,
  26. input[type="reset"]:active,
  27. input[type="reset"]:focus,
  28. input[type="reset"]:hover,
  29. input[type="submit"]:active,
  30. input[type="submit"]:focus,
  31. input[type="submit"]:hover,
  32. .page-links span.active-link,
  33. .page-links a:hover span.active-link', 'background-color' ),
  34. array( '.bypostauthor > .comment-body:first-of-type .comment-author .avatar,
  35. input[type="email"]:focus,
  36. input[type="password"]:focus,
  37. input[type="search"]:focus,
  38. input[type="text"]:focus,
  39. input[type="url"]:focus,
  40. textarea:focus', 'border-color' ),
  41. array( '.tags-links a:hover:after,
  42. .widget_tag_cloud a:hover:after', 'border-left-color' ),
  43. array( '.tags-links a:hover:before,
  44. .widget_tag_cloud a:hover:before', 'border-top-color' ),
  45. array( '.tags-links a:hover:before,
  46. .widget_tag_cloud a:hover:before,
  47. abbr,
  48. acronym', 'border-bottom-color' ),
  49. array( '#infinite-handle span button:active,
  50. #infinite-handle span button:focus,
  51. #infinite-handle span button:hover,
  52. #infinite-handle span:hover button,
  53. button:active,
  54. button:focus,
  55. button:hover,
  56. input[type="button"]:active,
  57. input[type="button"]:focus,
  58. input[type="button"]:hover,
  59. input[type="reset"]:active,
  60. input[type="reset"]:focus,
  61. input[type="reset"]:hover,
  62. input[type="submit"]:active,
  63. input[type="submit"]:focus,
  64. input[type="submit"]:hover', 'outline-color' ),
  65. //Contrast against white content background
  66. array( '#infinite-footer .container a:hover,
  67. .comment-meta .comment-metadata a:hover,
  68. .entry-footer a:hover,
  69. .entry-meta a:hover,
  70. .required,
  71. .site-footer a:hover,
  72. .site-title a,
  73. .site-title a:visited,
  74. a,
  75. a.more-link,
  76. a.more-link:hover,
  77. a:visited', 'color', '#ffffff', 2 ),
  78. array( '.main-navigation .current-menu-item > a,
  79. .main-navigation .current_page_ancestor > a,
  80. .main-navigation .current_page_item > a,
  81. .main-navigation a:hover,
  82. .main-navigation a:visited:hover', 'color', '#ffffff', 2 ),
  83. ),
  84. __( 'Main Accent' ) );
  85. add_color_rule( 'link', '#ffffff', array(
  86. ) );
  87. add_color_rule( 'fg1', '#ffffff', array(
  88. ) );
  89. add_color_rule( 'fg2', '#ffffff', array(
  90. ) );
  91. //Extra rules
  92. add_color_rule( 'extra', '#ffffff', array(
  93. array( '#infinite-handle span button:active,
  94. #infinite-handle span button:focus,
  95. #infinite-handle span button:hover,
  96. #infinite-handle span:hover button,
  97. .flex-control-paging li a.flex-active,
  98. .flex-control-paging li a:hover,
  99. .jetpack-social-navigation ul a:hover,
  100. .tags-links a:hover,
  101. .widget_tag_cloud a:hover,
  102. .button:active,
  103. .button:focus,
  104. button:active,
  105. button:focus,
  106. button:hover,
  107. input[type="button"]:active,
  108. input[type="button"]:focus,
  109. input[type="button"]:hover,
  110. input[type="reset"]:active,
  111. input[type="reset"]:focus,
  112. input[type="reset"]:hover,
  113. input[type="submit"]:active,
  114. input[type="submit"]:focus,
  115. input[type="submit"]:hover,
  116. .page-links span.active-link,
  117. .page-links a:hover span.active-link', 'color', 'txt' ),
  118. ) );
  119. //Additional palettes
  120. add_color_palette( array(
  121. '#eeeeee',
  122. '#84ad9b',
  123. ), 'Light Green' );
  124. add_color_palette( array(
  125. '#f8f8f8',
  126. '#5192a8',
  127. ), 'Blue' );
  128. add_color_palette( array(
  129. '#f2ecec',
  130. '#fbcfd5',
  131. ), 'Pink' );
  132. add_color_palette( array(
  133. '#a0a295',
  134. '#59554e',
  135. ), 'Dark Gray' );
  136. add_color_palette( array(
  137. '#8ca1a5',
  138. '#c62c1e'
  139. ), 'Red and Blue' );
  140. add_color_palette( array(
  141. '#f7edd3',
  142. '#ed9339'
  143. ), 'Orange' );