Template:Navbox/styles.css: Difference between revisions

m Fix low-contrast title link: white underlined (was light gold #ffe08a on red)
m 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
Line 26: Line 26:
.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 46:
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 55:
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; }