Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(66 intermediate revisions by one other user not shown)
Line 1: Line 1:
/* Corregir el centrado y el ancho de las figuras (imágenes modernas) */
/* Responsive Hn */
figure.mw-halign-center {
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
    display: table !important; /* Mantiene el contenedor ajustado al contenido */
 
    margin-left: auto !important;
h1 {
    margin-right: auto !important;
font-size: 7rem !important;
    width: min-content !important; /* Obliga al contenedor a cerrarse sobre la imagen */
}
    max-width: 100%;
}
h2 {
 
font-size: 5.2rem !important;
/* Forzar que el pie de foto no sea más ancho que la imagen dentro del figure */
}
figure.mw-halign-center figcaption {
    display: table-caption;
h3 {
    caption-side: bottom;
font-size: 4.8rem !important;
    max-width: inherit; /* Hereda el ancho que dicte la imagen */
}
    word-wrap: break-word;
h4 {
font-size: 3.8rem !important;
}
h5 {
font-size: 4.0rem !important;
}
h6 {
font-size: 3.8rem !important;
}
}
}

Latest revision as of 20:54, 6 February 2026

/* Responsive Hn */
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
  
	h1 {
		font-size: 7rem !important;
	}
	
	h2 {
		font-size: 5.2rem !important;
	}
	
	h3 {
		font-size: 4.8rem !important;
	}
	
	h4 {
		font-size: 3.8rem !important;
	}
	
	h5 {
		font-size: 4.0rem !important;
	}
	
	h6 {
		font-size: 3.8rem !important;
	}
}