Skip to content

Commit

Permalink
Rework it all again with percentages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias committed Jun 7, 2017
1 parent aaeb881 commit b7888a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
7 changes: 4 additions & 3 deletions blocks/library/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@
&[data-align="left"] {
float: left;
margin-right: $block-padding;
margin-left: calc( 50vw - 500px);
}

&[data-align="right"] {
float: right;
margin-left: $block-padding;
margin-right: calc( 50vw - 500px);
}

&[data-align="wide"] {
margin-left: -24%;
margin-right: -24%;
max-width: 1100px;
}

&[data-align="full"] {
grid-column: full;
max-width: 100%;
padding-left: 0;
padding-right: 0;
box-sizing: border-box;
Expand Down
11 changes: 4 additions & 7 deletions editor/modes/visual-editor/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.editor-visual-editor {
margin: 0 auto;
padding: 50px 0;
padding: 50px 0; // Floating up/down arrows invisible

&,
& p {
Expand All @@ -21,15 +21,12 @@
.editor-visual-editor {
margin-left: auto;
margin-right: auto;
> div {
display: grid;
grid-gap: 20px;
grid-template-columns: [full-start] minmax(1em, 1fr) [content-start] minmax(0, 40em) [content-end] minmax(1em, 1fr) [full-end];
}
}

.editor-visual-editor__block {
grid-column: main;
margin-left: auto;
margin-right: auto;
max-width: $visual-editor-max-width;
position: relative;
padding: $block-padding;
transition: 0.2s border-color;
Expand Down

0 comments on commit b7888a8

Please sign in to comment.