-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypography.css
More file actions
119 lines (97 loc) · 2.53 KB
/
Copy pathtypography.css
File metadata and controls
119 lines (97 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@plugin '@tailwindcss/typography';
@layer base {
/* ===== Override default Tailwind Typography styles ===== */
.app-prose {
@apply prose;
h1,
h2,
h3,
h4,
th {
@apply mb-3 text-foreground;
}
h3 {
@apply italic;
}
p,
strong,
ol,
ul,
figcaption,
table,
code {
@apply text-foreground;
}
a {
@apply break-words text-foreground decoration-dashed underline-offset-4 hover:text-accent focus-visible:no-underline;
}
ul {
@apply overflow-x-clip;
}
li {
@apply marker:text-accent;
}
hr {
@apply border-border;
}
img {
@apply mx-auto border border-border;
}
figcaption {
@apply opacity-75;
}
table {
th,
td {
@apply border border-border p-2;
}
th {
@apply py-1.5;
}
code {
@apply break-all sm:break-normal;
}
}
code {
@apply rounded bg-muted/75 p-1 break-words text-foreground before:content-none after:content-none;
}
.astro-code code {
@apply flex-[1_0_100%] bg-inherit p-0;
}
blockquote {
@apply border-s-accent/80 break-words opacity-80;
}
details {
@apply inline-block cursor-pointer text-foreground select-none [&_p]:hidden [&_ul]:!my-0;
}
summary {
@apply focus-visible:no-underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-accent focus-visible:outline-dashed;
}
pre {
@apply focus-visible:border-transparent focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-dashed;
}
}
/* ===== Code Blocks & Syntax Highlighting ===== */
.astro-code {
@apply flex border bg-(--shiki-light-bg) text-(--shiki-light) outline-border [&_span]:text-(--shiki-light);
}
html[data-theme="dark"] .astro-code {
@apply bg-(--shiki-dark-bg) text-(--shiki-dark) [&_span]:text-(--shiki-dark);
}
/* Styles for Shiki transformers */
/* https://shiki.style/packages/transformers */
.astro-code {
.line.diff.add {
@apply relative inline-block w-full bg-green-400/20 before:absolute before:-left-3 before:text-green-500 before:content-['+'];
}
.line.diff.remove {
@apply relative inline-block w-full bg-red-500/20 before:absolute before:-left-3 before:text-red-500 before:content-['-'];
}
.line.highlighted {
@apply inline-block w-full bg-slate-400/20;
}
.highlighted-word {
@apply rounded-sm border border-border px-0.5 py-px;
}
}
}