2016-01-17 18:29:04 +01:00
|
|
|
|
|
|
|
.toc {
|
|
|
|
&,
|
2017-05-31 00:22:14 +02:00
|
|
|
ol { counter-reset: item; }
|
2016-01-17 18:29:04 +01:00
|
|
|
|
|
|
|
&,
|
|
|
|
li { padding-left: 0; }
|
|
|
|
|
|
|
|
&:before {
|
2017-11-17 12:21:07 +01:00
|
|
|
@extend .h5;
|
|
|
|
content: 'Contents';
|
2016-01-17 18:29:04 +01:00
|
|
|
display: block;
|
2017-11-17 12:21:07 +01:00
|
|
|
margin-top: 0;
|
2016-01-17 18:29:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
li,
|
2017-11-17 12:21:07 +01:00
|
|
|
ol,
|
|
|
|
ul { margin: 0; }
|
2016-01-17 18:29:04 +01:00
|
|
|
|
|
|
|
li {
|
|
|
|
display: block;
|
2017-11-17 12:21:07 +01:00
|
|
|
}
|
2016-01-22 16:03:56 +01:00
|
|
|
|
2017-11-17 12:21:07 +01:00
|
|
|
> li {
|
2016-01-17 18:29:04 +01:00
|
|
|
// custom numbers
|
|
|
|
&:before {
|
2017-11-17 12:21:07 +01:00
|
|
|
content: counters(item, '.') '. ';
|
2016-01-17 18:29:04 +01:00
|
|
|
counter-increment: item;
|
2017-11-17 12:21:07 +01:00
|
|
|
margin-right: $spacer / 4;
|
|
|
|
color: $brand-main-gray-light;
|
2016-01-17 18:29:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// output by Kramdown
|
2017-05-31 18:43:00 +02:00
|
|
|
|
|
|
|
/* stylelint-disable selector-no-id */
|
2017-11-17 12:21:07 +01:00
|
|
|
#markdown-toc,
|
|
|
|
.section-nav {
|
2016-01-17 18:29:04 +01:00
|
|
|
@extend .toc;
|
|
|
|
}
|
2017-05-31 18:43:00 +02:00
|
|
|
|
|
|
|
/* stylelint-enable */
|