Skip to content

Commit 4a86844

Browse files
NavigationLinks Components Stylesheet
1 parent 9d821a9 commit 4a86844

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
@use "../../styles/variables.scss" as *;
2+
3+
.nav-links {
4+
position: absolute;
5+
right: 9%;
6+
display: flex;
7+
justify-content: center;
8+
align-items: center;
9+
10+
@media all and ($mobile) {
11+
position: relative;
12+
right: 0;
13+
}
14+
15+
& .menu-btn {
16+
display: none;
17+
padding: 5px 20px;
18+
background-color: var(--light);
19+
border: 1px solid var(--tertiary);
20+
border-radius: 30px;
21+
font-family: var(--bodyFont);
22+
font-size: 15px;
23+
outline: none;
24+
25+
@media all and ($mobile) {
26+
display: block;
27+
cursor: pointer;
28+
}
29+
30+
&:hover {
31+
background-color: var(--tertiary);
32+
transition: background-color 0.3s ease-in;
33+
color: var(--light);
34+
}
35+
}
36+
37+
& ul {
38+
display: flex;
39+
flex-direction: row;
40+
justify-content: center;
41+
align-items: center;
42+
gap: 10px;
43+
44+
@media all and ($mobile) {
45+
display: none;
46+
flex-direction: column;
47+
position: absolute;
48+
top: 100%;
49+
right: 0;
50+
width: 300px;
51+
background-color: var(--light);
52+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
53+
border-radius: 4px;
54+
padding: 10px;
55+
z-index: 1000;
56+
}
57+
}
58+
59+
& ul.active {
60+
@media all and ($mobile) {
61+
display: flex;
62+
border: 2px solid var(--lightgray);
63+
}
64+
}
65+
66+
& ul > li {
67+
list-style: none;
68+
display: inline-block;
69+
font-size: 20px;
70+
padding: 0 4px;
71+
}
72+
73+
& ul > li > a {
74+
position: relative;
75+
display: inline-block;
76+
text-decoration: none;
77+
color: inherit;
78+
padding: 5px 0;
79+
}
80+
81+
& ul > li > a::after {
82+
content: "";
83+
position: absolute;
84+
left: 0;
85+
bottom: 0;
86+
width: 0;
87+
height: 2px;
88+
background-color: currentColor;
89+
transition: width 0.5s ease-in-out;
90+
}
91+
92+
& ul > li > a:hover::after {
93+
width: 100%;
94+
}
95+
}

0 commit comments

Comments
 (0)