fix(glossaire): compact sticky entry hero on glossary pages
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user