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: | ||
/* { | /* Contenedor principal de la ficha (Versión responsiva) */ | ||
.ficha-eleccion { | |||
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 */ | |||
} | } | ||
. | /* Título superior */ | ||
.ficha-eleccion .fe-titulo { | |||
font-size: 125%; | |||
font-weight: bold; | |||
padding-bottom: 5px; | |||
} | } | ||
. | .ficha-eleccion .fe-logo { | ||
padding-bottom: 10px; | |||
text-align: center; | |||
} | } | ||
. | /* Tabla de navegación (año previo, fecha, año siguiente) */ | ||
.ficha-eleccion .fe-navegacion { | |||
width: 100%; | |||
background: transparent; | |||
margin-bottom: 5px; | |||
} | } | ||
. | .fe-nav-izq { width: 33%; text-align: left; } | ||
.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; | |||
} | } | ||
.fe-imagen { | |||
max-width: 90px; | |||
width: 100%; | |||
overflow: hidden; | |||
margin: 0 auto; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
background: #fff; | |||
} | } | ||
/* | /* Hace que las imágenes de MediaWiki se encojan si no caben */ | ||
.fe-imagen img { | |||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
/* Sucesión en la parte inferior */ | |||
.ficha-eleccion .fe-sucesion { | |||
width: 100%; | |||
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%; | |||
} | |||
} | } | ||