File tree Expand file tree Collapse file tree 1 file changed +48
-1
lines changed Expand file tree Collapse file tree 1 file changed +48
-1
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ img {
325
325
float : right ;
326
326
clear : right ;
327
327
margin-right : -60% ;
328
- width : 100 % ;
328
+ width : 50 % ;
329
329
margin-top : 0 ;
330
330
margin-bottom : 0 ;
331
331
font-size : 1.1rem ;
@@ -334,6 +334,45 @@ img {
334
334
position : relative ;
335
335
}
336
336
337
+ /* Quarto-specific margin note fixes */
338
+ .quarto-container-page .marginnote {
339
+ position : absolute ;
340
+ right : -250px ;
341
+ width : 200px ;
342
+ margin-right : 0 ;
343
+ font-size : 0.9rem ;
344
+ line-height : 1.4 ;
345
+ padding : 0.5rem ;
346
+ background : transparent ;
347
+ float : none ;
348
+ }
349
+
350
+ /* Ensure parent has relative positioning */
351
+ .quarto-container-page p :has (.marginnote ) {
352
+ position : relative ;
353
+ }
354
+
355
+ /* Handle overflow and ensure margin notes don't cause horizontal scroll */
356
+ .quarto-container-page {
357
+ overflow-x : hidden ;
358
+ }
359
+
360
+ /* Adjust margin notes for narrower screens */
361
+ @media (max-width : 1400px ) {
362
+ .quarto-container-page .marginnote {
363
+ right : -200px ;
364
+ width : 180px ;
365
+ }
366
+ }
367
+
368
+ @media (max-width : 1200px ) {
369
+ .quarto-container-page .marginnote {
370
+ right : -180px ;
371
+ width : 160px ;
372
+ font-size : 0.85rem ;
373
+ }
374
+ }
375
+
337
376
.table-caption {
338
377
float :right ;
339
378
clear :right ;
@@ -540,6 +579,14 @@ label.margin-toggle:not(.sidenote-number) { display: none; }
540
579
margin-left : 0 ;
541
580
padding : 4px ;
542
581
}
582
+
583
+ /* Override Quarto-specific styles on mobile */
584
+ .quarto-container-page .marginnote {
585
+ position : relative ;
586
+ right : auto ;
587
+ width : 95% ;
588
+ margin : 1rem 2.5% ;
589
+ }
543
590
}
544
591
545
592
/* Style activated by the addition of the lightbox selection class */
You can’t perform that action at this time.
0 commit comments