215 | | add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' ); |
216 | | No newline at end of file |
| 215 | add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' ); |
| 216 | |
| 217 | /** |
| 218 | * Outputs the custom accent color CSS for the editor. |
| 219 | */ |
| 220 | function twentyfourteen_customizer_editor_styles() { |
| 221 | $accent_color = get_theme_mod( 'accent_color' ); |
| 222 | $accent_much_lighter = get_theme_mod( 'accent_much_lighter' ); |
| 223 | |
| 224 | echo '<style type="text/css"> |
| 225 | a, a:vistited { |
| 226 | color: ' . $accent_color . '; |
| 227 | } |
| 228 | a:hover, a:focus { |
| 229 | color: ' . $accent_much_lighter . '; |
| 230 | } |
| 231 | ::-moz-selection { |
| 232 | background: ' . $accent_color . '; |
| 233 | } |
| 234 | ::selection { |
| 235 | background: ' . $accent_color . '; |
| 236 | } |
| 237 | </style>'; |
| 238 | } |
| 239 | add_action( 'some_action_related_to_tinymce', 'twentyfourteen_customizer_editor_styles' ); |
| 240 | No newline at end of file |