Skip to content

Commit

Permalink
Remove .block-editor selector dependency in block CSS (#27063)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored Nov 19, 2020
1 parent b686b9a commit 9636fcc
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/plain-text/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.block-editor .block-editor-plain-text {
.block-editor-plain-text {
box-shadow: none;
font-family: inherit;
font-size: inherit;
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/archives/editor.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.block-editor ul.wp-block-archives {
ul.wp-block-archives {
padding-left: 2.5em;
}
2 changes: 1 addition & 1 deletion packages/block-library/src/categories/editor.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.block-editor .wp-block-categories ul {
.wp-block-categories ul {
padding-left: 2.5em;

ul {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/editor.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.block-editor .wp-block-latest-posts {
.wp-block-latest-posts {
padding-left: 2.5em;
&.is-grid {
padding-left: 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/more/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
margin-bottom: $default-block-margin;
}

.block-editor .wp-block-more { // needs specificity
.wp-block-more {
display: block;
text-align: center;
white-space: nowrap;
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/rss/editor.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.block-editor .wp-block-rss {
.wp-block-rss {
padding-left: 2.5em;
&.is-grid {
padding-left: 0;
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/shortcode/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
}
}

.block-editor .blocks-shortcode__textarea,
.blocks-shortcode__textarea {
@include input-control;
}
2 changes: 1 addition & 1 deletion packages/block-library/src/tag-cloud/editor.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.block-editor .wp-block-tag-cloud {
.wp-block-tag-cloud {
a {
display: inline-block;
margin-right: 5px;
Expand Down

0 comments on commit 9636fcc

Please sign in to comment.