mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 09:13:35 +01:00
list tweaks
This commit is contained in:
parent
059b0734a0
commit
7128e30188
@ -1,5 +1,5 @@
|
||||
.container {
|
||||
max-width: 35rem;
|
||||
max-width: 37rem;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
@ -14,4 +14,9 @@
|
||||
ul {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: $spacer / 6;
|
||||
margin-bottom: $spacer / 6;
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ export const pageQuery = graphql`
|
||||
githubLink
|
||||
}
|
||||
rawMarkdownBody
|
||||
tableOfContents(maxDepth: 2)
|
||||
tableOfContents(maxDepth: 3)
|
||||
}
|
||||
}
|
||||
`
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user