Skip to content
Snippets Groups Projects
Commit 9eaf8627 authored by Ronny Bergmann's avatar Ronny Bergmann
Browse files

rewrites Satzung to be only in markdown (i.e. styling is done by css)

replaces the counters by one counter for paragraphs only, that also does not increase for sub ul items.
parent 72cf1975
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -132,78 +132,47 @@ a { ...@@ -132,78 +132,47 @@ a {
} }
} }
} }
// Satzung
// Ordered lists. ol.Satzung {
ol {
list-style-type: none; list-style-type: none;
> li { /* Similar to h3 */
li { counter-increment: paragraph;
counter-increment: top-level; }
> li > p:first-child {
&:before { color: $headingColour;
content: counter(top-level) '.'; @include sassline(gamma, $headingtype, 3, 1, all);
font-feature-settings: 'lnum', 'tnum'; }
margin-left: -3rem; > li > p:first-child:before {
position: absolute; content:"§" counter(paragraph);
text-align: right; color: $headingColour;
width: 2em; @include sassline(gamma, $headingtype, 3, 1, all);
} margin-right:1em;
}
> li { /* all sublists are discs */
ul { ul {
padding-top:0;
li { padding-bottom:0;
list-style-type: disc;
&:before { margin-bottom:0;
content: ''; margin-left:1.5em;
}
ol {
li {
counter-increment: alt-level;
&:before {
content: counter(alt-level) '.';
}
}
}
}
} }
}
ol { > li > ol { /* subitems normally numbered */
margin-top:0;
li { margin-bottom:0;
counter-increment: sub-level; margin-left: 1.5em;
padding-top:0;
&:before { li > ol { /* subsub roman */
content: counter(top-level) '.' counter(sub-level); list-style-type: lower-latin;
} padding-top:0;
margin-top:0;
ul { margin-bottom:0;
margin-left: 2em;
li { > li > ul { margin-left:.5em;}
&:before {
content: '';
}
}
}
ol {
li {
counter-increment: sub-sub-level;
&:before {
content: counter(top-level) '.' counter(sub-level) '.' counter(sub-sub-level);
}
}
}
}
} }
li > ul { margin-left:3em;}
} }
} }
// Definition lists. // Definition lists.
dl { dl {
@include baseline(zeta, $bodytype, 2, 2, all); @include baseline(zeta, $bodytype, 2, 2, all);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment