- Timestamp:
- 11/19/2018 09:26:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/inc/color-patterns.php
r43904 r43909 9 9 10 10 /** 11 * Generate the CSS for the current custom color scheme.11 * Generate the CSS for the current primary color. 12 12 */ 13 13 function twentynineteen_custom_colors_css() { 14 14 15 if ( 'default' === get_theme_mod( ' colorscheme', 'default' ) ) {15 if ( 'default' === get_theme_mod( 'primary_color', 'default' ) ) { 16 16 $primary_color = 199; 17 17 } else { 18 $primary_color = absint( get_theme_mod( ' colorscheme_primary_hue', 199 ) );18 $primary_color = absint( get_theme_mod( 'primary_color_hue', 199 ) ); 19 19 } 20 20 … … 61 61 .main-navigation .sub-menu, 62 62 .sticky-post, 63 .entry .entry-content .wp-block-button .wp-block-button__link ,63 .entry .entry-content .wp-block-button .wp-block-button__link:not(.has-background), 64 64 .entry .button, button, input[type="button"], input[type="reset"], input[type="submit"], 65 65 .entry .entry-content > .has-primary-background-color, … … 67 67 .entry .entry-content > *[class^="wp-block-"] .has-primary-background-color, 68 68 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color, 69 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color 69 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color.has-primary-background-color, 70 70 .entry .entry-content .wp-block-file .wp-block-file__button { 71 71 background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ … … 86 86 */ 87 87 a, 88 a: not(.button):visited,88 a:visited, 89 89 .main-navigation .main-menu > li, 90 90 .main-navigation ul.main-menu > li > a, … … 98 98 #colophon .site-info a:hover, 99 99 .widget a, 100 .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link, 101 .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link, 102 .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link, 100 .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), 101 .entry .entry-content > .has-primary-color, 103 102 .entry .entry-content > *[class^="wp-block-"] .has-primary-color, 104 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color .has-primary-color { 103 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-primary-color, 104 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-primary-color p { 105 105 color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ 106 106 } … … 148 148 .main-navigation .main-menu > li > a:hover, 149 149 .main-navigation .main-menu > li > a:hover + svg, 150 .post-navigation .nav-links a:hover, 150 151 .post-navigation .nav-links a:hover .post-title, 151 152 .author-bio .author-description .author-link:hover, 153 .entry .entry-content > .has-secondary-color, 154 .entry .entry-content > *[class^="wp-block-"] .has-secondary-color, 155 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-secondary-color, 156 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-secondary-color p, 152 157 .comment .comment-author .fn a:hover, 153 158 .comment-reply-link:hover, … … 166 171 .main-navigation .sub-menu > li > .menu-item-link-return:focus, 167 172 .main-navigation .sub-menu > li > a:not(.submenu-expand):hover, 168 .main-navigation .sub-menu > li > a:not(.submenu-expand):focus { 173 .main-navigation .sub-menu > li > a:not(.submenu-expand):focus, 174 .entry .entry-content > .has-secondary-background-color, 175 .entry .entry-content > *[class^="wp-block-"].has-secondary-background-color, 176 .entry .entry-content > *[class^="wp-block-"] .has-secondary-background-color, 177 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color.has-secondary-background-color { 169 178 background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */ 170 179 }
Note: See TracChangeset
for help on using the changeset viewer.