Jump to content

MediaWiki:Common.css: Difference between revisions

From MineMania Wiki
Created page with "CSS placed here will be applied to all skins: .cw-messagebox { border: 1px solid #72777d; background: #f8f9fa; color: #202122; margin: 1em 0; padding: 0.75em 1em; display: flex; align-items: center; gap: 0.9em; box-sizing: border-box; } .cw-messagebox a { color: #36c; } .cw-messagebox-icon { width: 32px; min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; text-align: center..."
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
.cw-messagebox {
.cw-messagebox {
border: 1px solid #72777d;
border: 1px solid #a2a9b1;
background: #f8f9fa;
background: #f8f9fa;
color: #202122;
color: #202122;
margin: 1em 0;
margin: 1em 0 0.25em 0;
padding: 0.75em 1em;
padding: 0.75em 1em;
display: flex;
display: flex;
Line 10: Line 9:
gap: 0.9em;
gap: 0.9em;
box-sizing: border-box;
box-sizing: border-box;
}
.cw-messagebox a {
color: #36c;
}
}


.cw-messagebox-icon {
.cw-messagebox-icon {
width: 32px;
width: 36px;
min-width: 32px;
min-width: 36px;
height: 32px;
height: 36px;
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
font-size: 22px;
line-height: 1;
line-height: 1;
text-align: center;
text-align: center;
Line 30: Line 24:


.cw-messagebox-icon img {
.cw-messagebox-icon img {
display: block;
max-width: 32px;
max-width: 32px;
max-height: 32px;
max-height: 32px;
width: auto;
height: auto;
object-fit: contain;
}
.cw-messagebox-default-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
font-size: 22px;
line-height: 1;
}
}


Line 37: Line 45:
flex: 1;
flex: 1;
color: inherit;
color: inherit;
margin: 0;
padding: 0;
line-height: 1.4;
}
}


/* Vector 2022 / MediaWiki dark mode */
.cw-messagebox-content p {
html.skin-theme-clientpref-night .cw-messagebox,
margin: 0;
html.skin-theme-clientpref-os .cw-messagebox {
padding: 0;
}
 
/* Dark mode */
html.skin-theme-clientpref-night .cw-messagebox {
background: #202122;
background: #202122;
color: #f8f9fa;
color: #f8f9fa;
Line 47: Line 62:
}
}


html.skin-theme-clientpref-night .cw-messagebox a,
html.skin-theme-clientpref-night .cw-messagebox a {
html.skin-theme-clientpref-os .cw-messagebox a {
color: #6bace6;
color: #6bace6;
}
.cw-command-table {
width: 100%;
border-collapse: collapse;
margin: 1em 0;
table-layout: auto;
}
.cw-command-table th,
.cw-command-table td {
border: 1px solid #a2a9b1;
padding: 0.55em 0.8em;
vertical-align: middle;
}
.cw-command-table-command {
width: 1%;
white-space: nowrap;
text-align: center;
background: #eaecf0;
font-weight: bold;
font-family: monospace;
padding-left: 1.2em;
padding-right: 1.2em;
}
.cw-command-table-description {
width: 99%;
text-align: left;
background: #fff;
}
/* Dark mode */
html.skin-theme-clientpref-night .cw-command-table th,
html.skin-theme-clientpref-night .cw-command-table td {
border-color: #54595d;
}
html.skin-theme-clientpref-night .cw-command-table-command {
background: #2a2d31;
color: #f8f9fa;
}
html.skin-theme-clientpref-night .cw-command-table-description {
background: #202122;
color: #f8f9fa;
}
.cw-staff-table {
width: 100%;
border-collapse: collapse;
margin: 1em 0;
table-layout: auto;
}
.cw-staff-table th,
.cw-staff-table td {
border: 1px solid #a2a9b1;
padding: 0.55em 0.8em;
vertical-align: middle;
}
.cw-staff-table th {
background: #54595d;
color: #ffffff;
font-weight: bold;
text-align: center;
}
.cw-staff-table-user,
.cw-staff-table-status,
.cw-staff-table-since {
width: 1%;
white-space: nowrap;
text-align: center;
}
.cw-staff-table-position {
width: 99%;
text-align: left;
}
.cw-staff-table-user {
font-weight: bold;
}
/* Dark mode */
html.skin-theme-clientpref-night .cw-staff-table th,
html.skin-theme-clientpref-night .cw-staff-table td {
border-color: #54595d;
}
html.skin-theme-clientpref-night .cw-staff-table td {
background: #202122;
color: #f8f9fa;
}
}

Latest revision as of 20:01, 5 June 2026

.cw-messagebox {
	border: 1px solid #a2a9b1;
	background: #f8f9fa;
	color: #202122;
	margin: 1em 0 0.25em 0;
	padding: 0.75em 1em;
	display: flex;
	align-items: center;
	gap: 0.9em;
	box-sizing: border-box;
}

.cw-messagebox-icon {
	width: 36px;
	min-width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	text-align: center;
	color: inherit;
}

.cw-messagebox-icon img {
	display: block;
	max-width: 32px;
	max-height: 32px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.cw-messagebox-default-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 22px;
	line-height: 1;
}

.cw-messagebox-content {
	flex: 1;
	color: inherit;
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

.cw-messagebox-content p {
	margin: 0;
	padding: 0;
}

/* Dark mode */
html.skin-theme-clientpref-night .cw-messagebox {
	background: #202122;
	color: #f8f9fa;
	border-color: #54595d;
}

html.skin-theme-clientpref-night .cw-messagebox a {
	color: #6bace6;
}
.cw-command-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
	table-layout: auto;
}

.cw-command-table th,
.cw-command-table td {
	border: 1px solid #a2a9b1;
	padding: 0.55em 0.8em;
	vertical-align: middle;
}

.cw-command-table-command {
	width: 1%;
	white-space: nowrap;
	text-align: center;
	background: #eaecf0;
	font-weight: bold;
	font-family: monospace;
	padding-left: 1.2em;
	padding-right: 1.2em;
}

.cw-command-table-description {
	width: 99%;
	text-align: left;
	background: #fff;
}

/* Dark mode */
html.skin-theme-clientpref-night .cw-command-table th,
html.skin-theme-clientpref-night .cw-command-table td {
	border-color: #54595d;
}

html.skin-theme-clientpref-night .cw-command-table-command {
	background: #2a2d31;
	color: #f8f9fa;
}

html.skin-theme-clientpref-night .cw-command-table-description {
	background: #202122;
	color: #f8f9fa;
}

.cw-staff-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
	table-layout: auto;
}

.cw-staff-table th,
.cw-staff-table td {
	border: 1px solid #a2a9b1;
	padding: 0.55em 0.8em;
	vertical-align: middle;
}

.cw-staff-table th {
	background: #54595d;
	color: #ffffff;
	font-weight: bold;
	text-align: center;
}

.cw-staff-table-user,
.cw-staff-table-status,
.cw-staff-table-since {
	width: 1%;
	white-space: nowrap;
	text-align: center;
}

.cw-staff-table-position {
	width: 99%;
	text-align: left;
}

.cw-staff-table-user {
	font-weight: bold;
}

/* Dark mode */
html.skin-theme-clientpref-night .cw-staff-table th,
html.skin-theme-clientpref-night .cw-staff-table td {
	border-color: #54595d;
}

html.skin-theme-clientpref-night .cw-staff-table td {
	background: #202122;
	color: #f8f9fa;
}