Add some extra stylings

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2023-04-22 20:22:38 +02:00
parent c15b58f860
commit b5f1e91e91
2 changed files with 38 additions and 0 deletions
+36
View File
@@ -20,4 +20,40 @@ ol {
&.block>li+li { &.block>li+li {
padding: .2em 0 0 0; padding: .2em 0 0 0;
} }
&.subscript {
font-size: 0.8rem;
line-height: 2em;
counter-reset: item;
list-style: none;
}
&.subscript>li {
position: relative;
}
&.subscript>li:before {
content: counter(item) ")";
counter-increment: item;
vertical-align: sub;
position: absolute;
left: -1.1em;
top: .25em;
}
&.superscript {
font-size: 0.8rem;
line-height: 2em;
counter-reset: item;
list-style: none;
}
&.superscript>li {
position: relative;
}
&.superscript>li:before {
content: counter(item) ")";
counter-increment: item;
vertical-align: super;
position: absolute;
left: -1.1em;
top: -0.25em;
}
} }
+2
View File
@@ -2,6 +2,8 @@
// Generic Block // Generic Block
// -------------------------------------------------------------------------------- // --------------------------------------------------------------------------------
.block { .block {
display: block;
position: relative;
padding: 0; padding: 0;
margin: 0 auto; margin: 0 auto;
overflow: auto; overflow: auto;