aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/BlogSingleLayout.astro
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-29 00:17:03 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-29 00:17:28 +0100
commit1db44ca4d01d8180a1adaf69f2f0f9a1ce953221 (patch)
tree9c6a7f71488d08ee2c271d6fe7df9695373f099d /src/layouts/BlogSingleLayout.astro
parent72f4b03ea2648b7c9de1d4bf2f0899a278537167 (diff)
Improve styles
Diffstat (limited to 'src/layouts/BlogSingleLayout.astro')
-rw-r--r--src/layouts/BlogSingleLayout.astro60
1 files changed, 38 insertions, 22 deletions
diff --git a/src/layouts/BlogSingleLayout.astro b/src/layouts/BlogSingleLayout.astro
index 8cbcd45..3e0c616 100644
--- a/src/layouts/BlogSingleLayout.astro
+++ b/src/layouts/BlogSingleLayout.astro
@@ -86,13 +86,35 @@ const schema = {
@use "../../styles/variables" as v;
@use "sass:color";
+ h1 {
+ font-size: 2.5rem;
+ font-weight: 700;
+ margin-bottom: 0.5rem;
+ line-height: 1.2;
+ }
+
+ small {
+ display: block;
+ margin-bottom: 2rem;
+ padding-bottom: 1.5rem;
+ font-size: 0.95rem;
+ color: hsl(209, 20%, 50%);
+ border-bottom: 2px solid rgba(0, 102, 204, 0.15);
+ }
+
+ time {
+ font-style: italic;
+ font-weight: 500;
+ }
+
.tags {
display: inline-flex;
flex-direction: row;
list-style: none;
margin: 0;
padding: 0;
- gap: 0.75rem;
+ gap: 0.5rem;
+ margin-left: 0.25rem;
}
.tags li {
@@ -100,36 +122,30 @@ const schema = {
}
.tags a {
- // Estilo de enlace normal, siguiendo los estilos predefinidos en Layout.astro
+ display: inline-block;
+ padding: 0.25rem 0.625rem;
+ background-color: rgba(0, 153, 255, 0.1);
color: v.$accentDark;
- font-size: 0.90rem;
+ border: 1px solid rgba(0, 102, 204, 0.2);
+ border-radius: 1.25rem;
+ font-size: 0.8rem;
+ font-weight: 500;
font-family: v.$monoFontStack;
text-decoration: none;
- box-shadow: 0 1px v.$accent;
+ box-shadow: none !important;
transition: all 0.2s ease;
&:hover {
- box-shadow: 0 2px v.$accentDark;
+ background-color: rgba(0, 153, 255, 0.2);
+ border-color: v.$accent;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
&:focus {
- color: v.$accentDark;
- outline: none;
- background-color: v.$secondary;
- box-shadow: 0 4px #0b0c0c;
+ outline: 3px solid v.$accent;
+ outline-offset: 2px;
+ background-color: rgba(0, 153, 255, 0.2);
+ box-shadow: none !important;
}
}
-
- /* Estilos para la información de la publicación */
- small {
- display: block;
- margin-top: -1rem;
- margin-bottom: 1.5rem;
- font-size: 0.90rem;
- color: color.adjust(v.$dark, $lightness: 30%);
- }
-
- time {
- font-style: italic;
- }
</style>