From 9612555cd128b2e556ce132b7b492b240cc0b18d Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 27 Apr 2023 15:26:46 +0200 Subject: [PATCH] =?UTF-8?q?correctif(titre-de-section):=20ETQ=20usager,=20?= =?UTF-8?q?je=20souhaite=20que=20les=20titres=20de=20sections=20ne=20soien?= =?UTF-8?q?t=20pas=20pr=C3=A9fix=C3=A9=20d'un=200.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/stylesheets/sections.scss | 33 +++++++++++++++++----------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/app/assets/stylesheets/sections.scss b/app/assets/stylesheets/sections.scss index 107091ff8..2bac009da 100644 --- a/app/assets/stylesheets/sections.scss +++ b/app/assets/stylesheets/sections.scss @@ -1,9 +1,5 @@ .counter-start-header-section { - counter-reset: h1 h2 h3 h4 h5 h6; - - .reset-h1 { - counter-reset: h2; - } + counter-reset: h2 h3 h4 h5 h6 h7; .reset-h2 { counter-reset: h3; @@ -21,35 +17,46 @@ counter-reset: h6; } + .reset-h6 { + counter-reset: h6; + } - .header-section.fr-h1::before { - counter-increment: h1; - content: counter(h1) ". "; + .reset-h5 { + counter-reset: h6; + } + + .reset-h6 { + counter-reset: h7; } .header-section.fr-h2::before { counter-increment: h2; - content: counter(h1) "."counter(h2) ". "; + content: counter(h2) ". "; } .header-section.fr-h3::before { counter-increment: h3; - content: counter(h1) "."counter(h2) "." counter(h3) ". "; + content: counter(h2) "." counter(h3) ". "; } .header-section.fr-h4::before { counter-increment: h4; - content: counter(h1) "."counter(h2) "." counter(h3) "." counter(h4) ". "; + content: counter(h2) "." counter(h3) "." counter(h4) ". "; } .header-section.fr-h5::before { counter-increment: h5; - content: counter(h1) "."counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "; + content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "; } .header-section.fr-h6::before { counter-increment: h6; - content: counter(h1) "."counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "; + content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "; + } + + .header-section.fr-h7::before { + counter-increment: h7; + content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) "." counter(h7) ". "; } .repetition {