aboutsummaryrefslogtreecommitdiff
path: root/themes/docsy/assets/scss/_sidebar-toc.scss
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2019-10-06 21:10:46 +0200
committerDimitri Staessens <[email protected]>2019-10-06 21:10:46 +0200
commit568553394d0a8b34668a75c9839a0f1f426469b2 (patch)
tree175c08844f05611b059ba6900fb6519dbbc735d2 /themes/docsy/assets/scss/_sidebar-toc.scss
parentd5d6f70371958eec0679831abd283498ff2731e5 (diff)
downloadwebsite-568553394d0a8b34668a75c9839a0f1f426469b2.tar.gz
website-568553394d0a8b34668a75c9839a0f1f426469b2.zip
theme: Switch to docsy theme
Diffstat (limited to 'themes/docsy/assets/scss/_sidebar-toc.scss')
-rw-r--r--themes/docsy/assets/scss/_sidebar-toc.scss57
1 files changed, 57 insertions, 0 deletions
diff --git a/themes/docsy/assets/scss/_sidebar-toc.scss b/themes/docsy/assets/scss/_sidebar-toc.scss
new file mode 100644
index 0000000..96e7abb
--- /dev/null
+++ b/themes/docsy/assets/scss/_sidebar-toc.scss
@@ -0,0 +1,57 @@
+//
+// Right side toc
+//
+.td-toc {
+ border-left: 1px solid $border-color;
+
+ @supports (position: sticky) {
+ position: sticky;
+ top: 4rem;
+ height: calc(100vh - 10rem);
+ overflow-y: auto;
+ }
+
+ order: 2;
+ padding-top: 0.75rem;
+ padding-bottom: 1.5rem;
+ vertical-align: top;
+
+ a {
+ display: block;
+ font-weight: $font-weight-light;
+ padding-bottom: .25rem;
+ }
+
+ li {
+ list-style: none;
+ display: block;
+ }
+
+ li li {
+ margin-left: 0.5rem;
+ }
+
+ .td-page-meta {
+ a {
+ font-weight: $font-weight-medium;
+ }
+ }
+
+ #TableOfContents {
+ // Hugo's ToC is a mouthful, this can be used to style the top level h2 entries.
+ > ul > li > ul > li > a {}
+
+ a {
+ color: $gray-600;
+
+ &:hover {
+ color: $blue;
+ text-decoration: none;
+ }
+ }
+ }
+
+ ul {
+ padding-left: 0;
+ }
+} \ No newline at end of file