-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Gutenberg: Apply box-sizing: border-box to the entire section #27928
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,14 @@ $gutenberg-theme-toggle: #11a0d2; | |
//======================================================== | ||
|
||
.is-section-gutenberg-editor { | ||
box-sizing: border-box !important; | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: inherit !important; | ||
} | ||
|
||
.layout__content { | ||
padding-left: 32px; | ||
padding-top: 0; | ||
|
@@ -45,40 +53,24 @@ $gutenberg-theme-toggle: #11a0d2; | |
top: 0; | ||
} | ||
|
||
|
||
@media (min-width: 600px) { | ||
.edit-post-sidebar { | ||
top: 57px; | ||
top: 56px; | ||
} | ||
} | ||
|
||
.editor-inserter__menu { | ||
.editor-inserter__search { | ||
width: auto; | ||
} | ||
.editor-block-types-list__list-item { | ||
box-sizing: border-box; | ||
} | ||
.edit-post-layout .editor-post-publish-panel { | ||
top: 0; | ||
} | ||
|
||
.edit-post-sidebar { | ||
.components-panel__body { | ||
&:first-child { | ||
margin-top: 0; | ||
} | ||
&:last-child { | ||
margin-bottom: 0; | ||
} | ||
&.editor-block-inspector__advanced { | ||
margin-bottom: -16px; | ||
} | ||
} | ||
|
||
.editor-block-inspector__card { | ||
margin-bottom: 0; | ||
} | ||
.editor-inserter__menu .editor-inserter__search { | ||
width: auto; | ||
} | ||
|
||
.editor-post-last-revision__title { | ||
width: auto; | ||
.editor-block-list__block { | ||
ul ul, ol ol { | ||
list-style-type: circle; | ||
} | ||
} | ||
|
||
|
@@ -108,28 +100,7 @@ $gutenberg-theme-toggle: #11a0d2; | |
text-decoration: none; | ||
top: 5px; | ||
width: auto; | ||
z-index: 100000; /* Above WP toolbar. */ | ||
} | ||
} | ||
|
||
.editor-block-list__block { | ||
ul ul, ol ol { | ||
list-style-type: circle; | ||
z-index: 100000; // Above WP toolbar. | ||
} | ||
} | ||
} | ||
|
||
//needed for oembed iframes to appear | ||
.wp-block-embed__wrapper > iframe { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still need this, because There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I went through the original testing steps too and confirmed that it works as expected even without these styles. 👍Might be the case that package updates made this fix obsolete. |
||
width: 100%; | ||
} | ||
|
||
//block icons sizing | ||
.components-toolbar__control.components-button > svg, | ||
.editor-block-settings-menu__content { | ||
box-sizing: border-box; | ||
} | ||
|
||
.components-panel__header.edit-post-sidebar-header.edit-post-sidebar__panel-tabs { | ||
border-bottom: 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.