Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(57 intermediate revisions by one other user not shown)
Line 1: Line 1:
figure > a > img {
/* Responsive Hn */
width: 100% !important
@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;
}
}
}
/* 1. Contenedor principal */
    .site-header .wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 0 10px; /* Más espacio arriba para que respire el logo */
    }
    /* 2. Área del título/logo */
    .site-header .title-area {
        width: 100%;
        max-width: 100%; /* Elimina restricciones de ancho */
        text-align: center;
        margin-bottom: 20px;
    }
    /* 3. Forzar el tamaño de la imagen del logo */
    .site-header .site-title a {
        display: inline-block;
        width: 100%;
        min-height: 80px; /* Ajusta este valor según la altura real de tu logo */
        background-size: contain !important; /* Asegura que el logo escale sin recortarse */
        background-position: center !important;
    }
    /* Si el logo es una etiqueta <img> física en lugar de un background-image: */
    .site-header .title-area img {
        width: auto;
        max-width: 250px; /* Ajusta este número al tamaño que desees (ej. 300px) */
        height: auto;
    }
    /* 3. Ocultar o ajustar el texto azul (opcional) */
    /* En la segunda imagen el texto azul no aparece o es muy discreto.
      Si quieres ocultarlo como en la imagen 2, usa: */
    .site-header .header-widget-area {
        display: none;
    }
    /* 4. Estilo del botón para que coincida con la imagen 2 */
    .menu-toggle {
        width: 100%;
        border: none;
        border-top: 1px solid #eeeeee;
        background-color: #f9f9f9; /* Un gris muy ligero para diferenciarlo */
        color: #444;
        font-weight: bold;
        padding: 15px 0;
        text-transform: none; /* Por si el tema lo pone en mayúsculas */
    }

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;
	}
}