ul > li > a::after{border-color:#000;} #masthead.fixed #menu-collapse > ul > li > ul{background-color:rgba(255,255,255,0.8);} } "; } elseif( $header_fixed_color == 'dark' ){ $output .= " #masthead.fixed{background:rgba(0,0,0,0.2);} #masthead.fixed .site-info a{color:#fff;} #masthead.fixed .icon{border-color:#fff;color:#fff;} #masthead.fixed .icon:hover{background-color:#fff;color:#000;} @media only screen and (min-width: 769px){ #masthead.fixed #menu-collapse a{color:#fff;} #masthead.fixed #menu-collapse a:hover{background-color:rgba(0,0,0,0.7);} #masthead.fixed #menu-collapse > ul > li > a::after{border-color:#fff;} #masthead.fixed #menu-collapse > ul > li > ul{background-color:rgba(0,0,0,0.4);} } "; } $output .= " body.scrolled #masthead{background:{$header_background_color};} body.scrolled #masthead .site-info a{color:{$header_text_color};} body.scrolled #masthead .icon{border-color:{$header_text_color};color:{$header_text_color};} body.scrolled #masthead .icon:hover{color:{$header_background_color};background-color:{$header_text_color};} @media only screen and (min-width: 769px){ body.scrolled #masthead #menu-collapse a{color:{$header_text_color};} body.scrolled #masthead #menu-collapse a:hover{color:{$header_background_color};background-color:{$header_text_color};} body.scrolled #masthead #menu-collapse > ul > li > a::after{border-bottom:1px solid {$header_text_color};} body.scrolled #masthead #menu-collapse > ul > li > ul{background-color:{$header_background_color}ee;} } "; } else { $output .= " @media only screen and (min-width: 769px){ body #masthead #menu-collapse a{color:{$header_text_color};} body #masthead #menu-collapse a:hover{color:{$header_background_color};background-color:{$header_text_color};} body #masthead #menu-collapse > ul > li > a::after{border-bottom:1px solid {$header_text_color};} body #masthead #menu-collapse > ul > li > ul{background-color:{$header_background_color}ee;background-image:none;} } "; } /***************** * Main Visual ******************/ // Text Color $top_main_visual_text_color = esc_html( get_theme_mod( 'setting_top_main_visual_text_color', '#ffffff' ) ); $output .= ".main-visual{color:{$top_main_visual_text_color};}"; // Image Placeholder Grayscale $main_visual_image_placeholder_grayscale = absint( get_theme_mod( 'setting_top_main_visual_image_placeholder_grayscale', '100' ) ); $output .= ".main-visual img.img-placeholder{filter:blur(15px) grayscale({$main_visual_image_placeholder_grayscale}%);}"; // Background Color $main_visual_background_color = esc_html( get_theme_mod( 'setting_top_main_visual_background_color', '#000000' ) ); $output .= ".main-visual::after{background-color:{$main_visual_background_color};}"; // Background Opacity $main_visual_background_opacity = absint( get_theme_mod( 'setting_top_main_visual_background_opacity', '30' ) ); $main_visual_opacity = $main_visual_background_opacity / 100; $output .= ".main-visual::after{opacity:{$main_visual_opacity};}"; // button text color $header_main_visual_main_button_text_color = esc_html( get_theme_mod( 'setting_top_main_visual_main_button_text_color', '#ffffff' ) ); $output .= ".main-visual .main-visual-content a{color:{$header_main_visual_main_button_text_color};}"; // button color $header_main_visual_main_button_color = esc_html( get_theme_mod( 'setting_top_main_visual_main_button_color', '#895892' ) ); $output .= " .main-visual .main-visual-content a{background-color:{$header_main_visual_main_button_color};} .main-visual .main-visual-content a:hover{color:{$header_main_visual_main_button_color};background-color:{$header_main_visual_main_button_text_color};}"; /***************** * Post ******************/ // Title Background Color $post_title_background_color = esc_html( get_theme_mod( 'setting_post_title_background_color', '#333333' ) ); $output .= ".single header::after{background-color:{$post_title_background_color};}"; // Title Background Opacity $post_title_background_opacity = absint( get_theme_mod( 'setting_post_title_background_opacity', '90' ) ); $post_header_opacity = $post_title_background_opacity / 100; $output .= ".single header::after{opacity:{$post_header_opacity};}"; // Title Text Color $post_title_text_color = esc_html( get_theme_mod( 'setting_post_title_text_color', '#ffffff' ) ); $output .= ".single .page-header,.single .page-header a{color:{$post_title_text_color};}"; // Sidebar Width $post_sidebar_width = absint( get_theme_mod( 'setting_post_sidebar_width', '300' ) ); $post_column = esc_html( get_theme_mod( 'setting_post_column', 'none' ) ); $post_sidebar_margin = $post_sidebar_width + absint( get_theme_mod( 'setting_post_sidebar_margin', '20' ) ); if ( ! is_page_template( 'templates/sidebar-none.php' ) ){ if( is_page_template( 'templates/sidebar-right.php' ) ){ $output .= ".post-template-sidebar-right #main .column { padding-right: {$post_sidebar_margin}px;}"; $output .= "@media only screen and (max-width:768px) {.post-template-sidebar-right #main .column { padding:0;}}"; $output .= ".post-template-sidebar-right aside { width:{$post_sidebar_width}px; margin-right:-{$post_sidebar_margin}px;}"; } elseif( is_page_template( 'templates/sidebar-left.php' ) ) { $output .= ".post-template-sidebar-left #main .column { padding-left: {$post_sidebar_margin}px;}"; $output .= "@media only screen and (max-width:768px) {.post-template-sidebar-left #main .column { padding:0;}}"; $output .= ".post-template-sidebar-left aside { width:{$post_sidebar_width}px; margin-left:-{$post_sidebar_margin}px;}"; } elseif( is_page_template( 'templates/sidebar-bottom.php' ) ) { $output .= ".post-template-sidebar-bottom aside {width:100%;}"; } elseif( $post_column !== 'none' ){ $output .= ".single #main .column { padding-{$post_column}: {$post_sidebar_margin}px;}"; $output .= "@media only screen and (max-width:768px) {.single #main .column { padding:0;}}"; $output .= ".single aside { width:{$post_sidebar_width}px; margin-{$post_column}:-{$post_sidebar_margin}px;}"; } } /***************** * Page ******************/ // Title Background Color $page_title_background_color = esc_html( get_theme_mod( 'setting_page_title_background_color', '#333333' ) ); $output .= ".page header::after{background-color:{$page_title_background_color};}"; // Title Background Opacity $page_title_background_opacity = absint( get_theme_mod( 'setting_page_title_background_opacity', '90' ) ); $page_header_opacity = $page_title_background_opacity / 100; $output .= ".page header::after{opacity:{$page_header_opacity};}"; // Title Text Color $page_title_text_color = esc_html( get_theme_mod( 'setting_page_title_text_color', '#ffffff' ) ); $output .= ".page .page-header{color:{$page_title_text_color};}"; // Sidebar Width $page_sidebar_width = absint( get_theme_mod( 'setting_page_sidebar_width','300' ) ); $page_column = esc_html( get_theme_mod( 'setting_page_column', 'none' ) ); $page_sidebar_margin = $page_sidebar_width + absint( get_theme_mod( 'setting_page_sidebar_margin', '20' ) ); if ( ! is_page_template( 'templates/sidebar-none.php' ) ) { if( is_page_template( 'templates/sidebar-right.php' ) ){ $output .= ".page-template-sidebar-right #main .column { padding-right: {$page_sidebar_margin}px;}"; $output .= "@media only screen and (max-width:768px) {.page-template-sidebar-right #main .column { padding:0;}}"; $output .= ".page-template-sidebar-right aside { width:{$page_sidebar_width}px; margin-right:-{$page_sidebar_margin}px;}"; } elseif( is_page_template( 'templates/sidebar-left.php' ) ) { $output .= ".page-template-sidebar-left #main .column { padding-left: {$page_sidebar_margin}px;}"; $output .= "@media only screen and (max-width:768px) {.page-template-sidebar-left #main .column { padding:0;}}"; $output .= ".page-template-sidebar-left aside { width:{$page_sidebar_width}px; margin-left:-{$page_sidebar_margin}px;}"; } elseif( is_page_template( 'templates/sidebar-bottom.php' ) ) { $output .= ".page-template-sidebar-bottom aside {width:100%;}"; } elseif( $page_column !== 'none' ){ $output .= ".page #main .column { padding-{$page_column}: {$page_sidebar_margin}px;}"; $output .= "@media only screen and (max-width:768px) {.page #main .column { padding:0;}}"; $output .= ".page aside { width:{$page_sidebar_width}px;margin-{$page_column}:-{$page_sidebar_margin}px;}"; } } /***************** * Archive ******************/ // Title Background Color $archive_title_background_color = esc_html( get_theme_mod( 'setting_archive_title_background_color', '#333333' ) ); $output .= ".archive header::after,.error404 header::after,.search header::after,.paged header::after{background-color:{$archive_title_background_color};}"; // Title Background Opacity $archive_title_background_opacity = absint( get_theme_mod( 'setting_archive_title_background_opacity', '90' ) ); $archive_header_opacity = $archive_title_background_opacity / 100; $output .= ".archive header::after,.error404 header::after,.search header::after,.paged header::after{opacity:{$archive_header_opacity};}"; // Title Text Color $archive_title_text_color = esc_html( get_theme_mod( 'setting_archive_title_text_color', '#ffffff' ) ); $output .= ".archive .page-header,.error404 .page-header,.search .page-header,.paged .page-header{color:{$archive_title_text_color};}"; /***************** * Footer ******************/ // Widget Text Color $footer_widget_text_color = esc_html( get_theme_mod( 'setting_footer_widget_text_color', '#333333' ) ); $output .= ".footer-widget{color:{$footer_widget_text_color};}"; // Widget Link Color $footer_widget_link_color = esc_html( get_theme_mod( 'setting_footer_widget_link_color', '#0a88cc' ) ); $output .= ".footer-widget a{color:{$footer_widget_link_color};}"; // Text Color $footer_text_color = esc_html( get_theme_mod( 'setting_footer_text_color', '#333333' ) ); $output .= "#footer{color:{$footer_text_color};}"; // Background Color $footer_background_color = esc_html( get_theme_mod( 'setting_footer_background_color', '#ffffff' ) ); $output .= "#footer{background:{$footer_background_color};}"; // Main Button Color $footer_main_button_color = esc_html( get_theme_mod( 'setting_footer_main_button_color', '#333333' ) ); $output .= "#footer .btn{color:{$footer_main_button_color};border-color:{$footer_main_button_color};}#footer .btn:hover{color:{$footer_background_color};background:{$footer_main_button_color};}"; // Link Color $footer_link_color = esc_html( get_theme_mod( 'setting_footer_link_color', '#0a88cc' ) ); $output .= "#footer .copyright a{color:{$footer_link_color};}"; // Output if( $output == '' ) return false; $str = array( "\t", "\r\n", "\r", "\n" ); $output = str_replace( $str, '', $output ); return $output; }