Diferencia entre revisiones de «Plantilla:Ficha de eleccion/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…»
 
Sin resumen de edición
 
Línea 1: Línea 1:
/* {{pp-template}} */
/* Contenedor principal de la ficha (Versión responsiva) */
.ib-election {
.ficha-eleccion {
line-height: 1.5em;
    max-width: 380px;  /* Cambiado: Ya no es fijo, es un máximo */
    width: 100%;      /* Ocupará el 100% del espacio disponible hasta llegar a 380px */
    box-sizing: border-box;
    text-align: center;
    font-size: 90%;
    line-height: 1.5em;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 5px;
    float: right;
    clear: right;
    margin: 0 0 1em 15px; /* Mejora del margen para que el texto no se pegue abajo */
}
}


.ib-election .infobox-data {
/* Título superior */
text-align: center;
.ficha-eleccion .fe-titulo {
    font-size: 125%;
    font-weight: bold;
    padding-bottom: 5px;
}
}


.ib-election .infobox-label {
.ficha-eleccion .fe-logo {
width: 5em;
    padding-bottom: 10px;
white-space: nowrap;
    text-align: center;
}
}


.ib-election .infobox-subheader {
/* Tabla de navegación (año previo, fecha, año siguiente) */
line-height: 130%;
.ficha-eleccion .fe-navegacion {
    width: 100%;
    background: transparent;
    margin-bottom: 5px;
}
}


.ib-election .infobox-header {
.fe-nav-izq { width: 33%; text-align: left; }
font-weight: normal;
.fe-nav-centro { width: 33%; text-align: center; font-weight: bold; font-size: 110%; }
.fe-nav-der { width: 33%; text-align: right; }
 
.fe-nav-sub-izq { width: 33%; text-align: left; font-size: 85%; color: #0645ad; }
.fe-nav-sub-centro { width: 33%; text-align: center; }
.fe-nav-sub-der { width: 33%; text-align: right; font-size: 85%; color: #0645ad; }
 
/* Utilidades generales */
.fe-separador {
    border-top: 1px solid #a2a9b1;
    padding: 5px 0;
}
 
.fe-separador-top {
    border-top: 1px solid #a2a9b1;
    padding-top: 5px;
}
 
.fe-margen-top {
    margin-top: 5px;
}
 
.fe-escanos { padding: 5px 0; }
.fe-encuestas { padding-bottom: 5px; }
 
/* Tabla de datos generales (censo, participación...) */
.ficha-eleccion .fe-datos {
    width: 100%;
    background: transparent;
    text-align: left;
    font-size: 95%;
}
 
.fe-datos th { padding: 2px 0; }
.fe-datos td { text-align: right; padding: 2px 0; }
 
/* Tablas de los candidatos */
.ficha-eleccion .fe-candidatos {
    width: 100%;
    background: transparent;
    text-align: center;
    font-size: 95%;
    table-layout: fixed;
}
 
.fe-candidatos th { text-align: left; }
 
.fe-cand-col1 { width: 25%; }
 
.fe-cand-img-celda {
    border-bottom-style: solid;
    border-bottom-width: 4px;
    padding: 2px;
}
}


/* To avoid seeming biased on responsive skins - make sure all images are the
.fe-imagen {
* same width and displayed e.g. not hidden by a scrollable element
    max-width: 90px;
* use !important for both of these to override any widths or heights provided by
    width: 100%;
* templates, otherwise these will squish.
    overflow: hidden;
*/
    margin: 0 auto;
@media ( max-width: 640px ) {
    display: flex;
body.skin--responsive:not( .skin-monobook ):not( .skin-timeless ) .ib-election .notpageimage.noresize img {
    align-items: center;
height: 80px !important;
    justify-content: center;
    width: auto !important;
    background: #fff;
}
}
}


/* always light mode for the images */
/* Hace que las imágenes de MediaWiki se encojan si no caben */
@media screen {
.fe-imagen img {
html.skin-theme-clientpref-night .ib-election .mw-file-description img {
    max-width: 100%;
background-color: #f8f9fa;
    height: auto;
        color:inherit;
}
}
}


@media screen and (prefers-color-scheme: dark) {
/* Sucesión en la parte inferior */
html.skin-theme-clientpref-os .ib-election .mw-file-description img {
.ficha-eleccion .fe-sucesion {
background-color: #f8f9fa;
    width: 100%;
         color:inherit;
    background: transparent;
}
    font-size: 95%;
}
 
.fe-suc-izq { text-align: left; }
.fe-suc-der { text-align: right; }
.fe-azul { color: #0645ad; }
.fe-gris { color: #888; }
 
 
/* =========================================================
  REGLAS PARA TELÉFONOS MÓVILES (Pantallas < 720px)
  ========================================================= */
@media screen and (max-width: 720px) {
    .ficha-eleccion {
        float: none;          /* Deja de pegarse a la derecha */
        margin: 0 auto 1em auto; /* Se centra en la pantalla del móvil */
        width: 100%;          /* Toma todo el ancho de la pantalla */
        max-width: none;       /* Ignora el límite de 380px */
    }
   
    /* Disminuye un poco el texto en móviles para que quepa la información */
    .ficha-eleccion .fe-candidatos {
         font-size: 90%;  
    }
}
}