Skip to content

Commit a245ead

Browse files
alshakeroalshakerot-hamanoyouknowriad
authored
Editor: Move editor-sidebar CSS reset closer to its target (WordPress#71096)
Co-authored-by: alshakero <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: youknowriad <[email protected]>
1 parent 74c71e2 commit a245ead

File tree

6 files changed

+7
-25
lines changed

6 files changed

+7
-25
lines changed

packages/edit-post/src/style.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ body.js.block-editor-page {
1515
}
1616
}
1717

18-
// Target the editor UI excluding the non-iframed visual editor contents, metaboxes
19-
// and custom fields areas.
20-
.editor-header,
21-
.editor-text-editor,
22-
.editor-sidebar,
23-
.editor-post-publish-panel,
2418
.edit-post-visual-editor.is-iframed {
2519
@include reset;
2620
}

packages/edit-site/src/components/global-styles-sidebar/style.scss

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
.editor-sidebar {
2-
width: $sidebar-width;
3-
4-
> .components-panel {
5-
border-left: 0;
6-
border-right: 0;
7-
margin-bottom: -1px;
8-
margin-top: -1px;
9-
10-
> .components-panel__header {
11-
background: $gray-100;
12-
}
13-
}
14-
15-
.block-editor-block-inspector__card {
16-
margin: 0;
17-
}
18-
}
19-
201
.edit-site-global-styles-sidebar {
212
display: flex;
223
flex-direction: column;

packages/editor/src/components/header/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.editor-header {
2+
@include reset;
23
height: $header-height;
34
background: $white;
45
display: grid;

packages/editor/src/components/post-publish-panel/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
}
199199

200200
.editor-post-publish-panel {
201+
@include reset;
201202
position: fixed;
202203
z-index: z-index(".editor-post-publish-panel");
203204
background: $white;

packages/editor/src/components/sidebar/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@
1414
.editor-post-summary .components-v-stack:empty {
1515
display: none;
1616
}
17+
18+
.editor-sidebar {
19+
@include reset;
20+
}

packages/editor/src/components/text-editor/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.editor-text-editor {
2+
@include reset;
23
position: relative;
34
width: 100%;
45
background-color: $white;

0 commit comments

Comments
 (0)