Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the Settings button CSS. #14475

Merged
merged 2 commits into from
Apr 10, 2019
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