Skip to content

Commit

Permalink
feat: fullscreen modal show the edit-post-fullscreen-mode-close button
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasguillot committed Apr 20, 2020
1 parent e289195 commit 0cc6d5d
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions src/components/template-modal/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,27 @@
&__screen-overlay {
animation: none;
background: white;
margin-top: 46px;
top: 46px;

@media only screen and ( min-width: 783px ) {
margin-left: 36px;
margin-top: 32px;
left: 36px;
top: 32px;

// Fullscreen mode
.is-fullscreen-mode & {
margin-left: 0;
margin-top: 0;
left: 60px;
top: 0;

.components-modal__header {
height: 61px;
}
}
}

@media only screen and ( min-width: 961px ) {
// Not folded sidebar
body:not( .folded ):not( .is-fullscreen-mode ) & {
margin-left: 160px;
left: 160px;
}
}
}
Expand Down Expand Up @@ -56,6 +60,19 @@
grid-template-rows: 1fr;
}

@media only screen and ( min-width: 783px ) {
// Fullscreen mode
.is-fullscreen-mode & {
bottom: 0;
height: auto;
left: 0;
margin: 0;
position: fixed;
right: 0;
top: 61px;
}
}

+ .is-primary {
position: absolute;
right: 24px;
Expand Down

0 comments on commit 0cc6d5d

Please sign in to comment.