1
0
mirror of https://github.com/thangisme/notes.git synced 2024-07-23 18:14:22 -04:00
notes/_sass/content.scss

52 lines
899 B
SCSS
Raw Normal View History

2017-03-24 09:47:37 -04:00
//
// Styles for rendered markdown in the .main-content container
//
2017-03-26 21:09:19 -04:00
// stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors
2017-03-24 09:47:37 -04:00
.page-content {
ul,
ol,
dl {
padding-left: 1.5em;
}
ol {
list-style-type: none;
counter-reset: step-counter;
li {
position: relative;
&::before {
position: absolute;
2017-03-26 21:09:19 -04:00
top: 0.2em;
left: -1.5em;
2017-03-24 09:47:37 -04:00
color: $grey-dk-000;
2017-03-26 21:09:19 -04:00
content: counter(step-counter);
counter-increment: step-counter;
2017-03-24 09:47:37 -04:00
@include fs-3;
2017-03-26 21:09:19 -04:00
@include mq(sm) {
top: 0.11em;
}
2017-03-24 09:47:37 -04:00
}
ol {
counter-reset: sub-counter;
li {
&::before {
content: counter(sub-counter, lower-alpha);
2017-03-26 21:09:19 -04:00
counter-increment: sub-counter;
2017-03-24 09:47:37 -04:00
}
}
}
}
}
hr + *,
h1:first-of-type {
margin-top: 0;
}
}