Skip to content

Commit 2d1f3ad

Browse files
committed
fix some styling issues
1 parent de3abdd commit 2d1f3ad

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

exampleVault/index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
test: hello
3+
---
4+
15
```ts
26
export class Parser<const SType extends STypeBase> {
37
public p: ParseFunction<SType>;
@@ -31,3 +35,23 @@ export class Parser<const SType extends STypeBase> {
3135
}
3236
```
3337

38+
```css
39+
input:is([data-task=""], [data-task=""] > *):checked::after {
40+
content: "";
41+
color: transparent;
42+
font-weight: 600;
43+
text-align: center;
44+
-webkit-mask-image: linear-gradient(black, white);
45+
-webkit-mask-size: 100%;
46+
-webkit-mask-clip: text;
47+
}
48+
input:is([data-task=""], [data-task=""] > *):checked::after {
49+
content: "";
50+
color: transparent;
51+
font-weight: 600;
52+
text-align: center;
53+
-webkit-mask-image: linear-gradient(black, white);
54+
-webkit-mask-size: 100%;
55+
-webkit-mask-clip: text;
56+
}
57+
```

styles.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,21 @@ body {
22
--shiki-code-background: var(--code-background);
33
--shiki-code-normal: var(--code-normal);
44
--shiki-code-comment: var(--code-comment);
5-
--shiki-code-function: var(--code-string);
5+
--shiki-code-function: var(--color-green);
66
--shiki-code-important: var(--code-important);
77
--shiki-code-keyword: var(--code-keyword);
88
--shiki-code-property: var(--code-property);
99
--shiki-code-punctuation: var(--code-punctuation);
10-
--shiki-code-string: var(--code-function);
10+
--shiki-code-string: var(--color-yellow);
1111
--shiki-code-value: var(--code-value);
1212
}
13+
14+
/* Disable ligatures in code blocks, as they can cause incorrect highlighting */
15+
pre.shiki {
16+
font-variant-ligatures: no-contextual;
17+
}
18+
19+
/* Hide the frontmatter code block in reading view again */
20+
div.markdown-preview-view > div > div.mod-header + div > div {
21+
display: none;
22+
}

0 commit comments

Comments
 (0)