Skip to content

Commit

Permalink
feat: add white overlay to nav-bar dropdown menu, adjust color to wor…
Browse files Browse the repository at this point in the history
…k in dark and xdark
  • Loading branch information
Daniel Morse committed Apr 3, 2020
1 parent cc9d87c commit 1ca77fe
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions packages/components/bolt-nav-priority/nav-priority.scss
Expand Up @@ -143,6 +143,20 @@ bolt-nav-priority {
background-color: bolt-theme(background);
transition: max-height 0.3s cubic-bezier(0.28, 0.11, 0.32, 1) 0s, visibility 0s linear 0.3s;

&:before {
content: '';
opacity: 0.1;
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
background-color: bolt-color(white);
}

* {
white-space: normal;
}
Expand Down Expand Up @@ -235,7 +249,7 @@ bolt-nav-priority {
}

&:hover {
background-color: bolt-theme(secondary, 0.15);
background-color: bolt-theme(secondary, 0.1);

&:before {
opacity: 0.1;
Expand All @@ -251,7 +265,7 @@ bolt-nav-priority {

&.is-active,
&:active {
background-color: bolt-theme(secondary, 0.1);
background-color: bolt-theme(secondary, 0.05);

&:before {
opacity: 0.1;
Expand Down

0 comments on commit 1ca77fe

Please sign in to comment.