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

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 4: Line 4:
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@font-face {
font-family: "Ygdren Imperial";
src: url("https://ygdren.net/wiki/Special:FilePath/YgdrenScriptImperial.ttf") format("truetype");
font-weight: normal;
font-style: normal;
font-display: swap;
}


:root {
:root {

Revision as of 16:17, 30 October 2026

/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');

:root {	
	/* FONTS */
	--ygdren-font-family-header: 'EB Garamond', serif;
	--ygdren-font-family-body: 'Lora', serif;
	
	--ygdren-font-size-x-small: 0.8125rem;
	--ygdren-font-size-small: 0.875rem;
	--ygdren-font-size-medium: 1rem;
	--ygdren-font-size-large: 1.125rem;
	--ygdren-font-size-x-large: 1.25rem;
	--ygdren-font-size-xx-large: 1.5rem;
	--ygdren-font-size-xxx-large: 2rem;
	
	--ygdren-font-weight-regular: 400;
    --ygdren-font-weight-medium: 500;
    --ygdren-font-weight-semibold: 600;
	
	--ygdren-line-height: 1.6;
	--ygdren-line-height-xx-small: 1.375;
	--ygdren-line-height-xxx-small: 1.25;
	
	/* BORDERS */
	--ygdren-border-base: 1px solid var(--ygdren-border-color-base);
	
	--ygdren-border-radius-sharp: 0;
	--ygdren-border-radius-small: 4px;
	--ygdren-border-radius-medium: 8px;
	--ygdren-border-radius-large: 12px;
	--ygdren-border-radius-pill: 9999px;
	--ygdren-border-radius-circle: 50%;

	--ygdren-color-infobox: color-mix(in srgb, var(--ygdren-color-surface-2), transparent 80%);
}

/* DARK MODE */
@media screen and (prefers-color-scheme: dark) {
	:root.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-0 {
		--filter-invert: invert(1) hue-rotate(180deg);
		
		--ygdren-color-text: #e7e8e9;
		--ygdren-color-emphasized: #fefdfc;
		--ygdren-color-subtle: #cbbba1;
		--ygdren-color-faded: #7D8491;
    	--ygdren-color-inverted: #0d1117;
		
	    --ygdren-color-progressive: #ffc15b;
    	--ygdren-color-progressive--hover: #ffcd7c;
    	--ygdren-color-progressive--active: #e6ae52;
    	
    	--ygdren-color-destructive: #bf3c2c;
    	--ygdren-color-destructive--hover: #9f3526;
    	--ygdren-color-destructive--active: #612419;

		--ygdren-border-color-base: rgba(255, 255, 255, 0.05);
		--ygdren-border-color-interactive: rgba(255, 255, 255, 0.08);
		--ygdren-border-color-subtle: rgba(255, 255, 255, 0.02);
		
	    --ygdren-color-surface-0: #0d1117;
    	--ygdren-color-surface-1: #0c0f15;
    	--ygdren-color-surface-2: #12141e;
    	--ygdren-color-surface-3: #181b26;
    	--ygdren-color-surface-4: #ff00ff;
		--ygdren-color-surface-5: #ff00ff;
	}

	:root.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 {
		--filter-invert: invert(1) hue-rotate(180deg);
		
		--ygdren-color-text: #f5f5f5;
		--ygdren-color-emphasized: #f2f2f2;
		--ygdren-color-subtle: #a6a6a6;
		--ygdren-color-faded: #afa796;
    	--ygdren-color-inverted: #ffffff;
		
		--ygdren-color-progressive: #f1c45e;
    	--ygdren-color-progressive--hover: #ffd16b;
    	--ygdren-color-progressive--active: #e4b750;
    	
    	--ygdren-color-destructive: #bf3c2c;
    	--ygdren-color-destructive--hover: #9f3526;
    	--ygdren-color-destructive--active: #612419;

		--ygdren-border-color-base: rgba(255, 255, 255, 0.08);
		--ygdren-border-color-interactive: rgba(255, 255, 255, 0.1);
		--ygdren-border-color-subtle: rgba(255, 255, 255, 0.04);
		
		--ygdren-color-surface-0: #000;
    	--ygdren-color-surface-1: #111;
    	--ygdren-color-surface-2: #222;
    	--ygdren-color-surface-3: #333;
    	--ygdren-color-surface-4: #444;
    	--ygdren-color-surface-5: #555;
	}
}

:root.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-0 {
	--filter-invert: invert(1) hue-rotate(180deg);
	
	--ygdren-color-text: #e7e8e9;
	--ygdren-color-emphasized: #fefdfc;
	--ygdren-color-subtle: #cbbba1;
	--ygdren-color-faded: #7D8491;
	--ygdren-color-inverted: #0d1117;
		
    --ygdren-color-progressive: #ffc15b;
	--ygdren-color-progressive--hover: #ffcd7c;
	--ygdren-color-progressive--active: #e6ae52;
    	
	--ygdren-color-destructive: #bf3c2c;
	--ygdren-color-destructive--hover: #9f3526;
	--ygdren-color-destructive--active: #612419;

	--ygdren-border-color-base: rgba(255, 255, 255, 0.05);
	--ygdren-border-color-interactive: rgba(255, 255, 255, 0.08);
	--ygdren-border-color-subtle: rgba(255, 255, 255, 0.02);
	
    --ygdren-color-surface-0: #0d1117;
	--ygdren-color-surface-1: #0c0f15;
	--ygdren-color-surface-2: #12141e;
	--ygdren-color-surface-3: #181b26;
	--ygdren-color-surface-4: #ff00ff;
	--ygdren-color-surface-5: #ff00ff;
}

:root.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 {
	--filter-invert: invert(1) hue-rotate(180deg);
	
	--ygdren-color-text: #f5f5f5;
	--ygdren-color-emphasized: #f2f2f2;
	--ygdren-color-subtle: #a6a6a6;
	--ygdren-color-faded: #afa796;
	--ygdren-color-inverted: #ffffff;
		
	--ygdren-color-progressive: #f1c45e;
	--ygdren-color-progressive--hover: #ffd16b;
	--ygdren-color-progressive--active: #e4b750;
    	
	--ygdren-color-destructive: #bf3c2c;
	--ygdren-color-destructive--hover: #9f3526;
	--ygdren-color-destructive--active: #612419;

	--ygdren-border-color-base: rgba(255, 255, 255, 0.08);
	--ygdren-border-color-interactive: rgba(255, 255, 255, 0.1);
	--ygdren-border-color-subtle: rgba(255, 255, 255, 0.04);
		
	--ygdren-color-surface-0: #000;
	--ygdren-color-surface-1: #111;
	--ygdren-color-surface-2: #222;
	--ygdren-color-surface-3: #333;
	--ygdren-color-surface-4: #444;
	--ygdren-color-surface-5: #555;
}

/* LIGHT MODE */
@media screen and (prefers-color-scheme: light) {
	:root.skin-theme-clientpref-os {
		--ygdren-color-text: #1d1d1d;
		--ygdren-color-emphasized: #0f1802;
		--ygdren-color-subtle: #607d36;
		--ygdren-color-faded: #afa796;
    	--ygdren-color-inverted: #1d1d1d;
		
		--ygdren-color-progressive: #507b07;
    	--ygdren-color-progressive--hover: #588418;
    	--ygdren-color-progressive--active: #4a710a;
    	
    	--ygdren-color-destructive: #bf3c2c;
    	--ygdren-color-destructive--hover: #9f3526;
    	--ygdren-color-destructive--active: #612419;

		--ygdren-border-color-base: rgba(0, 0, 0, 0.08);
		--ygdren-border-color-interactive: rgba(0, 0, 0, 0.11);
		--ygdren-border-color-subtle: rgba(0, 0, 0, 0.05);
		
	    --ygdren-color-surface-0: #f9f4ee;
    	--ygdren-color-surface-1: #fffbf6;
    	--ygdren-color-surface-2: #f6ede0;
    	--ygdren-color-surface-3: #f0e3cf;
    	--ygdren-color-surface-4: #e6d9c5;
    	--ygdren-color-surface-5: #e3d2b8;
	}
}

:root.skin-theme-clientpref-day {
	--ygdren-color-text: #1d1d1d;
	--ygdren-color-emphasized: #0f1802;
	--ygdren-color-subtle: #607d36;
	--ygdren-color-faded: #afa796;
	--ygdren-color-inverted: #1d1d1d;
		
	--ygdren-color-progressive: #507b07;
	--ygdren-color-progressive--hover: #588418;
	--ygdren-color-progressive--active: #4a710a;
    	
	--ygdren-color-destructive: #bf3c2c;
	--ygdren-color-destructive--hover: #9f3526;
	--ygdren-color-destructive--active: #612419;

	--ygdren-border-color-base: rgba(0, 0, 0, 0.08);
	--ygdren-border-color-interactive: rgba(0, 0, 0, 0.11);
	--ygdren-border-color-subtle: rgba(0, 0, 0, 0.05);
	
    --ygdren-color-surface-0: #f9f4ee;
	--ygdren-color-surface-1: #fffbf6;
	--ygdren-color-surface-2: #f6ede0;
	--ygdren-color-surface-3: #f0e3cf;
	--ygdren-color-surface-4: #e6d9c5;
	--ygdren-color-surface-5: #e3d2b8;
}

html {
	font-variant: lining-nums;
	text-align: justify;
}

.ve-init-mw-desktopArticleTarget-categoryEdit {
	display: none;
}

/* BLOCKQUOTE */
blockquote {
	padding-left: 1rem;
	border-left: 2px solid var(--ygdren-border-color-base);
	font-style: italic;
	/* Fallback for non-Chromium browsers */
	text-wrap: balance;
	/* Only works on Chromium browsers */
	text-wrap: pretty;
}

blockquote cite {
	color: var(--ygdren-color-faded);
	font-size: var(--ygdren-font-size-x-small);
	font-style: normal;
}

blockquote cite::before {
	content: '―';
	margin-right: 0.5em;
}

blockquote > p:first-child::before {
	content: open-quote;
}

/* <cite> is wrapped in the last <p> */
blockquote:has(cite) > p:nth-last-child(2)::after,
blockquote:not(:has(cite)) > p:last-child::after {
	content: close-quote;
}

/* To make images responsive */
.responsive-img img {
	max-width:100%;
	height:auto;
}

.responsive-img .item img {
	margin-bottom:10px;
}

.responsive-img .clickable a:hover {
	opacity: 0.6;
	transition: opacity .3s ease-out;
}

.responsive-img p {
	margin:0px;
}

.responsive-img .portal img {
    object-fit: cover;
}

.responsive-img .portal p {
	margin:0px;
	display:grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
	grid-column-gap: 0;
	grid-row-gap: 0;
}