Template:Navbox/styles.css: Difference between revisions

Create shared TemplateStyles sheet for ship/type navboxes [audit Batch C]
 
m Add .tf-navbox + .tf-navhead for multi-header navboxes [audit Batch C]
Line 1: Line 1:
/* Shared styling for ship-class and type/fleet navboxes. Replaces legacy <center>/bgcolor. */
/* Shared styling for navboxes. Replaces legacy <center>/bgcolor/align. */
 
/* Single-header ship-class navboxes: the lone header cell is the title. */
.tf-shipnav {
.tf-shipnav {
margin: 0 auto;
margin: 0 auto;
Line 7: Line 9:
color: black;
color: black;
}
}
.tf-shipnav th {
.tf-shipnav th, .tf-shipnav td { text-align: center; }
text-align: center;
.tf-shipnav th { background: #c10b00; font-size: 100%; }
background: #c10b00;
 
font-size: 100%;
/* Multi-header type/fleet/award navboxes: same container, but only cells
}
  tagged .tf-navhead are coloured; per-cell alignment kept inline. */
.tf-shipnav td {
.tf-navbox {
text-align: center;
margin: 0 auto;
background: #efefef;
border: 1px solid #aaaaaa;
font-size: 85%;
color: black;
}
}
.tf-navhead { background: #c10b00; font-size: 100%; text-align: center; }