Skip to content

Commit

Permalink
Masterbar: style Recovery mode button (#12485)
Browse files Browse the repository at this point in the history
The button was added in #12467.
This commit styles it so:
- It looks similar to the core Recovery mode button when seeing the default Masterbar.
- It uses the Calypso colors when the Masterbar is loaded by a user using Calypsoify
  • Loading branch information
jeherve committed Jun 27, 2019
1 parent a91891f commit c2333a6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/calypsoify/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ $gray-darken-30: $muriel-gray-600;

// Alerts
$alert-yellow: $muriel-hot-yellow-400;
$alert-orange: $muriel-hot-orange-500;
$alert-red: $muriel-hot-red-400;
$alert-green: $muriel-hot-green-400;
$alert-purple: $muriel-hot-purple-400;
Expand Down
4 changes: 4 additions & 0 deletions modules/calypsoify/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,10 @@ body,
font-size: 24px;
line-height: 1.45;
}

li#wp-admin-bar-recovery-mode {
background-color: $alert-orange !important;
}
}

/* WP Admin UI Mods */
Expand Down
10 changes: 10 additions & 0 deletions modules/masterbar/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@
font-size: 28px;
}

.jetpack-masterbar #wpadminbar #wp-admin-bar-recovery-mode {
background-color: #ca4a1f;
color: #fff;
margin-right: 1em;
}

@media screen and (max-width: 480px) {
.jetpack-masterbar.post-new-php.block-editor-page #wp-toolbar ul li {
flex: 1;
Expand Down Expand Up @@ -119,4 +125,8 @@
.jetpack-masterbar.post-new-php.block-editor-page #wpadminbar li#wp-admin-bar-newdash {
order: 3;
}

.jetpack-masterbar #wpadminbar #wp-admin-bar-recovery-mode {
display: none;
}
}

0 comments on commit c2333a6

Please sign in to comment.