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:
/* --- CÓDIGO MAESTRO: PERFECTO EN PC Y CELULAR --- */
/* --- CÓDIGO MAESTRO V5: ARREGLO TOTAL DE MÓVIL Y ESCRITORIO --- */


/* 1. REGLAS SOLO PARA COMPUTADORA (Pantallas anchas) */
/* ==================================================================
/* Este bloque solo se activa si la pantalla es mayor a 768px */
  1. ESTILOS VISUALES GENERALES (Aplican a todo: PC y Celular)
@media screen and (min-width: 768px) {
  ================================================================== */
   
/* Fondo de cielo y Cabecera */
     /* Aquí aplicamos el margen para que no choque con el menú en PC */
#mw-head {
    background-color: #263355 !important; /* Azul de fondo base */
    background-image: url('https://s23.derechopedia.cl/kya.cl/Sky.png') !important;
    background-size: cover !important;
    background-position: center top !important;
}
 
/* Textos de la cabecera en blanco */
#p-personal li a,
#p-namespaces li a,
#p-views li a,
#p-cactions li a {
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}
 
/* Limpieza del menú lateral (sin puntos feos) */
div#mw-panel div.portal div.body ul {
    list-style: none !important;
    margin-left: 0.5em !important;
}
 
/* ==================================================================
  2. REGLAS SOLO PARA COMPUTADORA (Pantallas grandes)
  ================================================================== */
@media screen and (min-width: 982px) {
     /* Aquí empujamos el contenido a la derecha para dejar sitio al menú */
     div#content,  
     div#content,  
     div#footer,  
     div#footer,  
Línea 13: Línea 40:
     }
     }


     /* Fijamos el menú lateral en su sitio (solo en PC) */
     /* Fijamos el menú lateral a la izquierda */
     div#mw-panel {
     div#mw-panel {
         position: absolute !important;
         position: absolute !important;
Línea 19: Línea 46:
         left: 0 !important;
         left: 0 !important;
         width: 10em !important;
         width: 10em !important;
        display: block !important;
     }
     }
}
}


/* 2. REGLAS PARA CELULAR (Pantallas pequeñas) */
/* ==================================================================
/* Aquí le decimos que borre esos márgenes para usar todo el ancho */
  3. REGLAS SOLO PARA CELULAR (Pantallas pequeñas)
@media screen and (max-width: 767px) {
  ================================================================== */
@media screen and (max-width: 981px) {
    /* ¡AQUÍ ESTÁ LA SOLUCIÓN! Quitamos el margen izquierdo en el celular */
     div#content,  
     div#content,  
     div#footer {
     div#footer,
         margin-left: 0 !important; /* Sin margen izquierdo */
    div#mw-head-base,
         padding-left: 10px !important;
    div#mw-page-base {
         margin-left: 0 !important; /* Cero margen = usa todo el ancho */
         padding-left: 10px !important; /* Un poquito de aire a los lados */
         padding-right: 10px !important;
         padding-right: 10px !important;
     }
     }
   
 
     /* Ajuste para que el menú no moleste o se vea normal arriba */
     /* Ajustamos el menú para que no moleste en el celular */
     div#mw-panel {
     div#mw-panel {
         position: relative !important;
         position: relative !important;
         width: 100% !important;
         width: 100% !important;
        /* En celular, Vector maneja el menú diferente, esto evita que tape cosas */
     }
     }
 
   
     /* Asegura que ninguna imagen rompa el ancho del celular */
     /* Aseguramos que las imágenes no se salgan de la pantalla */
     img {
     img {
         max-width: 100% !important;
         max-width: 100% !important;
         height: auto !important;
         height: auto !important;
     }
     }
}
   
 
    /* Arreglamos la cabecera en celular para que no flote raro */
/* 3. LIMPIEZA GENERAL (Para ambos) */
    #p-personal {
/* Quitar puntos feos del menú */
        right: 0 !important;
div#mw-panel div.portal div.body ul {
        top: 0 !important;
    list-style: none !important;
    }
    margin-left: 0.5em !important;
}
}

Revisión del 18:59 19 dic 2025

/* --- CÓDIGO MAESTRO V5: ARREGLO TOTAL DE MÓVIL Y ESCRITORIO --- */

/* ==================================================================
   1. ESTILOS VISUALES GENERALES (Aplican a todo: PC y Celular)
   ================================================================== */
/* Fondo de cielo y Cabecera */
#mw-head {
    background-color: #263355 !important; /* Azul de fondo base */
    background-image: url('https://s23.derechopedia.cl/kya.cl/Sky.png') !important;
    background-size: cover !important;
    background-position: center top !important;
}

/* Textos de la cabecera en blanco */
#p-personal li a, 
#p-namespaces li a, 
#p-views li a, 
#p-cactions li a {
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* Limpieza del menú lateral (sin puntos feos) */
div#mw-panel div.portal div.body ul {
    list-style: none !important;
    margin-left: 0.5em !important;
}

/* ==================================================================
   2. REGLAS SOLO PARA COMPUTADORA (Pantallas grandes)
   ================================================================== */
@media screen and (min-width: 982px) {
    /* Aquí empujamos el contenido a la derecha para dejar sitio al menú */
    div#content, 
    div#footer, 
    div#mw-head-base, 
    div#mw-page-base {
        margin-left: 11em !important; 
    }

    /* Fijamos el menú lateral a la izquierda */
    div#mw-panel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 10em !important;
        display: block !important;
    }
}

/* ==================================================================
   3. REGLAS SOLO PARA CELULAR (Pantallas pequeñas)
   ================================================================== */
@media screen and (max-width: 981px) {
    /* ¡AQUÍ ESTÁ LA SOLUCIÓN! Quitamos el margen izquierdo en el celular */
    div#content, 
    div#footer, 
    div#mw-head-base, 
    div#mw-page-base {
        margin-left: 0 !important;  /* Cero margen = usa todo el ancho */
        padding-left: 10px !important; /* Un poquito de aire a los lados */
        padding-right: 10px !important;
    }

    /* Ajustamos el menú para que no moleste en el celular */
    div#mw-panel {
        position: relative !important;
        width: 100% !important;
        /* En celular, Vector maneja el menú diferente, esto evita que tape cosas */
    }
    
    /* Aseguramos que las imágenes no se salgan de la pantalla */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Arreglamos la cabecera en celular para que no flote raro */
    #p-personal {
        right: 0 !important;
        top: 0 !important;
    }
}