Template:Navbox/styles.css

Revision as of 16:54, 13 July 2026 by MDGarcia (talk | contribs) (Add .tf-branchnav crest-tile classes for the branches-of-service navbox)
/* 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: crest tiles grouped by service type. */
.tf-branchnav {
	margin: 1.2em auto 0;
	width: 100%;
	max-width: 62em;
	border: 1px solid #999999;
	border-collapse: collapse;
	background: #f7f7f7;
	color: black;
	clear: both;
}
.tf-branchnav td, .tf-branchnav th { border: 1px solid #cccccc; }
.tf-branchnav .tf-navtitle {
	background: #c10b00;
	color: #ffffff;
	font-size: 108%;
	font-weight: bold;
	text-align: center;
	padding: 5px 4px;
	letter-spacing: 0.02em;
}
.tf-branchnav .tf-navtitle a { color: #ffe08a; }
.tf-branchnav .tf-grouplabel {
	background: #a10900;
	color: #ffffff;
	font-weight: bold;
	text-align: center;
	vertical-align: middle;
	width: 8.5em;
	padding: 4px 6px;
	line-height: 1.15;
}
.tf-branchnav .tf-tiles { padding: 6px 4px; text-align: center; }
.tf-branchnav .tf-tile {
	display: inline-block;
	width: 8em;
	vertical-align: top;
	text-align: center;
	margin: 5px 7px;
	font-size: 90%;
	line-height: 1.2;
}
.tf-branchnav .tf-tile a img { display: block; margin: 0 auto 4px; }
.tf-branchnav .tf-navfoot {
	background: #efefef;
	text-align: center;
	font-size: 88%;
	padding: 3px;
}