@@ -87,6 +87,17 @@ html[data-theme="dark"],
8787}
8888
8989: root {
90+
91+ --ls-block-bullet-active-color : var (
92+ --ls-block-bullet-threading-active-color-overwrite ,
93+ var (--ls-link-text-color )
94+ );
95+ --ls-block-bullet-threading-width : var (
96+ --ls-block-bullet-threading-width-overwrite ,
97+ 1px
98+ );
99+
100+
90101 --ls-main-content-max-width : 69% ;
91102 --ls-main-content-max-width-wide : 96% ;
92103 --ls-font-family : "Only Emoji" , "Source Sans 3 VF" , "Source Han Sans VF" , "sans-serif" ;
@@ -696,3 +707,143 @@ html[data-theme="dark"] .ui__notifications .notification-area {
696707 background : transparent;
697708 font-weight : unset !important ;
698709}
710+
711+
712+ /********************* bullet threading ******************************************/
713+
714+ .block-control {
715+ z-index : 1 ;
716+ }
717+
718+ .block-children {
719+ border-left-color : var (--ls-guideline-color );
720+ border-left-width : var (--ls-block-bullet-threading-width ) !important ;
721+ }
722+
723+ .block-children-container {
724+ position : relative;
725+ }
726+
727+ .block-children-left-border {
728+ z-index : 1 ;
729+ position : absolute;
730+ height : 100% ;
731+ width : 4px ;
732+ padding-right : 0px ;
733+ border-radius : 2px ;
734+ background-color : transparent;
735+ left : -1px ;
736+ transition : background-color 0.2s ;
737+ }
738+
739+ .block-children-left-border : hover {
740+ background-color : var (--ls-block-bullet-active-color );
741+ }
742+
743+ .block-content-wrapper {
744+ position : relative;
745+ overflow-x : visible !important ;
746+ /* Fixme: overflow? */
747+ }
748+
749+ .bullet-container {
750+ height : 14px !important ;
751+ width : 14px !important ;
752+ position : relative;
753+ transform : translate (1px , -1px );
754+ }
755+
756+ /* Block bullet path should only show in a nested block */
757+ .ls-block {
758+ /* Fix for headings like h1, h2 etc */
759+ /* Basic "curve" */
760+ /* Fix multi-line blocks with children */
761+ }
762+ .ls-block .bullet {
763+ background-color : var (--ls-block-bullet-active-color );
764+ box-shadow : 0 0 0 1px var (--ls-block-bullet-active-color );
765+ }
766+ .ls-block div .block-control-wrap {
767+ position : relative;
768+ height : 26px !important ;
769+ }
770+ .ls-block > .items-baseline {
771+ align-items : initial;
772+ }
773+ .ls-block : not (: focus-within ) .bullet {
774+ background-color : var (--ls-block-bullet-color );
775+ transform : scale (1 );
776+ box-shadow : none;
777+ }
778+ .ls-block : not (: focus-within ) > .items-baseline {
779+ align-items : baseline;
780+ }
781+ .ls-block .ls-block > div > div .items-center ::before {
782+ pointer-events : none;
783+ content : "" ;
784+ left : calc (var (--ls-block-bullet-threading-width ) * -1 );
785+ right : 20px ;
786+ top : calc (-50% + var (--ls-block-bullet-threading-width ) * 0.5 - 1px );
787+ bottom : 50% ;
788+ /* shift left 1px for border */
789+ position : absolute;
790+ border-left : var (--ls-block-bullet-threading-width ) solid transparent;
791+ border-bottom : var (--ls-block-bullet-threading-width ) solid transparent;
792+ border-bottom-left-radius : 10px ;
793+ }
794+ .ls-block .ls-block : focus-within > div > div .items-center ::before {
795+ border-color : var (--ls-block-bullet-active-color );
796+ }
797+ .ls-block .block-children > .ls-block ::before {
798+ pointer-events : none;
799+ content : "" ;
800+ top : -1rem ;
801+ bottom : 0 ;
802+ border-left : var (--ls-block-bullet-threading-width ) solid transparent;
803+ left : calc (var (--ls-block-bullet-threading-width ) * -1 );
804+ position : absolute;
805+ }
806+ .ls-block .block-children : focus-within > .ls-block : not (: focus-within )::before {
807+ border-color : var (--ls-block-bullet-active-color );
808+ }
809+ .ls-block .block-children : focus-within > .ls-block : focus-within ~ .ls-block ::before {
810+ border-color : transparent;
811+ }
812+ .ls-block [haschild ] > div > .block-content-wrapper ::before {
813+ pointer-events : none;
814+ content : "" ;
815+ top : 12px ;
816+ bottom : 0 ;
817+ left : -21px ;
818+ position : absolute;
819+ border-left : var (--ls-block-bullet-threading-width ) solid transparent;
820+ }
821+ .ls-block [haschild ]: focus-within > div > .block-content-wrapper ::before {
822+ border-color : var (--ls-block-bullet-active-color );
823+ }
824+
825+ : is (.embed-block > div , .embed-page ) > div > div > div > div .ls-block > div > div .items-center ::before {
826+ border-color : transparent !important ;
827+ }
828+
829+ @media (max-width : 640px ) {
830+ .ls-block [haschild ] > div > .block-content-wrapper ::before {
831+ left : -11px ;
832+ }
833+ }
834+ /* Disable for doc mode */
835+ .doc-mode div .items-center ::before ,
836+ .doc-mode div .items-center ::after ,
837+ .doc-mode .ls-block ::before ,
838+ .doc-mode .ls-block ::after {
839+ display : none;
840+ }
841+
842+ .doc-mode .block-children {
843+ border-left-width : 0px !important ;
844+ }
845+
846+
847+
848+
849+
0 commit comments