Template:Building table/styles.css: Difference between revisions

From Workers & Resources: Soviet Republic Official Wiki
Add TemplateStyles restoring crafting-block borders and backgrounds lost with the Fandom theme variables
 
Collapse unused phase cells so they do not render as empty bordered columns
 
Line 21: Line 21:
.np-crafting-highlight {
.np-crafting-highlight {
background-color: #2a3138 !important;
background-color: #2a3138 !important;
}
/* The template emits a cell for every phase whether or not it is used.
  Unused ones are empty, so collapse them rather than let the wikitable
  borders draw empty columns. */
.np-crafting-table td:empty {
display: none;
}
}

Latest revision as of 17:49, 8 August 2026

/* Restores the borders and backgrounds these blocks lost when the wiki
   moved off Fandom: the rules in MediaWiki:Common.css reference --theme-*
   variables that only the Fandom platform defined, so they are discarded.
   Literal colours here match the wikitable palette. */

.np-crafting-table {
	font-size: inherit;
	line-height: inherit;
}

.np-crafting-block {
	border: 1px solid #45494e;
	background-color: #1f2226;
	padding: 3px 5px;
}

.np-crafting-requirement {
	background-color: #151b1e !important;
}

.np-crafting-highlight {
	background-color: #2a3138 !important;
}
/* The template emits a cell for every phase whether or not it is used.
   Unused ones are empty, so collapse them rather than let the wikitable
   borders draw empty columns. */
.np-crafting-table td:empty {
	display: none;
}