-
Notifications
You must be signed in to change notification settings - Fork 158
/
Copy pathmdx.css
89 lines (70 loc) · 1.39 KB
/
mdx.css
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
[data-theme="light"] {
display: block;
}
[data-theme="dark"] {
display: none;
}
.dark [data-theme="light"] {
display: none;
}
.dark [data-theme="dark"] {
display: block;
}
[data-rehype-pretty-code-fragment],
[data-rehype-pretty-code-figure] {
@apply relative;
}
[data-rehype-pretty-code-fragment] code,
[data-rehype-pretty-code-figure] code {
@apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0;
counter-reset: line;
box-decoration-break: clone;
}
.line {
@apply inline-block min-h-[1rem] w-full px-4 py-0.5;
}
pre [data-line-numbers] .line {
@apply px-2;
}
pre [data-line-numbers] > .line::before {
@apply text-xs text-zinc-50/40;
counter-increment: line;
content: counter(line);
display: inline-block;
width: 1.8rem;
margin-right: 1.4rem;
text-align: right;
}
pre .line--highlighted {
@apply bg-zinc-600/70;
}
pre .line-highlighted span {
@apply relative;
}
pre .word--highlighted {
@apply rounded-md border-zinc-700/70 bg-zinc-700/50 p-1;
}
.dark pre .word--highlighted {
@apply bg-zinc-900;
}
[data-rehype-pretty-code-title] {
@apply mt-2 px-4 pt-6 text-sm font-medium;
}
[data-rehype-pretty-code-title] + pre {
@apply mt-2;
}
.mdx > .steps:first-child > h3:first-child {
@apply mt-0;
}
.steps > h3 {
@apply mb-4 mt-8 text-base font-semibold;
}
.mdx {
@apply mt-4;
}
.mdx > h1 {
@apply my-4;
}
.mdx > h2 {
@apply my-4;
}