From 2e66804c87ff73bf03a0ed5de6e31ea9f072206a Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 3 Apr 2025 13:16:30 +0200 Subject: [PATCH 1/3] Update md headlines. --- astro.config.mjs | 5 +---- src/styles/global.css | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 66381d261..c5622ae27 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -42,10 +42,7 @@ export default defineConfig({ [ rehypeAutolinkHeadings, { - behavior: "append", - content() { - return [h("span.heading-link", "#")]; - }, + behavior: "wrap", }, ], ], diff --git a/src/styles/global.css b/src/styles/global.css index 1607f3f87..342ab87d6 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -52,6 +52,22 @@ body { .prose :is(h1, h2, h3, h4, h5, h6) a { text-decoration: none !important; + background-image: linear-gradient(45deg, #151f38, #7a7ebd); + color: transparent; + background-clip: text; + -webkit-background-clip: text; +} + +.prose :is(h1, h2, h3, h4, h5, h6) a:hover { + text-decoration: underline !important; + transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, text-decoration-thickness 0.2s; + color:#151f38; +} + + +.prose :is(h1, h2, h3, h4, h5, h6) a:focus { + outline: 4px solid #0073e6; + outline-offset: 5px; } ul.milestone-done li { From b943c5935ee193900f02b2a6679a9ec01e6c29f5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 3 Apr 2025 11:18:05 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/styles/global.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index 342ab87d6..79ea6c664 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -60,11 +60,13 @@ body { .prose :is(h1, h2, h3, h4, h5, h6) a:hover { text-decoration: underline !important; - transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, text-decoration-thickness 0.2s; - color:#151f38; + transition: + color 0.2s ease-in-out, + background-color 0.2s ease-in-out, + text-decoration-thickness 0.2s; + color: #151f38; } - .prose :is(h1, h2, h3, h4, h5, h6) a:focus { outline: 4px solid #0073e6; outline-offset: 5px; From 0b699566818bdf9193e5e11185df8fec5cdb1401 Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 3 Apr 2025 23:33:04 +0200 Subject: [PATCH 3/3] Fix colors, following current standards. --- src/styles/global.css | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index 79ea6c664..ae6493815 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -52,19 +52,10 @@ body { .prose :is(h1, h2, h3, h4, h5, h6) a { text-decoration: none !important; - background-image: linear-gradient(45deg, #151f38, #7a7ebd); - color: transparent; - background-clip: text; - -webkit-background-clip: text; } .prose :is(h1, h2, h3, h4, h5, h6) a:hover { text-decoration: underline !important; - transition: - color 0.2s ease-in-out, - background-color 0.2s ease-in-out, - text-decoration-thickness 0.2s; - color: #151f38; } .prose :is(h1, h2, h3, h4, h5, h6) a:focus {