From a8863320d0ca26aeaf9d825bececc1f78f05a5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20N=C3=BDvlt?= Date: Mon, 25 Nov 2024 10:23:35 +0100 Subject: [PATCH] Update content --- src/layouts/Layout.astro | 32 ++++++++++++++++++-------------- src/pages/index.astro | 24 +++++++++++++----------- 2 files changed, 31 insertions(+), 25 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 9ad9739..637de3f 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -113,23 +113,20 @@ const { title } = Astro.props; font-style: italic; } - html { + *, + *::before, + *::after { + margin: 0; box-sizing: border-box; } - *, - *:before, - *:after { - margin: 0; - box-sizing: inherit; - } - body { - font-size: clamp(1.5rem, 4vw, 2rem); + font-size: clamp(1.5rem, 0.91vi + 1.27rem, 2rem); font-family: "Ysabeau", sans-serif; - line-height: 1.4; + line-height: 1.35; background-color: var(--gray-1); color: var(--gray-12); + text-wrap: pretty; } img { @@ -144,6 +141,7 @@ const { title } = Astro.props; h5, h6 { font: inherit; + text-wrap: balance; } ol, @@ -165,8 +163,12 @@ const { title } = Astro.props; .link { font-weight: 600; padding-bottom: 0em; - transition: color 200ms; - color: var(--accent-12); + transition: color 200ms, text-decoration-color 200ms; + color: var(--accent-11); + text-decoration: underline; + text-decoration-thickness: 1px; + text-underline-offset: 0.15em; + text-decoration-color: var(--accent-6); } .link[href^="http://"]::after, .link[href^="https://"]::after @@ -177,10 +179,12 @@ const { title } = Astro.props; font-weight: 600; position: relative; top: -0.5em; + text-decoration: none; } .link:hover { - color: var(--accent-11); + color: var(--accent-12); + text-decoration-color: var(--accent-12); } .separator-after::after { @@ -192,7 +196,7 @@ const { title } = Astro.props; .container { max-width: 1080px; - padding: 1.5rem; + padding: 4vw; margin: 3rem auto; word-wrap: break-word; } diff --git a/src/pages/index.astro b/src/pages/index.astro index 1e9f2d9..739c5fb 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -11,34 +11,32 @@ import Layout from "../layouts/Layout.astro";
-

Contact:

+

Links:

@@ -47,7 +45,10 @@ import Layout from "../layouts/Layout.astro";