[wp-trac] [WordPress Trac] #49318: Twenty-Twenty: content font CSS selector is too important
WordPress Trac
noreply at wordpress.org
Fri Feb 7 06:38:42 UTC 2020
#49318: Twenty-Twenty: content font CSS selector is too important
-------------------------------------------------+-------------------------
Reporter: alexandreb3 | Owner:
| ianbelanger
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.3.3
Component: Bundled Theme | Version: 5.3
Severity: normal | Resolution:
Keywords: has-patch needs-dev-note fixed- | Focuses: css
major |
-------------------------------------------------+-------------------------
Comment (by alexandreb3):
Hi,
With additional testing I noticed that the enhancement had an impact on
content headings (they don't have the correct font anymore).
To fix this, we need to update the code as the following :
- For main stylesheet :
https://themes.trac.wordpress.org/browser/twentytwenty/1.1/style.css?rev=122235#L3522
- For RTL stylesheet :
https://themes.trac.wordpress.org/browser/twentytwenty/1.1/style-
rtl.css?rev=122235#L3500
{{{
/* Font Families ----------------------------- */
.entry-content{
font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond,
"Times New Roman", serif;
letter-spacing: normal;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content cite,
.entry-content figcaption,
.entry-content .wp-caption-text {
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
Helvetica, sans-serif;
}
@supports ( font-variation-settings: normal ) {
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content cite,
.entry-content figcaption,
.entry-content .wp-caption-text {
font-family: "Inter var", -apple-system,
BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
}
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49318#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list