Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css

MediaWiki interface page
Revision as of 21:52, 7 December 2024 by Isdavid (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&family=Abhaya+Libre:wght@400;700&family=Newsreader:wght@400;700&family=Garamond:wght@400&family=Commissioner:wght@400;700&display=swap');

/* General */
body {
    background-color: #18181e; /* Fondo oscuro */
    font-family: "Newsreader", serif; /* Fuente principal para el cuerpo */
    font-size: 1.1em;
    color: #ffffff;
    line-height: 1.7; /* Mejor legibilidad */
}

/* Títulos */
#firstHeading {
    font-family: "Garamond", serif;
    font-size: 2.5em;
    text-decoration: none;
}

h2 {
    font-family: "EB Garamond", serif;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f5ed56; /* Línea amarilla */
}

h3, h4, h5 {
    font-family: "Abhaya Libre", serif;
    font-weight: 700;
}

h6 {
    font-family: "Commissioner", sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 15px;
}

/* Enlaces */
a {
    color: inherit; /* Usa el color actual del texto */
    text-decoration: underline 2px #f5ed56; /* Subrayado amarillo */
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
    color: #090a0a;
}

a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #f5ed56;
    z-index: -1;
    transition: width 0.4s ease;
}

a:hover::before {
    width: 100%; /* Fondo amarillo dinámico */
}

/* Quitar subrayados en enlaces dentro de títulos */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    text-decoration: none;
}

/* Texto seleccionado */
::selection {
    background-color: #f5ed56; /* Fondo amarillo */
    color: #18181e; /* Texto oscuro */
}

/* Citas */
blockquote {
    font-family: "EB Garamond", serif;
    font-size: 0.95em;
    color: #dcdcdc;
    border-left: 3px solid #f5ed56;
    padding-left: 20px;
    margin: 20px 25px;
    line-height: 1.8;
    background: none;
}

blockquote p {
    margin: 0; /* Sin márgenes extra */
}

/* Botón flotante "Volver al inicio" */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #f5ed56;
    color: #090a0a;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #e0e0e0;
    color: #18181e;
}

/* Barra de progreso de lectura */
.reading-progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #f0f0f0;
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    width: 0;
    background-color: #0078d7; /* Azul para el progreso */
    transition: width 0.2s ease-out;
}