MediaWiki:Common.css

Revision as of 01:43, 25 August 2026 by Admin (talk | contribs) (Widen awards label grid to Wikipedia-like ~48em width)

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.5em 0;
	max-width: none;
}

.hatnote.source-confidence-cue,
.source-confidence-cue {
	color: #54595d;
	padding-left: 0;
	margin: 0;
	max-width: none;
}

.soldier-page-footer-notes {
	clear: both;
	margin: 1.5em 0 0.75em 0;
	padding: 0.75em 0 0 0;
	border-top: 1px solid #c8ccd1;
	font-size: 92%;
	line-height: 1.45;
}

.soldier-page-footer-notes .hatnote {
	margin-bottom: 0.45em;
}

.soldier-page-footer-notes .hatnote:last-child {
	margin-bottom: 0;
}

/* Hide until Common.js moves these into .soldier-page-footer-notes (keeps the lead clear). */
.mw-parser-output > .research-notes-disclaimer,
.mw-parser-output > .source-confidence-cue,
.mw-parser-output > .hatnote.research-notes-disclaimer,
.mw-parser-output > .hatnote.source-confidence-cue {
	display: none;
}

/*
 * Blank lines after the Soldier template / between hatnotes become <p><br></p> and sit
 * beside the floated infobox as a tall empty column. Collapse them so the lead
 * starts at the top next to the infobox.
 */
.mw-parser-output:has(> table.soldier-infobox) > p:has(> br:only-child),
.mw-parser-output:has(> table.infobox.soldier-infobox) > p:has(> br:only-child),
.mw-parser-output:has(> table.soldier-infobox) > p:empty,
.mw-parser-output:has(> table.infobox.soldier-infobox) > p:empty {
	display: none;
	margin: 0;
	padding: 0;
	height: 0;
	line-height: 0;
	overflow: hidden;
}

.mw-parser-output:has(> table.soldier-infobox) > .soldier-lead,
.mw-parser-output:has(> table.infobox.soldier-infobox) > .soldier-lead {
	margin-top: 0;
}

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

/* Wikipedia-style award ribbon rack in the main article column */
.soldier-awards-section {
	clear: both;
	margin: 1em 0 1.25em 0;
	max-width: 100%;
}

.soldier-awards-heading {
	font-family: inherit;
	font-size: 1.5em;
	font-weight: bold;
	border-bottom: 1px solid #a2a9b1;
	margin: 1em 0 0.5em 0;
	padding-bottom: 0.15em;
	line-height: 1.3;
}

.soldier-awards-list {
	margin: 0.75em 0 0.25em 0;
	max-width: none;
}

.soldier-awards-list ul,
.soldier-awards-section ul {
	margin: 0.4em 0 0.4em 1.6em;
}

/* Keep extra award notes on one line (e.g. Chafee statue sentence) */
.soldier-awards-list li {
	white-space: nowrap;
}

.soldier-awards-section .soldier-ribbon-rack,
table.soldier-ribbon-rack {
	margin: 1em auto 0.35em auto;
	border-collapse: collapse;
	background: transparent;
	border: none;
	width: max-content;
	max-width: 100%;
}

table.soldier-ribbon-rack,
table.soldier-ribbon-rack > tbody > tr > td,
table.soldier-ribbon-rack > tr > td {
	border: none !important;
	background: transparent !important;
	padding: 4px 6px !important;
	text-align: center;
	vertical-align: middle;
}

table.soldier-ribbon-rack img {
	max-width: 106px;
	height: auto;
	vertical-align: middle;
}

/* Wikipedia-style awards label grid: centered, readable column width,
   multi-line cells via <br />; short rows use colspan to match full width */
table.soldier-awards-grid {
	margin: 1em auto;
	border-collapse: collapse;
	table-layout: fixed;
	width: 48em;
	max-width: 100%;
	font-size: 95%;
	line-height: 1.35;
	text-align: center;
}

table.soldier-awards-grid > tbody > tr > td,
table.soldier-awards-grid td {
	border: 1px solid #a2a9b1;
	padding: 0.5em 0.75em;
	text-align: center;
	vertical-align: middle;
	background: #f8f9fa;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: manual;
}

.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;
	margin-bottom: 1em;
}

.home-find {
	margin: 0 0 1.25em 0;
	padding: 0.85em 1em;
	background: #f8f9fa;
	border: 1px solid #a2a9b1;
	max-width: 36em;
}

.home-find-title {
	font-weight: bold;
	font-size: 1.1em;
	margin: 0 0 0.45em 0;
}

.home-find-label {
	display: block;
	font-size: 95%;
	margin-bottom: 0.25em;
}

.home-find-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	align-items: center;
}

