@@ -837,6 +837,10 @@ main .col:not(.col--3):not(.toc):not(.table-of-contents) ol {
837837 counter-reset : list-counter;
838838}
839839
840+ main .col : not (.col--3 ): not (.toc ): not (.table-of-contents ) ol [start ] {
841+ --start : attr (start);
842+ }
843+
840844main .col : not (.col--3 ) ol : not (.toc ): not (.toaster ): not (.table-of-contents ) li {
841845 @apply relative mb-4 pl-3 text-lg;
842846 counter-increment : list-counter;
@@ -845,13 +849,12 @@ main .col:not(.col--3) ol:not(.toc):not(.toaster):not(.table-of-contents) li {
845849main .col : not (.col--3 ) ol : not (.toc ): not (.toaster ): not (.table-of-contents ) > li ::before {
846850 @apply absolute left-[-23px ] top-[0.5px ] w-[28px ] h-[28px ] rounded-full z-[-1 ] bg-zinc-200 dark:bg-zinc-700;
847851 @apply flex items-center justify-center text-zinc-200 dark:text-zinc-400 text-sm;
848- content : counter (list-counter) "." ;
852+ content : var ( --start , counter (list-counter) ) "." ;
849853}
850854/* h2 */
851855main .col : not (.col--3 ) ol : not (.toc ): not (.toaster ): not (.table-of-contents ) > li : has (> h2 : first-child )::before {
852856 @apply absolute left-[-36px ] top-[10px ] w-[40px ] h-[40px ] rounded-full z-[-1 ] bg-zinc-200 dark:bg-zinc-700;
853857 @apply text-2xl;
854- content : "" ;
855858}
856859main .col : not (.col--3 ) ol : not (.toc ): not (.toaster ): not (.table-of-contents ) li > h2 : first-child {
857860 @apply translate-y-[3px ];
@@ -860,7 +863,6 @@ main .col:not(.col--3) ol:not(.toc):not(.toaster):not(.table-of-contents) li > h
860863main .col : not (.col--3 ) ol : not (.toc ): not (.toaster ): not (.table-of-contents ) > li : has (> h3 : first-child )::before {
861864 @apply absolute left-[-31px ] top-[1.5px ] w-[35px ] h-[35px ] rounded-full z-[-1 ] bg-zinc-200 dark:bg-zinc-700;
862865 @apply text-xl;
863- content : "" ;
864866}
865867main .col : not (.col--3 ) ol : not (.toc ): not (.toaster ): not (.table-of-contents ) li > h3 : first-child {
866868 @apply translate-y-[2px ];
@@ -870,20 +872,17 @@ main .col:not(.col--3) ol:not(.toc):not(.toaster):not(.table-of-contents) li > h
870872main .col : not (.col--3 ) ol : not (.toc ): not (.toaster ): not (.table-of-contents ) > li : has (> h4 : first-child )::before {
871873 @apply absolute left-[-27px ] top-[0px ] w-[30px ] h-[30px ] rounded-full z-[-1 ] bg-zinc-200 dark:bg-zinc-700;
872874 @apply text-lg;
873- content : "" ;
874875}
875876/* h5 */
876877
877878main .col : not (.col--3 ) ol : not (.toc ): not (.toaster ): not (.table-of-contents ) > li : has (> h5 : first-child )::before {
878879 @apply absolute left-[-25px ] top-[0px ] w-[28px ] h-[28px ] rounded-full z-[-1 ] bg-zinc-200 dark:bg-zinc-700;
879880 @apply text-base;
880- content : "" ;
881881}
882882/* h6 */
883883main .col : not (.col--3 ) ol : not (.toc ): not (.toaster ): not (.table-of-contents ) > li : has (> h6 : first-child )::before {
884884 @apply absolute left-[-23px ] top-[-1px ] w-[26px ] h-[26px ] rounded-full z-[-1 ] bg-zinc-200 dark:bg-zinc-700;
885885 @apply text-sm;
886- content : "" ;
887886}
888887
889888/* else */
0 commit comments