Soft launch: Soldier biographies and research notes vary in completeness. Prefer class-roster, NARA, newspapers, and other cited sources for contested facts — treat Research notes as leads, not settled history. Anyone can correct a page; contact us with questions.

MediaWiki:Common.css

From Ritchie Boys Wiki
Revision as of 03:45, 20 August 2026 by Admin (talk | contribs) (Widen soldier page upload box to full article width)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Wikipedia-like article infobox (Vector does not ship these styles). */
table.infobox,
table.infobox.vcard,
table.soldier-infobox,
.infobox.soldier-infobox {
	float: right;
	clear: right;
	margin: 0.5em 0 0.8em 1.4em;
	padding: 0.2em;
	width: 22em;
	max-width: 40%;
	background: #f8f9fa;
	color: #202122;
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	border-collapse: separate;
	font-size: 88%;
	line-height: 1.5em;
	text-align: left;
}

.infobox .infobox-above,
.soldier-infobox .infobox-above {
	background: #eaecf0;
	color: #000;
	font-size: 125%;
	font-weight: bold;
	text-align: center;
	padding: 0.4em 0.5em;
}

.infobox .infobox-header,
.soldier-infobox .infobox-header {
	background: #eaecf0;
	color: #000;
	font-weight: bold;
	text-align: center;
	padding: 0.3em 0.5em;
}

.infobox .infobox-image,
.soldier-infobox .infobox-image {
	text-align: center;
	padding: 0.4em 0.2em 0.2em;
	background: #f8f9fa;
}

.infobox .infobox-caption,
.soldier-infobox .infobox-caption {
	font-size: 95%;
	padding: 0.2em 0.4em 0.5em;
}

.infobox .infobox-label,
.infobox th.infobox-label,
.soldier-infobox .infobox-label,
.soldier-infobox th.infobox-label {
	display: table-cell;
	width: 38%;
	font-weight: bold;
	text-align: left;
	vertical-align: top;
	padding: 0.2em 0.5em 0.2em 0.5em;
	background: #f8f9fa;
	color: #202122;
}

.infobox td.infobox-data,
.soldier-infobox td.infobox-data {
	display: table-cell;
	vertical-align: top;
	padding: 0.2em 0.5em 0.2em 0.4em;
	background: #f8f9fa;
}

.infobox > tbody > tr,
.soldier-infobox > tbody > tr {
	display: table-row;
}

/* Vector 2010 sidebar logo: source file is 1024px, so scale it into the 160px slot. */
#p-logo {
	height: 160px !important;
	width: 160px !important;
	margin: 0 auto 0.6em auto;
}
#p-logo a,
#p-logo a.mw-wiki-logo,
.mw-wiki-logo {
	height: 160px !important;
	width: 160px !important;
	background-size: contain !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

/* If someone uses Vector 2022, do not leave the badge at 50px. */
.skin-vector-2022 .mw-logo-icon {
	height: 120px !important;
	width: 120px !important;
}

.hatnote,
.hatnote.unconfirmed-banner,
.unconfirmed-banner {
	background: transparent;
	border: none;
	padding: 0 0 0.5em 1.6em;
	margin: 0 0 0.6em 0;
	font-style: italic;
	color: #202122;
}

.hatnote.research-notes-disclaimer {
	color: #54595d;
	padding-left: 0;
	margin: 0 0 0.85em 0;
	max-width: none;
}

.soldier-research-notes {
	display: none;
}

.class-data-disclaimer {
	border: 1px solid #a2a9b1;
	background: #f8f9fa;
	padding: 0.7em 0.9em;
	margin: 0.8em 0 1em 0;
	font-size: 92%;
	line-height: 1.45;
	max-width: none;
	color: #202122;
}

.home-lead {
	max-width: none;
	font-size: 1.05em;
}

.mw-parser-output > p:first-of-type {
	margin-top: 0.2em;
}

@media (max-width: 640px) {
	table.infobox,
	table.soldier-infobox {
		float: none;
		clear: both;
		width: 100%;
		max-width: 100%;
		margin: 0 0 1em 0;
	}
}

/* Collapsible JS inserts [Expand]/[Collapse] flush against header text.
   Core .mw-collapsible-toggle-default { margin: 0; padding: 0 } wins over a
   single-class rule, so target both classes. */
.mw-collapsible-toggle.mw-collapsible-toggle-default {
	margin-left: 0.4em;
	padding-left: 0.25em;
}

.soldier-upload-box {
	margin: 0.75em 0 1.25em;
	padding: 0.75em 1em;
	background: #f8f9fa;
	border: 1px solid #a2a9b1;
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

.soldier-upload-box > p {
	margin: 0 0 0.5em;
	line-height: 1.6;
}

.soldier-upload-form label {
	display: block;
	margin: 0.35em 0;
}

.soldier-upload-file {
	display: block;
	margin: 0.5em 0;
	max-width: 100%;
}

.soldier-upload-form button {
	margin-top: 0.5em;
}

.soldier-upload-status {
	margin: 0.5em 0 0;
	font-size: 95%;
}

.soldier-upload-login {
	margin: 0.35em 0 0;
}

.soldier-facts-box {
	margin: 0 0 1em;
	padding: 0.6em 1em;
	background: #f8f9fa;
	border: 1px solid #a2a9b1;
	max-width: none;
	width: 100%;
	box-sizing: border-box;
	clear: both;
}

.soldier-facts-box > p {
	margin: 0;
	line-height: 1.6;
}

.soldier-facts-toggle {
	background: #3366cc;
	color: #fff;
	border: 1px solid #3366cc;
	border-radius: 2px;
	padding: 0.15em 0.5em;
	cursor: pointer;
	font-size: inherit;
}

.soldier-facts-toggle:hover {
	background: #2a4b8d;
}

.soldier-facts-panel {
	margin-top: 0.75em;
}

.soldier-facts-identity {
	font-weight: bold;
	margin: 0 0 0.75em;
}

.soldier-facts-group {
	border: 0;
	margin: 0 0 0.75em;
	padding: 0;
}

.soldier-facts-group legend {
	font-weight: bold;
	padding: 0;
	margin-bottom: 0.35em;
}

.soldier-facts-field {
	margin: 0.35em 0;
}

.soldier-facts-field label {
	display: block;
	font-size: 95%;
	margin-bottom: 0.15em;
}

.soldier-facts-input {
	width: 100%;
	max-width: 28em;
	box-sizing: border-box;
}

.soldier-facts-actions {
	margin-top: 0.5em;
}

.soldier-facts-cancel {
	margin-left: 0.35em;
}

.soldier-facts-status {
	margin: 0.5em 0 0;
	font-size: 95%;
}