Template:Navbox/styles.css: Difference between revisions

From TenthFleet
Jump to navigation Jump to search
m Add .tf-navbox + .tf-navhead for multi-header navboxes [audit Batch C]
m Add .tf-cnav for menu navbox centering [audit Batch C]
Line 12: Line 12:
.tf-shipnav th { background: #c10b00; font-size: 100%; }
.tf-shipnav th { background: #c10b00; font-size: 100%; }


/* Multi-header type/fleet/award navboxes: same container, but only cells
/* Multi-header type/fleet/award navboxes: same container, only .tf-navhead
  tagged .tf-navhead are coloured; per-cell alignment kept inline. */
  cells are coloured; per-cell alignment kept inline. */
.tf-navbox {
.tf-navbox {
margin: 0 auto;
margin: 0 auto;
Line 22: Line 22:
}
}
.tf-navhead { background: #c10b00; font-size: 100%; text-align: center; }
.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; }

Revision as of 08:21, 12 July 2026

/* 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; }