Template:Navbox/styles.css: Difference between revisions

From TenthFleet
Jump to navigation Jump to search
m Fix low-contrast title link: white underlined (was light gold #ffe08a on red)
m Restyle tf-navbox/tf-shipnav to the dark tf house style for uniform navbox appearance
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* Shared styling for navboxes. Replaces legacy <center>/bgcolor/align. */
/* Shared styling for navboxes — tf dark house style (matches tf-anav and the
  site-wide dark .wikitable theme). Replaces legacy <center>/bgcolor/align. */


/* Single-header ship-class navboxes: the lone header cell is the title. */
/* Single-header ship-class navboxes: the lone header cell is the title. */
.tf-shipnav {
.tf-shipnav {
margin: 0 auto;
margin: 1.2em auto 0;
background: #efefef;
max-width: 62em;
border: 1px solid #aaaaaa;
background: #1c1c20;
border: 1px solid #2A2A2C;
border-radius: 8px;
border-collapse: collapse;
overflow: hidden;
font-size: 85%;
font-size: 85%;
color: black;
color: #E9E6E0;
clear: both;
}
.tf-shipnav th, .tf-shipnav td { text-align: center; padding: 5px 9px; line-height: 1.5; }
.tf-shipnav th {
background: #232326;
color: #F5BD3F;
font-size: 100%;
font-variant: small-caps;
letter-spacing: 0.03em;
border-bottom: 2px solid #8A6D1E;
}
}
.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
/* Multi-header type/fleet/award navboxes: same container, only .tf-navhead
   cells are coloured; per-cell alignment kept inline. */
   cells are coloured; per-cell alignment kept inline. */
.tf-navbox {
.tf-navbox {
margin: 0 auto;
margin: 1.2em auto 0;
background: #efefef;
max-width: 62em;
border: 1px solid #aaaaaa;
background: #1c1c20;
border: 1px solid #2A2A2C;
border-radius: 8px;
border-collapse: collapse;
overflow: hidden;
font-size: 85%;
font-size: 85%;
color: black;
color: #E9E6E0;
clear: both;
}
}
.tf-navhead { background: #c10b00; font-size: 100%; text-align: center; }
.tf-navbox td { padding: 5px 9px; line-height: 1.5; }
.tf-navhead {
background: #232326;
color: #F5BD3F;
font-size: 100%;
font-variant: small-caps;
letter-spacing: 0.03em;
font-weight: bold;
text-align: center;
padding: 6px 8px;
border-bottom: 2px solid #8A6D1E;
}
 
/* Gold links inside the simple navbox types (match tf-anav). */
.tf-shipnav a, .tf-shipnav a:visited, .tf-navbox a, .tf-navbox a:visited { color: #F5BD3F; }
.tf-shipnav a:hover, .tf-navbox a:hover { color: #F4D736; }
/* current page self-link stands out in white */
.tf-shipnav .mw-selflink, .tf-navbox .mw-selflink { color: #ffffff; font-weight: bold; }


/* Menu/manual navboxes: a standard wikitable that just needs centering. */
/* Menu/manual navboxes: a standard wikitable (dark-themed site-wide via Common.css)
  that just needs centering. */
.tf-cnav { margin: 0 auto; }
.tf-cnav { margin: 0 auto; }


/* Branch-of-service navbox: a title bar over one compact row of crest tiles. */
/* 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 {
.tf-branchnav {
margin: 1.2em auto 0;
margin: 1.2em auto 0;
width: 100%;
width: 100%;
max-width: 60em;
max-width: 60em;
border: 1px solid #999999;
border: 1px solid #2A2A2C;
border-collapse: collapse;
border-collapse: collapse;
background: #f7f7f7;
background: #1c1c20;
color: black;
color: #E9E6E0;
clear: both;
clear: both;
}
}
.tf-branchnav .tf-navtitle {
.tf-branchnav .tf-navtitle {
background: #c10b00;
background: #BE2F24;
color: #ffffff;
color: #ffffff;
font-size: 105%;
font-size: 105%;
Line 45: Line 82:
padding: 4px;
padding: 4px;
letter-spacing: 0.02em;
letter-spacing: 0.02em;
border-bottom: 1px solid #2A2A2C;
}
}
.tf-branchnav .tf-navtitle a { color: #ffffff; text-decoration: underline; }
.tf-branchnav .tf-navtitle a { color: #ffffff; text-decoration: underline; }
.tf-branchnav .tf-tiles { padding: 5px 3px; text-align: center; }
.tf-branchnav .tf-tiles { padding: 6px 4px; text-align: center; background: #141416; }
.tf-branchnav .tf-tile {
.tf-branchnav .tf-tile {
display: inline-block;
display: inline-block;
Line 53: Line 91:
vertical-align: top;
vertical-align: top;
text-align: center;
text-align: center;
margin: 3px 4px;
margin: 4px 5px;
font-size: 84%;
font-size: 84%;
line-height: 1.15;
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; }
.tf-branchnav .tf-tile a img { display: block; margin: 0 auto 3px; height: 40px; width: auto; }

Latest revision as of 03:47, 17 July 2026

/* Shared styling for navboxes — tf dark house style (matches tf-anav and the
   site-wide dark .wikitable theme). Replaces legacy <center>/bgcolor/align. */

/* Single-header ship-class navboxes: the lone header cell is the title. */
.tf-shipnav {
	margin: 1.2em auto 0;
	max-width: 62em;
	background: #1c1c20;
	border: 1px solid #2A2A2C;
	border-radius: 8px;
	border-collapse: collapse;
	overflow: hidden;
	font-size: 85%;
	color: #E9E6E0;
	clear: both;
}
.tf-shipnav th, .tf-shipnav td { text-align: center; padding: 5px 9px; line-height: 1.5; }
.tf-shipnav th {
	background: #232326;
	color: #F5BD3F;
	font-size: 100%;
	font-variant: small-caps;
	letter-spacing: 0.03em;
	border-bottom: 2px solid #8A6D1E;
}

/* Multi-header type/fleet/award navboxes: same container, only .tf-navhead
   cells are coloured; per-cell alignment kept inline. */
.tf-navbox {
	margin: 1.2em auto 0;
	max-width: 62em;
	background: #1c1c20;
	border: 1px solid #2A2A2C;
	border-radius: 8px;
	border-collapse: collapse;
	overflow: hidden;
	font-size: 85%;
	color: #E9E6E0;
	clear: both;
}
.tf-navbox td { padding: 5px 9px; line-height: 1.5; }
.tf-navhead {
	background: #232326;
	color: #F5BD3F;
	font-size: 100%;
	font-variant: small-caps;
	letter-spacing: 0.03em;
	font-weight: bold;
	text-align: center;
	padding: 6px 8px;
	border-bottom: 2px solid #8A6D1E;
}

/* Gold links inside the simple navbox types (match tf-anav). */
.tf-shipnav a, .tf-shipnav a:visited, .tf-navbox a, .tf-navbox a:visited { color: #F5BD3F; }
.tf-shipnav a:hover, .tf-navbox a:hover { color: #F4D736; }
/* current page self-link stands out in white */
.tf-shipnav .mw-selflink, .tf-navbox .mw-selflink { color: #ffffff; font-weight: bold; }

/* Menu/manual navboxes: a standard wikitable (dark-themed site-wide via Common.css)
   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; }