From 1db44ca4d01d8180a1adaf69f2f0f9a1ce953221 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sat, 29 Nov 2025 00:17:03 +0100 Subject: Improve styles --- src/layouts/BlogSingleLayout.astro | 60 ++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 22 deletions(-) (limited to 'src/layouts/BlogSingleLayout.astro') 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; - } -- cgit v1.3