-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.css
78 lines (66 loc) · 1.33 KB
/
header.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
header {
width: 100%;
padding: 28px 8%;
position: sticky;
top: 0;
background-color: var(--color-primary-1);
z-index: 3;
}
#navbar {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
#nav_logo {
font-size: 24px;
color: var(--color-primary-6);
}
#nav_list {
display: flex;
list-style: none;
gap: 48px;
}
.nav-item a {
text-decoration: none;
color: #1d1d1dad;
font-weight: 600;
}
.nav-item.active a {
color: var(--color-neutral-1);
border-bottom: 3px solid var(--color-primary-4);
}
#mobile_btn {
display: none;
}
#mobile_menu {
display: none;
}
@media screen and (max-width: 1170px) {
#nav_list,
#navbar .btn-default {
display: none;
}
#mobile_btn {
display: block;
border: none;
background-color: transparent;
font-size: 1.5rem;
cursor: pointer;
}
#mobile_menu.active {
display: flex;
flex-direction: column;
align-items: center;
}
#mobile_nav_list {
display: flex;
flex-direction: column;
gap: 12px;
margin: 12px 0px;
}
#mobile_nav_list .nav-item {
list-style: none;
text-align: center;
}
}