More actions
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
color: #ffffff; | color: #ffffff; | ||
line-height: 1.7; /* Mejor legibilidad */ | line-height: 1.7; /* Mejor legibilidad */ | ||
} | |||
/* Letra capital al inicio del artículo */ | |||
.mw-body-content p:first-of-type::first-letter { | |||
font-size: 3em; /* Tamaño mayor */ | |||
font-family: "Garamond", serif; /* Fuente elegante */ | |||
font-weight: 700; /* Negrita */ | |||
float: left; /* Flota la letra a la izquierda */ | |||
line-height: 1; /* Ajuste para alineación */ | |||
margin-right: 10px; /* Espaciado con el texto */ | |||
color: #f5ed56; /* Amarillo para destacar */ | |||
} | } | ||
| Line 40: | Line 51: | ||
/* Enlaces */ | /* Enlaces */ | ||
a { | a { | ||
color: inherit; /* | color: inherit; /* Mantiene el color del texto */ | ||
text-decoration: underline | text-decoration: underline 3px #f5ed56; /* Subrayado grueso amarillo */ | ||
position: relative; | position: relative; | ||
overflow: hidden; | overflow: hidden; | ||
transition: color 0.3s ease, text-decoration-color 0.3s ease; | transition: color 0.3s ease, text-decoration-color 0.3s ease; | ||
} | |||
a:visited { | |||
text-decoration-color: #0078d7; /* Subrayado azul oscuro en enlaces visitados */ | |||
} | |||
a:active { | |||
color: #0078d7; /* Azul oscuro elegante al hacer clic */ | |||
text-decoration-color: #0078d7; | |||
} | } | ||
a:hover { | a:hover { | ||
color: # | color: #ffffff; /* Mantiene el color blanco al pasar el cursor */ | ||
text-decoration-color: #f5ed56; /* Subrayado amarillo */ | |||
} | } | ||
| Line 80: | Line 101: | ||
/* Citas */ | /* Citas */ | ||
blockquote { | blockquote { | ||
font-family: " | font-family: "Newsreader", serif; | ||
font-size: | font-size: 1em; | ||
color: #dcdcdc; | color: #dcdcdc; | ||
border-left: | border-left: 5px solid #f5ed56; /* Línea amarilla más visible */ | ||
padding | padding: 10px 20px; /* Espaciado interior */ | ||
margin: 20px 25px; | margin: 20px 25px; /* Espaciado externo */ | ||
line-height: 1.8; | line-height: 1.8; | ||
background: | background: #202020; /* Fondo ligeramente oscuro */ | ||
border-radius: 4px; /* Bordes ligeramente redondeados */ | |||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Sombra sutil */ | |||
} | } | ||
blockquote p { | blockquote p { | ||
margin: 0; /* Sin márgenes extra */ | margin: 0; /* Sin márgenes extra */ | ||
font-style: italic; /* Texto en cursiva para estilo clásico de cita */ | |||
} | } | ||
Revision as of 22:03, 7 December 2024
@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 */
}
/* Letra capital al inicio del artículo */
.mw-body-content p:first-of-type::first-letter {
font-size: 3em; /* Tamaño mayor */
font-family: "Garamond", serif; /* Fuente elegante */
font-weight: 700; /* Negrita */
float: left; /* Flota la letra a la izquierda */
line-height: 1; /* Ajuste para alineación */
margin-right: 10px; /* Espaciado con el texto */
color: #f5ed56; /* Amarillo para destacar */
}
/* 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; /* Mantiene el color del texto */
text-decoration: underline 3px #f5ed56; /* Subrayado grueso amarillo */
position: relative;
overflow: hidden;
transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
a:visited {
text-decoration-color: #0078d7; /* Subrayado azul oscuro en enlaces visitados */
}
a:active {
color: #0078d7; /* Azul oscuro elegante al hacer clic */
text-decoration-color: #0078d7;
}
a:hover {
color: #ffffff; /* Mantiene el color blanco al pasar el cursor */
text-decoration-color: #f5ed56; /* Subrayado amarillo */
}
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: "Newsreader", serif;
font-size: 1em;
color: #dcdcdc;
border-left: 5px solid #f5ed56; /* Línea amarilla más visible */
padding: 10px 20px; /* Espaciado interior */
margin: 20px 25px; /* Espaciado externo */
line-height: 1.8;
background: #202020; /* Fondo ligeramente oscuro */
border-radius: 4px; /* Bordes ligeramente redondeados */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Sombra sutil */
}
blockquote p {
margin: 0; /* Sin márgenes extra */
font-style: italic; /* Texto en cursiva para estilo clásico de cita */
}
/* 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;
}