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
Content deleted Content added
No edit summary
mNo edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
:root {
/* All CSS here will be loaded for users of the Citizen skin */
--color-surface-0: #1D1D1D;
/* Make drawer always visible > 1300px */
--background-color-base-fixed: #1D1D1D;
@media screen and ( min-width: 1300px ) {
--color-surface-1: #1D1D1D;
:root {
--color-link: #FFA500;
--color-subtle: #EDF4F5;
}
:root.citizen-feature-custom-width-clientpref-standard {
--width-layout: 100vw;
}

@media screen and ( min-width: 1120px ) {
:root {
--fixed-menu-width: 240px;
--fixed-menu-width: 240px;
}
}

.citizen-page-container {
.citizen-page-container {
/* Reserve space for drawer */
margin-left: calc( var( --header-size ) + var( --fixed-menu-width ) );
margin-left: calc( var( --header-size ) + var( --fixed-menu-width ) );
}
}
.citizen-drawer__button {
.citizen-drawer__button {
/* Hide drawer button */
display: none;
display: none;
}
}
.citizen-dropdown .citizen-menu__card, .citizen-dropdown .citizen-menu__card .citizen-ui-icon {
content-visibility: visible;
}

.citizen-drawer__card {
.citizen-drawer__card {
bottom: 0;
bottom: 0;
z-index: -1 !important;
/* Put drawer behind other header cards */
z-index: -1;
margin: 0;
/* Compensate header border */
margin-left: 1px;
margin-left: 1px;
padding: 0;
padding: 0;
min-width: auto;
min-width: auto !important;
width: var( --fixed-menu-width );
width: var( --fixed-menu-width );
max-height: none;
max-height: none;
Line 31: Line 39:
background-color: var( --color-surface-0 );
background-color: var( --color-surface-0 );
box-shadow: none;
box-shadow: none;
opacity: 1 !important;
/* Force drawer to show */
opacity: 1 !important;
pointer-events: auto !important;
pointer-events: auto !important;
transform: none !important;
transform: none !important;
visibility: visible !important;
visibility: visible !important;
left:60px;
left:56px;
overflow-x:hidden;
overflow-y:auto;
}
}
.citizen-drawer__card > * {
.citizen-drawer__card > * {
/* Force drawer content to show */
opacity: 1 !important;
opacity: 1 !important;
background-color: #1D1D1D;
}
}

.citizen-drawer__header {
.citizen-drawer__header {
padding-left: var( --space-xl );
padding-left: var( --space-xl );
Line 51: Line 58:


.citizen-drawer__logo {
.citizen-drawer__logo {
/* Hide drawer header logo */
display: none;
display: none;
}

.citizen-drawer__siteinfo .mw-logo-wordmark {
font-size: 1.25rem;
}
}


Line 65: Line 67:
#citizen-siteStats__item--images,
#citizen-siteStats__item--images,
#citizen-siteStats__item--users {
#citizen-siteStats__item--users {
/* Hide image and user stats to make space */
display: none;
display: none;
}
}
Line 73: Line 74:
padding-right: var( --space-xs );
padding-right: var( --space-xs );
grid-template-columns: 1fr;
grid-template-columns: 1fr;
}
.citizen-toc-enabled {
--width-page: calc(var(--width-layout) + var(--space-lg));
}
}
}
}


.citizen-header ul {
/* Tweak header icon to work better with primary color header */
margin: 0;
.citizen-header__buttonIcon,
list-style: none;
.citizen-header__button .citizen-ui-icon:before,
letter-spacing: 0.08rem;
#pt-notifications-alert .mw-echo-notifications-badge,
font-size: large;
#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;
}
}


.firstHeading {
/* Remove filter from logo in footer*/
font-family: 'Agency Gothic CT';
#footer-sitetitle img.mw-logo-wordmark {
letter-spacing: 0.3rem;
filter: none;
font-size: 3em;
font-weight: bolder;
}
}


.citizen-drawer__menu {
/* Template styles */
font-family: 'Agency Gothic CT';
.navbox-subheader {
background-color: #1D1D1D;
padding: 0;
margin-bottom: 0;
}
}


.citizen-menu .mw-list-item a {
.infobox-new {
padding: var(--space-xxs) var(--space-md);
border: 1px solid var( --border-color-base ) !important;
}
.citizen-drawer__menu .citizen-menu__content-list li > a {
color: var(--color-link) !important;
}
}



