From a28ed980954433dc05fa401d09d657dbcc60991d Mon Sep 17 00:00:00 2001 From: MeAkib Date: Wed, 23 Sep 2026 20:57:34 +0600 Subject: [PATCH] docs: move header link icon to the right to align with Angular style --- docs/src/styles/_markdown.scss | 22 +++++++++---------- tools/dgeni/templates/class.template.html | 2 +- tools/dgeni/templates/constant.template.html | 2 +- .../dgeni/templates/entry-point.template.html | 16 +++++++------- tools/dgeni/templates/interface.template.html | 2 +- .../dgeni/templates/type-alias.template.html | 2 +- .../markdown-to-html/docs-marked-renderer.mts | 2 +- .../docs-marked-renderer.spec.mts | 4 ++-- 8 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/src/styles/_markdown.scss b/docs/src/styles/_markdown.scss index aa9184a507a9..9750a768e6a3 100644 --- a/docs/src/styles/_markdown.scss +++ b/docs/src/styles/_markdown.scss @@ -8,23 +8,24 @@ color: var(--mat-sys-primary); } + h1, + h2, + h3 { + font-weight: 400; + margin: 32px 0 16px; + } + h1 { display: inline-block; font-size: 32px; - font-weight: 400; - margin: 32px 0 16px; } h2 { font-size: 28px; - margin: 32px 0 16px; - font-weight: 400; } h3 { font-size: 24px; - margin: 32px 0 16px; - font-weight: 400; } h4 { @@ -92,11 +93,10 @@ .docs-header-link { header-link { - // deduct -30px so the anchor icon will be positioned outside the content - margin-left: -30px; - // Slight margin to try and center the icon better. - margin-top: 2px; - display: inline-block; + // Slight margin so the anchor icon isn't flush against the heading text. + margin-left: 8px; + display: inline-flex; + align-items: center; vertical-align: middle; // stylelint-disable-next-line material/no-prefixes diff --git a/tools/dgeni/templates/class.template.html b/tools/dgeni/templates/class.template.html index c9a4859bfdde..00058a563149 100644 --- a/tools/dgeni/templates/class.template.html +++ b/tools/dgeni/templates/class.template.html @@ -1,7 +1,6 @@ {% import "macros.html" as macros %}