notes/_sass/content.scss

106 lines
1.5 KiB
SCSS
Raw Normal View History

2017-03-24 13:47:37 +00:00
//
// Styles for rendered markdown in the .main-content container
//
2018-11-15 21:17:29 +00:00
// stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors, selector-max-type
2017-03-24 13:47:37 +00:00
.page-content {
ul,
ol {
2017-03-24 13:47:37 +00:00
padding-left: 1.5em;
}
ol {
list-style-type: none;
counter-reset: step-counter;
li {
position: relative;
&::before {
position: absolute;
2017-03-27 01:09:19 +00:00
top: 0.2em;
left: -1.5em;
2017-03-24 13:47:37 +00:00
color: $grey-dk-000;
2017-03-27 01:09:19 +00:00
content: counter(step-counter);
counter-increment: step-counter;
2017-03-24 13:47:37 +00:00
@include fs-3;
2017-03-27 01:09:19 +00:00
@include mq(sm) {
top: 0.11em;
}
2017-03-24 13:47:37 +00:00
}
ol {
counter-reset: sub-counter;
li {
&::before {
content: counter(sub-counter, lower-alpha);
2017-03-27 01:09:19 +00:00
counter-increment: sub-counter;
2017-03-24 13:47:37 +00:00
}
}
}
}
}
2017-04-08 22:51:14 +00:00
ul {
list-style: none;
li {
&::before {
position: absolute;
margin-left: -1.5em;
color: $grey-dk-000;
content: "";
}
}
}
2018-11-16 15:56:50 +00:00
.task-list {
padding-left: 0;
}
.task-list-item {
display: flex;
align-items: center;
&::before {
content: "";
}
}
.task-list-item-checkbox {
margin-right: 0.6em;
}
2018-10-23 15:39:48 +00:00
hr + * {
2017-03-24 13:47:37 +00:00
margin-top: 0;
}
2018-10-23 15:39:48 +00:00
h1:first-of-type {
margin-top: 0.5em;
}
2018-10-24 12:52:27 +00:00
dl {
display: grid;
grid-template-columns: max-content 1fr;
}
dt,
dd {
margin: 0.25em 0;
}
dt {
text-align: right;
2018-10-24 18:15:29 +00:00
&::after {
content: ":";
}
}
dd {
margin-left: 1em;
font-weight: 500;
}
2017-03-24 13:47:37 +00:00
}