#citizen-body-header-sticky-sentinel { right: 0; left: 0; grid-area: content; // align right above content height: 1px; visibility: hidden; contain: strict; } .ve-activated, .action-edit { // HACK: So sticky header will never trigger in edit action #citizen-body-header-sticky-sentinel { display: none; } } .citizen-body-header--sticky { .mw-body-header { flex-wrap: nowrap; padding-bottom: var( --space-md ); white-space: nowrap; .citizen-sticky-header; .mw-indicators { display: none; } } .page-heading { position: relative; min-width: 0; } .firstHeading { overflow: hidden; font-size: var( --font-size-h3 ); text-overflow: ellipsis; } .citizen-jumptotop { position: absolute; inset: 0 0 0 0; margin: ~'calc( var( --space-xs ) * -1 )'; border-radius: var( --border-radius--small ); &:hover { background-color: var( --background-color-quiet--hover ); } &:active { background-color: var( --background-color-quiet--active ); } } } // Hide sticky header on scroll down on smaller screens @media ( max-width: @width-breakpoint-tablet ) { .citizen-body-header--sticky { .mw-body-header { transition: var( --transition-menu ); transition-property: transform; } &.citizen-scroll--down { .mw-body-header { transform: translateY( -100% ); } } } } // Make sticky header more compact if there are less screen estate @media ( max-width: @width-breakpoint-tablet ), ( max-height: 800px ) { .citizen-body-header--sticky { #siteSub { display: none; } .page-actions { display: none; } } }