Skip to content

Commit 4515a39

Browse files
Fix oversized gap below home section headings
The theme's h2.gdoc-list-title { margin-bottom: 4rem } (specificity 0,1,1) was overriding the compact .gdoc-list-title override, leaving a large gap between e.g. 'AI Agents & LLM Friendly' and its subheader. Add !important to the custom margin-bottom (1.25rem). Logged in CHANGELOG.
1 parent 10eb1e3 commit 4515a39

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ tags), so changes accumulate under **[Unreleased]**.
4040
- `build_search_index.py` handles UTF-8 BOM (python-net files) and non-UTF-8 bytes (`surrogateescape`).
4141
- CloudFront invalidation covers the bucket-root `.md`/`llms`/`404` outputs (no more stale `/index.md`, `/llms.txt`).
4242
- Local preview serves text as UTF-8 (`serve-local.py`) so punctuation no longer renders as mojibake.
43+
- Tightened the gap between home section headings (`gdoc-list-title`) and their subheaders — the
44+
theme's more-specific `h2.gdoc-list-title { margin-bottom: 4rem }` was overriding the compact override.

‎themes/docs/assets/custom.css‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ a.gdoc-two-columns__column__link {
237237
/* Compact the home/index layout. Theme defaults (e.g. gdoc-list-descr margin-bottom:15rem)
238238
are tuned for a sparse single-product landing and leave huge gaps on a dense grid. */
239239
.gdoc-list-descr { margin-bottom: 2rem; }
240-
.gdoc-list-title { margin-top: 3.5rem !important; margin-bottom: 1.25rem; }
240+
/* !important on both: the theme's `h2.gdoc-list-title { margin-bottom: 4rem }` is more
241+
specific (0,1,1) and would otherwise win, leaving a big gap before the section subheader. */
242+
.gdoc-list-title { margin-top: 3.5rem !important; margin-bottom: 1.25rem !important; }
241243
.gdoc-list-apps { margin-bottom: 2.5rem; }
242244
.gdoc-list-app { margin-bottom: 2.25rem; }
243245

0 commit comments

Comments
 (0)