Skip to content

Commit 9eddcfe

Browse files
committed
style: change markdown style
1 parent 7f98c71 commit 9eddcfe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/assets/css/markdown.styl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dualr(--block-extend, -0.5rem, -1rem);
66

77
schemer(--hr-color, lighten(black, 82%), lighten(black, 50%));
88
schemer(--heading-color, lighten($text-color, 10%), darken($text-color-d, 7%));
9-
schemer(--bold-color, #8f6ce4, lighten(#8f6ce4, 10%));
9+
schemer(--bold-color, darken($theme-color, 20%), $theme-color);
1010

1111
schemer(--checkbox-background, none, #cecece);
1212
schemer(--checkbox-background-checked, #56a0ef, #2f77c4);
@@ -330,6 +330,7 @@ schemer(--quote-background-invert, 0, 1);
330330
a
331331
color: unset;
332332
opacity: 0.8;
333+
text-decoration: none;
333334

334335
&:hover
335336
color: var(--color);
@@ -356,6 +357,7 @@ schemer(--quote-background-invert, 0, 1);
356357
.fold-height-listener
357358
a
358359
color: unset;
360+
text-decoration: none;
359361

360362
&:hover
361363
color: var(--color);

src/components/md/Anchor.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ const is_internal: boolean = !props.href.startsWith("http");
1818
a
1919
scheme(--color, $theme-color, lighten($theme-color, 10%));
2020
scheme(--hover-color, darken($theme-color, 45%), darken($theme-color, 20%));
21+
scheme(--hover-underline-color, darken($theme-color, 30%), darken($theme-color, 20%));
2122
2223
color: var(--color);
2324
transition: color 0.07s;
25+
text-decoration: underline;
26+
text-underline-offset: 3px;
27+
text-decoration-style: dashed;
2428
2529
&:hover
2630
color: var(--hover-color);
31+
text-decoration-style: solid;
32+
text-decoration-color: var(--hover-underline-color);
2733
</style>

0 commit comments

Comments
 (0)