mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 17:50:07 +01:00
47 lines
755 B
SCSS
47 lines
755 B
SCSS
|
|
.toc {
|
|
&,
|
|
ol { counter-reset: item; }
|
|
|
|
&,
|
|
li { padding-left: 0; }
|
|
|
|
&:before {
|
|
@extend .h5;
|
|
content: 'Contents';
|
|
font-size: $font-size-lg;
|
|
display: block;
|
|
margin-top: 0;
|
|
}
|
|
|
|
li,
|
|
ol,
|
|
ul { margin: 0; }
|
|
|
|
li {
|
|
display: block;
|
|
}
|
|
|
|
> li {
|
|
// custom numbers
|
|
&:before {
|
|
content: counters(item, '.') '. ';
|
|
counter-increment: item;
|
|
margin-right: $spacer / 4;
|
|
color: $brand-main-gray-light;
|
|
width: 1rem;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
// output by Kramdown
|
|
|
|
/* stylelint-disable selector-no-id */
|
|
#markdown-toc,
|
|
.section-nav {
|
|
@extend .toc;
|
|
}
|
|
|
|
/* stylelint-enable */
|