Commit edaa82b 1 parent 2c0b02c commit edaa82b Copy full SHA for edaa82b
File tree 2 files changed +28
-3
lines changed
2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,8 @@ const observer = new IntersectionObserver(
8
8
stickyElement . classList . toggle ( 'stuck' , ! e . isIntersecting ) ;
9
9
} ,
10
10
{
11
- root : null ,
12
11
rootMargin : '0px' ,
13
- threshold : [ 0 , 1 ] ,
12
+ threshold : [ 0. 1 ] ,
14
13
}
15
14
) ;
16
15
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ body {
261
261
& .sunflower-logo {
262
262
background-color : $secondary ;
263
263
}
264
+
264
265
margin-right : 0.25rem ;
265
266
height : 95px ;
266
267
width : 95px ;
@@ -313,5 +314,30 @@ body {
313
314
314
315
#navbar-sticky-detector .header-personal {
315
316
height : 1px ;
316
- background : $white ;
317
+ margin-top : -1px ;
318
+ }
319
+
320
+ .stuck ~ #content {
321
+ margin-top : 95px ;
322
+
323
+ // to scroll to correct position with sticky header
324
+ // while destination is an anchor
325
+ .entry-content {
326
+
327
+ h1 ,
328
+ h2 ,
329
+ h3 ,
330
+ h4 ,
331
+ h5 ,
332
+ h6 {
333
+
334
+ & [id ]::before {
335
+ content : " " ;
336
+ display : block ;
337
+ height : 95px ;
338
+ margin-top : -45px ;
339
+ visibility : hidden ;
340
+ }
341
+ }
342
+ }
317
343
}
You can’t perform that action at this time.
0 commit comments