Skip to content

Commit

Permalink
fix(preview): n'affiche pas de numéro de paragraphe pour la biblio/no…
Browse files Browse the repository at this point in the history
…tes de bas de page
  • Loading branch information
thom4parisot committed Jan 22, 2025
1 parent 8e2974f commit 6838a25
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions front/src/components/Preview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -646,21 +646,23 @@ span.question:hover::after {
article {
counter-reset: para;

p, pre {
counter-increment: para;
position: relative;


&::before {
font-family: monospace;
margin: auto;
margin-left: auto;
opacity: 0.5;
content: "(" counter(para) ")";
position: absolute;
text-align: right;
left: -2.5rem;
font-size: 0.75rem;
section:not(#footnotes, #bibliographie) {
p, pre {
counter-increment: para;
position: relative;


&::before {
font-family: monospace;
margin: auto;
margin-left: auto;
opacity: 0.5;
content: "(" counter(para) ")";
position: absolute;
text-align: right;
left: -2.5rem;
font-size: 0.75rem;
}
}
}
}
Expand Down

0 comments on commit 6838a25

Please sign in to comment.