No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
/* All CSS here will be loaded for users of the Citizen skin */ | /* All CSS here will be loaded for users of the Citizen skin */ | ||
:root { | |||
/* Set Coasterpedia primary color */ | |||
--color-primary__h: 94; | |||
--color-primary__s: 64%; | |||
--color-primary__l: 42%; | |||
} | |||
a { | |||
/* Make links blue */ | |||
--color-link: #36c; | |||
} | |||
.mw-logo-icon { | |||
/* Temp fix to icon aspect ratio until it is fixed upstream */ | |||
height: auto; | |||
} | |||
.citizen-header { | |||
/* Change header color */ | |||
background-color: var( --color-primary ); | |||
} | |||
/* Tweak header icon to work better with primary color header */ | |||
.citizen-header__buttonIcon, | |||
.citizen-header__button .citizen-ui-icon:before, | |||
#pt-notifications-alert .mw-echo-notifications-badge, | |||
#pt-notifications-notice .mw-echo-notifications-badge { | |||
/* Make icon always solid */ | |||
--opacity-icon-base: 1; | |||
/* Make icon always white */ | |||
filter: invert( 1 ) hue-rotate( 180deg ) !important; | |||
} | |||
/* Remove filter from logo in footer*/ | |||
#footer-sitetitle img.mw-logo-wordmark { | |||
filter: none; | |||
} | |||
/* Make drawer always visible > 1300px */ | /* Make drawer always visible > 1300px */ | ||
@media screen { | @media screen and ( min-width: 1300px ) { | ||
:root { | :root { | ||
--fixed-menu-width: 240px; | --fixed-menu-width: 240px; | ||
Line 74: | Line 112: | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
} | |||
/* Template styles */ | |||
.navbox-subheader { | |||
background-color: var( --color-surface-3 ); | |||
} | |||
.infobox-new { | |||
border: 1px solid var( --border-color-base ) !important; | |||
} | |||
.infobox-new td { | |||
border-bottom: 1px solid var( --border-color-base ); | |||
} | |||
.skin-citizen-dark .external-link-rcdb { | |||
filter: invert( 1 ); | |||
} | |||
.skin-citizen-dark .box-blue, | |||
.skin-citizen-dark .box-purple, | |||
.skin-citizen-dark .box-red, | |||
.skin-citizen-dark .box-yellow, | |||
.skin-citizen-dark .box-green, | |||
.skin-citizen-dark .box-grey, | |||
.skin-citizen-dark .main-page-box { | |||
background: none !important; | |||
} | |||
.table-unknown, | |||
.table-na, | |||
#elementbox, | |||
.infobox-new, | |||
.cp-navbox, | |||
.double-image { | |||
background-color: var( --color-surface-2 ) !important; | |||
} | |||
/* Hotcat styles */ | |||
.catlinks li { | |||
position: relative; | |||
} | |||
.hotcatlink { | |||
position: absolute; | |||
right: calc( var( --space-xs ) * -1 ); | |||
top: calc( var( --space-xs ) * -1 ); | |||
left: calc( var( --space-xs ) * -1 ); | |||
text-align: center; | |||
} | |||
.oo-ui-windowManager-modal > .oo-ui-dialog { | |||
z-index:500; | |||
} | |||
@media screen and (max-width: 720px){ | |||
.citizen-scroll--down .citizen-header { | |||
transform: none; | |||
} | |||
.hide-on-mobile { | |||
display:none; | |||
} | |||
} | |||
@media screen and ( min-width: 1000px ) { | |||
.citizen-toc-enabled .citizen-body-container { | |||
grid-template-areas: | |||
'header header' | |||
'content content' | |||
'footer footer' !important; | |||
} | |||
.citizen-toc { | |||
display: none; | |||
} | |||
} | |||
.permissions-errors { | |||
list-style: none; | |||
margin: 0; | |||
} | |||
.permissions-errors li { | |||
margin-bottom: 1em; | |||
} | |||
/* Show TOC button on desktop */ | |||
@media screen and (min-width:1000px) { | |||
.citizen-toc { | |||
position: fixed; | |||
right: 0; | |||
bottom: 0; | |||
z-index: 11; | |||
pointer-events: none; | |||
display: block !important; | |||
} | |||
#citizen-toc__buttonCheckbox { | |||
position: absolute; | |||
right: 0; | |||
bottom: 0; | |||
display: grid !important; | |||
place-content: center; | |||
width: 2.5rem; | |||
height: 2.5rem; | |||
margin: var(--space-xs); | |||
pointer-events: auto; | |||
background-color: var(--color-surface-1); | |||
border-radius: var(--border-radius--medium); | |||
box-shadow: var(--box-shadow-dialog); | |||
transition: var(--transition-menu); | |||
transition-property: transform; | |||
transform: none; | |||
transform-origin: bottom right; | |||
} | |||
#citizen-toc__buttonCheckbox .citizen-ui-icon { | |||
width: 1rem; | |||
height: 1rem; | |||
} | |||
.citizen-toc__card { | |||
max-height: calc(var(--header-card-maxheight) - 8rem); | |||
padding: var(--space-md); | |||
margin: var(--space-xs); | |||
overflow: auto; | |||
overscroll-behavior: contain; | |||
-webkit-user-select: none; | |||
user-select: none; | |||
background-color: var(--color-surface-1); | |||
border: 1px solid var(--border-color-base); | |||
box-shadow: var(--box-shadow-dialog); | |||
border-radius: var(--border-radius--medium); | |||
pointer-events: none; | |||
visibility: hidden; | |||
opacity: 0; | |||
transform: scale(0); | |||
transform-origin: bottom right; | |||
transition: var(--transition-menu); | |||
transition-property: transform,opacity; | |||
will-change: transform,opacity; | |||
} | |||
#citizen-toc__checkbox:checked ~ .citizen-toc__card { | |||
z-index: 101; | |||
pointer-events: auto; | |||
visibility: visible; | |||
opacity: 1; | |||
transition-delay: 0ms; | |||
transform: none; | |||
} | |||
} | |||
/* Hide main page header */ | |||
.page-Coasterpedia_The_Roller_Coaster_Wiki .mw-body-header, | |||
.page-Coasterpedia_The_Roller_Coaster_Wiki #contentSub { | |||
display: none; | |||
} | |||
#citizen-sidebar-lastmod { | |||
display: none; | |||
} | } |
Revision as of 07:50, 19 May 2024
/* All CSS here will be loaded for users of the Citizen skin */ :root { /* Set Coasterpedia primary color */ --color-primary__h: 94; --color-primary__s: 64%; --color-primary__l: 42%; } a { /* Make links blue */ --color-link: #36c; } .mw-logo-icon { /* Temp fix to icon aspect ratio until it is fixed upstream */ height: auto; } .citizen-header { /* Change header color */ background-color: var( --color-primary ); } /* Tweak header icon to work better with primary color header */ .citizen-header__buttonIcon, .citizen-header__button .citizen-ui-icon:before, #pt-notifications-alert .mw-echo-notifications-badge, #pt-notifications-notice .mw-echo-notifications-badge { /* Make icon always solid */ --opacity-icon-base: 1; /* Make icon always white */ filter: invert( 1 ) hue-rotate( 180deg ) !important; } /* Remove filter from logo in footer*/ #footer-sitetitle img.mw-logo-wordmark { filter: none; } /* Make drawer always visible > 1300px */ @media screen and ( min-width: 1300px ) { :root { --fixed-menu-width: 240px; } .citizen-page-container { /* Reserve space for drawer */ margin-left: calc( var( --header-size ) + var( --fixed-menu-width ) ); } .citizen-drawer__button { /* Hide drawer button */ display: none; } .citizen-drawer__card { bottom: 0; /* Put drawer behind other header cards */ z-index: -1; margin: 0; /* Compensate header border */ margin-left: 1px; padding: 0; min-width: auto; width: var( --fixed-menu-width ); max-height: none; border-right: 1px solid var( --border-color-base ); border-radius: 0; background-color: var( --color-surface-0 ); box-shadow: none; /* Force drawer to show */ opacity: 1 !important; pointer-events: auto !important; transform: none !important; visibility: visible !important; left:56px; } .citizen-drawer__card > * { /* Force drawer content to show */ opacity: 1 !important; } .citizen-drawer__header { padding-left: var( --space-xl ); padding-right: var( --space-xl ); } .citizen-drawer__logo { /* Hide drawer header logo */ display: none; } .citizen-drawer__siteinfo .mw-logo-wordmark { font-size: 1.25rem; } .citizen-siteStats { font-size: 0.8125rem; } #citizen-siteStats__item--images, #citizen-siteStats__item--users { /* Hide image and user stats to make space */ display: none; } .citizen-drawer__menu { padding-left: var( --space-xs ); padding-right: var( --space-xs ); grid-template-columns: 1fr; } } /* Template styles */ .navbox-subheader { background-color: var( --color-surface-3 ); } .infobox-new { border: 1px solid var( --border-color-base ) !important; } .infobox-new td { border-bottom: 1px solid var( --border-color-base ); } .skin-citizen-dark .external-link-rcdb { filter: invert( 1 ); } .skin-citizen-dark .box-blue, .skin-citizen-dark .box-purple, .skin-citizen-dark .box-red, .skin-citizen-dark .box-yellow, .skin-citizen-dark .box-green, .skin-citizen-dark .box-grey, .skin-citizen-dark .main-page-box { background: none !important; } .table-unknown, .table-na, #elementbox, .infobox-new, .cp-navbox, .double-image { background-color: var( --color-surface-2 ) !important; } /* Hotcat styles */ .catlinks li { position: relative; } .hotcatlink { position: absolute; right: calc( var( --space-xs ) * -1 ); top: calc( var( --space-xs ) * -1 ); left: calc( var( --space-xs ) * -1 ); text-align: center; } .oo-ui-windowManager-modal > .oo-ui-dialog { z-index:500; } @media screen and (max-width: 720px){ .citizen-scroll--down .citizen-header { transform: none; } .hide-on-mobile { display:none; } } @media screen and ( min-width: 1000px ) { .citizen-toc-enabled .citizen-body-container { grid-template-areas: 'header header' 'content content' 'footer footer' !important; } .citizen-toc { display: none; } } .permissions-errors { list-style: none; margin: 0; } .permissions-errors li { margin-bottom: 1em; } /* Show TOC button on desktop */ @media screen and (min-width:1000px) { .citizen-toc { position: fixed; right: 0; bottom: 0; z-index: 11; pointer-events: none; display: block !important; } #citizen-toc__buttonCheckbox { position: absolute; right: 0; bottom: 0; display: grid !important; place-content: center; width: 2.5rem; height: 2.5rem; margin: var(--space-xs); pointer-events: auto; background-color: var(--color-surface-1); border-radius: var(--border-radius--medium); box-shadow: var(--box-shadow-dialog); transition: var(--transition-menu); transition-property: transform; transform: none; transform-origin: bottom right; } #citizen-toc__buttonCheckbox .citizen-ui-icon { width: 1rem; height: 1rem; } .citizen-toc__card { max-height: calc(var(--header-card-maxheight) - 8rem); padding: var(--space-md); margin: var(--space-xs); overflow: auto; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; background-color: var(--color-surface-1); border: 1px solid var(--border-color-base); box-shadow: var(--box-shadow-dialog); border-radius: var(--border-radius--medium); pointer-events: none; visibility: hidden; opacity: 0; transform: scale(0); transform-origin: bottom right; transition: var(--transition-menu); transition-property: transform,opacity; will-change: transform,opacity; } #citizen-toc__checkbox:checked ~ .citizen-toc__card { z-index: 101; pointer-events: auto; visibility: visible; opacity: 1; transition-delay: 0ms; transform: none; } } /* Hide main page header */ .page-Coasterpedia_The_Roller_Coaster_Wiki .mw-body-header, .page-Coasterpedia_The_Roller_Coaster_Wiki #contentSub { display: none; } #citizen-sidebar-lastmod { display: none; }