Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(78 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* Corregir el centrado y el ancho de las figuras (imágenes modernas) */
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
figure.mw-halign-center {
 
    display: table !important; /* Mantiene el contenedor ajustado al contenido */
    margin-left: auto !important;
    margin-right: auto !important;
    width: min-content !important; /* Obliga al contenedor a cerrarse sobre la imagen */
    max-width: 100%;
}
}


/* Forzar que el pie de foto no sea más ancho que la imagen dentro del figure */
#catlinks { display: none; }
figure.mw-halign-center figcaption {
    display: table-caption;
    caption-side: bottom;
    max-width: inherit; /* Hereda el ancho que dicte la imagen */
    word-wrap: break-word;
}

Latest revision as of 16:09, 5 March 2026

@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {

}

#catlinks { display: none; }