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

73 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;
2024-11-05 19:02:31 +01:00
content: counter(h2) '. ';
}
.header-section.section-3::before {
counter-increment: h3;
2024-11-05 19:02:31 +01:00
content: counter(h2) '.' counter(h3) '. ';
}
.header-section.section-4::before {
counter-increment: h4;
2024-11-05 19:02:31 +01:00
content: counter(h2) '.' counter(h3) '.' counter(h4) '. ';
}
.header-section.section-5::before {
counter-increment: h5;
2024-11-05 19:02:31 +01:00
content: counter(h2) '.' counter(h3) '.' counter(h4) '.' counter(h5) '. ';
}
.header-section.section-6::before {
counter-increment: h6;
2024-11-05 19:02:31 +01:00
content: counter(h2) '.' counter(h3) '.' counter(h4) '.' counter(h5) '.'
counter(h6) '. ';
}
.header-section.section-7::before {
counter-increment: h7;
2024-11-05 19:02:31 +01:00
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);
}
}
}