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
No edit summary
No edit summary
 
(117 intermediate revisions by the same user not shown)
Line 2: Line 2:


:root {
:root {
--color-progressive-oklch__h: 220;
--color-progressive-oklch__h: 270;
--font-family-citizen-base: sans-serif;
--font-family-citizen-base: sans-serif;
--space-unit: 1.2em;
--space-unit: 1.2rem;
--transform-image-hover: unset;
--transform-image-hover: unset;
--border-radius-base: 0;
--color-alt-oklch__h: 80;
}
/* Setting color variables */
@media (prefers-color-scheme: dark) {
.skin-theme-clientpref-os {
--color-alt-1: oklch(0.8 0.15 var(--color-alt-oklch__h));
--color-alt-2: oklch(0.9 0.1 var(--color-alt-oklch__h));
--color-alt-3: oklch(0.95 0.05 var(--color-alt-oklch__h));
--color-absolute: #000
}
}
@media (prefers-color-scheme: light) {
.skin-theme-clientpref-os {
--color-alt-1: oklch(0.5 0.15 var(--color-alt-oklch__h));
--color-alt-2: oklch(0.4 0.1 var(--color-alt-oklch__h));
--color-alt-3: oklch(0.3 0.05 var(--color-alt-oklch__h));
--color-absolute: #fff
}
}
.skin-theme-clientpref-night {
--color-alt-1: oklch(0.8 0.15 var(--color-alt-oklch__h));
--color-alt-2: oklch(0.9 0.1 var(--color-alt-oklch__h));
--color-alt-3: oklch(0.95 0.05 var(--color-alt-oklch__h));
--color-absolute: #000
}
.skin-theme-clientpref-day {
--color-alt-1: oklch(0.5 0.15 var(--color-alt-oklch__h));
--color-alt-2: oklch(0.4 0.1 var(--color-alt-oklch__h));
--color-alt-3: oklch(0.3 0.05 var(--color-alt-oklch__h));
--color-absolute: #fff
}
}


Line 14: Line 51:
}
}


.citizen-menu__heading, .mw-list-item {
.citizen-page-container {
background: var(--color-absolute);
}
 
.citizen-menu__heading,
.mw-list-item,
.page-info__label,
#footer-places {
font-family: 'Libre Caslon';
font-family: 'Libre Caslon';
}
.citizen-menu__heading {
/*margin-left: calc(var(--space-unit));*/
}
/* Page headings */
.citizen-page-header-inner {
/*border-bottom: 3px solid var(--color-base);*/
padding-bottom: 0;
}
#firstHeading {
padding-bottom: calc(var(--space-unit) / 8);
}
.firstHeading-container {
position: relative;
}
.mw-indicators {
position: absolute;
right: 0;
}
@media (max-width: 640px) {
.firstHeading-container {
justify-content: center;
text-align: center;
}
}
.mw-heading {
clear: both;
}
}


Line 25: Line 104:
.mw-heading2 {
.mw-heading2 {
     border-bottom: 1px solid;
     border-bottom: 1px solid;
     border-image: linear-gradient(90deg, transparent 1.8em, var(--color-emphasized) 3.6em, transparent 90%) 30;
     border-image: linear-gradient(90deg, transparent var(--space-lg), var(--color-emphasized) calc(var(--space-unit) *3), transparent 90%) 30;
}
}


.mw-heading2 h2 {
.mw-heading2 h2 {
     margin-left: calc(var(--space-unit) / 2);
     margin-left: var(--space-unit);
     margin-bottom: calc(var(--space-unit) / 8);
     margin-bottom: var(--space-xxs);
}
}


Line 38: Line 117:
}
}


figcaption {
 
 
#mw-content-text .new {
text-decoration-line: underline;
text-decoration-style: wavy;
}
 
#mw-content-text .new::hover {
color: blue;
}
 
 
/* Image customisations. */
 
figure[typeof~="mw:File/Thumb"] > figcaption,
figure[typeof~="mw:File/Frame"] > figcaption {
     text-align: center;
     text-align: center;
     font-style: italic;
     font-style: italic;
Line 45: Line 139:
}
}


