refactoring

This commit is contained in:
Philipp Kühn
2020-10-12 21:37:03 +02:00
parent 5a9a8ce34e
commit 867254f109
4 changed files with 73 additions and 85 deletions

View File

@@ -27,6 +27,7 @@
> h4,
> h5,
> h6 {
font-weight: 500;
color: $colorWhite;
margin-top: 3 * $spacing;
margin-bottom: $spacing;
@@ -94,31 +95,35 @@
text-decoration: underline;
}
#table-of-contents + ul {
border: 1px solid rgba($colorWhite, 0.1);
padding: 1.2rem 1.5rem !important;
border-radius: 0.5rem;
#table-of-contents {
display: none;
&::before {
display: block;
content: 'On this page';
font-weight: 700;
letter-spacing: 0.025rem;
font-size: 0.75rem;
text-transform: uppercase;
color: rgba($colorWhite, 0.3);
margin-bottom: 0.5rem;
}
li {
padding-left: 0;
& + ul {
border: 1px solid rgba($colorWhite, 0.1);
padding: 1.2rem 1.5rem !important;
border-radius: 0.5rem;
&::before {
display: none;
display: block;
content: 'On this page';
font-weight: 700;
letter-spacing: 0.025rem;
font-size: 0.75rem;
text-transform: uppercase;
color: rgba($colorWhite, 0.3);
margin-bottom: 0.5rem;
}
ul {
margin-left: 1rem;
li {
padding-left: 0;
&::before {
display: none;
}
ul {
margin-left: 1rem;
}
}
}
}