mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-27 07:41:07 +00:00
03da361b97
- Refactor existing template data-related partials into CitizenComponent components - Re-implement user menu header as UserInfo - Add description text for anon and temp user in UserMenu --------- Co-authored-by: github-actions <github-actions@users.noreply.github.com>
87 lines
1.7 KiB
Plaintext
87 lines
1.7 KiB
Plaintext
#citizen-page-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-page-header-sticky-sentinel {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.citizen-page-header--sticky {
|
|
.citizen-page-header {
|
|
flex-wrap: nowrap;
|
|
padding-bottom: var( --space-md );
|
|
white-space: nowrap;
|
|
.citizen-sticky-header;
|
|
|
|
.mw-indicators {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.citizen-page-heading {
|
|
position: relative;
|
|
min-width: 0;
|
|
}
|
|
|
|
.firstHeading {
|
|
overflow: hidden;
|
|
font-size: var( --font-size-x-large );
|
|
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: @max-width-breakpoint-tablet ) {
|
|
.citizen-page-header--sticky {
|
|
.citizen-page-header {
|
|
transition: var( --transition-menu );
|
|
transition-property: transform;
|
|
}
|
|
|
|
&.citizen-scroll--down {
|
|
.citizen-page-header {
|
|
transform: translateY( -150% );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Make sticky header more compact if there are less screen estate
|
|
@media ( max-height: 800px ) {
|
|
.citizen-page-header--sticky {
|
|
.citizen-page-header {
|
|
padding-top: var( --space-sm );
|
|
padding-bottom: var( --space-sm );
|
|
}
|
|
|
|
.firstHeading,
|
|
.mw-page-title-parenthesis {
|
|
font-size: var( --font-size-medium );
|
|
}
|
|
}
|
|
}
|