Fix first h1 spacing, header font hierarchy

The font hierarchy is a little complicated between the _content.scss,
_font.scss, and Redocly theme styles, but this at least aligns the
Redocly theme variables with the MD content styling.
This commit is contained in:
mDuo13
2024-04-11 13:51:46 -07:00
parent b51d502abf
commit a27f28a9b8
3 changed files with 10 additions and 5 deletions

View File

@@ -189,6 +189,13 @@ ul.nav.navbar-nav {
--inline-code-border-radius: 0;
--heading-anchor-color: #9a52ff;
--h1-font-size: 3rem;
--h2-font-size: 2.5rem;
--h3-font-size: 2.125rem;
--h3-font-weight: 600;
--h4-font-size: 1.75rem;
--h5-font-size: 1.25rem;
--sidebar-border-color: transparent;
--sidebar-background-color: transparent;

File diff suppressed because one or more lines are too long

View File

@@ -586,10 +586,8 @@ article h6:before,
visibility: hidden;
pointer-events: none;
}
// Fix so links aren't unclickable underneath the header anchor-fix
a {
z-index: 1;
article h1:first-of-type:before {
margin-top: -60px; // Don't add extra space to page title
}
// Animated chevron (e.g. for language dropdown) -------------------------------