Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions packages/edit-post/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,17 @@
// Header toggle buttons.
&.is-toggled {
color: $white;
}

// Put the gray background on a separate layer, so as to match the size of the publish button (34px).
&.is-toggled::before {
content: "";
border-radius: $radius-round-rectangle;
position: absolute;
z-index: -1;
background: $dark-gray-500;
top: 1px;
right: 1px;
bottom: 1px;
left: 1px;
margin: 1px;
padding: 7px;
}

// The !important in this ruleset need to override the pile of :not() selectors used in the icon-button.
&.is-toggled:hover,
&.is-toggled:focus {
box-shadow: 0 0 0 $border-width $dark-gray-500, inset 0 0 0 $border-width $white;
color: $white;
background: $dark-gray-500;
box-shadow: 0 0 0 $border-width $dark-gray-500, inset 0 0 0 $border-width $white !important;
color: $white !important;
background: $dark-gray-500 !important;
}

// Make editor header bar buttons bigger to match IconButtons.
Expand Down