Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Tweak width of gutenberg editor wide page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman committed Jul 16, 2018
1 parent 88915a7 commit 572e7ff
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .dev/sass/admin/gutenberg-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body.primer-gutenberg-wide {
.editor-post-title__block,
.editor-block-list__block,
.editor-default-block-appender {
max-width: 800px;
max-width: none;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion assets/css/admin/gutenberg-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ body.primer-gutenberg-wide .edit-post-text-editor .editor-writing-flow__click-re
body.primer-gutenberg-wide .edit-post-text-editor .editor-post-title__block,
body.primer-gutenberg-wide .edit-post-text-editor .editor-block-list__block,
body.primer-gutenberg-wide .edit-post-text-editor .editor-default-block-appender {
max-width: 800px; }
max-width: none; }

.components-panel .primer-layout-wrap ul li img {
max-width: 85%; }
2 changes: 1 addition & 1 deletion assets/css/admin/gutenberg-editor.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions assets/css/admin/layouts-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
display: block; }

.primer-layout-wrap ul {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
margin: 0;
list-style-type: none !important; }
Expand Down Expand Up @@ -42,9 +46,13 @@

#side-sortables .primer-layout-wrap ul,
#customize-control-layout .primer-layout-wrap ul {
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap; }
#side-sortables .primer-layout-wrap ul li,
#customize-control-layout .primer-layout-wrap ul li {
-webkit-flex-basis: -webkit-calc(25% - 0.6em);
-ms-flex-preferred-size: calc(25% - 0.6em);
flex-basis: calc(25% - 0.6em); }

@media only screen and (max-width: 850px) {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/admin/layouts-rtl.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions assets/css/admin/layouts.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
display: block; }

.primer-layout-wrap ul {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
margin: 0;
list-style-type: none !important; }
Expand Down Expand Up @@ -42,9 +46,13 @@

#side-sortables .primer-layout-wrap ul,
#customize-control-layout .primer-layout-wrap ul {
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap; }
#side-sortables .primer-layout-wrap ul li,
#customize-control-layout .primer-layout-wrap ul li {
-webkit-flex-basis: -webkit-calc(25% - 0.6em);
-ms-flex-preferred-size: calc(25% - 0.6em);
flex-basis: calc(25% - 0.6em); }

@media only screen and (max-width: 850px) {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/admin/layouts.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion style-rtl.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@charset "UTF-8";
/**
* Theme Name: Primer
* Theme URI: https://github.com/godaddy/wp-primer-theme
Expand Down
1 change: 0 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@charset "UTF-8";
/**
* Theme Name: Primer
* Theme URI: https://github.com/godaddy/wp-primer-theme
Expand Down

0 comments on commit 572e7ff

Please sign in to comment.