Diferencia entre revisiones de «MediaWiki:Common.css»

De FSF
Sin resumen de edición
Sin resumen de edición
Etiqueta: Revertido
Línea 1: Línea 1:
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */


/* Colocar la Tabla de Contenidos en el lado derecho */
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */
#toc {
 
     float: right;           /* Mueve la ToC a la derecha */
/* ============================
     margin-left: 1em;       /* Agrega espacio a la izquierda de la ToC */
  TOC flotado a la derecha
    width: 400px;          /* Ajusta el ancho de la ToC según lo que necesites */
  ============================ */
     background-color: #f9f9f9; /* Color de fondo opcional para destacarla */
 
     border: 1px solid #ccc; /* Borde opcional para darle un contorno */
#toc,
     padding: 10px;         /* Espacio interno para que el contenido no esté pegado a los bordes */
.mw-parser-output > .toc {
     float: right;
    width: 400px;
     margin-left: 1em;
     background-color: #f9f9f9;
     border: 1px solid #ccc;
     padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
}


/* Evitar que el contenido principal se solape con la ToC */
#toc:hover,
#mw-content-text {
.mw-parser-output > .toc:hover {
     overflow: hidden;
     border-color: #d7bfa2;
    box-shadow: 0 0 14px rgba(215, 191, 162, 0.4);
}
}


/* Quitar el logo; de todas maneras no funcionaba 20250926 */
/* ============================
  Evitar solapamiento de contenido
  ============================ */
#mw-content-text { overflow: hidden; }


#p-logo, .mw-wiki-logo {
/* ============================
    display: none;
  Ocultar logo
}
  ============================ */
#p-logo, .mw-wiki-logo { display: none; }


/************************************************************
/* ============================
   FSF — Estilo Colorido para Líneas Divisorias (HR)
   HR — Estilo colorido FSF
   Autor: ChatGPT & Ziv — 2025-12-05
   ============================ */
*************************************************************/


/* Línea principal: degradado FSF */
hr {
hr {
     border: 0;
     border: 0;
     height: 2px;
     height: 2px;
     margin-top: 0.3em !important;
     margin: 0.3em 0 !important;
    margin-bottom: 0.3em !important;
     border-radius: 2px;
     border-radius: 2px;
     background: linear-gradient(
     background: linear-gradient(
Línea 45: Línea 56:
}
}


/* efecto hover: brillo suave y leve expansión */
hr:hover {
hr:hover {
     transform: scale(1.015);
     transform: scale(1.015);
Línea 51: Línea 61:
}
}


/* Versión móvil: más delgada y compacta */
/* ============================
@media (max-width: 600px) {
   ENCABEZADOS — Estilo elegante
    hr {
   ============================ */
        height: 2px;
        margin-top: 0.45em !important;
        margin-bottom: 0.45em !important;
    }
}
/************************************************************
  FSF — Estilo Colorido para Líneas Divisorias (HR) - F I N
*************************************************************/
 
/* ============================================
   ENCABEZADOS H1–H3
  Línea inferior suave, animada, elegante
   ============================================ */


h1, h2, h3 {
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3 {
     position: relative;
     position: relative;
     padding-bottom: 0.45em;
     padding-bottom: 0.45em;
     margin-bottom: 0.9em;
     scroll-margin-top: 90px;
     scroll-margin-top: 90px; /* mejor experiencia al navegar desde el ToC */
     color: #00527a;
     transition: color 0.3s ease, text-shadow 0.3s ease;
     transition: color 0.3s ease, text-shadow 0.3s ease;
}
}


