-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathmarkdown.css
More file actions
173 lines (146 loc) · 2.41 KB
/
markdown.css
File metadata and controls
173 lines (146 loc) · 2.41 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
main {
@apply flex
w-full
flex-col
gap-6;
hr {
@apply w-full
border-t
border-t-neutral-200
bg-white
dark:border-t-neutral-900
dark:bg-neutral-950;
}
h1 {
@apply text-3xl;
}
h2 {
@apply text-2xl;
}
h3 {
@apply text-xl;
}
h4 {
@apply text-lg;
}
h5,
h6 {
@apply text-base;
}
h1,
h2,
h3,
h4,
h5,
h6 {
@apply font-semibold
text-neutral-900
dark:text-white;
&[id] a {
@apply text-neutral-900
dark:text-white;
}
}
strong {
@apply font-semibold;
}
code {
@apply font-ibm-plex-mono
rounded-xs
bg-neutral-100
px-1
text-base
font-semibold
text-neutral-900
dark:bg-neutral-900
dark:text-white;
}
p {
@apply text-neutral-900
dark:text-white;
}
/* link that isn't inside a heading */
a:not(h1 > a):not(h2 > a):not(h3 > a):not(h4 > a):not(h5 > a):not(h6 > a),
.anchor {
@apply max-xs:font-semibold
text-green-600
dark:text-green-400;
&:hover {
@apply text-green-900
dark:text-green-200;
}
&[role='button'] {
@apply max-xs:font-regular;
}
&:has(code) {
@apply max-xs:decoration-neutral-800
dark:max-xs:decoration-neutral-200;
code {
@apply text-inherit;
}
}
}
ul {
@apply list-disc
pl-9
pr-5
leading-6
text-neutral-900
dark:text-white;
li div:has(> pre) {
@apply my-1!;
}
}
ol {
@apply list-decimal
px-5
leading-6
text-neutral-900
dark:text-white;
li div:has(> pre) {
@apply my-1!;
}
}
table {
@apply rounded-xs
mb-1
w-full
border-separate
border-spacing-0
border
border-neutral-200
text-left
text-sm
dark:border-neutral-800;
th,
td {
@apply max-xs:block
max-xs:border-l-0
border
border-r-0
border-t-0
border-neutral-200
px-4
py-2
text-neutral-900
dark:border-neutral-800
dark:text-white;
> a {
@apply pr-2;
}
}
th {
@apply font-semibold;
}
tr:last-child > td {
@apply sm:border-b-0;
&:last-child {
@apply max-xs:border-b-0;
}
}
td:first-child,
th:first-child {
@apply sm:border-l-0;
}
}
}