Module:Infobox/styles.css: Difference between revisions

From RammWiki
No edit summary
No edit summary
 
Line 1: Line 1:
/*
* This TemplateStyles sheet deliberately does NOT include the full set of
* infobox styles. We are still working to migrate all of the manual
* infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]]
* DO NOT ADD THEM HERE
*/
/*
* not strictly certain these styles are necessary since the modules now
* exclusively output infobox-subbox or infobox, not both
* just replicating the module faithfully
*/
.infobox {
.infobox {
border: 1px solid;
border: 1px solid;

Latest revision as of 08:40, 8 April 2023

.infobox {
	border: 1px solid;
	background-color: var(--color-surface-1);
	max-width: 25em;
	vertical-align: top;
	float: right;
	margin: 0 0 20px 20px;
}

.infobox-label,
.infobox-header,
.header {
	padding-right: 10px;
	padding-left: 10px;
	text-align: center;
	background-color: var(--color-surface-2);
}

.infobox-image,
.infobox-data-a,
.infobox-data-b,
.infobox-data-c {
	text-align: center;
}

.infobox-data {
	padding-right: 10px;
	padding-left: 5px;
}

.infobox-above,
.infobox-caption,
.infobox-label {
	padding-right: 10px;
	padding-left: 10px;
	text-align: center;
}

.infobox-full-data ol {
	margin-bottom: 0;
}

hr {
	margin-top: 5px;
	margin-bottom: 5px;
}

.infobox-subbox {
	padding: 0;
	border: none;
	margin: -3px;
	width: auto;
	min-width: 100%;
	font-size: 100%;
	clear: none;
	float: none;
	background-color: var(--color-surface-1);
	display: inline-table;
}

.infobox-3cols-child {
	border: none;
	margin: auto;
}

@media only screen and (max-width: 720px) {
  .infobox {
  	margin: auto;
  	max-width: max-content;
  	float: none;
  }
  
  .mw-collapsible {
	display: inline-table;
}

}