/* Color por defecto de los h1–h3 (suave, moderno) */
/* Compactación real (soluciona espaciado) */
h1 { color: #004a6c; }
.mw-parser-output h1,
h2 { color: #00527a; }
.mw-parser-output h2,
h3 { color: #006089; }
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
    margin-top: 0.10em !important;
    margin-bottom: 0.02em !important;
}


/* Línea inferior elegante, difuminada, delgada */
/* Línea inferior */
h1::after,
.mw-parser-output h1::after,
h2::after,
.mw-parser-output h2::after,
h3::after {
.mw-parser-output h3::after {
     content: "";
     content: "";
     position: absolute;
     position: absolute;
Línea 90: Línea 95:
     bottom: 0;
     bottom: 0;
     width: 55%;
     width: 55%;
     height: 2px; /* línea delgada */
     height: 2px;
     background: linear-gradient(
     background: linear-gradient(
         to right,
         to right,
Línea 103: Línea 108:
}
}


/* Animación al pasar el cursor */
.mw-parser-output h1:hover::after,
h1:hover::after,
.mw-parser-output h2:hover::after,
h2:hover::after,
.mw-parser-output h3:hover::after {
h3:hover::after {
     width: 80%;
     width: 80%;       /* se extiende suavemente */
     opacity: 1;
     opacity: 1;
     filter: blur(1.3px);
     filter: blur(1.3px);
}
}


/* Pequeño brillo en el texto al pasar el cursor */
.mw-parser-output h1:hover,
h1:hover, h2:hover, h3:hover {
.mw-parser-output h2:hover,
.mw-parser-output h3:hover {
     text-shadow: 0px 0px 6px rgba(255, 255, 230, 0.4);
     text-shadow: 0px 0px 6px rgba(255, 255, 230, 0.4);
}
}


/* ============================================
/* ============================
  TOC (Tabla de contenidos)
   MÓVILES
  Transiciones suaves + colores de acento
   ============================ */
  ============================================ */
 
#toc,
.mw-parser-output > .toc {
    border: 1px solid rgba(0,0,0,0.08);
    background: #fafafa;
    border-radius: 10px;
    padding: 1em 1.2em;
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
 
/* Hover suave */
#toc:hover,
.mw-parser-output > .toc:hover {
    border-color: #d7bfa2;
    box-shadow: 0 0 14px rgba(215, 191, 162, 0.4);
}
 
/* Estilos de enlaces dentro del TOC */
#toc a {
    color: #004a6c;
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
 
#toc a:hover {
    color: #006fa3;
    text-shadow: 0px 0px 4px rgba(0, 111, 163, 0.35);
}
 
/* Numeración del TOC */
#toc .tocnumber {
    color: #8c6930;
    font-weight: bold;
}
 
/* ============================================
   MÓVILES – Ajustes suaves y mejores escalas
   ============================================ */
@media (max-width: 720px) {
@media (max-width: 720px) {
     h1::after, h2::after, h3::after {
     .mw-parser-output h1::after,
    .mw-parser-output h2::after,
    .mw-parser-output h3::after {
         width: 75%;
         width: 75%;
         opacity: 0.9;
         opacity: 0.9;
     }
     }


     #toc {
     #toc,
    .mw-parser-output > .toc {
         font-size: 0.95em;
         font-size: 0.95em;
         padding: 0.8em 1em;
         padding: 0.8em 1em;
     }
     }
}
}
/* ============================================
  ENCABEZADOS H1–H3 - Línea inferior suave, animada, elegante - F I N
  ============================================ */
/* Ajusto los espacios en blanco al usar los encabezados y divisiones que se crean para el ToC con la intensión de que sean mas compactos, agradables de leer en textos largo o tratar de que se se parezca mas el contenido a el formato que presentan herramientas como CHATGPT que es una herramientas que estoy utilizando mucho para crear esta wiki FSF. */
/* Nota: En el skin Timeless, los encabezados utilizan márgenes amplios por defecto, lo que genera espacios grandes entre secciones. Los valores típicos son: h1 (1.4em arriba / 0.6em abajo), h2 (1.2em / 0.5em), h3 (1em / 0.4em) y h4–h6 (0.8–0.6em / 0.3–0.2em). Si se desea un estilo más compacto, estos márgenes pueden ajustarse mediante CSS en '''MediaWiki:Common.css'''.*/</small>
h2 { margin-top: 0.10em !important; margin-bottom: 0.02em !important;}
h3 { margin-top: 0.10em !important; margin-bottom: 0.02em !important;}
h4 { margin-top: 0.10em !important; margin-bottom: 0.02em !important;}
h5 { margin-top: 0.10em !important; margin-bottom: 0.02em !important;}
h6 { margin-top: 0.10em !important; margin-bottom: 0.02em !important;}

Revisión del 10:17 5 dic 2025

/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */

/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */

/* ============================
   TOC flotado a la derecha
   ============================ */

#toc,
.mw-parser-output > .toc {
    float: right;
    width: 400px;
    margin-left: 1em;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#toc:hover,
.mw-parser-output > .toc:hover {
    border-color: #d7bfa2;
    box-shadow: 0 0 14px rgba(215, 191, 162, 0.4);
}

/* ============================
   Evitar solapamiento de contenido
   ============================ */
#mw-content-text { overflow: hidden; }

/* ============================
   Ocultar logo
   ============================ */
#p-logo, .mw-wiki-logo { display: none; }

/* ============================
   HR — Estilo colorido FSF
   ============================ */

hr {
    border: 0;
    height: 2px;
    margin: 0.3em 0 !important;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        #00527A 0%,
        #0093C9 25%,
        #00BFD6 50%,
        #0093C9 75%,
        #00527A 100%
    );
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

hr:hover {
    transform: scale(1.015);
    box-shadow: 0 0 10px rgba(0, 147, 201, 0.35);
}

/* ============================
   ENCABEZADOS — Estilo elegante
   ============================ */

.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3 {
    position: relative;
    padding-bottom: 0.45em;
    scroll-margin-top: 90px;
    color: #00527a;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Compactación real (soluciona espaciado) */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
    margin-top: 0.10em !important;
    margin-bottom: 0.02em !important;
}

/* Línea inferior */
.mw-parser-output h1::after,
.mw-parser-output h2::after,
.mw-parser-output h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 55%;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(255, 244, 230, 0.0) 0%,
        rgba(255, 244, 230, 0.55) 50%,
        rgba(255, 244, 230, 0.0) 100%
    );
    border-radius: 4px;
    filter: blur(1.8px);
    opacity: 0.85;
    transition: width 0.45s ease, opacity 0.3s ease, filter 0.45s ease;
}

.mw-parser-output h1:hover::after,
.mw-parser-output h2:hover::after,
.mw-parser-output h3:hover::after {
    width: 80%;
    opacity: 1;
    filter: blur(1.3px);
}

.mw-parser-output h1:hover,
.mw-parser-output h2:hover,
.mw-parser-output h3:hover {
    text-shadow: 0px 0px 6px rgba(255, 255, 230, 0.4);
}

/* ============================
   MÓVILES
   ============================ */
@media (max-width: 720px) {
    .mw-parser-output h1::after,
    .mw-parser-output h2::after,
    .mw-parser-output h3::after {
        width: 75%;
        opacity: 0.9;
    }

    #toc,
    .mw-parser-output > .toc {
        font-size: 0.95em;
        padding: 0.8em 1em;
    }
}