From 27d4381eeefd33c91298222fa3560df05e75562f Mon Sep 17 00:00:00 2001 From: Rafael Nicdao Date: Wed, 21 Jul 2021 07:12:50 +1000 Subject: [PATCH] Initial working implementation for https://github.com/MeiK2333/github-style/issues/71 Although very messy. Needs refactoring --- layouts/partials/post.html | 101 +++++++++++++++++++++++++++++++++++-- 1 file changed, 98 insertions(+), 3 deletions(-) diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 4b772112..5ee42825 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,3 +1,39 @@ + + border-radius: 10px; + } + .tippy-content { + border-radius: 10px; + background-color: var(--color-bg-table-of-contents-container); + border: 1px solid var(--color-border-primary); + overflow-y: hidden; + padding: 0; + } + #table-of-contents { + max-height: 30em; + overflow-y: scroll; + } + #table-of-contents > nav ul { + list-style-type: none; + } + #table-of-contents > nav > ul li > a { + color: var(--color-text-primary); + text-decoration: none; + padding: 0.5em; + border-radius: 6px; + display: block; + } + #table-of-contents > nav > ul li > a.table-of-contents-option-selected { + background-color: var(--color-bg-table-of-contents-option-selected); + color: var(--color-fg-table-of-contents-option-selected); + } + #table-of-contents > nav ul > li { + margin-left: 1em; + font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; + } + #table-of-contents > nav > ul > li { + margin-left: 0; + } +
@@ -42,10 +78,16 @@

-
+

-
\ No newline at end of file + +