figure[typeof~="mw:File/Thumb"] > *:first-child,
figure[typeof~="mw:File/Frame"] > *:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--space-unit) / 2);
    /*margin-bottom: calc(var(--space-unit) / 2);*/
    border: 1px solid;
    border-image: linear-gradient(90deg, var(--color-emphasized), transparent 30%, transparent 70%, var(--color-emphasized)) 3;
    background-image: repeating-conic-gradient(from 45deg at 50% 50%, var(--color-absolute) 25% 50%, var(--color-surface-3) 50% 75%);
    background-clip: padding-box;
    background-size: 12px 12px;
    background-position: 50% 50%;
    box-sizing: border-box;
}
/* Table of Contents changes */
#mw-panel-toc-list {
border-left: none;
}
.citizen-toc-content {
display: flex;
flex-direction: row;
}
.citizen-toc-indicator {
display: none;
}
.citizen-toc-list-item--active > .citizen-toc-link .citizen-toc-content::before {
        background-image: url(resources/assets/cursor-right.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom;
        content: '';
        width: 1rem;
        flex-shrink: 0;
        margin-right: var(--space-xxs);
        margin-left: calc(var(--space-xxs) * -1);
}


/* Moves notification area down. */
/* Moves notification area down. */
Line 56: Line 197:
}
}


.mw-notification-area-overlay {
z-index: 12;
}
/* Hides the UI icons from specific menus */
.citizen-menu__card-content .citizen-ui-icon {
.citizen-menu__card-content .citizen-ui-icon {
display: none;
display: none;
}
/* Hides the short description */
#siteSub {
display: none;
}
/* Adjusts the lower logo and wordmark */
#footer-sitetitle {
flex-direction: row;
align-items: center;
position: relative;
}
#footer-sitetitle .mw-logo-wordmark {
width: fit-content;
height: 2.4rem;
}
#footer-sitetitle .mw-logo-icon {
position: absolute;
left: 3.5rem;
}
@media (max-width: 640px) {
#footer-sitetitle {
justify-content: center;
}
#footer-sitetitle .mw-logo-icon {
left: calc(50% - 2.65rem);
}
#footer-desc {
text-align: center;
}
}
}

Latest revision as of 06:46, 13 November 2025

/* All CSS here will be loaded for users of the Citizen skin */

:root {
	--color-progressive-oklch__h: 270;
	--font-family-citizen-base: sans-serif;
	--space-unit: 1.2rem;
	--transform-image-hover: unset;
	--border-radius-base: 0;
	
	--color-alt-oklch__h: 80;
}

/* Setting color variables */

@media (prefers-color-scheme: dark) {
	.skin-theme-clientpref-os {
		--color-alt-1: oklch(0.8 0.15 var(--color-alt-oklch__h));
		--color-alt-2: oklch(0.9 0.1 var(--color-alt-oklch__h));
		--color-alt-3: oklch(0.95 0.05 var(--color-alt-oklch__h));
		--color-absolute: #000
	}
}

@media (prefers-color-scheme: light) {
	.skin-theme-clientpref-os {
		--color-alt-1: oklch(0.5 0.15 var(--color-alt-oklch__h));
		--color-alt-2: oklch(0.4 0.1 var(--color-alt-oklch__h));
		--color-alt-3: oklch(0.3 0.05 var(--color-alt-oklch__h));
		--color-absolute: #fff
	}
}

.skin-theme-clientpref-night {
	--color-alt-1: oklch(0.8 0.15 var(--color-alt-oklch__h));
	--color-alt-2: oklch(0.9 0.1 var(--color-alt-oklch__h));
	--color-alt-3: oklch(0.95 0.05 var(--color-alt-oklch__h));
	--color-absolute: #000
}

.skin-theme-clientpref-day {
	--color-alt-1: oklch(0.5 0.15 var(--color-alt-oklch__h));
	--color-alt-2: oklch(0.4 0.1 var(--color-alt-oklch__h));
	--color-alt-3: oklch(0.3 0.05 var(--color-alt-oklch__h));
	--color-absolute: #fff
}

@font-face {
	font-family: 'Libre Caslon';
	src:
		url('resources/assets/Libre_Caslon_Text/LibreCaslonText-Regular.ttf');
}

