change the name of style and remove unused
This commit is contained in:
parent
ee983734d6
commit
5fb5b95829
|
@ -11,27 +11,6 @@
|
|||
.find( '#tainacan-color-scheme-css' );
|
||||
}
|
||||
|
||||
// Site title.
|
||||
api( 'blogname', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-title a' ).text( to );
|
||||
} );
|
||||
} );
|
||||
|
||||
// Site tagline.
|
||||
api( 'blogdescription', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-description' ).text( to );
|
||||
} );
|
||||
} );
|
||||
|
||||
// Add custom-background-image body class when background image is added.
|
||||
api( 'background_image', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( 'body' ).toggleClass( 'custom-background-image', '' !== to );
|
||||
} );
|
||||
} );
|
||||
|
||||
// Color Scheme CSS.
|
||||
api.bind( 'preview-ready', function() {
|
||||
api.preview.bind( 'update-color-scheme-css', function( css ) {
|
||||
|
|
|
@ -123,7 +123,7 @@ function tainacan_get_color_schemes() {
|
|||
'#262626',
|
||||
'#1a1a1a',
|
||||
'#9adffd',
|
||||
'#e5e5e5',
|
||||
'#ffffff',
|
||||
'#c1c1c1',
|
||||
),
|
||||
),
|
||||
|
@ -133,7 +133,7 @@ function tainacan_get_color_schemes() {
|
|||
'#616a73',
|
||||
'#4d545c',
|
||||
'#c7c7c7',
|
||||
'#f2f2f2',
|
||||
'#ffffff',
|
||||
'#f2f2f2',
|
||||
),
|
||||
),
|
||||
|
@ -143,7 +143,7 @@ function tainacan_get_color_schemes() {
|
|||
'#ffffff',
|
||||
'#ff675f',
|
||||
'#640c1f',
|
||||
'#402b30',
|
||||
'#ffffff',
|
||||
'#402b30',
|
||||
),
|
||||
),
|
||||
|
@ -153,7 +153,7 @@ function tainacan_get_color_schemes() {
|
|||
'#3b3721',
|
||||
'#ffef8e',
|
||||
'#774e24',
|
||||
'#3b3721',
|
||||
'#ffffff',
|
||||
'#5b4d3e',
|
||||
),
|
||||
),
|
||||
|
@ -238,7 +238,7 @@ endif; // tainacan_sanitize_color_scheme
|
|||
*/
|
||||
function tainacan_color_scheme_css() {
|
||||
$color_scheme_option = get_theme_mod( 'color_scheme', 'default' );
|
||||
|
||||
|
||||
// Don't do anything if the default color scheme is selected.
|
||||
if ( 'default' === $color_scheme_option ) {
|
||||
return;
|
||||
|
@ -267,7 +267,7 @@ function tainacan_color_scheme_css() {
|
|||
|
||||
$color_scheme_css = tainacan_get_color_scheme_css( $colors );
|
||||
|
||||
wp_add_inline_style( 'tainacan-style', $color_scheme_css );
|
||||
wp_add_inline_style( 'custom-style', $color_scheme_css );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'tainacan_color_scheme_css' );
|
||||
|
||||
|
@ -312,28 +312,32 @@ function tainacan_get_color_scheme_css( $colors ) {
|
|||
'border_color' => '',
|
||||
) );
|
||||
|
||||
return '
|
||||
return <<<CSS
|
||||
/* Color Scheme */
|
||||
|
||||
body a,
|
||||
body a,
|
||||
body a:hover,
|
||||
.tainacan-title-page ul li,
|
||||
.tainacan-title-page ul li a,
|
||||
.tainacan-title-page ul li a:hover,
|
||||
.tainacan-list-post .blog-content h3 {
|
||||
color: '.$colors["link_color"].' !important;
|
||||
.tainacan-list-post .blog-content h3 ,
|
||||
.tainacan-list-post .blog-content h3 a:hover {
|
||||
color: {$colors['link_color']};
|
||||
}
|
||||
.tainacan-list-post .blog-post .blog-content .blog-read {
|
||||
color: '.$colors["main_text_color"].' !important;
|
||||
color: {$colors['main_text_color']};
|
||||
}
|
||||
.tainacan-title-page,
|
||||
.tainacan-list-post .blog-post .blog-content .blog-read {
|
||||
border-color: '.$colors["link_color"].' !important;
|
||||
.tainacan-list-post .blog-post .blog-content .blog-read,
|
||||
.tainacan-list-post .blog-post .blog-content .blog-read:hover {
|
||||
border-color: {$colors['link_color']};
|
||||
}
|
||||
.tainacan-list-post .blog-post .blog-content .blog-read {
|
||||
background-color: '.$colors["link_color"].' !important;
|
||||
.tainacan-list-post .blog-post .blog-content .blog-read,
|
||||
.tainacan-list-post .blog-post .blog-content .blog-read:hover {
|
||||
background-color: {$colors['link_color']};
|
||||
}
|
||||
|
||||
';
|
||||
CSS;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
@ -7,10 +7,13 @@
|
|||
<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
||||
rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
|
||||
<?php wp_head(); ?>
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
|
||||
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
|
||||
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
|
||||
<?php endif; ?>
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<body <?php body_class(); ?>>
|
||||
|
||||
<nav class="navbar navbar-expand-md navbar-light bg-white menu-shadow px-1">
|
||||
<div class="d-md-flex ml-md-auto mr-md-4">
|
||||
|
|
Loading…
Reference in New Issue