|
|
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 */ |
Line 112: |
Line 74: |
| 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;
| |
| } | | } |