Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox/styles.css: Difference between revisions

Template page
Wiki lane: site structure (templates, forms, help pages)
Wiki lane: phone-width tables and infobox, category pages
Line 75: Line 75:
.cmpw-confrow { margin: 0 0 0.35em; }
.cmpw-confrow { margin: 0 0 0.35em; }
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
.cmpw-infobox { float: none; width: auto; margin: 0 0 1em 0; }
/* phones: the infobox takes the full column width above the text, cells wrap inside it */
.cmpw-infobox { float: none; width: 100%; max-width: 100%; margin: 0 0 1em 0; table-layout: fixed; box-sizing: border-box; }
.cmpw-infobox th { width: 34%; }
}
}
.cmpw-import-footer {
.cmpw-import-footer {

Revision as of 08:22, 30 October 2026

/* Infoboxes for Recipe, Platform, Unlock, Confirmation and Download (dark palette, readable on Citizen's day theme). */
.cmpw-infobox {
	float: right;
	clear: right;
	width: 24em;
	max-width: 100%;
	margin: 0 0 1em 1.4em;
	border: 1px solid #222830;
	border-radius: 12px;
	background-color: #0f1216;
	color: #e9e6df;
	font-size: 0.9em;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}
.cmpw-infobox caption {
	padding: 0.6em 0.8em 0.2em;
	text-align: left;
	font-family: "Unbounded", system-ui, sans-serif;
	font-size: 1.1em;
	font-weight: 600;
	color: #e9e6df;
	background-color: #0f1216;
}
.cmpw-infobox th {
	width: 38%;
	padding: 0.4em 0.8em;
	text-align: left;
	vertical-align: top;
	color: #a6acb4;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.78em;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-top: 1px solid #1d232b;
}
.cmpw-infobox td {
	padding: 0.4em 0.8em;
	vertical-align: top;
	border-top: 1px solid #1d232b;
	overflow-wrap: anywhere;
}
.cmpw-infobox td.cmpw-head { padding: 0.2em 0.8em 0.7em; border-top: 0; }
.cmpw-infobox a { color: #5ef2e8; }
.cmpw-infobox code { background-color: #13171c; color: #e9e6df; border: 1px solid #222830; }
.cmpw-infobox .cmpw-num { font-family: "JetBrains Mono", ui-monospace, monospace; }
.cmpw-infobox .cmpw-muted { color: #a6acb4; }
.cmpw-cards {
	display: inline-block;
	padding: 0.1em 0.6em;
	border-radius: 6px;
	border: 1px solid #222830;
	background-color: #13171c;
	color: #e9e6df;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.78em;
	vertical-align: middle;
}
.cmpw-source { color: #a6acb4; font-size: 0.9em; }
.cmpw-download {
	margin: 0.5em 0 1em;
	padding: 0.7em 0.9em;
	border: 1px solid #222830;
	border-left: 3px solid #5ef2e8;
	border-radius: 8px;
	background-color: #0f1216;
	color: #e9e6df;
}
.cmpw-download a { color: #5ef2e8; }
.cmpw-download .cmpw-hash { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85em; overflow-wrap: anywhere; }
.cmpw-bad { color: #ff6464; font-weight: 700; }
.cmpw-good { color: #5ef2e8; }
.cmpw-confrow { margin: 0 0 0.35em; }
@media screen and (max-width: 720px) {
	/* phones: the infobox takes the full column width above the text, cells wrap inside it */
	.cmpw-infobox { float: none; width: 100%; max-width: 100%; margin: 0 0 1em 0; table-layout: fixed; box-sizing: border-box; }
	.cmpw-infobox th { width: 34%; }
}
.cmpw-import-footer {
	margin: 2em 0 0;
	padding-top: 0.6em;
	border-top: 1px solid #222830;
	color: #a6acb4;
	font-size: 0.85em;
}