-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the Back to WP button in Fullscreen Mode (#20603)
- Loading branch information
1 parent
d8e0dd1
commit c7ed00e
Showing
7 changed files
with
63 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
29 changes: 23 additions & 6 deletions
29
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,14 +1,31 @@ | ||
.edit-post-fullscreen-mode-close__toolbar { | ||
.edit-post-fullscreen-mode-close.has-icon { | ||
// 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: flex; | ||
border-top: 0; | ||
border-bottom: 0; | ||
border-left: 0; | ||
margin: -9px 10px -8px -10px; | ||
padding: 9px 10px; | ||
align-items: center; | ||
align-self: stretch; | ||
border: none; | ||
background: #23282e; // WP-admin gray. | ||
color: $white; | ||
border-radius: 0; | ||
height: auto; | ||
width: $header-height; | ||
|
||
&:hover { | ||
background: #32373d !important; // WP-admin light-gray. | ||
color: $white !important; | ||
box-shadow: none !important; | ||
} | ||
|
||
&:active { | ||
color: $white; | ||
} | ||
} | ||
svg { | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
} |
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