More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&family=Abhaya+Libre:wght@400;700&family= | @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 { | #firstHeading { | ||
font-family: "Garamond", serif; | font-family: "Garamond", serif; | ||
font-size: 2.5em; | font-size: 2.5em; | ||
text-decoration: none | text-decoration: none; | ||
} | } | ||
h2 { | h2 { | ||
font-family: "EB Garamond", serif; | font-family: "EB Garamond", serif; | ||
font-size: 1.8em; | font-size: 1.8em; | ||
font-weight: 700; | font-weight: 700; | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
border-bottom: 2px solid #f5ed56; /* Línea amarilla | padding-bottom: 5px; | ||
border-bottom: 2px solid #f5ed56; /* Línea amarilla */ | |||
} | } | ||
h3, h4, h5 { | h3, h4, h5 { | ||
font-family: "Abhaya Libre", serif; | font-family: "Abhaya Libre", serif; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
h6 { | h6 { | ||
font-family: "Commissioner", sans-serif; | font-family: "Commissioner", sans-serif; | ||
font- | font-size: 1.2em; | ||
font- | font-weight: 700; | ||
margin-top: 15px; | 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 { | a:hover { | ||
color: #090a0a | color: #090a0a; | ||
} | } | ||
a::before { | a::before { | ||
content: ""; | content: ""; | ||
| Line 67: | Line 58: | ||
width: 0; | width: 0; | ||
height: 100%; | height: 100%; | ||
background-color: #f5ed56; | background-color: #f5ed56; | ||
z-index: -1; | z-index: -1; | ||
transition: width 0.4s ease; | transition: width 0.4s ease; | ||
| Line 73: | Line 64: | ||
a:hover::before { | a:hover::before { | ||
width: 100%; /* | width: 100%; /* Fondo amarillo dinámico */ | ||
} | } | ||
/* Quitar subrayados | /* Quitar subrayados en enlaces dentro de títulos */ | ||
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { | h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { | ||
text-decoration: none | text-decoration: none; | ||
} | } | ||
| Line 87: | Line 78: | ||
} | } | ||
/* | /* Citas */ | ||
blockquote { | blockquote { | ||
font-family: "EB Garamond", serif; | font-family: "EB Garamond", serif; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
color: #dcdcdc; | color: #dcdcdc; | ||
border-left: 3px solid #f5ed56; | border-left: 3px solid #f5ed56; | ||
padding-left: 20px; | padding-left: 20px; | ||
margin: | margin: 20px 25px; | ||
line-height: 1.8; | line-height: 1.8; | ||
background: none; | background: none; | ||
} | } | ||
blockquote p { | blockquote p { | ||
margin: 0; /* Sin márgenes | margin: 0; /* Sin márgenes extra */ | ||
} | } | ||
/* Botón flotante | /* Botón flotante "Volver al inicio" */ | ||
#backToTop { | #backToTop { | ||
position: fixed; | position: fixed; | ||
| Line 135: | Line 117: | ||
} | } | ||
#backToTop.show { | #backToTop.show { | ||
opacity: 1; | opacity: 1; | ||
| Line 141: | Line 122: | ||
} | } | ||
#backToTop:hover { | #backToTop:hover { | ||
background-color: #e0e0e0; | background-color: #e0e0e0; | ||
| Line 147: | Line 127: | ||
} | } | ||
/* | /* Barra de progreso de lectura */ | ||
.reading-progress-bar-container { | .reading-progress-bar-container { | ||
position: fixed; | position: fixed; | ||
| Line 160: | Line 140: | ||
.reading-progress-bar { | .reading-progress-bar { | ||
height: 100%; | height: 100%; | ||
width: 0 | width: 0; | ||
background-color: #0078d7; /* | background-color: #0078d7; /* Azul para el progreso */ | ||
transition: width 0.2s ease-out; | transition: width 0.2s ease-out; | ||
} | } | ||
Revision as of 21:52, 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 */
}
/* 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;
}