Introduce counter for tasks

This commit is contained in:
Knoch 2019-05-08 12:10:26 +02:00
parent 36009a75aa
commit e35cf64e90
2 changed files with 31 additions and 0 deletions

View File

@ -549,3 +549,17 @@ p a:link, p a:hover, p a:active, p a:visited {
p a:hover::before {
height: 110%; }
/*
* Counters for Tasks
* ==================
*/
body {
counter-reset: tasks; }
[data-category^=Aufgabe] {
counter-increment: tasks; }
.layout-content-only h2[data-category^=Aufgabe]::after,
.layout-wide-content h2[data-category^=Aufgabe]::after {
content: counter(tasks); }

View File

@ -679,3 +679,20 @@ p a {
}
}
/*
* Counters for Tasks
* ==================
*/
body {
counter-reset: tasks;
}
[data-category^=Aufgabe] {
counter-increment: tasks;
}
.layout-content-only h2[data-category^=Aufgabe]::after,
.layout-wide-content h2[data-category^=Aufgabe]::after {
content: counter(tasks);
}