-
Notifications
You must be signed in to change notification settings - Fork 0
/
dynamicNav.css
100 lines (78 loc) · 1.75 KB
/
dynamicNav.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
html {
/*
Un-comment to scroll smoothly between sections
Not recommended for long pages
*/
/* scroll-behavior: smooth; */
}
/* Dynamic Nav Styling */
#dynamicNav {
height: 30px;
opacity: 0;
transition: 1s;
}
#dynamicNav .list {
width: 100%;
text-align: center;
background-color: #000;
flex-direction: column;
justify-content: space-around;
gap: 10px;
padding-bottom: 10px;
position: absolute;
top: 66%;
display: none;
z-index: 999;
}
#dynamicNav .list div,
#activeSection {
color: rgba(255, 255, 255, 0.9);
font-family: "Inter", sans-serif;
border-bottom: none;
cursor: pointer;
}
#dynamicNav .list .active {
font-weight: 600;
}
#activeSection {
width: 100%;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}
#activeSection .label {
width: 135px;
}
/* MEDIA QUERIES FROM SMALLEST TO LARGEST = MOBILE FIRST */
/* use these for responsive design — you can set different styles based on how wide the screen is */
/* Extra small devices (portrait phones, less than 576px)
No media query for `xs` since this is the default */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
#activeSection {
display: none;
}
#dynamicNav .list {
background-color: transparent;
display: flex;
flex-direction: row;
gap: unset;
position: unset;
}
#dynamicNav .list div:hover,
#dynamicNav .list .active {
font-weight: unset;
border-bottom: 1px white solid;
}
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
}