Diferencia entre revisiones de «MediaWiki:Vector.css»

De DerechoPedia
Ir a la navegaciónIr a la búsqueda
Sin resumen de edición
Etiqueta: Revertido
Sin resumen de edición
Etiqueta: Revertido
Línea 1: Línea 1:
/* --- CORRECCIÓN DE ESTRUCTURA (SOLO SEPARACIÓN) --- */
/* --- CÓDIGO MAESTRO: PERFECTO EN PC Y CELULAR --- */


/* 1. ESTO ES LO QUE ARREGLA EL ACOPLE */
/* 1. REGLAS SOLO PARA COMPUTADORA (Pantallas anchas) */
/* Empujamos todo el contenido central a la derecha */
/* Este bloque solo se activa si la pantalla es mayor a 768px */
div#content,  
@media screen and (min-width: 768px) {
div#footer,  
   
div#mw-head-base,  
    /* Aquí aplicamos el margen para que no choque con el menú en PC */
div#mw-page-base {
    div#content,  
    margin-left: 11em !important; /* Espacio reservado para el menú */
    div#footer,  
    div#mw-head-base,  
    div#mw-page-base {
        margin-left: 11em !important;  
    }
 
    /* Fijamos el menú lateral en su sitio (solo en PC) */
    div#mw-panel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 10em !important;
    }
}
}


/* 2. ASEGURAMOS EL ANCHO DEL MENÚ LATERAL */
/* 2. REGLAS PARA CELULAR (Pantallas pequeñas) */
div#mw-panel {
/* Aquí le decimos que borre esos márgenes para usar todo el ancho */
    position: absolute !important;
@media screen and (max-width: 767px) {
    top: 0 !important;
    div#content,
     left: 0 !important;
    div#footer {
    width: 10em !important;
        margin-left: 0 !important; /* Sin margen izquierdo */
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
   
    /* Ajuste para que el menú no moleste o se vea normal arriba */
    div#mw-panel {
        position: relative !important;
        width: 100% !important;
     }
 
    /* Asegura que ninguna imagen rompa el ancho del celular */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}
}


/* 3. DETALLE: QUITAR PUNTOS DEL MENÚ (Opcional, para que se vea limpio) */
/* 3. LIMPIEZA GENERAL (Para ambos) */
/* Quitar puntos feos del menú */
div#mw-panel div.portal div.body ul {
div#mw-panel div.portal div.body ul {
     list-style: none !important;
     list-style: none !important;
     margin-left: 0.5em !important;
     margin-left: 0.5em !important;
}
}
/* 4. MANTENER BARRA SUPERIOR IGUAL */
/* No agregamos colores ni fondos aquí para respetar tu diseño actual */

Revisión del 18:28 19 dic 2025

/* --- CÓDIGO MAESTRO: PERFECTO EN PC Y CELULAR --- */

/* 1. REGLAS SOLO PARA COMPUTADORA (Pantallas anchas) */
/* Este bloque solo se activa si la pantalla es mayor a 768px */
@media screen and (min-width: 768px) {
    
    /* Aquí aplicamos el margen para que no choque con el menú en PC */
    div#content, 
    div#footer, 
    div#mw-head-base, 
    div#mw-page-base {
        margin-left: 11em !important; 
    }

    /* Fijamos el menú lateral en su sitio (solo en PC) */
    div#mw-panel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 10em !important;
    }
}

/* 2. REGLAS PARA CELULAR (Pantallas pequeñas) */
/* Aquí le decimos que borre esos márgenes para usar todo el ancho */
@media screen and (max-width: 767px) {
    div#content, 
    div#footer {
        margin-left: 0 !important; /* Sin margen izquierdo */
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Ajuste para que el menú no moleste o se vea normal arriba */
    div#mw-panel {
        position: relative !important;
        width: 100% !important;
    }

    /* Asegura que ninguna imagen rompa el ancho del celular */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* 3. LIMPIEZA GENERAL (Para ambos) */
/* Quitar puntos feos del menú */
div#mw-panel div.portal div.body ul {
    list-style: none !important;
    margin-left: 0.5em !important;
}