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

Nav unification: consolidate color-sidebar-menu-hover-heading-background with non-"heading" version #47300

Merged
merged 3 commits into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
15 changes: 7 additions & 8 deletions client/my-sites/sidebar-unified/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

--color-sidebar-background: #23282d;
--color-sidebar-background-rgb: 35, 40, 45;
--color-sidebar-menu-hover-background: #32373c;
--color-sidebar-menu-hover-background-rgb: rgb( #32373c );
--color-sidebar-menu-hover-heading-background: #1a1e23;
--color-sidebar-menu-hover-background: #1a1e23;
--color-sidebar-menu-hover-background-rgb: rgb( #1a1e23; );
mreishus marked this conversation as resolved.
Show resolved Hide resolved
--color-sidebar-menu-hover: #00b9eb;
--color-sidebar-menu-hover-text: #00b9eb;
--color-sidebar-menu-selected-background: #0073aa;
Expand Down Expand Up @@ -80,7 +79,7 @@ $font-size: rem( 14px );

&:hover,
&:focus {
background-color: var( --color-sidebar-menu-hover-heading-background );
background-color: var( --color-sidebar-menu-hover-background );
color: var( --color-sidebar-menu-hover );
}

Expand Down Expand Up @@ -204,7 +203,7 @@ $font-size: rem( 14px );
// Is toggled open
.sidebar__menu.is-toggle-open {
.sidebar__heading {
background: var( --color-sidebar-menu-hover-heading-background );
background: var( --color-sidebar-menu-hover-background );

&:hover {
.sidebar__menu-icon {
Expand Down Expand Up @@ -280,7 +279,7 @@ $font-size: rem( 14px );

//client/components/site-selector/style.scss
.site-selector .site.is-highlighted {
background-color: var ( --color-sidebar-menu-hover-background );
background-color: var ( --color-sidebar-submenu-background );
}

.site-selector .site.is-highlighted .site__domain,
Expand Down Expand Up @@ -314,7 +313,7 @@ $font-size: rem( 14px );

// client/my-sites/current-site/style.scss
.current-site__switch-sites:hover .button.is-borderless:hover {
background-color: var( --color-sidebar-menu-hover-heading-background );
background-color: var( --color-sidebar-menu-hover-background );
}

.current-site__switch-sites .button.is-borderless {
Expand Down Expand Up @@ -495,7 +494,7 @@ $font-size: rem( 14px );
position: relative;

.sidebar__heading {
background-color: var( --color-sidebar-menu-hover-heading-background );
background-color: var( --color-sidebar-menu-hover-background );
color: var( --color-sidebar-menu-hover );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ Used studio-blue for the primary+accent.
--color-sidebar-menu-hover-text: var( --theme-text-color );

/* Sidebar Hover - Nav unification */
--color-sidebar-menu-hover-background: var( --theme-highlight-color );
--color-sidebar-menu-hover: var( --theme-text-color );
--color-sidebar-menu-hover-heading-background: var( --theme-highlight-color );

/* Sidebar Submenu - Nav Unification */
--color-sidebar-submenu-background: var( --theme-submenu-background-color );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ The wp-admin highlight color hue is 27, while studio-orange ranges from 25 to 35
--color-sidebar-menu-hover-text: var( --theme-text-color );

/* Sidebar Hover - Nav unification */
--color-sidebar-menu-hover-background: var( --theme-highlight-color );
--color-sidebar-menu-hover: var( --theme-text-color );
--color-sidebar-menu-hover-heading-background: var( --theme-highlight-color );

/* Sidebar Submenu - Nav Unification */
--color-sidebar-submenu-background: var( --theme-submenu-background-color );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ Created this definition in color-studio to generate 0-100 shades:
--color-sidebar-menu-hover-text: var( --theme-text-color );

/* Sidebar Hover - Nav unification */
--color-sidebar-menu-hover-background: var( --theme-highlight-color );
--color-sidebar-menu-hover: var( --theme-text-color );
--color-sidebar-menu-hover-heading-background: var( --theme-highlight-color );

/* Sidebar Submenu - Nav Unification */
--color-sidebar-submenu-background: var( --theme-submenu-background-color );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ Primary+Accent is studio blue.
--color-sidebar-menu-hover-background: #888;
--color-sidebar-menu-hover-background-rgb: 136, 136, 136;
--color-sidebar-menu-hover-text: #fff;
--color-sidebar-menu-hover-heading-background: #888;

/* Sidebar Hover - Nav unification */
--color-sidebar-menu-hover: #fff;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ Used studio-blue for the primary+accent.
--color-sidebar-menu-hover-text: var( --theme-text-color );

/* Sidebar Hover - Nav unification */
--color-sidebar-menu-hover-background: var( --theme-highlight-color );
--color-sidebar-menu-hover: var( --theme-text-color );
--color-sidebar-menu-hover-heading-background: var( --theme-highlight-color );

/* Sidebar Submenu - Nav Unification */
--color-sidebar-submenu-background: var( --theme-submenu-background-color );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ Well use studio-orange for both the primary and accent colors
--color-sidebar-menu-hover-text: var( --theme-text-color );

/* Sidebar Hover - Nav unification */
--color-sidebar-menu-hover-background: var( --theme-highlight-color );
--color-sidebar-menu-hover: var( --theme-text-color );
--color-sidebar-menu-hover-heading-background: var( --theme-highlight-color );

/* Sidebar Submenu - Nav Unification */
--color-sidebar-submenu-background: var( --theme-submenu-background-color );
Expand Down