Template:Infobox/style.css: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 15: Line 15:
 
margin: 0.5em auto;
 
margin: 0.5em auto;
 
}
 
}
 
.infobox-dual-illustration img .infobox-illustration img {
 
width: auto;
 
height: auto;
 
max-width: 100%;
 
min-width: 100%;
 
object-fit: contain;
 
}
 
 
   
 
.infobox-header {
 
.infobox-header {
Line 44: Line 35:
 
}
 
}
   
.infobox-illustration, .infobox-caption {
+
.infobox-illustration, .infobox-caption .infobox-dual-illustration {
 
margin: auto;
 
margin: auto;
 
text-align: center;
 
text-align: center;

Revision as of 23:05, 24 October 2022

.infobox {
	float: right;
	clear: right;
	
	min-width: 200px;
	margin: 0.5em 0 0.5em 1em;
	
	border: solid 1px grey;
	background-color: #f5f5f5;
	font-size: 90%;
}

.infobox.nofloat {
	float: none;
	margin: 0.5em auto;
}

.infobox-header {
	padding: 0.8em 2em;
	color: white;
	background-color: #696969;
	text-align: center;
}

.infobox-header .infobox-title {
	padding: 0;
	margin: 0 auto;
	color: inherit;
	font-size: 1.3em;
}

.infobox-header .infobox-subtitle {
	/*margin-top: .4em;*/
	font-style: italic;
}

.infobox-illustration, .infobox-caption .infobox-dual-illustration {
	margin: auto;
	text-align: center;
}

.infobox-caption {
	color: #696969;
	font-style: italic;
}

.infobox-section-header {
	background-color: #ddd;
	color: #222;
	font-size: 1.1em;
}