mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 11:52:39 +02:00
refactor: make main heading size changeable via CSS var (#5377)
This commit is contained in:
parent
bcb883055e
commit
974644d16b
4 changed files with 6 additions and 11 deletions
|
@ -39,7 +39,7 @@
|
||||||
"copy-text-to-clipboard": "^3.0.1",
|
"copy-text-to-clipboard": "^3.0.1",
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"globby": "^11.0.2",
|
"globby": "^11.0.2",
|
||||||
"infima": "0.2.0-alpha.30",
|
"infima": "0.2.0-alpha.31",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
"parse-numeric-range": "^1.2.0",
|
"parse-numeric-range": "^1.2.0",
|
||||||
"postcss": "^8.2.15",
|
"postcss": "^8.2.15",
|
||||||
|
|
|
@ -24,7 +24,7 @@ export const MainHeading: HeadingComponent = function MainHeading({...props}) {
|
||||||
<h1
|
<h1
|
||||||
{...props}
|
{...props}
|
||||||
id={undefined} // h1 headings do not need an id because they don't appear in the TOC
|
id={undefined} // h1 headings do not need an id because they don't appear in the TOC
|
||||||
className={styles.h1Heading}>
|
>
|
||||||
{props.children}
|
{props.children}
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -8,8 +8,3 @@
|
||||||
.enhancedAnchor {
|
.enhancedAnchor {
|
||||||
top: calc(var(--ifm-navbar-height) * -1 - 0.5rem);
|
top: calc(var(--ifm-navbar-height) * -1 - 0.5rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.h1Heading {
|
|
||||||
font-size: 3rem;
|
|
||||||
margin-bottom: calc(var(--ifm-leading-desktop) * var(--ifm-leading));
|
|
||||||
}
|
|
||||||
|
|
|
@ -11126,10 +11126,10 @@ infer-owner@^1.0.3, infer-owner@^1.0.4:
|
||||||
resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467"
|
resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467"
|
||||||
integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==
|
integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==
|
||||||
|
|
||||||
infima@0.2.0-alpha.30:
|
infima@0.2.0-alpha.31:
|
||||||
version "0.2.0-alpha.30"
|
version "0.2.0-alpha.31"
|
||||||
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.30.tgz#98c4037796ea134b63b787c030ee1bf46dfadc82"
|
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.31.tgz#c5b66ef1797551471c49b636d6ed270f981d276e"
|
||||||
integrity sha512-4VBgaohDbM/viJ11MaBJz7glNODV9NRHAFqrEl+MsBNUflV1RIPEWjTkKa6L6TS/ROXlwimDcspGWKqVjNjBpg==
|
integrity sha512-ggOAeyiQIFKZeYnH9lbhDBHFZhcYOa0LFKSMLgot33X21aJRu7ruwVUVwYg4kJnZRLGLeAjC5BVgLxKoLixuNQ==
|
||||||
|
|
||||||
inflight@^1.0.4:
|
inflight@^1.0.4:
|
||||||
version "1.0.6"
|
version "1.0.6"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue