Major : correction de l'incrémentation suite au patch https://github.com/dokuwiki/dokuwiki/pull/3957
Merci à Andi pour la solution ( https://forum.dokuwiki.org/d/22729-unexpected-addition-of-section-highlight-wrapper-to-the-code/8 )
This commit is contained in:
parent
b17e1434ab
commit
b834d6a631
1 changed files with 47 additions and 22 deletions
|
@ -81,63 +81,88 @@
|
|||
}
|
||||
/*____________ Article Title ____________*/
|
||||
|
||||
/*__ Style pur __*/
|
||||
|
||||
.kharticle h1 {
|
||||
font-size: 2.2em;
|
||||
margin: 0 0 0.444em;
|
||||
border-bottom: 1px solid @ini_neutral2;
|
||||
counter-reset: sectionh2 sectionh3 sectionh4;
|
||||
color: @ini_title_color;
|
||||
}
|
||||
.kharticle h2:before {
|
||||
content: counter(sectionh2) ". ";
|
||||
}
|
||||
|
||||
.kharticle h2 {
|
||||
font-size: 1.9em;
|
||||
margin: 0 0 0.666em;
|
||||
border-bottom: 1px solid @ini_neutral2;
|
||||
counter-increment: sectionh2;
|
||||
counter-reset: sectionh3;
|
||||
color: @ini_title_color;
|
||||
}
|
||||
.kharticle h3:before {
|
||||
content: counter(sectionh2) "." counter(sectionh3) ". " ;
|
||||
}
|
||||
|
||||
.kharticle h3 {
|
||||
font-size: 1.65em;
|
||||
margin: 0 0 0.888em;
|
||||
counter-increment: sectionh3;
|
||||
counter-reset: sectionh4;
|
||||
color: @ini_title_color;
|
||||
}
|
||||
|
||||
.kharticle h4:before {
|
||||
content: counter(sectionh2) "." counter(sectionh3) "." counter(sectionh4) "." ;
|
||||
}
|
||||
.kharticle h4 {
|
||||
font-size: 1.3em;
|
||||
margin: 0 0 1.0em;
|
||||
counter-increment: sectionh4;
|
||||
counter-reset: sectionh5;
|
||||
color: @ini_title_color;
|
||||
}
|
||||
|
||||
.kharticle h5:before {
|
||||
content: counter(sectionh2) "." counter(sectionh3) "." counter(sectionh4) "." counter(sectionh5) ". " ;
|
||||
}
|
||||
|
||||
.kharticle h5 {
|
||||
font-size: 1em;
|
||||
margin: 0 0 1.1428em;
|
||||
counter-increment: sectionh5;
|
||||
counter-reset: sectionh6;
|
||||
color: @ini_title_color;
|
||||
}
|
||||
|
||||
.kharticle h6 {
|
||||
font-size: .75em;
|
||||
margin: 0 0 1.333em;
|
||||
color: @ini_title_color;
|
||||
}
|
||||
/*__ Incrémentation des titres __*/
|
||||
.page {
|
||||
counter-reset: sectionh2 sectionh3 sectionh4 sectionh5;
|
||||
|
||||
h1 {
|
||||
counter-set: sectionh2 0 sectionh3 0 sectionh4 0 sectionh5 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
counter-increment: sectionh2;
|
||||
counter-set: sectionh3 0 sectionh4 0 sectionh5 0;
|
||||
|
||||
&:before {
|
||||
content: counter(sectionh2) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
counter-increment: sectionh3;
|
||||
counter-set: sectionh4 0 sectionh5 0;
|
||||
|
||||
&:before {
|
||||
content: counter(sectionh2) "." counter(sectionh3) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
counter-increment: sectionh4;
|
||||
counter-set: sectionh5 0;
|
||||
|
||||
&:before {
|
||||
content: counter(sectionh2) "." counter(sectionh3) "." counter(sectionh4) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h5 {
|
||||
counter-increment: sectionh5;
|
||||
|
||||
&:before {
|
||||
content: counter(sectionh2) "." counter(sectionh3) "." counter(sectionh4) "." counter(sectionh5) ". ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*____________ Footer and DocInfo ____________*/
|
||||
.article_footer {
|
||||
|
|
Loading…
Reference in a new issue