Skip to content

Commit

Permalink
Refactor header links CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Agarwal committed Jan 16, 2024
1 parent c27887c commit e8d3c79
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@
.header-links {
display: flex;
gap: 64px;

a:hover,
a.active {
position: relative;

&::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 100%;
height: 2px;
background-color: var(--subtle-gold-color);
}
}
}

main {
Expand All @@ -57,4 +42,25 @@ footer {
.bento-buzz header {
flex: 0 0 48px;
}
}

@media screen and (min-width: 768px) {
.header-links {

a:hover,
a.active {
position: relative;

&::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 100%;
height: 2px;
background-color: var(--subtle-gold-color);
}
}
}

}

0 comments on commit e8d3c79

Please sign in to comment.