wpcom-colors.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /* Custom Colors: Penscratch 2 */
  3. // Background
  4. add_color_rule( 'bg', '#eeeeee', array(
  5. array( 'body', 'background-color' ),
  6. ) );
  7. // Links
  8. add_color_rule( 'txt', '#1c7c7c', array(
  9. array( '.jetpack-social-navigation ul a:hover', 'background-color' ),
  10. array( '.jetpack-recipe-title', 'border-color' ),
  11. array( '.toggled .menu-toggle, .wp_widget_tag_cloud a:hover, .tags-links a:hover', 'border-color', '#fff' ),
  12. array( '.button:hover, .button:focus, .button:active, button:hover, button:focus, button:active, input[type="button"]:hover, input[type="button"]:focus, input[type="button"]:active, input[type="reset"]:hover, input[type="reset"]:focus, input[type="reset"]:active, input[type="submit"]:hover, input[type="submit"]:focus, input[type="submit"]:active, #infinite-handle span:hover', 'border-color', '#fff' ),
  13. array( '.button:hover, .button:focus, .button:active, button:hover, button:focus, button:active, input[type="button"]:hover, input[type="button"]:focus, input[type="button"]:active, input[type="reset"]:hover, input[type="reset"]:focus, input[type="reset"]:active, input[type="submit"]:hover, input[type="submit"]:focus, input[type="submit"]:active, #infinite-handle span:hover', 'color', '#fff' ),
  14. array( '.menu-toggle:hover #menu-icon, .toggled #menu-icon', 'fill', '#fff' ),
  15. array( 'a, a:visited, .site-footer a:hover, .main-navigation li:hover > a, .current_page_item a, .current-menu-item a, .toggled .menu-toggle, .entry-footer a:hover, .entry-meta a:hover, .entry-title a:hover, .site-main .post-navigation .meta-nav, .site-main .paging-navigation .meta-nav, .comment-meta .comment-metadata a:hover, .required, .widget a, #wp-calendar a, .wp_widget_tag_cloud a:hover, #infinite-footer .container a:hover, #infinite-handle span, .tags-links a:hover, .current_page_item a, .current-menu-item a, .current_page_item a:visited, .current-menu-item a:visited', 'color', '#fff' ),
  16. ),
  17. __( 'Links' ) );
  18. // Extra rules
  19. add_color_rule( 'extra', '#ffffff', array(
  20. array( '.jetpack-social-navigation ul a:hover', 'color', 'txt' ),
  21. ) );
  22. // Extra CSS
  23. function penscratch_2_extra_css() { ?>
  24. .widget a:hover,
  25. .site-footer .widget a:hover {
  26. color: #666;
  27. }
  28. <?php
  29. }
  30. add_theme_support( 'custom_colors_extra_css', 'penscratch_2_extra_css' );
  31. // Colour Palettes
  32. add_color_palette( array(
  33. '#c8dee5',
  34. '#fe6758',
  35. ), __( 'Blue & Red' ) );
  36. add_color_palette( array(
  37. '#333333',
  38. '#1479a8'
  39. ), __( 'Dark Blue' ) );
  40. add_color_palette( array(
  41. '#554337',
  42. '#028b5b'
  43. ), __( 'Dark Green' ) );
  44. add_color_palette( array(
  45. '#645861',
  46. '#d58aa8'
  47. ), __( 'Purple' ) );
  48. add_color_palette( array(
  49. '#ece6de',
  50. '#339fa2'
  51. ), __( 'Teal') );
  52. add_color_palette( array(
  53. '#d9d9dc',
  54. '#c61610'
  55. ), __( 'Red' ) );