Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/block-library/src/latest-comments/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Reset the browser's default `padding-inline-start: 40px` on `<ol>`.
// Using `:where` keeps specificity at 0 so global styles, theme.json,
// and inspector controls can override it without difficulty.
:where(.wp-block-latest-comments) {
padding-left: 0;
}

// Lower specificity - target list element.
ol.wp-block-latest-comments {
// Removes left spacing in Customizer Widgets screen.
Expand Down Expand Up @@ -26,13 +33,6 @@ ol.wp-block-latest-comments {
}
}

// Higher specificity - target list via wrapper.
.wp-block-latest-comments .wp-block-latest-comments {
// Remove left spacing. Higher specificity required to
// override default wp-block layout styles in the Post/Site editor.
padding-left: 0;
}

.wp-block-latest-comments__comment {
list-style: none;
margin-bottom: 1em;
Expand Down
Loading