.citizen-page-container {
	background: var(--color-absolute);
}

.citizen-menu__heading,
.mw-list-item,
.page-info__label,
#footer-places {
	font-family: 'Libre Caslon';
}

.citizen-menu__heading {
	/*margin-left: calc(var(--space-unit));*/
}

/* Page headings */

.citizen-page-header-inner {
	/*border-bottom: 3px solid var(--color-base);*/
	padding-bottom: 0;
}

#firstHeading {
	padding-bottom: calc(var(--space-unit) / 8);
}

.firstHeading-container {
	position: relative;
}

.mw-indicators {
	position: absolute;
	right: 0;
}

@media (max-width: 640px) {
	.firstHeading-container {
		justify-content: center;
		text-align: center;
	}
}

.mw-heading {
	clear: both;
}

h1, h2, h3 {
	font-family: 'Libre Caslon';
	font-weight: 400;
}

.mw-heading2 {
    border-bottom: 1px solid;
    border-image: linear-gradient(90deg, transparent var(--space-lg), var(--color-emphasized) calc(var(--space-unit) *3), transparent 90%) 30;
}

.mw-heading2 h2 {
    margin-left: var(--space-unit);
    margin-bottom: var(--space-xxs);
}

.mw-heading3 .mw-editsection,
.mw-heading4 .mw-editsection {
    display: none;
}



#mw-content-text .new {
	text-decoration-line: underline;
	text-decoration-style: wavy;
}

#mw-content-text .new::hover {
	color: blue;
}


/* Image customisations. */

figure[typeof~="mw:File/Thumb"] > figcaption,
figure[typeof~="mw:File/Frame"] > figcaption {
    text-align: center;
    font-style: italic;
    padding-bottom: var(--space);
    font-family: 'Shippori Mincho';
}

figure[typeof~="mw:File/Thumb"] > *:first-child,
figure[typeof~="mw:File/Frame"] > *:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: calc(var(--space-unit) / 2);

    /*margin-bottom: calc(var(--space-unit) / 2);*/

    border: 1px solid;
    border-image: linear-gradient(90deg, var(--color-emphasized), transparent 30%, transparent 70%, var(--color-emphasized)) 3;

    background-image: repeating-conic-gradient(from 45deg at 50% 50%, var(--color-absolute) 25% 50%, var(--color-surface-3) 50% 75%);

    background-clip: padding-box;
    background-size: 12px 12px;
    background-position: 50% 50%;
    box-sizing: border-box;
}

/* Table of Contents changes */

#mw-panel-toc-list {
	border-left: none;
}

.citizen-toc-content {
	display: flex;
	flex-direction: row;
}

.citizen-toc-indicator {
	display: none;
}

.citizen-toc-list-item--active > .citizen-toc-link .citizen-toc-content::before {
        background-image: url(resources/assets/cursor-right.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom;
        content: '';
        width: 1rem;
        flex-shrink: 0;
        margin-right: var(--space-xxs);
        margin-left: calc(var(--space-xxs) * -1);
}

/* Moves notification area down. */
.mw-notification-area {
	margin-top: 6em;
}

/* Extension:Moderation adjustments. */
#mw-editing-your-version {
	color: var(--color-surface-0);
}

.mw-notification-area-overlay {
	z-index: 12;
}

/* Hides the UI icons from specific menus */
.citizen-menu__card-content .citizen-ui-icon {
	display: none;
}

/* Hides the short description */
#siteSub {
	display: none;
}

/* Adjusts the lower logo and wordmark */
#footer-sitetitle {
	flex-direction: row;
	align-items: center;
	position: relative;
}

#footer-sitetitle .mw-logo-wordmark {
	width: fit-content;
	height: 2.4rem;
}

#footer-sitetitle .mw-logo-icon {
	position: absolute;
	left: 3.5rem;
}

@media (max-width: 640px) {
	#footer-sitetitle {
		justify-content: center;
	}
	#footer-sitetitle .mw-logo-icon {
		left: calc(50% - 2.65rem);
	}
	
	#footer-desc {
		text-align: center;
	}
}