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
Temporarily duplicate global infobox styles for migration to templatestyles
 
Replace 1px border with a border radius
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* Infobox CSS */
/* The main box */
.infobox {
.infobox {
    background: #DEDEDE;
background: var(--background-color-neutral-subtle, #DEDEDE);
     border-spacing: 3px;
     border: none;
     margin: 0 0 .5em;
     border-radius: var(--border-radius-large);
     width: 100%;
     color: var(--color-base, black);
    padding: 0.2em;
padding: 0.2em;
    line-height: 1.5em;
font-size: 88%;
line-height: 1.5em;
border-spacing: 3px;
margin: 0.5em 0;
}
}
.infobox>caption {
 
    background: #183d62;
@media screen {
    color: #fff;
.infobox {
     padding: .5em;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
    font-size: 1.4em;
     }
}
}
.infobox th {
 
    font-weight: bold;
@media (max-width: 640px) {
}
.infobox {
.infobox th:only-child {
width: 100%;
    background: rgba(24, 61, 98, 0.6);
}
    color: #EEE;
   
.infobox .nowrap {
white-space: normal;
}
}
}


.infobox tr.even, .infobox tr.alt, .infobox tr:nth-of-type(2n) {
@media (min-width: 640px) {
    background: #CFCFD8;
.infobox {
}
/* @noflip */
.infobox .plainlinks>ul {
margin-left: 1em;
    margin: 0;
/* @noflip */
float: right;
/* @noflip */
clear: right;
width: 22em;
}
}
}


/* ---- Infobox ---- */
.infobox th,
.infobox {
.infobox td {
    background: var(--color-surface-2) !important;
/* @noflip */
    border: 1px solid var(--color-surface-3) !important;
text-align: left;
    color: var(--color-base) !important;
vertical-align: top;
}
.infobox > caption {
    background: var(--color-primary) !important;
    color: var(--color-primary--text, #fff) !important;
}
}
.infobox th {
.infobox th {
     color: var(--color-base) !important;
     font-weight: bold;
}
}
/* Section headers (Properties, Recipes, Logic, Construction, Stage 1, etc.) */
.infobox th:only-child {
.infobox th:only-child {
     background: var(--color-surface-3) !important;
     background: var(--color-surface-3, rgba(24, 61, 98, 0.6));
    color: var(--color-base) !important;
}
}
.infobox td {
 
    color: var(--color-base) !important;
.infobox caption {
}
font-size: 125%;
.infobox tr:nth-of-type(2n) {
font-weight: bold;
    background: var(--color-surface-3) !important;
text-align: center;
}
padding: 0.2em;
.infobox a {
    color: var(--color-link) !important;
}
}


/* Infobox large screen */
.infobox .plainlinks>ul {
@media only screen and (min-width: 50em) {
     margin: 0;
 
.infobox {
    float: right;
    clear: right;
    width: 23em;
     margin: 0.5em 0 0.5em 1em;
}
}
}

Latest revision as of 03:02, 20 March 2026

.infobox {
	background: var(--background-color-neutral-subtle, #DEDEDE);
    border: none;
    border-radius: var(--border-radius-large);
    color: var(--color-base, black);
	padding: 0.2em;
	font-size: 88%;
	line-height: 1.5em;
	border-spacing: 3px;
	margin: 0.5em 0;
}

@media screen {
	.infobox {
		background-color: var(--background-color-neutral-subtle, #f8f9fa);
    }
}

@media (max-width: 640px) {
	.infobox {
		width: 100%;
	}
    
	.infobox .nowrap {
		white-space: normal;
	}
}

@media (min-width: 640px) {
	.infobox {
		/* @noflip */
		margin-left: 1em;
		/* @noflip */
		float: right;
		/* @noflip */
		clear: right;
		width: 22em;
	}
}

.infobox th,
.infobox td {
	/* @noflip */
	text-align: left;
	vertical-align: top;
}
.infobox th {
    font-weight: bold;
}
.infobox th:only-child {
    background:  var(--color-surface-3, rgba(24, 61, 98, 0.6));
}

.infobox caption {
	font-size: 125%;
	font-weight: bold;
	text-align: center;
	padding: 0.2em;
}

.infobox .plainlinks>ul {
    margin: 0;
}