Template:Navbox/styles.css

From TenthFleet
Revision as of 17:21, 13 July 2026 by MDGarcia (talk | contribs) (Redesign branch navbox as dark card to match site dark theme: dark tile bg makes the site's gold links readable (were gold-on-light); self-link=bold white)
Jump to navigation Jump to search
/* Shared styling for navboxes. Replaces legacy <center>/bgcolor/align. */

/* Single-header ship-class navboxes: the lone header cell is the title. */
.tf-shipnav {
	margin: 0 auto;
	background: #efefef;
	border: 1px solid #aaaaaa;
	font-size: 85%;
	color: black;
}
.tf-shipnav th, .tf-shipnav td { text-align: center; }
.tf-shipnav th { background: #c10b00; font-size: 100%; }

/* Multi-header type/fleet/award navboxes: same container, only .tf-navhead
   cells are coloured; per-cell alignment kept inline. */
.tf-navbox {
	margin: 0 auto;
	background: #efefef;
	border: 1px solid #aaaaaa;
	font-size: 85%;
	color: black;
}
.tf-navhead { background: #c10b00; font-size: 100%; text-align: center; }

/* Menu/manual navboxes: a standard wikitable that just needs centering. */
.tf-cnav { margin: 0 auto; }

/* Branch-of-service navbox: dark card (matches the site dark theme) — a red title
   bar over one compact row of crest tiles with gold labels. */
.tf-branchnav {
	margin: 1.2em auto 0;
	width: 100%;
	max-width: 60em;
	border: 1px solid #2A2A2C;
	border-collapse: collapse;
	background: #1c1c20;
	color: #E9E6E0;
	clear: both;
}
.tf-branchnav .tf-navtitle {
	background: #BE2F24;
	color: #ffffff;
	font-size: 105%;
	font-weight: bold;
	text-align: center;
	padding: 4px;
	letter-spacing: 0.02em;
	border-bottom: 1px solid #2A2A2C;
}
.tf-branchnav .tf-navtitle a { color: #ffffff; text-decoration: underline; }
.tf-branchnav .tf-tiles { padding: 6px 4px; text-align: center; background: #141416; }
.tf-branchnav .tf-tile {
	display: inline-block;
	width: 5em;
	vertical-align: top;
	text-align: center;
	margin: 4px 5px;
	font-size: 84%;
	line-height: 1.15;
}
.tf-branchnav .tf-tile a { color: #F5BD3F; }
.tf-branchnav .tf-tile a:hover { color: #F4D736; }
/* current branch (self-link) stands out in bold white against the gold links */
.tf-branchnav .tf-tile .mw-selflink { color: #ffffff; font-weight: bold; text-decoration: none; }
.tf-branchnav .tf-tile a img { display: block; margin: 0 auto 3px; height: 40px; width: auto; }