Skip to content

Commit

Permalink
refactor: manage ToC styles in separate scss file
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-sid committed May 4, 2023
1 parent 6fb74c7 commit f18f133
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
24 changes: 0 additions & 24 deletions assets/sass/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,6 @@
}
}

// Table of contents
details {
cursor: pointer;
}

.toc {
margin: 1.1rem 0 1rem 0;
padding: .5rem 1rem .5rem 1rem;
border-radius: .3rem;
background-color: $toc-bg;

ul {
padding-top: 1rem;
margin-left: 1rem;
padding-left: 1rem;

li {
margin-bottom: 0.5em;
line-height: 1.4;
}
}
}


// Post content
.page-content {
padding-top: 8px;
Expand Down
22 changes: 22 additions & 0 deletions assets/sass/_tableOfContent.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* Table of contents */
details {
cursor: pointer;
}

.toc {
margin: 1.1rem 0 1rem 0;
padding: .5rem 1rem .5rem 1rem;
border-radius: .3rem;
background-color: $toc-bg;

ul {
padding-top: 1rem;
margin-left: 1rem;
padding-left: 1rem;

li {
margin-bottom: 0.5em;
line-height: 1.4;
}
}
}

0 comments on commit f18f133

Please sign in to comment.