60 lines
983 B
SCSS
60 lines
983 B
SCSS
// --------------------------------------------------------------------------------
|
|
// Block: List
|
|
// --------------------------------------------------------------------------------
|
|
ul,
|
|
ol {
|
|
&.block {
|
|
overflow: hidden;
|
|
}
|
|
|
|
&.block {
|
|
margin: 0;
|
|
padding: 0 0 0 2em;
|
|
}
|
|
|
|
&.block>li {
|
|
padding: 0 0 0 0;
|
|
}
|
|
|
|
|
|
&.block>li+li {
|
|
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;
|
|
}
|
|
}
|