delete CSS counters

This commit is contained in:
Julie Blanc 2026-01-20 21:31:42 +01:00
parent 4a95558237
commit a4c3390b99
4 changed files with 13 additions and 72 deletions

View file

@ -1,70 +0,0 @@
#section__content{
h1, h2, h3 {
&::before{
content: attr(data-counter);
}
}
h4, h5, h6{
&::before{
content: attr(data-counter) ". ";
}
}
// counter-reset: h1;
// h1{
// counter-increment: h1 1;
// counter-reset: h2;
// }
// h1::before{
// content: counter(h1, upper-alpha);
// }
// h2{
// counter-increment: h2 1;
// counter-reset: h3;
// }
// h2::before{
// content: counter(h2, upper-roman);
// }
// h3{
// counter-increment: h3 1;
// counter-reset: h4;
// }
// h3::before{
// content: counter(h3);
// }
// h4{
// counter-increment: h4 1;
// counter-reset: h5;
// }
// h4::before{
// content: counter(h4, lower-alpha) ". ";
// }
// h5{
// counter-increment: h5 1;
// counter-reset: h6;
// }
// h5::before{
// content: counter(h5, lower-alpha) counter(h5, lower-alpha) ". ";
// }
// h6{
// counter-increment: h6 1;
// }
// h6::before{
// content: "(" counter(h6) "). ";
// }
}

View file

@ -1,6 +1,18 @@
#section__content{
h1, h2, h3 {
&::before{
content: attr(data-counter);
}
}
h4, h5, h6{
&::before{
content: attr(data-counter) ". ";
}
}
h1, h2, h3 , h4{
break-inside: avoid;