mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 12:00:03 +01:00
Twenty Nineteen: Fixes Button block not changing appearance settings.
The Button block isn't reflecting appearance settings. This fix keeps the default as font-weight bold but also adds support for other weights. Props pranitdugad, pitamdey, sabernhardt. Fixes #61437. git-svn-id: https://develop.svn.wordpress.org/trunk@58851 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d842ee4598
commit
8b2ff8636f
@ -245,6 +245,14 @@
|
||||
&.has-custom-font-size .wp-block-button__link {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
&[style*="font-weight"] .wp-block-button__link {
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
&[style*="text-decoration"] .wp-block-button__link {
|
||||
text-decoration: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
//! Latest posts, categories, archives
|
||||
|
@ -1027,6 +1027,16 @@ figcaption,
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.wp-block-buttons[style*="font-weight"] .wp-block-button__link,
|
||||
.wp-block-button[style*="font-weight"] .wp-block-button__link {
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
.wp-block-buttons[style*="text-decoration"] .wp-block-button__link,
|
||||
.wp-block-button[style*="text-decoration"] .wp-block-button__link {
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
.wp-block-search .wp-block-search__button {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-size: 0.88889em;
|
||||
|
@ -425,6 +425,18 @@ figcaption,
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-buttons,
|
||||
.wp-block-button {
|
||||
|
||||
&[style*="font-weight"] .wp-block-button__link {
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
&[style*="text-decoration"] .wp-block-button__link {
|
||||
text-decoration: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-search {
|
||||
.wp-block-search__button {
|
||||
@include font-family( $font__heading );
|
||||
|
@ -5569,6 +5569,16 @@ body.page .main-navigation {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-buttons[style*="font-weight"] .wp-block-button__link,
|
||||
.entry .entry-content .wp-block-button[style*="font-weight"] .wp-block-button__link {
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-buttons[style*="text-decoration"] .wp-block-button__link,
|
||||
.entry .entry-content .wp-block-button[style*="text-decoration"] .wp-block-button__link {
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-archives,
|
||||
.entry .entry-content .wp-block-categories,
|
||||
.entry .entry-content .wp-block-latest-posts {
|
||||
|
@ -5581,6 +5581,16 @@ body.page .main-navigation {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-buttons[style*="font-weight"] .wp-block-button__link,
|
||||
.entry .entry-content .wp-block-button[style*="font-weight"] .wp-block-button__link {
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-buttons[style*="text-decoration"] .wp-block-button__link,
|
||||
.entry .entry-content .wp-block-button[style*="text-decoration"] .wp-block-button__link {
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-archives,
|
||||
.entry .entry-content .wp-block-categories,
|
||||
.entry .entry-content .wp-block-latest-posts {
|
||||
|
Loading…
x
Reference in New Issue
Block a user