demarches-normaliennes/app/assets/stylesheets/sections.scss

71 lines
1.3 KiB
SCSS
Raw Normal View History

.counter-start-header-section {
2023-05-23 10:12:16 +02:00
counter-reset: h2;
.reset-h2 {
counter-reset: h3;
}
.reset-h3 {
counter-reset: h4;
}
.reset-h4 {
counter-reset: h5;
}
.reset-h5 {
counter-reset: h6;
}
.reset-h6 {
counter-reset: h6;
}
.reset-h5 {
counter-reset: h6;
}
.reset-h6 {
counter-reset: h7;
}
.header-section.section-2::before {
counter-increment: h2;
content: counter(h2) ". ";
}
.header-section.section-3::before {
counter-increment: h3;
content: counter(h2) "." counter(h3) ". ";
}
.header-section.section-4::before {
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) ". ";
}
.header-section.section-5::before {
counter-increment: h5;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". ";
}
.header-section.section-6::before {
counter-increment: h6;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". ";
}
.header-section.section-7::before {
counter-increment: h7;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) "." counter(h7) ". ";
}
.repetition {
counter-reset: repetition;
.block-id::after {
counter-increment: repetition;
content: counter(repetition);
}
}
}