-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider making Fullscreen Mode effects visible only on larger screens (
#13425) * Hide the fullscreen "exit" icon on small screens When fullscreen mode is active, we place an exit/back button in the upper left corner of the screen to give users a way to exit the editor. This button persists on small screens, even though Fullscreen Mode cannot be toggled at that screen size. This commit hides the exit/back icon at small screen sizes. * Migrate more fullscreen rules to medium+ breakpoints only. * Update style.scss
- Loading branch information
Showing
7 changed files
with
43 additions
and
53 deletions.
There are no files selected for viewing
45 changes: 24 additions & 21 deletions
45
packages/edit-post/src/components/fullscreen-mode/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
packages/edit-post/src/components/header/fullscreen-mode-close/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
.edit-post-fullscreen-mode-close__toolbar { | ||
border-top: 0; | ||
border-bottom: 0; | ||
border-left: 0; | ||
margin: -9px 10px -9px -10px; | ||
padding: 9px 10px; | ||
// Do not show the toolbar icon on small screens, | ||
// when Fullscreen Mode is not an option in the "More" menu. | ||
display: none; | ||
|
||
@include break-medium() { | ||
display: block; | ||
border-top: 0; | ||
border-bottom: 0; | ||
border-left: 0; | ||
margin: -9px 10px -9px -10px; | ||
padding: 9px 10px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters