2022-09-30 02:33:06 +00:00
|
|
|
#citizen-body-header-sticky-sentinel {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2022-09-30 14:29:50 +00:00
|
|
|
height: 1px;
|
2022-09-30 02:33:06 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2022-09-30 14:47:19 +00:00
|
|
|
.ve-activated,
|
|
|
|
.action-edit {
|
|
|
|
// HACK: So sticky header will never trigger in edit action
|
|
|
|
#citizen-body-header-sticky-sentinel {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-30 02:33:06 +00:00
|
|
|
.citizen-body-header--sticky {
|
|
|
|
.mw-body-header {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
padding-bottom: var( --space-md );
|
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
2022-09-30 14:47:19 +00:00
|
|
|
|
|
|
|
.mw-indicators {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-10-25 19:03:16 +00:00
|
|
|
|
|
|
|
// HACK: Hide overflow
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
right: ~'calc( var(--padding-page ) * -1 )';
|
|
|
|
left: ~'calc( var(--padding-page ) * -1 )';
|
|
|
|
height: 100%;
|
2022-11-08 19:06:29 +00:00
|
|
|
backdrop-filter: saturate( 50% ) blur( 16px );
|
|
|
|
background-color: var( --background-color-overlay );
|
2022-10-25 19:03:16 +00:00
|
|
|
content: '';
|
|
|
|
}
|
2022-09-30 02:33:06 +00:00
|
|
|
}
|
|
|
|
|
2022-09-30 15:24:06 +00:00
|
|
|
.page-heading {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-09-30 02:33:06 +00:00
|
|
|
.firstHeading {
|
2022-11-08 19:06:29 +00:00
|
|
|
font-size: var( --font-size-h3 );
|
2022-10-19 17:49:29 +00:00
|
|
|
transition: font-size @transition-timing-fast ease;
|
2022-09-30 02:33:06 +00:00
|
|
|
}
|
2022-09-30 15:24:06 +00:00
|
|
|
|
|
|
|
.citizen-jumptotop {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
border-radius: var( --border-radius--small );
|
2022-11-01 00:34:00 +00:00
|
|
|
margin: ~'calc( var( --space-xs ) * -1 )';
|
2022-09-30 15:24:06 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --background-color-quiet--active );
|
|
|
|
}
|
|
|
|
}
|
2022-09-30 14:24:16 +00:00
|
|
|
}
|
|
|
|
|
2022-11-10 01:02:21 +00:00
|
|
|
// Hide sticky header on scroll down on smaller screens
|
|
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
|
|
|
.citizen-body-header--sticky {
|
|
|
|
.mw-body-header {
|
|
|
|
transition: @transition-transform;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.citizen-scroll--down {
|
|
|
|
.mw-body-header {
|
|
|
|
transform: translateY( -100% );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make sticky header more compact if there are less screen estate
|
2022-09-30 14:24:16 +00:00
|
|
|
@media ( max-width: @width-breakpoint-tablet ), ( max-height: 800px ) {
|
|
|
|
.citizen-body-header--sticky {
|
|
|
|
#siteSub {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-09-30 02:33:06 +00:00
|
|
|
|
2022-09-30 14:24:16 +00:00
|
|
|
.page-actions {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-09-30 02:33:06 +00:00
|
|
|
}
|
|
|
|
}
|