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

Fix box sizing for pseudo elements. #7545

Merged
merged 5 commits into from
Jul 19, 2018
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
1 change: 0 additions & 1 deletion core-blocks/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
height: 16px !important;
position: absolute;
background: theme( primary );
box-sizing: border-box;

.wp-block-image.is-focused & {
display: block;
Expand Down
1 change: 0 additions & 1 deletion core-blocks/spacer/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
position: absolute;
background: theme( primary );
padding: 0 3px 3px 0;
box-sizing: border-box;
cursor: se-resize;
left: 50% !important;
margin-left: -7.5px;
Expand Down
1 change: 0 additions & 1 deletion core-blocks/text-columns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
}

.wp-block-column {
box-sizing: border-box;
margin: 0 16px;
padding: 0;

Expand Down
8 changes: 6 additions & 2 deletions edit-post/assets/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ body.gutenberg-editor-page {
}

.gutenberg {
* {
box-sizing: border-box;
box-sizing: border-box;

*,
*:before,
*:after {
box-sizing: inherit;
}

select {
Expand Down
3 changes: 2 additions & 1 deletion edit-post/components/meta-boxes/meta-boxes-area/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
* other elements (such as .button) are unaffected by Gutenberg's style
* because of their higher specificity.
*/
* {
&__container,
.inside {
box-sizing: content-box;
}

Expand Down
1 change: 0 additions & 1 deletion editor/components/post-permalink/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
border: 1px solid $dark-opacity-light-500;
border-bottom: none;
background-clip: padding-box;
box-sizing: padding-box;

// put toolbar snugly to edge on mobile
margin-left: -$block-padding - 1px; // stack borders
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/color-palette/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ $color-palette-circle-spacing: 14px;
}

.components-color-palette__custom-color .components-color-palette__custom-color-gradient:before {
box-sizing: border-box;
content: '';
filter: blur( 6px ) saturate( 0.7 ) brightness( 1.1 );
display: block;
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/form-toggle/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ $toggle-border-width: 2px;
content: '';
display: inline-block;
vertical-align: top;
box-sizing: border-box;
background-color: $white;
border: $toggle-border-width solid $dark-gray-300;
width: $toggle-width;
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/range-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
background: $dark-gray-500;
border: 4px solid transparent;
background-clip: padding-box;
box-sizing: border-box;
}

@mixin range-track() {
Expand Down