From a5bf9413eac05d96bb6f0ed2362453a147582c85 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Fri, 26 Apr 2024 15:57:29 -0400 Subject: [PATCH] =?UTF-8?q?feat(core):=20=E2=9C=A8=20make=20sticky=20heade?= =?UTF-8?q?r=20more=20compact=20in=20limited=20screens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/StickyHeader.less | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/resources/skins.citizen.styles/components/StickyHeader.less b/resources/skins.citizen.styles/components/StickyHeader.less index 0d10ab30..6759464f 100644 --- a/resources/skins.citizen.styles/components/StickyHeader.less +++ b/resources/skins.citizen.styles/components/StickyHeader.less @@ -67,18 +67,23 @@ transform: translateY( -100% ); } } - } -} - -// Make sticky header more compact if there are less screen estate -@media ( max-width: @max-width-breakpoint-tablet ), ( max-height: 800px ) { - .citizen-body-header--sticky { - #siteSub { - display: none; - } .page-actions { display: none; } } } + +// Make sticky header more compact if there are less screen estate +@media ( max-height: 800px ) { + .citizen-body-header--sticky { + .mw-body-header { + padding-top: var( --space-sm ); + padding-bottom: var( --space-sm ); + } + + .firstHeading { + font-size: var( --font-size-medium ); + } + } +}