@@ -104,20 +104,24 @@ p {
104
104
}
105
105
106
106
.header {
107
- border-bottom : 1px solid $grey-lt-000 ;
108
- color : $lf-dark-blue ;
109
- padding : 10px 0 ;
107
+ position : relative ;
108
+ width : 100% ;
109
+ margin : 0 auto ;
110
+ border-bottom : 1px solid #ddd ;
110
111
111
112
.width-limiter {
112
- display : flex ;
113
- gap : 2rem ;
114
- flex-flow : row nowrap ;
113
+ flex-direction : row ;
114
+ align-items : center ;
115
+ max-width : var (--max-width );
116
+ min-height : 80px ;
115
117
justify-content : space-between ;
116
- align-items : baseline ;
118
+ color : #6983ff ;
119
+ width : 100% ;
120
+ padding : 10px ;
121
+ padding : 0 20px ;
117
122
118
- @media all and (max-width : 768px ) {
119
- flex-flow : column ;
120
- align-items : center ;
123
+ @include respond-min (768px ) {
124
+ padding : 0 20px ;
121
125
}
122
126
}
123
127
@@ -127,50 +131,177 @@ p {
127
131
align-items : center ;
128
132
129
133
img {
130
- width : 6 rem ;
131
- height : 6 rem ;
132
- display : block ;
134
+ width : 130 px ;
135
+ height : 46 px ;
136
+ display : block ;
133
137
}
134
138
135
139
span {
136
- @include sans-serif ;
137
- font-weight : 400 ;
138
- font-size : 6rem ;
139
- line-height : 5.75rem ;
140
- color : inherit ;
141
- text-decoration : none ;
142
- letter-spacing : -0.2rem ;
143
- color : $lf-dark-blue ;
140
+ @include sans-serif ;
141
+ font-weight : 400 ;
142
+ font-size : 6rem ;
143
+ line-height : 5.75rem ;
144
+ color : inherit ;
145
+ text-decoration : none ;
146
+ letter-spacing : -0.2rem ;
147
+ color : $lf-dark-blue ;
144
148
}
145
149
}
146
150
147
151
nav {
148
152
display : flex ;
149
153
flex-flow : row nowrap ;
150
- gap : 2 rem ;
154
+ gap : 3 rem ;
151
155
@include sans-serif ;
152
- font-size : 1.5rem ;
153
- font-weight : 400 ;
154
156
155
- @media all and (max-width : 480px ) {
156
- gap : 1rem ;
157
- display : grid ;
158
- text-align : center ;
159
- }
157
+ font-size : 1.6rem ;
158
+ font-weight : 600 ;
160
159
161
160
a {
162
161
white-space : nowrap ;
163
162
color : inherit ;
164
163
cursor : pointer ;
164
+ padding : .5rem 0 ;
165
+ border-bottom : none ;
166
+
167
+ @include respond-min (768px ) {
168
+ border-bottom : 3px solid ;
169
+ padding : 1rem 0 ;
170
+ border-color : transparent ;
171
+ }
172
+ }
165
173
174
+ >a {
166
175
& :hover {
167
- color : #04202a ;
176
+ border- color : inherit ;
168
177
text-decoration : underline ;
169
- text-decoration-thickness : 2px ;
170
- text-underline-offset : 4px ;
178
+
179
+ @include respond-min (768px ) {
180
+ text-decoration : none ;
181
+ }
182
+ }
183
+ }
184
+
185
+ @media (max-width : 768px ) {
186
+ display : none ;
187
+ gap : 1rem ;
188
+
189
+ & .active {
190
+ display : flex ;
191
+ flex-direction : column ;
192
+ position : absolute ;
193
+ top : 100% ;
194
+ margin-top : 1px ;
195
+ left : 0 ;
196
+ right : 0 ;
197
+ background : white ;
198
+ padding : 1.5rem ;
199
+ box-shadow : 0 2px 4px rgba (0 ,0 ,0 ,0.1 );
200
+ z-index : 1000 ;
201
+
202
+ a , .has-submenu > span {
203
+ padding : .75rem 0 ;
204
+ display : block ;
205
+ width : 100% ;
206
+ }
207
+
208
+ .submenu {
209
+ position : static ;
210
+ box-shadow : none ;
211
+ padding-left : 1rem ;
212
+ }
171
213
}
172
214
}
173
215
}
216
+ .btn-menu {
217
+ display : none ;
218
+ padding : 20px 0 ;
219
+ cursor : pointer ;
220
+ background : none ;
221
+ gap : 0.625rem ;
222
+ justify-content : center ;
223
+ flex-direction : column ;
224
+
225
+ & :before {
226
+ content : " " ;
227
+ display : block ;
228
+ height : 2px ;
229
+ width : 2.5rem ;
230
+ background-color : #6983ff ;
231
+ transition-duration : .2s ;
232
+ }
233
+
234
+ & :after {
235
+ content : " " ;
236
+ display : block ;
237
+ height : 2px ;
238
+ width : 2.5rem ;
239
+ background-color : #6983ff ;
240
+ transition-duration : .2s ;
241
+ }
242
+
243
+ @media (max-width : 768px ) {
244
+ display : flex ;
245
+ }
246
+ }
247
+ }
248
+
249
+ .has-submenu {
250
+ position : relative ;
251
+ display : block ;
252
+ align-items : center ;
253
+
254
+ @include respond-min (768px ) {
255
+ display : flex ;
256
+ }
257
+
258
+ & :hover {
259
+ > span {
260
+ color : #04202a ;
261
+ }
262
+
263
+ .submenu {
264
+ display : flex ;
265
+ }
266
+ }
267
+
268
+ > span {
269
+ cursor : pointer ;
270
+ }
271
+
272
+ >a {
273
+ & :hover {
274
+ text-decoration : underline ;
275
+
276
+ @include respond-min (768px ) {
277
+ text-decoration : none ;
278
+ }
279
+ }
280
+ }
281
+
282
+ .submenu {
283
+ position : absolute ;
284
+ top : 100% ;
285
+ z-index : 9 ;
286
+ display : block ;
287
+ flex-flow : column nowrap ;
288
+ background : #fff ;
289
+ min-width : 100% ;
290
+ box-shadow : 0 2px 5px rgba (0 , 0 , 0 , 0.2 );
291
+ padding : .25rem 0 ;
292
+
293
+ @include respond-min (768px ) {
294
+ display : none ;
295
+ }
296
+
297
+ > a {
298
+ padding : .5rem 1rem ;
299
+
300
+ & :hover {
301
+ text-decoration : underline ;
302
+ }
303
+ }
304
+ }
174
305
}
175
306
176
307
.body {
@@ -561,39 +692,6 @@ aside {
561
692
}
562
693
}
563
694
564
- .has-submenu {
565
- position : relative ;
566
-
567
- & :hover {
568
- > span {
569
- color : #04202a ;
570
- }
571
-
572
- .submenu {
573
- display : flex ;
574
- }
575
- }
576
-
577
- > span {
578
- cursor : pointer ;
579
- }
580
-
581
- .submenu {
582
- position : absolute ;
583
- z-index : 9 ;
584
- display : none ;
585
- flex-flow : column nowrap ;
586
- background : #fff ;
587
- min-width : 100% ;
588
- box-shadow : 0 2px 5px rgba (0 , 0 , 0 , 0.2 );
589
- padding : .25rem 0 ;
590
-
591
- > a {
592
- padding : .5rem 1rem ;
593
- }
594
- }
595
- }
596
-
597
695
/* zola based on recommended code highlight snippet from docs: https://www.getzola.org/documentation/content/syntax-highlighting/ */
598
696
pre {
599
697
padding : 2rem ;
0 commit comments