fix(glossaire): compact sticky entry hero on glossary pages
All checks were successful
SMOKE / smoke (push) Successful in 5s
CI / build-and-anchors (push) Successful in 50s
CI / build-and-anchors (pull_request) Successful in 46s

This commit is contained in:
2026-03-26 18:30:34 +01:00
parent 551360db83
commit 630b146d02
3 changed files with 83 additions and 11 deletions

View File

@@ -26,6 +26,38 @@ const {
</EditionLayout>
<style is:global>
body[data-edition-key="glossaire"][data-sticky-mode="glossary-entry"]{
--entry-hero-pad-top: 18px;
--entry-hero-pad-x: 18px;
--entry-hero-pad-bottom: 18px;
--entry-hero-gap: 14px;
--entry-hero-h1-size: clamp(2.2rem, 4vw, 3.15rem);
--entry-hero-dek-size: 1.04rem;
--entry-hero-dek-lh: 1.55;
--entry-hero-dek-maxw: 76ch;
--entry-hero-meta-max-h: 12rem;
--entry-hero-meta-opacity: 1;
}
body[data-edition-key="glossaire"][data-sticky-mode="glossary-entry"].glossary-entry-follow-on{
--entry-hero-pad-top: 8px;
--entry-hero-pad-x: 14px;
--entry-hero-pad-bottom: 6px;
--entry-hero-gap: 6px;
--entry-hero-h1-size: clamp(1.45rem, 2.4vw, 1.9rem);
--entry-hero-dek-size: .90rem;
--entry-hero-dek-lh: 1.32;
--entry-hero-dek-maxw: 56ch;
--entry-hero-meta-max-h: 0px;
--entry-hero-meta-opacity: 0;
}
body[data-edition-key="glossaire"][data-sticky-mode="glossary-portal"]{
--portal-hero-pad-top: 18px;
--portal-hero-pad-x: 18px;