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 | @import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&family=Abhaya+Libre:wght@400;700&family=Crimson+Text:wght@400&family=Commissioner:wght@400&display=swap'); | ||
/* Estilo para el título principal de los artículos */ | /* Estilo para el título principal de los artículos */ | ||
| Line 7: | Line 7: | ||
} | } | ||
/* | /* Primer nivel de subtítulos (h2) en EB Garamond */ | ||
h2 | h2 { | ||
font-family: " | font-family: "EB Garamond", serif; | ||
font-weight: 700; /* Negrita para | font-size: 1.8em; /* Tamaño destacado */ | ||
font-weight: 700; /* Negrita para énfasis */ | |||
margin-bottom: 10px; /* Espaciado adicional */ | |||
border-bottom: 2px solid #f5ed56; /* Línea amarilla para separación */ | |||
padding-bottom: 5px; /* Espaciado interno */ | |||
} | } | ||
/* | /* Subtítulos (h3-h5) en Abhaya Libre */ | ||
h3, h4, h5 { | |||
font-family: " | font-family: "Abhaya Libre", serif; | ||
font-weight: 700; /* Negrita para énfasis */ | |||
} | } | ||
/* | /* Nivel más pequeño (h6) con tamaño ajustado */ | ||
h6 { | h6 { | ||
font-family: "Commissioner", sans-serif; | font-family: "Commissioner", sans-serif; | ||
font-weight: 700; /* Negrita para destacar */ | font-weight: 700; /* Negrita para destacar */ | ||
font-size: | font-size: 1.2em; /* Ligeramente mayor que el texto normal */ | ||
margin-top: 15px; /* Espaciado superior */ | |||
} | } | ||
/* Estilo | /* Estilo para enlaces */ | ||
a, a:link, a:visited { | a, a:link, a:visited { | ||
color: inherit; /* | color: inherit; /* Conserva el color del texto normal */ | ||
text-decoration: underline; /* Subrayado visible */ | text-decoration: underline; /* Subrayado visible */ | ||
text-decoration-thickness: 2px; /* Subrayado | text-decoration-thickness: 2px; /* Subrayado grueso */ | ||
position: relative; /* Necesario para | position: relative; /* Necesario para efectos */ | ||
overflow: hidden; /* | overflow: hidden; /* Previene desbordamientos */ | ||
transition: color 0.3s ease; /* Transición suave */ | |||
} | } | ||
/* Efecto dinámico en enlaces al pasar el cursor */ | /* Efecto dinámico en enlaces al pasar el cursor */ | ||
a:hover { | a:hover { | ||
color: # | color: #090a0a !important; /* Cambia a negro profundo */ | ||
} | } | ||
/* Fondo amarillo animado | /* Fondo amarillo animado */ | ||
a::before { | a::before { | ||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
bottom: 0; | bottom: 0; | ||
left: 0; | left: 0; | ||
width: 0; | width: 0; | ||
height: 100%; | height: 100%; | ||
background-color: #f5ed56; /* | background-color: #f5ed56; /* Amarillo marcador */ | ||
z-index: -1; | z-index: -1; | ||
transition: width 0.4s ease; | transition: width 0.4s ease; | ||
} | } | ||
a:hover::before { | a:hover::before { | ||
width: 100%; /* | width: 100%; /* Expande el fondo */ | ||
} | } | ||
/* | /* Texto seleccionado */ | ||
::selection { | ::selection { | ||
background-color: #f5ed56; /* Fondo amarillo */ | background-color: #f5ed56; /* Fondo amarillo */ | ||
color: #18181e; /* Texto oscuro | color: #18181e; /* Texto oscuro */ | ||
} | } | ||
/* Fondo general | /* Fondo general */ | ||
body { | body { | ||
background-color: #18181e; | background-color: #18181e; | ||
} | } | ||
/* | /* Bloques de cita */ | ||
blockquote { | blockquote { | ||
font-family: "EB Garamond", serif; /* Fuente | font-family: "EB Garamond", serif; /* Fuente elegante */ | ||
font-size: 1.2em; /* Tamaño | font-size: 1.2em; /* Tamaño destacado */ | ||
color: # | color: #e0e0e0; /* Gris claro */ | ||
background-color: # | background-color: #202028; /* Fondo oscuro */ | ||
border-left: | border-left: 5px solid #f5ed56; /* Línea amarilla */ | ||
padding: 15px 20px; /* Espaciado interno | padding: 15px 20px; /* Espaciado interno */ | ||
margin: | margin: 20px 0; /* Espaciado externo */ | ||
line-height: 1.8; /* | box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra profesional */ | ||
border-radius: 5px; /* Bordes redondeados */ | |||
line-height: 1.8; /* Mejor legibilidad */ | |||
position: relative; /* Necesario para el círculo */ | position: relative; /* Necesario para el círculo */ | ||
} | } | ||
/* Círculo con flecha en | /* Círculo con flecha en bloques de cita */ | ||
blockquote::after { | blockquote::after { | ||
content: "↑"; /* Flecha hacia arriba */ | content: "↑"; /* Flecha hacia arriba */ | ||
position: absolute; | position: absolute; | ||
bottom: - | bottom: -20px; /* Justo debajo del bloque */ | ||
right: 10px; /* Alineado | right: 10px; /* Alineado a la derecha */ | ||
background-color: #f5ed56; /* | background-color: #f5ed56; /* Amarillo marcador */ | ||
color: # | color: #090a0a; /* Negro profundo */ | ||
border-radius: 50%; /* Forma | border-radius: 50%; /* Forma circular */ | ||
width: 30px; | width: 30px; | ||
height: 30px; | height: 30px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
cursor: pointer; | cursor: pointer; | ||
transition: background-color 0.3s ease; | transition: background-color 0.3s ease, color 0.3s ease; | ||
} | } | ||
/* Efecto al pasar el cursor sobre el círculo */ | /* Efecto al pasar el cursor sobre el círculo */ | ||
blockquote::after:hover { | blockquote::after:hover { | ||
background-color: # | background-color: #e0e0e0; /* Gris claro */ | ||
color: #18181e; /* Texto oscuro */ | color: #18181e; /* Texto oscuro */ | ||
} | } | ||
Revision as of 19:20, 16 November 2024
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&family=Abhaya+Libre:wght@400;700&family=Crimson+Text:wght@400&family=Commissioner:wght@400&display=swap');
/* Estilo para el título principal de los artículos */
#firstHeading {
font-family: "Garamond", serif;
font-size: 2.5em; /* Tamaño grande para destacar */
}
/* Primer nivel de subtítulos (h2) en EB Garamond */
h2 {
font-family: "EB Garamond", serif;
font-size: 1.8em; /* Tamaño destacado */
font-weight: 700; /* Negrita para énfasis */
margin-bottom: 10px; /* Espaciado adicional */
border-bottom: 2px solid #f5ed56; /* Línea amarilla para separación */
padding-bottom: 5px; /* Espaciado interno */
}
/* Subtítulos (h3-h5) en Abhaya Libre */
h3, h4, h5 {
font-family: "Abhaya Libre", serif;
font-weight: 700; /* Negrita para énfasis */
}
/* Nivel más pequeño (h6) con tamaño ajustado */
h6 {
font-family: "Commissioner", sans-serif;
font-weight: 700; /* Negrita para destacar */
font-size: 1.2em; /* Ligeramente mayor que el texto normal */
margin-top: 15px; /* Espaciado superior */
}
/* Estilo para enlaces */
a, a:link, a:visited {
color: inherit; /* Conserva el color del texto normal */
text-decoration: underline; /* Subrayado visible */
text-decoration-thickness: 2px; /* Subrayado grueso */
position: relative; /* Necesario para efectos */
overflow: hidden; /* Previene desbordamientos */
transition: color 0.3s ease; /* Transición suave */
}
/* Efecto dinámico en enlaces al pasar el cursor */
a:hover {
color: #090a0a !important; /* Cambia a negro profundo */
}
/* Fondo amarillo animado */
a::before {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 100%;
background-color: #f5ed56; /* Amarillo marcador */
z-index: -1;
transition: width 0.4s ease;
}
a:hover::before {
width: 100%; /* Expande el fondo */
}
/* Texto seleccionado */
::selection {
background-color: #f5ed56; /* Fondo amarillo */
color: #18181e; /* Texto oscuro */
}
/* Fondo general */
body {
background-color: #18181e;
}
/* Bloques de cita */
blockquote {
font-family: "EB Garamond", serif; /* Fuente elegante */
font-size: 1.2em; /* Tamaño destacado */
color: #e0e0e0; /* Gris claro */
background-color: #202028; /* Fondo oscuro */
border-left: 5px solid #f5ed56; /* Línea amarilla */
padding: 15px 20px; /* Espaciado interno */
margin: 20px 0; /* Espaciado externo */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra profesional */
border-radius: 5px; /* Bordes redondeados */
line-height: 1.8; /* Mejor legibilidad */
position: relative; /* Necesario para el círculo */
}
/* Círculo con flecha en bloques de cita */
blockquote::after {
content: "↑"; /* Flecha hacia arriba */
position: absolute;
bottom: -20px; /* Justo debajo del bloque */
right: 10px; /* Alineado a la derecha */
background-color: #f5ed56; /* Amarillo marcador */
color: #090a0a; /* Negro profundo */
border-radius: 50%; /* Forma circular */
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.3s ease, color 0.3s ease;
}
/* Efecto al pasar el cursor sobre el círculo */
blockquote::after:hover {
background-color: #e0e0e0; /* Gris claro */
color: #18181e; /* Texto oscuro */
}