From 815b983c7cd793ce97dd527c120ec698f69816f7 Mon Sep 17 00:00:00 2001 From: gpbl Date: Thu, 12 Dec 2024 18:18:09 -0500 Subject: [PATCH] website: improve docusaurus custom style --- website/src/css/custom.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index b62e4b8f9..a60912217 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -139,8 +139,12 @@ html[data-theme="dark"] { .markdown > h2 { font-size: 1.75rem; letter-spacing: -0.015em; - padding-bottom: 0.15em; - border-bottom: 1px solid var(--ifm-color-emphasis-200); + padding-top: 1em; + border-top: 1px solid var(--ifm-color-emphasis-200); +} + +.markdown > header + h2 { + border-top: 0; } .markdown > h3 { @@ -210,7 +214,7 @@ a.table-of-contents__link:not(:hover):not(.table-of-contents__link--active) { .table-of-contents::before { content: "On This Page"; font-weight: 600; - font-size: 0.8rem; + font-size: 1rem; margin: var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal); } }