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;
}
}
}
}