From c9a4939ea2dfa4b3da63e22037147f11a9152114 Mon Sep 17 00:00:00 2001 From: Joe <33972521+hnb-ku@users.noreply.github.com> Date: Sat, 9 Mar 2019 10:08:44 +0800 Subject: [PATCH] style tweaks --- common/common.scss | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/common/common.scss b/common/common.scss index 984d23c..ba6151c 100644 --- a/common/common.scss +++ b/common/common.scss @@ -17,6 +17,9 @@ } } } + [data-theme-toc] { + display: none; + } .d-toc-ignore { font-size: $font-up-1; margin: 0 0 10px 0; @@ -52,7 +55,7 @@ } a { color: $primary; - text-shadow: 0.1px 0.1px currentColor, -0.1px -0.1px currentColor; + text-shadow: 0.1px 0.1px $primary, -0.1px -0.1px $primary; } } } @@ -99,7 +102,9 @@ // large screens @media screen and (min-width: $large-width) { - .d-toc-toggle, + .d-toc-toggle { + display: none !important; + } .d-toc-close-wrapper, .d-toc-subheading { display: none; @@ -196,3 +201,14 @@ } } } + +.d-editor-preview [data-theme-toc] { + background: $tertiary; + color: $secondary; + position: sticky; + top: 0; + height: 30px; + display: flex; + align-items: center; + justify-content: center; +}