-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds core style overrides & bumps jetpack version (#18150)
* [not verified] Adds core style overrides & bumps jetpack version * [not verified] Adds notification icon hover state * [not verified] Adds notification icon hover state, fix build * [not verified] Cache Buster * [not verified] Adds notes and rtl dependencies * [not verified] Adds active state * [not verified] Removes whitespace * [not verified] Adds important as last resort * [not verified] Fixes site switcher colors * [not verified] Fixes site card borders * [not verified] Fixes site card borders color * [not verified] Fixes notes icon on light * [not verified] Fixes Write on hover * [not verified] Increases specificity * Adds masterbar color * Fixes tests * Properly fixes test Co-authored-by: cpap <papazoglou.charalampos@gmail.com>
- Loading branch information
1 parent
b0c7af0
commit 38e9ae6
Showing
16 changed files
with
236 additions
and
480 deletions.
There are no files selected for viewing
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
79 changes: 79 additions & 0 deletions
79
modules/masterbar/admin-color-schemes/colors/_core-overrides.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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
.admin-color-blue, | ||
.admin-color-coffee, | ||
.admin-color-ectoplasm, | ||
.admin-color-fresh, | ||
.admin-color-light, | ||
.admin-color-midnight, | ||
.admin-color-modern, | ||
.admin-color-ocean, | ||
.admin-color-sunrise { | ||
/* Masterbar */ | ||
#wpadminbar { | ||
background: $masterbar-background; | ||
-webkit-box-shadow: inset 0 -1px 0 $menu-submenu-background; | ||
-moz-box-shadow: inset 0 -1px 0 $menu-submenu-background; | ||
box-shadow: inset 0 -1px 0 $menu-submenu-background; | ||
} | ||
|
||
#wpadminbar .ab-top-menu > #wp-admin-bar-blog > .ab-item { | ||
background: $menu-submenu-background; | ||
color: $text-color !important; | ||
} | ||
|
||
#wpadminbar .ab-top-menu > #wp-admin-bar-newdash > .ab-item { | ||
color: $text-color !important; | ||
} | ||
|
||
#wpadminbar:not(.mobile) .ab-top-menu > li:not(#wp-admin-bar-ab-new-post):hover > .ab-item, | ||
#wpadminbar #wp-admin-bar-notes.hover > .ab-item, | ||
#wpadminbar #wp-admin-bar-notes.wpnt-show > .ab-item { | ||
background: $menu-submenu-background !important; | ||
} | ||
|
||
/** | ||
* Site Switcher - Browse Sites button text & arrow | ||
*/ | ||
#adminmenuwrap > #adminmenu .site-switcher { | ||
color: $nav-unification-sidebar-text-alternative; | ||
|
||
div.wp-menu-image:before { | ||
color: $nav-unification-sidebar-text-alternative; | ||
} | ||
|
||
&:hover, | ||
&:hover div.wp-menu-image:before { | ||
color: $menu-highlight-text; | ||
} | ||
} | ||
|
||
/** | ||
* Site Card | ||
*/ | ||
#adminmenu li.toplevel_page_site-card { | ||
border-bottom: 1px solid $menu-submenu-background; | ||
border-top: 1px solid $menu-submenu-background; | ||
} | ||
|
||
#adminmenu .toplevel_page_site-card:hover div.wp-menu-image, | ||
#adminmenu .toplevel_page_site-card a:focus div.wp-menu-image { | ||
background-color: $highlight-color; | ||
} | ||
|
||
.site__info .site__title { | ||
color: $text-color; | ||
} | ||
|
||
.site__info .site__domain { | ||
color: $nav-unification-sidebar-text-alternative; | ||
} | ||
|
||
.site__info .site__title::after, | ||
.site__info .site__domain::after { | ||
background: linear-gradient(90deg,rgba( $base-color-rgb, 0 ),rgba( $base-color-rgb, 1 ) 90%); | ||
} | ||
|
||
.site__info > .site__badge { | ||
background: $highlight-color; | ||
color: $text-color; | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
modules/masterbar/admin-color-schemes/colors/blue/colors.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$masterbar-background: #52accc; | ||
$menu-submenu-background: #4796b3; | ||
$text-color: #fff; | ||
$highlight-color: #096484; | ||
$base-color-rgb: rgb(82, 172, 204); | ||
$nav-unification-sidebar-text-alternative: #e2ecf1; | ||
$menu-highlight-text: #fff; | ||
|
||
@import "../_core-overrides"; |
9 changes: 9 additions & 0 deletions
9
modules/masterbar/admin-color-schemes/colors/coffee/colors.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$masterbar-background: #59524c; | ||
$menu-submenu-background: #46403c; | ||
$text-color: #fff; | ||
$highlight-color: #c7a589; | ||
$base-color-rgb: rgb(89, 82, 76); | ||
$nav-unification-sidebar-text-alternative: #f6f7f7; | ||
$menu-highlight-text: #fff; | ||
|
||
@import "../_core-overrides"; |
9 changes: 9 additions & 0 deletions
9
modules/masterbar/admin-color-schemes/colors/ectoplasm/colors.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$masterbar-background: #523f6d; | ||
$menu-submenu-background: #413256; | ||
$text-color: #fff; | ||
$highlight-color: #a3b745; | ||
$base-color-rgb: rgb(82, 63, 109); | ||
$nav-unification-sidebar-text-alternative: #ffffff; | ||
$menu-highlight-text: #fff; | ||
|
||
@import "../_core-overrides"; |
19 changes: 19 additions & 0 deletions
19
modules/masterbar/admin-color-schemes/colors/fresh/colors.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$masterbar-background: #101517; | ||
$menu-submenu-background: #333333; | ||
$text-color: #fff; | ||
$highlight-color: #006fad; | ||
$base-color-rgb: rgb(35,40,45); | ||
$nav-unification-sidebar-text-alternative: #a2aab2; | ||
$menu-highlight-text: #00b9eb; | ||
|
||
@import "../_core-overrides"; | ||
|
||
// Fresh theme specifics | ||
#wpadminbar .ab-top-menu > #wp-admin-bar-blog.my-sites > .ab-item { | ||
background: #23282d; | ||
} | ||
|
||
.site__info > .site__badge { | ||
background: #dcdcde; | ||
color: #1d2327; | ||
} |
16 changes: 16 additions & 0 deletions
16
modules/masterbar/admin-color-schemes/colors/light/colors.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$masterbar-background: #e5e5e5; | ||
$menu-submenu-background: #fff; | ||
$text-color: #333; | ||
$highlight-color: #888; | ||
$base-color-rgb: rgb(229, 229, 229); | ||
$nav-unification-sidebar-text-alternative: #1d2327; | ||
$menu-highlight-text: #fff; | ||
|
||
// Light theme specifics | ||
#wpadminbar #wp-admin-bar-blog > a.ab-item:before, | ||
#wpadminbar #wp-admin-bar-newdash > a.ab-item:before, | ||
#wpadminbar #wp-admin-bar-notes .noticon-bell:before { | ||
filter: brightness(0.1); | ||
} | ||
|
||
@import "../_core-overrides"; |
9 changes: 9 additions & 0 deletions
9
modules/masterbar/admin-color-schemes/colors/midnight/colors.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$masterbar-background: #363b3f; | ||
$menu-submenu-background: #26292c; | ||
$text-color: #fff; | ||
$highlight-color: #e14d43; | ||
$base-color-rgb: rgb(54, 59, 63); | ||
$nav-unification-sidebar-text-alternative: #fff; | ||
$menu-highlight-text: #fff; | ||
|
||
@import "../_core-overrides"; |
9 changes: 9 additions & 0 deletions
9
modules/masterbar/admin-color-schemes/colors/modern/colors.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$masterbar-background: #1e1e1e; | ||
$menu-submenu-background: #0c0c0c; | ||
$text-color: #fff; | ||
$highlight-color: #3858e9; | ||
$base-color-rgb: rgb(30, 30, 30); | ||
$nav-unification-sidebar-text-alternative: #c3c4c7; | ||
$menu-highlight-text: #fff; | ||
|
||
@import "../_core-overrides"; |
9 changes: 9 additions & 0 deletions
9
modules/masterbar/admin-color-schemes/colors/ocean/colors.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$masterbar-background: #738e96; | ||
$menu-submenu-background: #627c83; | ||
$text-color: #fff; | ||
$highlight-color: #9ebaa0; | ||
$base-color-rgb: rgb(115, 142, 150); | ||
$nav-unification-sidebar-text-alternative: #fff; | ||
$menu-highlight-text: #fff; | ||
|
||
@import "../_core-overrides"; |
9 changes: 9 additions & 0 deletions
9
modules/masterbar/admin-color-schemes/colors/sunrise/colors.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$masterbar-background: #cf4944; | ||
$menu-submenu-background: #be3631; | ||
$text-color: #fff; | ||
$highlight-color: #dd823b; | ||
$base-color-rgb: rgb(207, 73, 68); | ||
$nav-unification-sidebar-text-alternative: #f6f7f7; | ||
$menu-highlight-text: #fff; | ||
|
||
@import "../_core-overrides"; |
Oops, something went wrong.