Template:Quotation/styles.css: Difference between revisions

From Workers & Resources: Soviet Republic Official Wiki
Restore colours lost with the Fandom theme variables
 
Keep quotation boxes from overlapping floated infoboxes
 
Line 13: Line 13:
.va-quotation-quot-r {
.va-quotation-quot-r {
color: #45494e;
color: #45494e;
}
/* Without a block formatting context the quotation box slides underneath a
  floated infobox: the closing quote mark, positioned at the box’s right
  edge, lands on top of the infobox and the box swallows clicks meant for
  the infobox image tabs. */
.va-quotation-center,
.va-quotation-left,
.va-quotation-right {
display: flow-root;
}
}

Latest revision as of 19:24, 8 August 2026

/* These rules live in MediaWiki:Common.css but resolve their colours through
   --theme-* variables that only the Fandom platform defined, so on this wiki
   the declarations are discarded and the box loses its border and background.
   TemplateStyles forbids custom properties, so the colours are repeated
   literally here. They match the wikitable palette. */
.va-quotation-left,
.va-quotation-right {
	border-top: 1px solid #45494e;
	border-bottom: 1px solid #45494e;
}

.va-quotation-quot-l,
.va-quotation-quot-r {
	color: #45494e;
}

/* Without a block formatting context the quotation box slides underneath a
   floated infobox: the closing quote mark, positioned at the box’s right
   edge, lands on top of the infobox and the box swallows clicks meant for
   the infobox image tabs. */
.va-quotation-center,
.va-quotation-left,
.va-quotation-right {
	display: flow-root;
}