.home-find-input {
	flex: 1 1 14em;
	min-width: 12em;
	padding: 0.35em 0.5em;
	font: inherit;
	border: 1px solid #a2a9b1;
	box-sizing: border-box;
}

.home-find-button {
	padding: 0.35em 0.85em;
	font: inherit;
	cursor: pointer;
	background: #3366cc;
	color: #fff;
	border: 1px solid #3366cc;
}

.home-find-button:hover {
	background: #2a4b8d;
}

.home-find-hint {
	margin: 0.55em 0 0;
	font-size: 95%;
	color: #54595d;
}

/*
 * Directory lists from the categorytree parser function (Contents and any
 * future page that embeds one): match MediaWiki category pages
 * (.mw-category-columns) with a compact 3-column layout so long indexes
 * are not a single tall stack.
 */
.CategoryTreeTag {
	column-count: 3;
	column-gap: 1.25em;
	margin: 0.4em 0 1em 0;
}

.CategoryTreeTag > .CategoryTreeSection {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin: 0.12em 0;
}

@media (max-width: 800px) {
	.CategoryTreeTag {
		column-count: 2;
	}
}

@media (max-width: 480px) {
	.CategoryTreeTag {
		column-count: 1;
	}
}

.home-actions {
	margin: 0 0 1.25em 0;
	line-height: 1.6;
}

.home-hero-photo {
	margin: 0 0 1.15em 0;
	max-width: 100%;
}

.home-hero-photo img,
.home-hero-photo .mw-file-element {
	display: block;
	width: 100%;
	max-width: 56em;
	height: auto;
}

.home-feature-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 1.25em;
	margin: 0.75em 0 0.35em;
	align-items: flex-start;
}

.home-feature-thumb {
	flex: 0 1 9em;
	max-width: 10em;
	text-align: center;
}

.home-feature-thumb img,
.home-feature-thumb .mw-file-element {
	display: block;
	margin: 0 auto 0.4em;
	max-width: 120px;
	height: auto;
}

.home-feature-caption {
	font-size: 95%;
	line-height: 1.35;
}

.home-book {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 1.25em;
	align-items: flex-start;
	margin: 0.5em 0 0;
}

.home-book-cover {
	flex: 0 0 auto;
}

.home-book-cover img,
.home-book-cover .mw-file-element {
	display: block;
	max-width: 140px;
	height: auto;
}

.home-book-text {
	flex: 1 1 16em;
	min-width: 12em;
	line-height: 1.55;
}

.needs-source,
.needs-source a {
	font-style: normal;
	white-space: nowrap;
}

.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.35em 0 0.85em;
	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-summary-bar {
	margin: 0.85em 0 0 !important;
	padding-top: 0.75em;
	border-top: 1px solid #c8ccd1;
}

.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-lead {
	margin: 0 0 1em 0;
}

.soldier-summary-toggle {
	background: #f8f9fa;
	color: #202122;
	border: 1px solid #a2a9b1;
	border-radius: 2px;
	padding: 0.15em 0.5em;
	cursor: pointer;
	font-size: inherit;
}

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

.soldier-summary-hint {
	margin: 0 0 0.5em;
	font-size: 95%;
	color: #54595d;
}

.soldier-summary-text {
	width: 100%;
	box-sizing: border-box;
	min-height: 8em;
	font: inherit;
}

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

/* The Stories — photo galleries and captions */
.story-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 1.25em;
	margin: 0.75em auto 1.25em;
	align-items: flex-start;
	justify-content: center;
}
.story-gallery-item {
	flex: 0 1 16em;
	max-width: 18em;
	text-align: center;
}
.story-gallery-item img,
.story-gallery-item .mw-file-element,
.story-figure img,
.story-figure .mw-file-element {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	max-height: 20em;
	width: auto;
	height: auto;
	object-fit: contain;
}
.story-figure {
	margin: 0.75em auto 1.1em;
	text-align: center;
	max-width: 22em;
}
.story-caption {
	font-size: 92%;
	line-height: 1.35;
	margin: 0.35em 0 0;
	color: #444;
}

/* Soldier profile — compact photo gallery (not infobox-style thumbs) */
.soldier-gallery {
	margin: 0.5em 0 1em;
	clear: both;
	width: 100%;
	max-width: none;
}
.soldier-gallery ul.gallery,
.soldier-gallery .gallery {
	margin: 0;
	padding: 0;
	width: 100%;
}
.soldier-gallery .gallerybox {
	margin: 0.15em;
}
.soldier-gallery .thumb,
.soldier-gallery .gallerybox .thumb {
	border: none;
	background: transparent;
}
.soldier-gallery .gallerytext {
	font-size: 88%;
	line-height: 1.3;
	text-align: center;
	padding: 0.25em 0.35em 0.5em;
	max-width: 12em;
	margin: 0 auto;
	color: #333;
}