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 DE RESCATE (DISEÑO CLÁSICO + ARREGLO DE MARGEN) --- */
/* --- CÓDIGO FINAL: CABECERA ORDENADA + MENÚ CORRECTO --- */


/* 1. ARREGLO DEL "ACOPLE" (SEPARACIÓN OBLIGATORIA) */
/* 1. ORDENAR LOS ELEMENTOS DE ARRIBA (SOLUCIÓN A LA ACUMULACIÓN) */
/* Esto empuja el contenido principal a la derecha para dejar espacio al menú */
/* Fijamos los enlaces de usuario (Entrar, Discusión) en la esquina exacta */
div#content,
#p-personal {
div#footer,
    top: 6px !important;
div#mw-head-base,
    right: 0.75em !important;
div#mw-page-base {
    z-index: 100 !important; /* Asegura que esté por encima de todo */
     margin-left: 11em !important; /* 11 espacios de margen izquierdo */
}
 
/* Fijamos el Buscador para que no flote raro */
#p-search {
    top: 6px !important;          /* Alineado arriba */
    right: 12em !important;      /* A la izquierda del usuario, no encima */
     margin-right: 0 !important;
    float: none !important;       /* Evita que flote sin control */
    position: absolute !important;
}
}


/* Esto asegura que el menú lateral tenga su ancho reservado */
/* Aseguramos que las pestañas (Leer, Editar) estén pegadas abajo de la cabecera */
div#mw-panel {
#p-views, #p-cactions {
    bottom: 0 !important;
     position: absolute !important;
     position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 10em !important;
}
}


/* 2. CABECERA (LOGO Y FONDO DE CIELO) */
/* 2. DISEÑO DE LA CABECERA (LOGO Y CIELO) */
div#mw-head {
div#mw-head {
     background-image: url('https://s23.derechopedia.cl/kya.cl/Sky.png') !important;
     background-image: url('https://s23.derechopedia.cl/kya.cl/Sky.png') !important;
     background-color: #263355 !important; /* Azul de fondo por si la imagen falla */
     background-color: #263355 !important;
     background-position: center top !important;
     background-position: center top !important;
     background-repeat: no-repeat !important;
     background-repeat: no-repeat !important;
Línea 27: Línea 33:
}
}


/* 3. TEXTOS SUPERIORES (BLANCOS PARA QUE SE LEAN) */
/* Textos en blanco para que se lean sobre el cielo */
/* Pestañas (Leer, Editar, etc) y Enlaces de usuario (Entrar, Discusión) */
div#mw-head a,  
div#p-namespaces li > a,
div#mw-head ul,
div#p-views li > a,
div#mw-head li,
div#p-cactions li > a,
div#mw-head span {
div#p-personal li a {
     color: #ffffff !important;
     color: #ffffff !important;
    font-weight: bold !important;
     text-shadow: 0 1px 2px rgba(0,0,0,0.6) !important;
     text-shadow: 0 1px 2px rgba(0,0,0,0.8) !important; /* Sombra negra para leer mejor */
}
     background: none !important;
 
/* 3. ARREGLO DEL MENÚ LATERAL (MANTENEMOS ESTO QUE YA FUNCIONÓ) */
/* Empujamos el contenido para que no choque con el menú */
div#content,
div#footer,
div#mw-head-base,
div#mw-page-base {
     margin-left: 11em !important;  
}
}


/* Pestaña activa (la que estás viendo) en blanco sólido */
/* Fijamos el ancho de la barra lateral */
div#p-namespaces li.selected > a,
div#mw-panel {
div#p-views li.selected > a {
    position: absolute !important;
     background-color: #ffffff !important;
     top: 0 !important;
     color: #263355 !important;
     left: 0 !important;
     border-bottom: none !important;
     width: 10em !important;
}
}


/* 4. MENÚ LATERAL (LIMPIEZA BÁSICA) */
/* Limpieza visual del menú (sin puntos feos) */
/* Solo quitamos los puntos de la lista para que se vea limpio, pero mantenemos el estilo clásico */
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;
}
}

Revisión del 17:47 19 dic 2025

/* --- CÓDIGO FINAL: CABECERA ORDENADA + MENÚ CORRECTO --- */

/* 1. ORDENAR LOS ELEMENTOS DE ARRIBA (SOLUCIÓN A LA ACUMULACIÓN) */
/* Fijamos los enlaces de usuario (Entrar, Discusión) en la esquina exacta */
#p-personal {
    top: 6px !important;
    right: 0.75em !important;
    z-index: 100 !important; /* Asegura que esté por encima de todo */
}

/* Fijamos el Buscador para que no flote raro */
#p-search {
    top: 6px !important;          /* Alineado arriba */
    right: 12em !important;       /* A la izquierda del usuario, no encima */
    margin-right: 0 !important;
    float: none !important;       /* Evita que flote sin control */
    position: absolute !important;
}

/* Aseguramos que las pestañas (Leer, Editar) estén pegadas abajo de la cabecera */
#p-views, #p-cactions {
    bottom: 0 !important;
    position: absolute !important;
}

/* 2. DISEÑO DE LA CABECERA (LOGO Y CIELO) */
div#mw-head {
    background-image: url('https://s23.derechopedia.cl/kya.cl/Sky.png') !important;
    background-color: #263355 !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Textos en blanco para que se lean sobre el cielo */
div#mw-head a, 
div#mw-head ul,
div#mw-head li,
div#mw-head span {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6) !important;
}

/* 3. ARREGLO DEL MENÚ LATERAL (MANTENEMOS ESTO QUE YA FUNCIONÓ) */
/* Empujamos el contenido para que no choque con el menú */
div#content, 
div#footer, 
div#mw-head-base, 
div#mw-page-base {
    margin-left: 11em !important; 
}

/* Fijamos el ancho de la barra lateral */
div#mw-panel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 10em !important;
}

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