Ir al contenido

Diferencia entre revisiones de «Plantilla:Infobox election/styles.css»

Página creada con «→{{pp-template}}: .ib-election { line-height: 1.5em; } .ib-election .infobox-data { text-align: center; } .ib-election .infobox-label { width: 5em; white-space: nowrap; } .ib-election .infobox-subheader { line-height: 130%; } .ib-election .infobox-header { font-weight: normal; } /* To avoid seeming biased on responsive skins - make sure all images are the * same width and displayed e.g. not hidden by a scrollable element * use !important for both of t…»
 
CSS móvil: la ficha electoral ocupa el ancho de la pantalla
 
Línea 45: Línea 45:
background-color: #f8f9fa;
background-color: #f8f9fa;
         color:inherit;
         color:inherit;
}
}
/* MOVIL-FIX: en pantallas estrechas la ficha ocupa el ancho del móvil (el ancho fijo de 380 px la desbordaba) */
@media ( max-width: 720px ) {
table.infobox {
display: table !important;
width: 100% !important;
max-width: 100% !important;
float: none !important;
margin: 0 0 1em 0 !important;
box-sizing: border-box;
}
table.infobox table {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
}
table.infobox td, table.infobox th {
box-sizing: border-box;
max-width: 100%;
}
table.infobox img {
max-width: 100%;
height: auto;
}
.ib-election .infobox-label {
white-space: normal;
}
}
}
}

Revisión actual - 18:22 4 nov 2026

/* {{pp-template}} */
.ib-election {
	line-height: 1.5em;
}

.ib-election .infobox-data {
	text-align: center;
}

.ib-election .infobox-label {
	width: 5em;
	white-space: nowrap;
}

.ib-election .infobox-subheader {
	line-height: 130%;
}

.ib-election .infobox-header {
	font-weight: normal;
}

/* To avoid seeming biased on responsive skins - make sure all images are the
 * same width and displayed e.g. not hidden by a scrollable element
 * use !important for both of these to override any widths or heights provided by
 * templates, otherwise these will squish.
 */
@media ( max-width: 640px ) {
	body.skin--responsive:not( .skin-monobook ):not( .skin-timeless ) .ib-election .notpageimage.noresize img {
		height: 80px !important;
    	width: auto !important;
	}
}

/* always light mode for the images */
@media screen {
	html.skin-theme-clientpref-night .ib-election .mw-file-description img {
		background-color: #f8f9fa;
        color:inherit;
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .ib-election .mw-file-description img {
		background-color: #f8f9fa;
        color:inherit;
	}
}

/* MOVIL-FIX: en pantallas estrechas la ficha ocupa el ancho del móvil (el ancho fijo de 380 px la desbordaba) */
@media ( max-width: 720px ) {
	table.infobox {
		display: table !important;
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		margin: 0 0 1em 0 !important;
		box-sizing: border-box;
	}
	table.infobox table {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	table.infobox td, table.infobox th {
		box-sizing: border-box;
		max-width: 100%;
	}
	table.infobox img {
		max-width: 100%;
		height: auto;
	}
	.ib-election .infobox-label {
		white-space: normal;
	}
}