Skip to content

Commit

Permalink
add top borders to all markdown h2 headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpadden committed Aug 19, 2024
1 parent 13d16fb commit d9f5a9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/docs-beta/src/styles/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d9f5a9f

Please sign in to comment.