1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-12-24 18:36:11 +01:00
site/_src/_assets/styles/bigchain/_toc.scss
Matthias Kretschmann 36695953c9 switch markdown parser to kramdown
- so we get easy TOC functionality for whitepaper
2016-02-10 01:11:01 +01:00

39 lines
675 B
SCSS

.toc {
&,
ol { counter-reset: item;}
&,
li { padding-left: 0; }
&:before {
@extend .h1;
content: "Table Of Contents";
display: block;
border-bottom: 2px solid $gray-lightest;
padding-bottom: $spacer;
margin-bottom: ($spacer * 2);
text-align: center;
}
li,
ol { margin: 0; }
li {
display: block;
// custom numbers
&:before {
content: counters(item, ".") " ";
counter-increment: item;
margin-right: $spacer;
color: $gray;
}
}
}
// output by Kramdown
#markdown-toc {
@extend .toc;
}