Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
figure > a > img {
    figure > a > img {
width: 100% !important
        width: 100% !important
}
    }
 
/* 1. Contenedor principal */
     .site-header .wrap {
     .site-header .wrap {
         display: flex;
         display: flex;
Line 10: Line 8:
         padding: 30px 0 10px; /* Más espacio arriba para que respire el logo */
         padding: 30px 0 10px; /* Más espacio arriba para que respire el logo */
     }
     }
    /* 2. Área del título/logo */
     .site-header .title-area {
     .site-header .title-area {
         width: 100%;
         width: 100%;
Line 18: Line 14:
         margin-bottom: 20px;
         margin-bottom: 20px;
     }
     }
    /* 3. Forzar el tamaño de la imagen del logo */
     .site-header .site-title a {
     .site-header .site-title a {
         display: inline-block;
         display: inline-block;
         width: 100%;
         width: 100%;
         min-height: 80px; /* Ajusta este valor según la altura real de tu logo */
         min-height: 100px; /* Ajusta este valor según la altura real de tu logo */
         background-size: contain !important; /* Asegura que el logo escale sin recortarse */
         background-size: contain !important; /* Asegura que el logo escale sin recortarse */
         background-position: center !important;
         background-position: center !important;
     }
     }
    /* Si el logo es una etiqueta <img> física en lugar de un background-image: */
     .site-header .title-area img {
     .site-header .title-area img {
         width: auto;
         width: auto;
         max-width: 250px; /* Ajusta este número al tamaño que desees (ej. 300px) */
         max-width: 250px;
         height: auto;
         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 {
     .site-header .header-widget-area {
         display: none;  
         display: none;  
     }
     }
    /* 4. Estilo del botón para que coincida con la imagen 2 */
     .menu-toggle {
     .menu-toggle {
         width: 100%;
         width: 100%;
         border: none;
         border: none;
         border-top: 1px solid #eeeeee;
         border-top: 5px solid #eeeeee;
        background-color: #f9f9f9; /* Un gris muy ligero para diferenciarlo */
         color: #444;
         color: #444;
         font-weight: bold;
         font-weight: bold;
         padding: 15px 0;
         padding: 15px 0;
         text-transform: none; /* Por si el tema lo pone en mayúsculas */
         text-transform: none;
     }
     }

Revision as of 13:08, 27 January 2026

    figure > a > img {
        width: 100% !important
    }
    .site-header .wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 0 10px; /* Más espacio arriba para que respire el logo */
    }
    .site-header .title-area {
        width: 100%;
        max-width: 100%; /* Elimina restricciones de ancho */
        text-align: center;
        margin-bottom: 20px;
    }
    .site-header .site-title a {
        display: inline-block;
        width: 100%;
        min-height: 100px; /* 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;
    }
    .site-header .title-area img {
        width: auto;
        max-width: 250px;
        height: auto;
    }
    .site-header .header-widget-area {
        display: none; 
    }
    .menu-toggle {
        width: 100%;
        border: none;
        border-top: 5px solid #eeeeee;
        color: #444;
        font-weight: bold;
        padding: 15px 0;
        text-transform: none;
    }