Diferencia entre revisiones de «MediaWiki:Vector.css»
Ir a la navegación
Ir a la búsqueda
Sin resumen de edición |
Sin resumen de edición Etiquetas: Edición desde móvil Edición vía web móvil |
||
| Línea 1: | Línea 1: | ||
/* | /* Todo CSS colocado en esta página será cargado para los usuarios que usen la apariencia "Vector" */ | ||
# | /* Rutas: columnas ajustadas al contenido, sin franjas vacías */ | ||
#main-table { | |||
border-spacing: 0 !important; | |||
border-collapse: collapse !important; | |||
} | |||
#main-table > tbody > tr > td { | |||
width: auto !important; | |||
padding: 0 0.1em !important; | |||
} | } | ||
#main-table > tbody > tr > td:first-child { padding-left: 0 !important; } | |||
#main-table > tbody > tr > td:last-child { padding-right: 0 !important; } | |||
/* Tabla del mapa y Cuadro Resumen sin márgenes propios */ | |||
#main-table > tbody > tr > td > table { margin: 0 !important; } | |||
#main-table .infobox { margin: 0 !important; } | |||
/* Imagen principal de rutas: ocupa todo el ancho de su columna | /* Imagen principal de rutas: ocupa todo el ancho de su columna | ||
(que fija el índice), con un mínimo de 230px */ | (que fija el índice), con un mínimo de 230px */ | ||
| Línea 11: | Línea 21: | ||
} | } | ||
.imagen-principal-td figure, | .imagen-principal-td figure, | ||
.imagen-principal-td figure > a | .imagen-principal-td figure > a { | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
| Línea 22: | Línea 31: | ||
.imagen-principal-td img.mw-file-element { | .imagen-principal-td img.mw-file-element { | ||
width: 100%; | width: 100%; | ||
min-width: 230px; | min-width: max(230px, 34vw); | ||
height: auto; | height: auto; | ||
} | } | ||
/* Pie de foto de la imagen principal: todo el ancho (gana a Vector) */ | /* Pie de foto de la imagen principal: todo el ancho (gana a Vector) */ | ||
.imagen-principal-td figcaption { | .imagen-principal-td figcaption { | ||
| Línea 39: | Línea 40: | ||
width: 100% !important; | width: 100% !important; | ||
max-width: none !important; | max-width: none !important; | ||
} | |||
/* Tabla de la ruta: ocupa todo el ancho, con márgenes laterales mínimos */ | |||
#main-table { | |||
margin-left: -1.2em !important; | |||
margin-right: -1.2em !important; | |||
width: calc(100% + 2.4em) !important; | |||
} | |||
/* El mapa (2ª columna) absorbe el espacio sobrante según la pantalla */ | |||
#main-table > tbody > tr > td:nth-child(2) { | |||
width: 100% !important; | |||
} | |||
#main-table > tbody > tr > td:nth-child(2) > table { | |||
width: 100% !important; | |||
} | |||
#main-table > tbody > tr > td:nth-child(2) iframe { | |||
width: 100% !important; | |||
min-width: 400px; | |||
} | } | ||
Revisión actual - 16:22 12 nov 2026
/* Todo CSS colocado en esta página será cargado para los usuarios que usen la apariencia "Vector" */
/* Rutas: columnas ajustadas al contenido, sin franjas vacías */
#main-table {
border-spacing: 0 !important;
border-collapse: collapse !important;
}
#main-table > tbody > tr > td {
width: auto !important;
padding: 0 0.1em !important;
}
#main-table > tbody > tr > td:first-child { padding-left: 0 !important; }
#main-table > tbody > tr > td:last-child { padding-right: 0 !important; }
/* Tabla del mapa y Cuadro Resumen sin márgenes propios */
#main-table > tbody > tr > td > table { margin: 0 !important; }
#main-table .infobox { margin: 0 !important; }
/* Imagen principal de rutas: ocupa todo el ancho de su columna
(que fija el índice), con un mínimo de 230px */
.imagen-principal-td table {
width: 100%;
}
.imagen-principal-td figure,
.imagen-principal-td figure > a {
display: block;
width: 100%;
box-sizing: border-box;
}
.imagen-principal-td figure {
margin: 0 0 0.5em 0;
}
.imagen-principal-td img.mw-file-element {
width: 100%;
min-width: max(230px, 34vw);
height: auto;
}
/* Pie de foto de la imagen principal: todo el ancho (gana a Vector) */
.imagen-principal-td figcaption {
display: block !important;
width: 100% !important;
max-width: none !important;
}
/* Tabla de la ruta: ocupa todo el ancho, con márgenes laterales mínimos */
#main-table {
margin-left: -1.2em !important;
margin-right: -1.2em !important;
width: calc(100% + 2.4em) !important;
}
/* El mapa (2ª columna) absorbe el espacio sobrante según la pantalla */
#main-table > tbody > tr > td:nth-child(2) {
width: 100% !important;
}
#main-table > tbody > tr > td:nth-child(2) > table {
width: 100% !important;
}
#main-table > tbody > tr > td:nth-child(2) iframe {
width: 100% !important;
min-width: 400px;
}