a, .main-navigation li.focus > a {color:" . esc_attr($blog_writer_menu_hover_links) . ";} .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a {border-color:" . esc_attr($blog_writer_menu_active_link_border) . ";} .dropdown-toggle:hover,.dropdown-toggle:focus {color:" . esc_attr($blog_writer_submenu_dropdown_arrow_hover) . ";} "."\n"; // forms $blog_writer_button = get_theme_mod( 'blog_writer_button', '#cea26d' ); $blog_writer_button_label = get_theme_mod( 'blog_writer_button_label', '#fff' ); $blog_writer_button_hover = get_theme_mod( 'blog_writer_button_hover', '#0f0f0f' ); $blog_writer_button_label_hover = get_theme_mod( 'blog_writer_button_label_hover', '#fff' ); $custom .= ".button, .image-navigation a, .image-navigation a:visited,.page .edit-link a,.page .edit-link a:visited, button, button:visited, input[type=button], input[type=button]:visited, input[type=reset], input[type=reset]:visited, input[type=submit], input[type=submit]:visited {background-color:" . esc_attr($blog_writer_button) . "; border-color:" . esc_attr($blog_writer_button) . "; color:" . esc_attr($blog_writer_button_label) . ";} .search-circle, .search-rectangle {border-color:" . esc_attr($blog_writer_button_label) . ";} .search-circle:hover, .search-rectangle:hover {border-color:" . esc_attr($blog_writer_button_label_hover) . ";} .button:hover,.button:focus,.image-navigation a:hover,.image-navigation a:focus,.page .edit-link a:focus,.page .edit-link a:hover,button:hover,button:focus,input[type=button]:hover,input[type=button]:focus,input[type=reset]:hover,input[type=reset]:focus,input[type=submit]:hover,input[type=submit]:focus {background-color:" . esc_attr($blog_writer_button_hover) . "; border-color:" . esc_attr($blog_writer_button_hover) . "; color:" . esc_attr($blog_writer_button_label_hover) . ";} .about-icon, .about-icon:visited {background-color:" . esc_attr($blog_writer_button) . "; color:" . esc_attr($blog_writer_button_label) . ";} .about-icon:hover {background-color:" . esc_attr($blog_writer_button_hover) . "; color:" . esc_attr($blog_writer_button_label_hover) . ";} "."\n"; // dropcap if( esc_attr(get_theme_mod( 'blog_writer_show_dropcap', false ) ) ) : $blog_writer_dropcap_colour = get_theme_mod( 'blog_writer_dropcap_colour', '#333' ); $custom .= ".single-post .entry-content > p:first-of-type::first-letter { font-weight: 700; font-style: normal; font-family: \"Times New Roman\", Times, serif; font-size: 5.25rem; font-weight: normal; line-height: 0.8; float: left; margin: 4px 0 0; padding-right: 8px; text-transform: uppercase; } .single-post .entry-content h2 ~ p:first-of-type::first-letter { font-size: initial; font-weight: initial; line-height: initial; float: initial; margin-bottom: initial; padding-right: initial; text-transform: initial; } .single-post .entry-content > p:first-of-type::first-letter {color:" . esc_attr($blog_writer_dropcap_colour) . "}"."\n"; endif; // END CUSTOM CSS //Output all the styles wp_add_inline_style( 'blog-writer-style', $custom ); } add_action( 'wp_enqueue_scripts', 'blog_writer_inline_styles' );