updated theme Twenty Nineteen
version 2.8
This commit is contained in:
@ -72,8 +72,8 @@ function twentynineteen_custom_colors_css() {
|
||||
* Set background for:
|
||||
* - featured image :before
|
||||
* - featured image :before
|
||||
* - post thumbmail :before
|
||||
* - post thumbmail :before
|
||||
* - post thumbnail :before
|
||||
* - post thumbnail :before
|
||||
* - Submenu
|
||||
* - Sticky Post
|
||||
* - buttons
|
||||
@ -212,44 +212,45 @@ function twentynineteen_custom_colors_css() {
|
||||
* - links
|
||||
* - blockquote
|
||||
* - pullquote (solid color)
|
||||
* - buttons
|
||||
* - buttons, including buttons in the file and search blocks.
|
||||
*/
|
||||
.editor-block-list__layout .editor-block-list__block a,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color),
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color),
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color),
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink {
|
||||
.editor-styles-wrapper .wp-block a,
|
||||
.editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__textlink, /* Before 5.8 */
|
||||
.editor-styles-wrapper .wp-block .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), /* Before 5.8 */
|
||||
.editor-styles-wrapper .wp-block.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
|
||||
/* Before 5.8, the following hover style is needed to override the default color when the block is selected. */
|
||||
.editor-styles-wrapper .wp-block .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color) {
|
||||
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large),
|
||||
.editor-styles-wrapper .editor-block-list__layout .wp-block-freeform blockquote {
|
||||
.editor-styles-wrapper .wp-block.wp-block-quote:not(.is-large):not(.is-style-large),
|
||||
.editor-styles-wrapper .wp-block .wp-block-freeform blockquote, /* Before 5.8 */
|
||||
.editor-styles-wrapper .wp-block.wp-block-freeform blockquote {
|
||||
border-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-pullquote.is-style-solid-color:not(.has-background-color) {
|
||||
/* Pullquote: The solid color variation was removed in 5.9, the CSS is kept for backwards compatibility. */
|
||||
.editor-styles-wrapper .wp-block .wp-block-pullquote.is-style-solid-color:not(.has-background-color), /* Before 5.8 */
|
||||
.editor-styles-wrapper .wp-block.wp-block-pullquote.is-style-solid-color:not(.has-background-color),
|
||||
.editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__button, /* Before 5.8, and when the block is aligned. */
|
||||
.editor-styles-wrapper .wp-block.wp-block-file .wp-block-file__button,
|
||||
.editor-styles-wrapper .wp-block .wp-block-button:not(.is-style-outline) .wp-block-button__link,
|
||||
.editor-styles-wrapper .wp-block .wp-block-search .wp-block-search__button, /* Before 5.8, and when the block is aligned. */
|
||||
.editor-styles-wrapper .wp-block.wp-block-search .wp-block-search__button {
|
||||
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__button,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
|
||||
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
/* Hover colors */
|
||||
.editor-block-list__layout .editor-block-list__block a:hover,
|
||||
.editor-block-list__layout .editor-block-list__block a:active,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink:hover {
|
||||
/* Link hover colors */
|
||||
.editor-styles-wrapper .wp-block a:hover,
|
||||
.editor-styles-wrapper .wp-block a:active,
|
||||
.editor-styles-wrapper .wp-block.wp-block-file .wp-block-file__textlink:hover {
|
||||
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */
|
||||
}
|
||||
|
||||
/* Do not overwrite solid color pullquote or cover links */
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-pullquote.is-style-solid-color a,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-cover a {
|
||||
.editor-styles-wrapper .wp-block .wp-block-pullquote.is-style-solid-color a, /* Before 5.8 */
|
||||
.editor-styles-wrapper .wp-block.wp-block-pullquote.is-style-solid-color a,
|
||||
.editor-styles-wrapper .wp-block.wp-block-cover a {
|
||||
color: inherit;
|
||||
}
|
||||
';
|
||||
|
@ -100,7 +100,7 @@ add_filter( 'get_the_archive_title', 'twentynineteen_get_the_archive_title' );
|
||||
/**
|
||||
* Adds custom 'sizes' attribute to responsive image functionality for post thumbnails.
|
||||
*
|
||||
* @origin Twenty Nineteen 1.0
|
||||
* @since Twenty Nineteen 1.0
|
||||
*
|
||||
* @param string[] $attr Array of attribute values for the image markup, keyed by attribute name.
|
||||
* See wp_get_attachment_image().
|
||||
@ -163,7 +163,8 @@ add_filter( 'wp_nav_menu', 'twentynineteen_add_ellipses_to_nav', 10, 2 );
|
||||
* Adjustments to menu attributes to support WCAG 2.0 recommendations
|
||||
* for flyout and dropdown menus.
|
||||
*
|
||||
* @ref https://www.w3.org/WAI/tutorials/menus/flyout/
|
||||
* @link https://www.w3.org/WAI/tutorials/menus/flyout/
|
||||
*
|
||||
* @param array $atts {
|
||||
* The HTML attributes applied to the menu item's `<a>` element, empty strings are ignored.
|
||||
*
|
||||
|
Reference in New Issue
Block a user