1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-22 09:13:35 +01:00

list tweaks

This commit is contained in:
Matthias Kretschmann 2020-05-10 14:25:58 +02:00
parent 059b0734a0
commit 7128e30188
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 17 additions and 7 deletions

View File

@ -1,5 +1,5 @@
.container {
max-width: 35rem;
max-width: 37rem;
margin-left: auto;
margin-right: auto;
}

View File

@ -14,4 +14,9 @@
ul {
margin: 0;
}
li {
margin-top: $spacer / 6;
margin-bottom: $spacer / 6;
}
}

View File

@ -117,7 +117,7 @@ export const pageQuery = graphql`
githubLink
}
rawMarkdownBody
tableOfContents(maxDepth: 2)
tableOfContents(maxDepth: 3)
}
}
`

View File

@ -49,10 +49,6 @@ ol {
margin: 0 0 $spacer;
}
p:last-child {
margin-bottom: 0;
}
// Reset fonts for relevant elements
/////////////////////////////////////
@ -255,7 +251,7 @@ ol {
li {
position: relative;
margin-bottom: $spacer / 4;
margin-bottom: $spacer / 2;
// stylelint-disable no-descending-specificity
&::before {
@ -266,11 +262,20 @@ ol {
user-select: none;
}
// stylelint-enable no-descending-specificity
p {
margin-bottom: 0;
}
}
ul,
ol {
margin-top: $spacer / 4;
margin-bottom: 0;
li {
margin: 0;
}
}
}