Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 22: Line 22:


}
/* Forzar que el contenedor de imagen centrada se ajuste al ancho de la imagen */
div.thumb.mw-halign-center {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}
/* Asegurar que el interior del thumb también sea consistente */
div.thumb.mw-halign-center .thumbinner {
    margin: 0 auto !important;
    display: table-caption; /* Opcional: ayuda a que el texto se mantenga dentro */
}
}

Revision as of 12:46, 26 January 2026

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

	/* Responsive tables - simple horizontal scroll solution */
	.table-wrapper-mobile {
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		width: 100% !important;
		margin: 0 -15px !important; /* Extends to edges */
		padding: 0 15px !important;
	}
	
	.table-wrapper-mobile table.wikitable {
		min-width: 900px !important;
		width: 100% !important;
	}
	
	table.wikitable th,
	table.wikitable td {
		font-size: 3.2rem !important;
		padding: 10px !important;
	}
	

}


/* Forzar que el contenedor de imagen centrada se ajuste al ancho de la imagen */
div.thumb.mw-halign-center {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* Asegurar que el interior del thumb también sea consistente */
div.thumb.mw-halign-center .thumbinner {
    margin: 0 auto !important;
    display: table-caption; /* Opcional: ayuda a que el texto se mantenga dentro */
}