Skip to content

Commit

Permalink
Consolidate color-sidebar-menu-hover and color-sidebar-menu-hover-tex…
Browse files Browse the repository at this point in the history
…t variables (#47294)
  • Loading branch information
mreishus committed Nov 11, 2020
1 parent f618169 commit febfdad
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
9 changes: 4 additions & 5 deletions client/my-sites/sidebar-unified/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
--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: #00b9eb;
--color-sidebar-menu-hover-text: #00b9eb;
--color-sidebar-menu-selected-background: #0073aa;
--color-sidebar-border: #333333;
Expand Down Expand Up @@ -81,7 +80,7 @@ $font-size: rem( 14px );
&:hover,
&:focus {
background-color: var( --color-sidebar-menu-hover-heading-background );
color: var( --color-sidebar-menu-hover );
color: var( --color-sidebar-menu-hover-text );
}

&::after {
Expand Down Expand Up @@ -178,7 +177,7 @@ $font-size: rem( 14px );
.sidebar__menu-link {
&:hover {
.sidebar__menu-icon {
color: var( --color-sidebar-menu-hover );
color: var( --color-sidebar-menu-hover-text );
}
img.sidebar__menu-icon {
opacity: 1;
Expand Down Expand Up @@ -208,7 +207,7 @@ $font-size: rem( 14px );

&:hover {
.sidebar__menu-icon {
color: var( --color-sidebar-menu-hover );
color: var( --color-sidebar-menu-hover-text );
}
img.sidebar__menu-icon {
opacity: 1;
Expand Down Expand Up @@ -496,7 +495,7 @@ $font-size: rem( 14px );

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

// indicator arrow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ Used studio-blue for the primary+accent.

/* 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 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ Created this definition in color-studio to generate 0-100 shades:

/* 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 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ Primary+Accent is studio blue.
--color-sidebar-menu-hover-heading-background: #888;

/* Sidebar Hover - Nav unification */
--color-sidebar-menu-hover: #fff;

/* 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 @@ -140,7 +140,6 @@ Used studio-blue for the primary+accent.

/* 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 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ Well use studio-orange for both the primary and accent colors

/* 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 */
Expand Down

0 comments on commit febfdad

Please sign in to comment.