blob: 31b3dbb6586eaf83316befee0acabcc613a6629b (
plain)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
header {
border-top: 4px solid var(--header-color);
background-color: var(--header-background);
color: var(--header-color);
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 0 1rem;
margin-bottom: 1rem;
a {
display: inline-block;
padding-top: 0.5rem;
padding-bottom: calc(0.5rem - 4px);
}
#brand {
display: flex;
flex-direction: row;
align-items: center;
gap: 1rem;
h1 {
font-size: 2rem;
margin: 0;
font-weight: 900;
letter-spacing: 0.15rem;
a {
color: var(--header-color);
text-decoration: none;
}
}
}
#nav-pages {
display: flex;
flex-direction: column;
align-items: flex-start;
padding-inline-start: 2.5rem;
transition: max-height 0.2s linear;
max-height: 100vh;
}
#nav-socials {
align-self: center;
display: flex;
gap: 1.5rem;
transition: max-height 0.2s linear;
max-height: 100vh;
a {
font-size: 1.5rem;
transition: color 0.2s ease-in-out;
line-height: 1;
}
}
nav>a {
text-decoration: none;
font-weight: 700;
font-size: 1.2rem;
text-transform: uppercase;
letter-spacing: 0.1rem;
transition: color 0.2s ease-in-out;
color: var(--header-color);
&:hover {
color: var(--accent-3);
}
&.active {
border-bottom: 2px solid var(--accent-3);
}
}
button#mobile-menu {
display: block;
background-color: transparent;
border: none;
font-size: 2rem;
cursor: pointer;
}
&.collapsed {
#nav-pages,
#nav-socials {
max-height: 0;
overflow: hidden;
}
}
}
@media (min-width: 480px) {
header {
flex-direction: row;
align-items: center;
justify-content: space-between;
a {
padding-top: 1rem;
padding-bottom: calc(1rem - 4px);
}
#nav-pages {
justify-self: start;
flex-direction: row;
gap: 1.5rem;
padding-inline-start: 0;
}
button#mobile-menu {
display: none;
}
&.collapsed {
#nav-pages,
#nav-socials {
display: flex;
max-height: unset;
}
}
}
}
@media (min-width: 1024px) {
header {
padding: 0 1rem;
gap: 1.5rem;
justify-content: start;
h1 {
margin-bottom: 0.5rem;
}
#nav-socials {
align-self: flex-end;
margin-left: auto;
}
}
}
|