Skip to content

Commit 2e66804

Browse files
committed
Update md headlines.
1 parent 7515d6f commit 2e66804

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

astro.config.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ export default defineConfig({
4242
[
4343
rehypeAutolinkHeadings,
4444
{
45-
behavior: "append",
46-
content() {
47-
return [h("span.heading-link", "#")];
48-
},
45+
behavior: "wrap",
4946
},
5047
],
5148
],

src/styles/global.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ body {
5252

5353
.prose :is(h1, h2, h3, h4, h5, h6) a {
5454
text-decoration: none !important;
55+
background-image: linear-gradient(45deg, #151f38, #7a7ebd);
56+
color: transparent;
57+
background-clip: text;
58+
-webkit-background-clip: text;
59+
}
60+
61+
.prose :is(h1, h2, h3, h4, h5, h6) a:hover {
62+
text-decoration: underline !important;
63+
transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, text-decoration-thickness 0.2s;
64+
color:#151f38;
65+
}
66+
67+
68+
.prose :is(h1, h2, h3, h4, h5, h6) a:focus {
69+
outline: 4px solid #0073e6;
70+
outline-offset: 5px;
5571
}
5672

5773
ul.milestone-done li {

0 commit comments

Comments
 (0)