Vorlage:Infobox/styles.css: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Vorlage>Izno
spaceeeee
 
K 1 Version importiert
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
/* {{pp|small=y}} */
/**
/*
  * Common TemplateStyles used by [[Template:Extension]], [[Template:Skin]],
  * This TemplateStyles sheet deliberately does NOT include the full set of
  * [[Template:Tool]], etc.
* 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
  */
  */
.infobox {
box-sizing: border-box;
border: 2px solid var( --border-color-base, #a2a9b1 );
width: 280px;
border-collapse: collapse;
border-spacing: 0;
background-color: white;
color: #333;
/* these are overriden by .infobox-rtl on the templates of interest */
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 0 0 0.5em 0.5em;
}


/* NOTE: This is maintained both here and in [[MediaWiki:Common.css]] until migration is complete.
.infobox-rtl {
* Starting with bare minimum for the benefit of [[mw:Manual:Safemode]]. */
/* @noflip */
@media (min-width: 640px) {
clear: left;
.infobox {
/* @noflip */
/* @noflip */
float: left;
margin-left: 1em;
/* @noflip */
/* @noflip */
margin: 0 0.5em 0.5em 0;
float: right;
}
/* @noflip */
 
clear: right;
.infobox th {
width: 22em;
/* @noflip */
text-align: left;
padding: 0.2em 0.5em;
vertical-align: top;
}
 
.infobox-rtl th {
/* @noflip */
text-align: right;
}
 
@media (max-width: 719px) {
/* high specificity to ensure specific infoboxes won't override these
* properties with their own tstyles inadvertently */
body.mediawiki .infobox {
float: none;
clear: both;
width: 100%;
margin: 0 0 .5em 0;
}
}
}
}


/*
.infobox td {
* 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-subbox {
padding: 0;
border: none;
border: none;
margin: -3px;
padding: 0.2em 0.5em;
width: auto;
vertical-align: top;
min-width: 100%;
}
font-size: 100%;
 
clear: none;
.infobox-header {
float: none;
background-color: #a2a9b1;
background-color: transparent;
color: #FFF;
    color:inherit;
text-align: left;
}
}


.infobox-3cols-child {
.infobox-header a {
margin: -3px;
color: #FFF;
}
}


.infobox .navbar {
.infobox-header td,
font-size: 100%;
.infobox-header th {
padding: 0.5em 0.5em;
}
}


/* remove when infobox is not a table anymore */
.infobox-header img {
.infobox-hiddenrow,
padding: 0 0.2em 0 0.5em;
/* we mean it, Minerva. but also Vector 2022 in the future at some point */
body.skin--responsive.skin--responsive .infobox .infobox-hiddenrow {
display: none;
}
}
 
/* Dark theme: [[William Wragg]], [[Coral Castle]] */
@media screen {
@media screen {
html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
html.skin-theme-clientpref-night .infobox {
background: #1f1f23 !important;
background-color: inherit;
/* switch with var( --color-base ) when supported. */
color: inherit;
color: #f8f9fa;
}
}
}
}


@media screen and (prefers-color-scheme: dark) {
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
  html.skin-theme-clientpref-os .infobox {
background: #1f1f23 !important;
background-color: inherit;
/* switch with var( --color-base ) when supported. */
color: inherit;
color: #f8f9fa;
  }
}
}
 
/* Since infobox is a table, many infobox templates take advantage of this to
* add columns and rows to the infobox itself rather than as part of a new table
* inside them. This class should be discouraged and removed on the long term,
* but allows us to at least identify these tables going forward
* Currently in use on: [[Module:Infobox3cols]]
* Fixes issue described in [[phab:F55300125]] on Vector 2022.
*/
@media (min-width: 640px) {
body.skin--responsive .infobox-table {
display: table !important;
}
body.skin--responsive .infobox-table > caption {
display: table-caption !important;
}
body.skin--responsive .infobox-table > tbody {
display: table-row-group;
}
body.skin--responsive .infobox-table th,
body.skin--responsive .infobox-table td {
padding-left: inherit;
padding-right: inherit;
}
}
}

Aktuelle Version vom 18. Juni 2026, 15:54 Uhr

/**
 * Common TemplateStyles used by [[Template:Extension]], [[Template:Skin]],
 * [[Template:Tool]], etc.
 */
.infobox {
	box-sizing: border-box;
	border: 2px solid var( --border-color-base, #a2a9b1 );
	width: 280px;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: white;
	color: #333;
	/* these are overriden by .infobox-rtl on the templates of interest */
	/* @noflip */
	clear: right;
	/* @noflip */
	float: right;
	/* @noflip */
	margin: 0 0 0.5em 0.5em;
}

.infobox-rtl {
	/* @noflip */
	clear: left;
	/* @noflip */
	float: left;
	/* @noflip */
	margin: 0 0.5em 0.5em 0;
}

.infobox th {
	/* @noflip */
	text-align: left;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

.infobox-rtl th {
	/* @noflip */
	text-align: right;
}

@media (max-width: 719px) {
	/* high specificity to ensure specific infoboxes won't override these
	 * properties with their own tstyles inadvertently */
	body.mediawiki .infobox {
		float: none;
		clear: both;
		width: 100%;
		margin: 0 0 .5em 0;
	}
}

.infobox td {
	border: none;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

.infobox-header {
	background-color: #a2a9b1;
	color: #FFF;
	text-align: left;
}

.infobox-header a {
	color: #FFF;
}

.infobox-header td,
.infobox-header th {
	padding: 0.5em 0.5em;
}

.infobox-header img {
	padding: 0 0.2em 0 0.5em;
}

@media screen {
	html.skin-theme-clientpref-night .infobox {
		background-color: inherit;
		color: inherit;
	}
}

@media screen and (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .infobox {
	background-color: inherit;
	color: inherit;
  }
}