Skip to content

Commit 46d633b

Browse files
Bundled Theme: Twenty Thirteen: scope .sidebar .entry-meta to .hentry > to avoid compressing block-rendered meta.
The descendant selector `.sidebar .entry-meta` (and siblings .entry-header / .entry-content / .entry-summary) applies a 376px right padding to any matching element when the Secondary Widget Area is active. Block-rendered `.entry-meta` (e.g. emitted by block plugins such as Newspack Blog Posts, or any custom block markup) inherits the padding and is squeezed into ~168px. Scoping each selector to `.hentry > ` preserves the theme's own classic-template layout while leaving block-emitted .entry-meta unaffected. Same change mirrored in rtl.css. Props gustavohilario. Fixes #65306.
1 parent 7fc4547 commit 46d633b

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎src/wp-content/themes/twentythirteen/rtl.css‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ div.nav-menu > ul {
149149
* ----------------------------------------------------------------------------
150150
*/
151151

152-
.sidebar .entry-header,
153-
.sidebar .entry-content,
154-
.sidebar .entry-summary,
155-
.sidebar .entry-meta {
152+
.sidebar .hentry > .entry-header,
153+
.sidebar .hentry > .entry-content,
154+
.sidebar .hentry > .entry-summary,
155+
.sidebar .hentry > .entry-meta {
156156
padding-left: 376px;
157157
padding-right: 60px;
158158
}

‎src/wp-content/themes/twentythirteen/style.css‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,10 +1025,10 @@ ul.nav-menu .focus > ul,
10251025
width: 100%;
10261026
}
10271027

1028-
.sidebar .entry-header,
1029-
.sidebar .entry-content,
1030-
.sidebar .entry-summary,
1031-
.sidebar .entry-meta {
1028+
.sidebar .hentry > .entry-header,
1029+
.sidebar .hentry > .entry-content,
1030+
.sidebar .hentry > .entry-summary,
1031+
.sidebar .hentry > .entry-meta {
10321032
max-width: 1040px;
10331033
padding: 0 376px 0 60px;
10341034
}

0 commit comments

Comments
 (0)