Skip to content

Commit 7f6c32c

Browse files
Merge pull request #124 from climaxmba/style/navlinks
chore: create a hover effect for nav buttons
2 parents 591d25c + a5096c3 commit 7f6c32c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/app/components/navbar/navbar.module.css

+26
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
font-weight: 900;
5858
padding-bottom: 5px;
5959
padding-right: 10px;
60+
transition: all ease-in 0.3s;
6061
}
6162

6263
/* This is the underline */
@@ -73,13 +74,30 @@
7374
top: 100%;
7475
}
7576

77+
.links:hover {
78+
color: hsl(var(--dark-blue));
79+
80+
&:after {
81+
background-color: hsla(240, 98%, 60%, 1);
82+
}
83+
}
84+
7685
.navLinks > .meetupLink {
7786
border-radius: 50px;
7887
padding: 10px 30px;
7988
background-color: hsl(var(--blue));
8089
color: hsl(var(--white));
8190
font-size: 25px;
8291
text-decoration: none;
92+
transition: all ease-in 0.3s;
93+
94+
&:hover {
95+
background-color: hsl(var(--dark-blue));
96+
}
97+
98+
&:active {
99+
background-color: hsl(var(--light-blue));
100+
}
83101
}
84102

85103
.hamburger,
@@ -227,5 +245,13 @@
227245
color: hsl(var(--blue));
228246
text-decoration: none;
229247
line-height: 14.09px;
248+
249+
&:hover {
250+
color: hsl(var(--light-blue));
251+
}
252+
253+
&:active {
254+
color: hsl(var(--dark-blue));
255+
}
230256
}
231257
}

0 commit comments

Comments
 (0)