From 5354a2adbfd85391df2a7adc3679c78f056a5eb7 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 28 Nov 2019 22:32:33 +0800 Subject: [PATCH] Optimized anchor location. --- assets/css/main.scss | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 13bb3b1..40c8ac1 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -551,24 +551,29 @@ kbd { } h2, h3, h4, sup { - padding-top: 4rem; + padding-top: 3.5rem; margin-top: -2.5rem; } -div.footnotes>ol { +.footnotes ol { padding-inline-start: 2rem; margin-top: .5rem; } -div.footnotes>ol>li>p { +.footnotes ol>li { + padding-top: .2rem; + margin-top: -0.2rem; +} + +.footnotes ol>li>p { padding-left: .2em; } -div.footnotes>ol>li:not(:last-child) { +.footnotes ol>li:not(:last-child) { margin-bottom: -.8rem; } -div.footnotes>ol>li:target>p { +.footnotes ol>li:target>p { background-color: lightcyan; width: fit-content; -webkit-transition: background-color 1.5s ease-in-out; /* Safari prior 6.1 */ @@ -1025,12 +1030,12 @@ div.tooltip-inner { /* Overrided BS4 Tooltip */ padding-top: 3.4rem; } - div.footnotes>ol>li { + .footnotes ol>li { padding-top: 3.5rem; margin-top: -4.3rem; } - div.footnotes>ol>li:first-child { + .footnotes ol>li:first-child { margin-top: -3.5rem; } } @@ -1144,6 +1149,7 @@ div.tooltip-inner { /* Overrided BS4 Tooltip */ #main>div.row>div.col-xl-8 { max-width: 850px; } + } @media all and (min-width: 1650px) {