Remove CSS counters

This commit is contained in:
Dimitri Lozeve 2020-08-30 23:09:42 +02:00
parent 20072fdb61
commit 921dda9a72

View file

@ -1,8 +1,5 @@
body { body {
background: #fafafa; background: #fafafa;
counter-reset: theorem;
counter-reset: definition;
counter-reset: sidenote-counter; /* Hack, otherwise we break Tufte CSS */
} }
header { header {
@ -61,7 +58,6 @@ blockquote {
} }
.proposition, .theorem { .proposition, .theorem {
counter-increment: theorem;
font-style: italic; font-style: italic;
} }
@ -76,20 +72,19 @@ blockquote {
} }
.theorem:before { .theorem:before {
content: "Theorem " counter(theorem) "."; content: "Theorem.";
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
} }
.proposition:before { .proposition:before {
content: "Proposition " counter(theorem) "."; content: "Proposition.";
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
} }
.definition:before { .definition:before {
counter-increment: definition; content: "Definition.";
content: "Definition " counter(definition) ".";
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
} }