@@ -371,21 +371,41 @@ span.rm-page-ref[data-tag="Alive"] {
371
371
}
372
372
/* modifications begin */
373
373
374
+
374
375
/* sidebar magic 🔥 :)
375
376
* resets the padding changes when sidebar is visible.
376
- * This allows the sidebar to overlay the content, instead of pushing it.
377
+ * This allows the sidebar to overlay the content, instead of pushing it.
377
378
* on click, the content gets pushed (as expected)
378
379
* ~ is the sibling CSS selector; to detect the closed state of the sidebar
379
380
*/
380
381
.roam-sidebar-container : not ([style ^= 'left: 0px; top: 0px; bottom: 0px;' ]) ~ .roam-main .roam-body-main {
381
382
width : 100vw !important ;
382
- }
383
+ }
383
384
384
385
.roam-sidebar-container : not ([style ^= 'left: 0px; top: 0px; bottom: 0px;' ]) ~ .roam-main .roam-body-main > .roam-center > div : first-child {
385
386
padding-right : calc ((100% - 800px ) / 2 ) !important ;
386
387
padding-left : calc ((100% - 800px ) / 2 ) !important ;
387
388
}
388
389
390
+ /* Prevents weird siderbar scroll */
391
+ html {
392
+ overflow : hidden;
393
+ }
394
+
395
+ /* more sidebar fixes */
396
+
397
+ /* makes the shortcuts stick edge-to-edge,
398
+ * with spacing on the left
399
+ */
400
+ .starred-pages-wrapper {
401
+ padding : 8px 0 !important ;
402
+ }
403
+
404
+ .roam-body .roam-app .roam-sidebar-container .roam-sidebar-content .starred-pages-wrapper .starred-pages .page ,
405
+ .starred-pages-wrapper > div .flex-h-box {
406
+ padding-left : 20px ;
407
+ }
408
+
389
409
/*
390
410
* ⌗ for block refs 🚀
391
411
*/
@@ -486,25 +506,6 @@ div::-webkit-scrollbar-thumb:hover {
486
506
opacity : 0.4 ;
487
507
}
488
508
489
- /* prevents annoying scroll on the sidebar */
490
-
491
- html {
492
- overflow : hidden;
493
- }
494
-
495
- /* makes the shortcuts stick edge-to-edge, with spacing on the left */
496
- .starred-pages-wrapper {
497
- padding : 0 0 0 20px !important ;
498
- }
499
-
500
- /* makes the seperater above shortcuts full width */
501
- .starred-pages-wrapper > div : first-child {
502
- position : absolute;
503
- left : 0 ;
504
- right : 0 ;
505
- height : 1px ;
506
- background-color : # dbdbdb !important ;
507
- }
508
509
509
510
.block-highlight-yellow {
510
511
background-color : # ffec99 ;
0 commit comments