1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-02 08:21:58 +01:00
site/_src/_assets/styles/bigchain/_toc.scss

43 lines
753 B
SCSS
Raw Normal View History

.toc {
&,
2017-05-31 00:22:14 +02:00
ol { counter-reset: item; }
&,
li { padding-left: 0; }
&:before {
@extend .h1;
2017-05-31 00:22:14 +02:00
content: 'Table Of Contents';
display: block;
2016-01-22 16:03:56 +01:00
border-bottom: 1px solid $brand-main-blue-light;
padding-bottom: $spacer;
margin-bottom: ($spacer * 2);
text-align: center;
}
li,
ol { margin: 0; }
li {
display: block;
2016-01-22 16:03:56 +01:00
// custom numbers
&:before {
2017-05-31 00:22:14 +02:00
content: counters(item, '.') ' ';
counter-increment: item;
margin-right: $spacer;
color: $brand-main-gray;
}
}
}
// output by Kramdown
2017-05-31 18:43:00 +02:00
/* stylelint-disable selector-no-id */
#markdown-toc {
@extend .toc;
}
2017-05-31 18:43:00 +02:00
/* stylelint-enable */