.infobox-new td {
.page-actions > .mw-portlet li > a {
border-bottom: 1px solid var( --border-color-base );
padding: var(--space-xs) var(--space-md);
font-family: 'Agency Gothic CT';
letter-spacing: 0.13rem;
font-weight: normal;
font-size: 0.975rem;
}
}


.skin-citizen-dark .external-link-rcdb {
.citizen-drawer__siteinfo {
flex-direction: row;
filter: invert( 1 );
gap: var(--space-xs);
}
.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;
}
}


.citizen-drawer__siteinfo .mw-logo-wordmark {
.table-unknown,
font-size: 1.5rem;
.table-na,
font-family: "Agency Gothic CT";
#elementbox,
font-weight: normal;
.infobox-new,
.cp-navbox,
.double-image {
background-color: var( --color-surface-2 ) !important;
}
a {
/* Make links Orange */
--color-link: #ffa500;
}
html, body {
background: #1D1D1D;
}
.citizen-footer {
background-color: #1D1D1D;
}
.citizen-drawer__card {
background-color: #1D1D1D;
}
.citizen-header {
background-color: #1D1D1D;
}
}
img.mw-logo-wordmark {
.citizen-menu__heading {
color: #ffa500;
display: none;
}
}

Latest revision as of 20:03, 30 June 2025

:root {
    --color-surface-0: #1D1D1D;
    --background-color-base-fixed: #1D1D1D;
    --color-surface-1: #1D1D1D;
    --color-link: #FFA500;
    --color-subtle: #EDF4F5;
}
    
:root.citizen-feature-custom-width-clientpref-standard {
    --width-layout: 100vw;
	}

@media screen and ( min-width: 1120px ) {
	:root {
        --fixed-menu-width: 240px;
    }

    .citizen-page-container {
        margin-left: calc( var( --header-size ) + var( --fixed-menu-width ) );
    }
    
    .citizen-drawer__button {
        display: none;
    }
    .citizen-dropdown .citizen-menu__card, .citizen-dropdown .citizen-menu__card .citizen-ui-icon {
    	content-visibility: visible;
    }

    .citizen-drawer__card {
        bottom: 0;
        z-index: -1 !important;
        margin-left: 1px;
        padding: 0;
        min-width: auto !important;
        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;
    	opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        visibility: visible !important;
        left:56px;
        overflow-x:hidden;
        overflow-y:auto;
    }
    
    .citizen-drawer__card > * {
        opacity: 1 !important;
    }
	
    .citizen-drawer__header {
        padding-left: var( --space-xl );
        padding-right: var( --space-xl );
    }

    .citizen-drawer__logo {
        display: none;
    }

    .citizen-siteStats {
        font-size: 0.8125rem;
    }

    #citizen-siteStats__item--images,
    #citizen-siteStats__item--users {
        display: none;
    }
    
    .citizen-drawer__menu {
        padding-left: var( --space-xs );
        padding-right: var( --space-xs );
        grid-template-columns: 1fr;
    }
    .citizen-toc-enabled {
    	--width-page: calc(var(--width-layout) + var(--space-lg));
    }
}

.citizen-header ul {
    margin: 0;
    list-style: none;
    letter-spacing: 0.08rem;
    font-size: large;
}

.firstHeading {
    font-family: 'Agency Gothic CT';
    letter-spacing: 0.3rem;
    font-size: 3em;
    font-weight: bolder;
}

.citizen-drawer__menu {
    font-family: 'Agency Gothic CT';
    padding: 0;
    margin-bottom: 0;
}

.citizen-menu .mw-list-item a {
    padding: var(--space-xxs) var(--space-md);
}
.citizen-drawer__menu .citizen-menu__content-list li > a {
	color: var(--color-link) !important;
}


.page-actions > .mw-portlet li > a {
    padding: var(--space-xs) var(--space-md);
    font-family: 'Agency Gothic CT';
    letter-spacing: 0.13rem;
    font-weight: normal;
    font-size: 0.975rem;
}

.citizen-drawer__siteinfo {
    flex-direction: row;
    gap: var(--space-xs);
}

.citizen-drawer__siteinfo  .mw-logo-wordmark {
    font-size: 1.5rem;
    font-family: "Agency Gothic CT";
    font-weight: normal;
}
img.mw-logo-wordmark {
	display: none;
}
🍪 We use cookies to keep session information to provide you a better experience.