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
Automatic category lists and Create buttons; easier-to-read privacy policy; remove em dashes
Show Create boxes to administrators via MediaWiki:Group-sysop.css (no JavaScript needed)
Line 207: Line 207:
}
}


/* Boxes shown only to logged-in writers, e.g. "Create a page" (see MediaWiki:Common.js) */
/* Boxes shown only to writers, e.g. "Create a page". MediaWiki:Group-sysop.css shows them to admins. */
.evo-editor-only {
.evo-editor-only {
display: none;
display: none;
}
.evo-user .evo-editor-only {
display: block;
}
}



Revision as of 22:59, 15 October 2026

/* Site-wide styles (all skins). Infobox, notice and Main Page styles live here so they can follow the light/dark theme. */

/* Shared styles for all {{Infobox ...}} templates */
.evo-infobox {
	float: right;
	clear: right;
	width: 22em;
	max-width: 100%;
	margin: 0 0 1em 1.5em;
	border: 1px solid #444;
	border: 1px solid var( --border-color-base );
	border-radius: 8px;
	border-radius: var( --border-radius-medium );
	background: #1b1b1f;
	background: var( --color-surface-1 );
	font-size: 0.9em;
	line-height: 1.45;
	overflow: hidden;
}

.evo-infobox-title {
	padding: 0.6em 0.9em;
	background: #ff8a47;
	background: var( --color-progressive );
	color: #fff;
	font-size: 1.25em;
	font-weight: 700;
	text-align: center;
}

.evo-infobox-subtitle {
	padding: 0.35em 0.9em;
	text-align: center;
	color: #aaa;
	color: var( --color-subtle );
	border-bottom: 1px solid #444;
	border-bottom: 1px solid var( --border-color-base );
}

.evo-infobox-image {
	padding: 0.6em;
	text-align: center;
}

.evo-infobox-caption {
	margin-top: 0.4em;
	font-size: 0.9em;
	color: #aaa;
	color: var( --color-subtle );
}

.evo-infobox-header {
	padding: 0.35em 0.9em;
	background: #26262c;
	background: var( --color-surface-2 );
	font-weight: 700;
	text-align: center;
	border-top: 1px solid #444;
	border-top: 1px solid var( --border-color-base );
}

.evo-infobox-row {
	display: flex;
	gap: 0.75em;
	padding: 0.35em 0.9em;
	border-top: 1px solid #333;
	border-top: 1px solid var( --border-color-base );
}

.evo-infobox-label {
	flex: 0 0 40%;
	font-weight: 600;
	color: #aaa;
	color: var( --color-subtle );
}

.evo-infobox-data {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

@media screen and ( max-width: 720px ) {
	.evo-infobox {
		float: none;
		width: auto;
		margin: 0 0 1em 0;
	}
}

/* Shared styles for notice banners: {{Stub}}, {{WIP}}, {{Notice}} */
.evo-notice {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin: 0 0 1em 0;
	padding: 0.6em 0.9em;
	border: 1px solid #444;
	border: 1px solid var( --border-color-base );
	border-left: 4px solid #ff8a47;
	border-radius: 8px;
	border-radius: var( --border-radius-medium );
	background: #1b1b1f;
	background: var( --color-surface-1 );
	font-size: 0.92em;
}

.evo-notice-icon {
	flex: 0 0 auto;
	font-size: 1.4em;
	line-height: 1;
}

.evo-notice-text {
	flex: 1 1 auto;
}

.evo-notice-stub {
	border-left-color: #6aa9ff;
}

.evo-notice-wip {
	border-left-color: #f2c94c;
}

.evo-notice-info {
	border-left-color: #ff8a47;
}

/* Styles for [[Main Page]] */
.evo-mp-hero {
	display: flex;
	align-items: center;
	gap: 1.5em;
	margin: 0.5em 0 1.5em 0;
	padding: 1.5em;
	border: 1px solid #444;
	border: 1px solid var( --border-color-base );
	border-radius: 12px;
	border-radius: var( --border-radius-large );
	background: #1b1b1f;
	background: var( --color-surface-1 );
}

.evo-mp-hero-logo {
	flex: 0 0 auto;
}

.evo-mp-hero-title {
	font-size: 2em;
	font-weight: 700;
	line-height: 1.2;
}

.evo-mp-hero-tagline {
	margin-top: 0.3em;
	font-size: 1.1em;
	color: #aaa;
	color: var( --color-subtle );
}

.evo-mp-hero-stats {
	margin-top: 0.6em;
	font-size: 0.9em;
	color: #aaa;
	color: var( --color-subtle );
}

.evo-mp-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 18em, 1fr ) );
	gap: 1em;
}

.evo-mp-box {
	padding: 1em 1.25em;
	border: 1px solid #444;
	border: 1px solid var( --border-color-base );
	border-radius: 12px;
	border-radius: var( --border-radius-large );
	background: #1b1b1f;
	background: var( --color-surface-1 );
}

.evo-mp-box-wide {
	grid-column: 1 / -1;
}

.evo-mp-box-title {
	margin: 0 0 0.6em 0;
	padding-bottom: 0.4em;
	font-size: 1.15em;
	font-weight: 700;
	border-bottom: 2px solid #ff8a47;
	border-bottom: 2px solid var( --color-progressive );
}

.evo-mp-box ul {
	margin-top: 0;
}

@media screen and ( max-width: 720px ) {
	.evo-mp-hero {
		flex-direction: column;
		text-align: center;
	}
}

/* Boxes shown only to writers, e.g. "Create a page". MediaWiki:Group-sysop.css shows them to admins. */
.evo-editor-only {
	display: none;
}

.evo-editor-only .mw-inputbox-centered,
.evo-editor-only .mw-inputbox-form {
	margin: 0 0 0.5em 0;
	text-align: left;
}