Skip to content

Commit

Permalink
re-instate hover on top nav menu
Browse files Browse the repository at this point in the history
  • Loading branch information
martyn-w committed May 9, 2024
1 parent 7a7dac9 commit 9fe8b6c
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions app/webpacker/styles/header/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,22 @@ body > header {
flex-wrap: nowrap;
justify-content: flex-start;

> .menu-link {
border-bottom: solid 4px transparent;
}

> .menu-link:hover {
border-bottom: solid 4px $black;
}

> .menu-link:focus {
box-shadow: none;
outline: none;
border-bottom: solid 4px $pink;
}

&.selected > .menu-link {
box-shadow: 0 4px $pink;
outline: 4px solid transparent;
border-bottom: solid 4px $pink;
}

&.down {
Expand All @@ -219,7 +232,8 @@ body > header {
grid-template-rows: 1fr;
grid-column-gap: 0;
grid-row-gap: 0;
padding: 1.25em 0.75em;
padding: 0.755em 0.75em;
margin: 0.75em 0;

.menu-title {
grid-area: 1 / 1 / 2 / 2;
Expand Down

0 comments on commit 9fe8b6c

Please sign in to comment.