Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block Editor: Remove legacy "editor-" class name compatibility #49

Merged
merged 1 commit into from
May 6, 2020
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion build/glutenblocks.editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/glutenblocks.style.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/button/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
display: inline-block;
}

.editor-rich-text {
.block-editor-rich-text__editable {
display: inline-block;
}

Expand Down Expand Up @@ -91,7 +91,7 @@
}
}

.editor-block-styles {
.block-editor-block-styles {
.wp-block-glutenblocks-button {
.gb-button {
padding: 0.375rem 1.2rem !important;
Expand Down
6 changes: 3 additions & 3 deletions packages/jumbotron-carousel/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
position: relative;
height: auto;

> .editor-rich-text {
> .block-editor-rich-text__editable {
position: absolute;
bottom: 0;
z-index: 100;
Expand All @@ -11,12 +11,12 @@
display: inline-block;
}

> .editor-inner-blocks > .editor-block-list__layout {
> .block-editor-inner-blocks > .block-editor-block-list__layout {
.wp-block-glutenblocks-hero {
padding-bottom: 15px;
}

> div > .editor-default-block-appender {
> div > .block-editor-default-block-appender {
display: none;
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/jumbotron/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
position: relative;
height: auto;

> .editor-rich-text {
> .block-editor-rich-text__editable {
position: absolute;
bottom: 0;
z-index: 100;
Expand All @@ -11,12 +11,12 @@
display: inline-block;
}

> .editor-inner-blocks > .editor-block-list__layout {
> .block-editor-inner-blocks > .block-editor-block-list__layout {
.wp-block-glutenblocks-hero {
padding-bottom: 15px;
}

> div > .editor-default-block-appender {
> div > .block-editor-default-block-appender {
display: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/link/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
flex-basis: 75%;
}

.editor-rich-text {
.block-editor-rich-text__editable {
display: inline-block;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/list-link/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
flex-basis: 75%;
}

.editor-rich-text {
.block-editor-rich-text__editable {
display: inline-block;
}

Expand Down
17 changes: 3 additions & 14 deletions packages/media/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,39 +55,28 @@
grid-area: resizer;
}

.editor-media-container__resizer {
.block-editor-media-container__resizer {
grid-area: media-text-media;
align-self: center;
width: 100% !important;
}

.is-image-fill .editor-media-container__resizer {
.is-image-fill .block-editor-media-container__resizer {
// The resizer sets an inline height but for the image fill we set it to full height.
height: 100% !important;
}

.editor-inner-blocks {
.block-editor-inner-blocks {
word-break: break-word;
grid-area: media-text-content;
text-align: initial;
padding: 0 8% 0 8%;
}

& > .editor-inner-blocks > .editor-block-list__layout > .editor-block-list__block {
max-width: unset;
}

& > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block {
max-width: unset;
}

.block-editor-inner-blocks {
word-break: break-word;
grid-area: media-text-content;
text-align: initial;
padding: 0 8% 0 8%;
}

.block-library-media-text__media-container video {
vertical-align: middle;
width: 100%;
Expand Down
26 changes: 13 additions & 13 deletions packages/row/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@
//pointer-events: none;

&.is-hovered {
> .editor-block-list__block-edit:before {
> .block-editor-block-list__block-edit:before {
content: none;
}

.editor-block-list__breadcrumb {
.block-editor-block-list__breadcrumb {
display: none;
}
}
}

.editor-block-list__layout {
.block-editor-block-list__layout {
margin-left: 0;
margin-right: 0;

.editor-block-list__block {
.block-editor-block-list__block {
max-width: none;
}
}

> .editor-inner-blocks {
> .editor-block-list__layout {
> .block-editor-inner-blocks {
> .block-editor-block-list__layout {
display: flex;
flex-wrap: wrap;

Expand All @@ -50,7 +50,7 @@
overflow-wrap: break-word;
flex-basis: 100%;

> .editor-block-list__block-edit {
> .block-editor-block-list__block-edit {
margin-top: 0;
margin-bottom: 0;

Expand All @@ -59,11 +59,11 @@
right: 0;
}

> .editor-block-contextual-toolbar {
> .block-editor-block-contextual-toolbar {
margin-left: -1px;
}

> div > .editor-inner-blocks {
> div > .block-editor-inner-blocks {
margin-top: -28px;
margin-bottom: -28px;
}
Expand All @@ -73,7 +73,7 @@
}

/* stylelint-disable */
.editor-block-list__block[data-align="full"] > .editor-block-list__layout > .editor-inner-blocks {
.block-editor-block-list__block[data-align="full"] > .block-editor-block-list__layout > .block-editor-inner-blocks {
padding-left: 14px;
padding-right: 14px;
}
Expand All @@ -82,7 +82,7 @@

@media (min-width: 600px) {
.wp-block-glutenblocks-row {
.editor-inner-blocks > .editor-block-list__layout {
.block-editor-inner-blocks > .block-editor-block-list__layout {
flex-wrap: nowrap;

> [data-type="glutenblocks/column"] {
Expand All @@ -103,7 +103,7 @@
}
}

.editor-block-list__block[data-align="full"] & > .editor-inner-blocks {
.block-editor-block-list__block[data-align="full"] & > .block-editor-inner-blocks {
padding-left: 60px;
padding-right: 60px;
}
Expand All @@ -115,7 +115,7 @@
width: 45px;
}

.gb-row-has-1-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="glutenblocks/column"] {
.gb-row-has-1-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="glutenblocks/column"] {
flex-basis: 100%;
margin-right: 14px !important;
}