From d9f5a9fabf23048b185d0df3ad39d0a26ab0432c Mon Sep 17 00:00:00 2001 From: Colton Padden Date: Mon, 19 Aug 2024 12:58:49 -0400 Subject: [PATCH] add top borders to all markdown h2 headers --- docs/docs-beta/src/styles/custom.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docs-beta/src/styles/custom.scss b/docs/docs-beta/src/styles/custom.scss index 8e1b505736d66..80d3c8d91ad19 100644 --- a/docs/docs-beta/src/styles/custom.scss +++ b/docs/docs-beta/src/styles/custom.scss @@ -108,6 +108,15 @@ a.pyobject { --ifm-h5-font-size: 0.8rem; } + // Emulate horizontal rule above h2 headers + h2 { + border-top: 1px; + border-top-style: solid; + border-top-color: var(--theme-color-text-light); + margin-top: 0px; + padding-top: calc(var(--ifm-heading-vertical-rhythm-bottom) * var(--ifm-leading)) + } + // We want this to only apply to inline code, so don't apply // this color to ``` code blocks nor any headings. :not(pre):not(h2):not(h3):not(h4):not(h5):not(h6) > code {