1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-26 19:51:33 +01:00
site/_src/_assets/styles/bigchain/_toc.scss

47 lines
755 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 .h5;
content: 'Contents';
2017-11-20 11:04:08 +01:00
font-size: $font-size-lg;
display: block;
margin-top: 0;
}
li,
ol,
ul { margin: 0; }
li {
display: block;
}
2016-01-22 16:03:56 +01:00
> 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
2017-05-31 18:43:00 +02:00
/* stylelint-disable selector-no-id */
#markdown-toc,
.section-nav {
@extend .toc;
}
2017-05-31 18:43:00 +02:00
/* stylelint-enable */