Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
Removed identation of lists inside wikitables and portable infoboxes
Applied mobile skin fixes
 
(6 intermediate revisions by the same user not shown)
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 */
/* Disable image hover transformation */
:root {
:root {
     --transform-image-hover: none;
     --transform-image-hover: none;
}
}


:root.skin-theme-clientpref-day,
/* Adjust --color-destructive */
:root.skin-theme-clientpref-night {
:root.skin-theme-clientpref-night {
     --color-surface-0: var(--page-background-color);
     --color-destructive__h: 360;
    --color-surface-1: var(--theme-color-1);
     --color-destructive__l: 67%;
     --color-surface-2: var(--theme-color-2);
    --color-surface-3: var(--theme-color-3);
    --color-surface-4: var(--theme-color-4);
    --color-base: var(--page-text-color);
}
}


:root.skin-theme-clientpref-night {
@media screen and (prefers-color-scheme: dark) {
    --color-destructive__h: 360;
    .skin-theme-clientpref-os {
    --color-destructive__l: 67%;
    --color-destructive__h: 360;
        --color-destructive__l: 67%;
    }
}
}


/* Disable auto theme and extra midnight theme */
/* Disable extra midnight theme */
#skin-client-prefs-skin-theme .citizen-client-prefs-radio:has(input[value="os"]),
#skin-client-prefs-citizen-feature-pure-black {
#skin-client-prefs-citizen-feature-pure-black {
     display: none !important;  
     display: none !important;  
}
}


#skin-client-prefs-skin-theme form {
/* Background image handling */
     grid-template-columns:repeat(2,1fr);
/* Adapted from: https://tolkiengateway.net/ */
:root {
     --background-image: none;
}
}


h2, h3 {
@media screen {
     font-weight: var(--font-weight-normal);
     .skin-theme-clientpref-night .citizen-page-container:before {
        background-image: url(https://petitplanet.wiki/images/b/b4/Background_Dark.jpg);
        background-position: 70% center;
    }
    .skin-theme-clientpref-day .citizen-page-container:before {
        background-image: url(https://petitplanet.wiki/images/c/c3/Background_Light.jpg);
        background-position: 70% center;
    }
}
 
@media screen and (prefers-color-scheme: dark) {
    .skin-theme-clientpref-os .citizen-page-container:before {
        background-image: url(https://petitplanet.wiki/images/b/b4/Background_Dark.jpg);
        background-position: 70% center;
    }
}
 
.citizen-page-container,
.citizen-body-container {
    position: relative;
}
}


.citizen-body {
.citizen-page-container {
     background-color: var(--color-surface-0);
     background-color: var(--color-surface-0);
    border-radius: var(--border-radius-large);
}
}


.citizen-body {
.citizen-page-container::before,
     padding: var(--padding-page);
.citizen-body-container::after {
     content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
 
.citizen-page-container::before {
    background-repeat: no-repeat;
}
}


/* Only apply styling on wider screens */
.citizen-page-container::before {
@media screen and (min-width: 1119px) {
     height: 240px;
     #citizen-sidebar-lastmod,
    background-size: cover;
     #citizen-toc {
     mask-image: linear-gradient(
         background-color: var(--color-surface-0);
         rgba(0, 0, 0, 0.85),
         border-radius: var(--border-radius-large);
         rgba(0, 0, 0, 0.01) 66%,
         padding: calc(0.5*var(--space-unit));
        transparent 100%
     }
    );
    -webkit-mask-image: linear-gradient(
        rgba(0, 0, 0, 0.85),
         rgba(0, 0, 0, 0.01) 66%,
        transparent 100%
    );
}
 
/* Transparent body container for main page */
.rootpage-Main_Page .citizen-body {
    background: transparent;
}
 
/* Adjust wordmark height */
img.mw-logo-wordmark {
     height: 2rem;
}
}


.citizen-toc .citizen-menu__heading,
h2, h3 {
.citizen-toc-contents {
     font-weight: var(--font-weight-normal);
     background-color: var(--color-surface-0);
}
}


Line 70: Line 110:
     padding: 0;
     padding: 0;
     }
     }
}
/* Wikitable fixes */
.wikitable {
    border-collapse: separate;
}
.citizen-overflow-wrapper:has(.citizen-overflow-content > .wikitable) {
    box-shadow: none;
}
/* Reduce border from mbox */
.mbox {
    border-width: 1px;
}
/* Move quotation marks inside box for mobile users */
.pull-quote__text p:after {
    bottom: -16px;
}
}