Skip to content

Commit

Permalink
Rework layout of main post revisions containers (#20232)
Browse files Browse the repository at this point in the history
  • Loading branch information
frontdevde authored Nov 27, 2017
1 parent cf1be54 commit 1c76468
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
13 changes: 2 additions & 11 deletions client/post-editor/editor-diff-viewer/style.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
/** @format */
.editor-diff-viewer {
flex: 1;
margin: 0;
position: absolute;
top: 120px;
bottom: 72px;
left: 0;
width: 100%;
box-sizing: border-box;
padding: 24px 32px 32px 32px;
box-sizing: border-box;
overflow-y: auto;

@include breakpoint( '>660px' ) {
top: 0;
width: calc(100% - 230px);
}

.editor-diff-viewer__title {
font-family: $serif;
font-size: 32px;
Expand Down
19 changes: 9 additions & 10 deletions client/post-editor/editor-revisions-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@
@import 'components/accordion/style';

.editor-revisions-list {
position: absolute;
top: 0;
right: 0;
position: relative;
background: $gray-light;

@include breakpoint( '<660px' ) {
left: 0;
height: 120px;
}
flex-basis: 120px;
flex-grow: 0;
flex-shrink: 0;

@include breakpoint( '>660px' ) {
border-left: 1px solid darken($sidebar-bg-color, 5%);
z-index: 1; // Put the list above the action-buttons:before overlay gradient. -shaun
width: 230px;
bottom: 73px;
flex-basis: 230px;
}
}

Expand Down Expand Up @@ -54,6 +49,10 @@
bottom: 0;
left: 0;
overflow-y: auto;

@include breakpoint( '<660px' ) {
overflow-y: hidden;
}
}

.editor-revisions-list__list {
Expand Down
13 changes: 10 additions & 3 deletions client/post-editor/editor-revisions/style.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
/** @format */
.editor-revisions__dialog {
display: flex;
padding: 0;
overflow-x: hidden;
}

.editor-revisions__wrapper {
height: 100vh;
width: 100vw;
display: flex;
width: 90vw;
height: calc(90vh - 73px);

@include breakpoint( '<660px' ) {
flex-direction: column-reverse;
width: 100vw;
height: calc(100vh - 73px);
}
}

.editor-revisions__wpadmin-link {
Expand Down

0 comments on commit 1c76468

Please sign in to comment.