Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Merge styles with existing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuatf committed Oct 11, 2021
1 parent 25a39c2 commit 2bdbb5b
Showing 1 changed file with 34 additions and 36 deletions.
70 changes: 34 additions & 36 deletions client/navigation/components/container/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
display: grid;
grid-template-rows: min-content 1fr;
height: 100%;
}

.woocommerce-navigation .woocommerce-navigation__wrapper {
h2 > span {
width: 100%;
}
Expand All @@ -20,6 +22,26 @@
.components-navigation__item {
margin-bottom: 0;

.components-button {
opacity: 1;
}

&:not(:hover) {
.components-button {
color: #949494;
}
}
&:hover {
.components-button {
color: #ddd;
}
}
&.is-active {
.components-button {
color: #fff;
}
}

/*
* <-------- Start Temporary Code -------->
*
Expand Down Expand Up @@ -72,44 +94,20 @@
}
}

/*
* Override Gutenberg changes to the navigation component introduced in 11.6.0 by https://github.com/WordPress/gutenberg/pull/34885
*/
.components-navigation__menu {
.components-navigation__menu-title,
.components-navigation__group-title {
color: #f0f0f0;
opacity: 1;
}
.components-navigation__back-button {
color: #949494;
opacity: 1;
.components-navigation__menu-title,
.components-navigation__group-title {
color: #f0f0f0;
opacity: 1;
}

&:hover,
&:hover:not(:disabled) {
color: #ddd;
}
}
.components-navigation__item {
.components-button {
opacity: 1;
}
.components-navigation__back-button {
color: #949494;
opacity: 1;

&:not(:hover) {
.components-button {
color: #949494;
}
}
&:hover {
.components-button {
color: #ddd;
}
}
&.is-active {
.components-button {
color: #fff;
}
}
&:hover,
&:hover:not(:disabled) {
color: #ddd;
}
}
}

0 comments on commit 2bdbb5b

Please sign in to comment.