- Timestamp:
- 11/12/2018 11:19:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/inc/color-patterns.php
r43860 r43892 27 27 */ 28 28 29 $saturation = absint( apply_filters( 'twentynineteen_custom_colors_saturation', 100 ) ); 30 $saturation = $saturation . '%'; 31 32 $lightness = absint( apply_filters( 'twentynineteen_custom_colors_lightness', 33 ) ); 33 $lightness = $lightness . '%'; 34 35 $lightness_hover = absint( apply_filters( 'twentynineteen_custom_colors_lightness_hover', 23 ) ); 36 $lightness_hover = $lightness_hover . '%'; 29 $saturation = absint( apply_filters( 'twentynineteen_custom_colors_saturation', 100 ) ); 30 $saturation = $saturation . '%'; 31 32 $lightness = absint( apply_filters( 'twentynineteen_custom_colors_lightness', 33 ) ); 33 $lightness = $lightness . '%'; 34 35 $lightness_hover = absint( apply_filters( 'twentynineteen_custom_colors_lightness_hover', 23 ) ); 36 $lightness_hover = $lightness_hover . '%'; 37 38 $lightness_selection = absint( apply_filters( 'twentynineteen_custom_colors_lightness_selection', 90 ) ); 39 $lightness_selection = $lightness_selection . '%'; 37 40 38 41 $theme_css = ' … … 55 58 .main-navigation .sub-menu, 56 59 .sticky-post, 57 .entry -content .wp-block-button .wp-block-button__link,58 . button, button, input[type="button"], input[type="reset"], input[type="submit"],59 .entry -content > .has-primary-background-color,60 .entry -content > *[class^="wp-block-"].has-primary-background-color,61 .entry -content > *[class^="wp-block-"] .has-primary-background-color,62 .entry -content > *[class^="wp-block-"].is-style-solid-color,63 .entry -content > *[class^="wp-block-"].is-style-solid-color .has-primary-background-color,64 .entry -content .wp-block-file .wp-block-file__button {60 .entry .entry-content .wp-block-button .wp-block-button__link, 61 .entry .button, button, input[type="button"], input[type="reset"], input[type="submit"], 62 .entry .entry-content > .has-primary-background-color, 63 .entry .entry-content > *[class^="wp-block-"].has-primary-background-color, 64 .entry .entry-content > *[class^="wp-block-"] .has-primary-background-color, 65 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color, 66 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color .has-primary-background-color, 67 .entry .entry-content .wp-block-file .wp-block-file__button { 65 68 background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ 66 69 } … … 88 91 .entry .entry-content .more-link:hover, 89 92 .main-navigation .main-menu > li > a + svg, 90 .comment-navigation .nav-previous a:hover, 91 .comment-navigation .nav-next a:hover, 93 .comment .comment-metadata > a:hover, 92 94 .comment .comment-metadata .comment-edit-link:hover, 93 95 #colophon .site-info a:hover, 94 96 .widget a, 95 .entry -content .wp-block-button.is-style-outline .wp-block-button__link,96 .entry -content .wp-block-button.is-style-outline .wp-block-button__link,97 .entry -content .wp-block-button.is-style-outline .wp-block-button__link,98 .entry -content > *[class^="wp-block-"] .has-primary-color,99 .entry -content > *[class^="wp-block-"].is-style-solid-color .has-primary-color {97 .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link, 98 .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link, 99 .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link, 100 .entry .entry-content > *[class^="wp-block-"] .has-primary-color, 101 .entry .entry-content > *[class^="wp-block-"].is-style-solid-color .has-primary-color { 100 102 color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ 101 103 } … … 105 107 * wp block quote 106 108 */ 107 .entry-content blockquote, 108 .entry-content .wp-block-quote:not(.is-large), 109 .entry-content .wp-block-quote:not(.is-style-large) { 109 blockquote, 110 .entry .entry-content blockquote, 111 .entry .entry-content .wp-block-quote:not(.is-large), 112 .entry .entry-content .wp-block-quote:not(.is-style-large) { 110 113 border-left-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ 111 114 } … … 146 149 .comment .comment-author .fn a:hover, 147 150 .comment-reply-link:hover, 151 .comment-navigation .nav-previous a:hover, 152 .comment-navigation .nav-next a:hover, 148 153 #cancel-comment-reply-link:hover, 149 154 .widget a:hover { … … 155 160 .main-navigation .sub-menu > li > a:hover:after, 156 161 .main-navigation .sub-menu > li > a:focus:after, 157 .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):hover, 158 .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):focus { 159 background: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */ 162 .main-navigation .sub-menu > li > .menu-item-link-return:hover, 163 .main-navigation .sub-menu > li > .menu-item-link-return:focus, 164 .main-navigation .sub-menu > li > a:not(.submenu-expand):hover, 165 .main-navigation .sub-menu > li > a:not(.submenu-expand):focus { 166 background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */ 167 } 168 169 /* Text selection colors */ 170 ::selection { 171 background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_selection . ' ); /* base: #005177; */ 172 } 173 ::-moz-selection { 174 background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_selection . ' ); /* base: #005177; */ 160 175 }'; 161 176
Note: See TracChangeset
for help on using the changeset viewer.