forked from Rust-GPU/rust-gpu.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.css
More file actions
291 lines (234 loc) · 4.65 KB
/
custom.css
File metadata and controls
291 lines (234 loc) · 4.65 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
@tailwind base;
@tailwind components;
@tailwind utilities;
@font-face {
font-family: "Geist";
src: url("../../static/Geist.woff2");
}
@font-face {
font-family: "GeistMono";
src: url("../../static/GeistMono.woff2");
}
@layer base {
html {
scroll-behavior: smooth;
}
body {
@apply font-text !important;
@apply bg-secondary text-primary-text font-text leading-normal;
}
p:not(:last-child) {
@apply mb-6;
}
.heading-text {
@apply text-primary-text font-text font-bold;
}
h1,
h2,
h3,
h4,
h5,
h6 {
@apply heading-text;
}
.h1 {
@apply text-xl lg:text-2xl mt-[1.5em] mb-[1.5em];
}
h1 {
@apply h1;
}
.h2 {
@apply text-base lg:text-lg mt-[1.5em] mb-[1.5em];
}
h2 {
@apply h2;
}
.h3 {
@apply text-base mt-[1.25em] mb-[1.25em];
}
h3 {
@apply h3;
}
a {
@apply text-primary-link !important;
}
a:hover {
@apply text-primary-text-over underline !important;
}
.active {
@apply text-toc-highlight-text !important;
}
code:not(pre code) {
@apply text-code bg-code-background;
@apply whitespace-pre;
}
hr {
@apply border-[#dddddd] !important;
}
svg {
@apply inline-block;
}
input:focus,
textarea:focus,
select:focus {
@apply border-focus-border;
}
#learn-more {
@apply text-primary-text !important;
}
#learn-more:hover {
@apply no-underline !important;
}
}
@layer content {
article header h1 {
@apply mt-0 !important;
@apply mb-8 !important;
}
article {
@apply bg-white !important;
@apply p-8 !important;
@apply rounded-lg !important;
@apply mb-8 !important;
}
#blog-list header h2,
#blog-list header h1,
#blog header h2,
#blog header h1 {
@apply mt-0 !important;
@apply mb-0 !important;
}
article header > h1,
article header > h1 a,
article header > h2,
article header > h2 > a {
@apply text-xl lg:text-3xl !important;
}
article code {
@apply text-xs !important;
}
}
@layer lists {
main ul {
@apply list-disc !important;
}
main ol {
@apply list-decimal !important;
}
main ul,
main ol {
@apply pl-12 space-y-[1em] !important;
}
ul.breadcrumbs {
@apply list-none !important;
@apply pl-0 !important;
}
main ol li {
@apply font-normal !important;
@apply pl-1 !important;
}
article footer div ul,
article footer ol,
ul.table-of-contents {
@apply list-none p-0 !important;
}
article footer div ul,
article footer ol {
@apply space-y-0 !important;
}
}
@layer blog {
article {
@apply bg-white !important;
@apply p-8 !important;
@apply rounded-lg !important;
@apply mb-8 !important;
}
article header div.avatar {
@apply mb-8 !important;
}
article header small {
@apply leading-relaxed !important;
}
article footer {
@apply mt-8 !important;
}
article a.theme-edit-this-page svg {
@apply inline-block !important;
}
main nav a {
@apply shadow-normal;
@apply text-primary-text !important;
}
main nav a {
@apply shadow-normal;
@apply text-primary-text !important;
}
main nav a:hover {
@apply shadow-link-hover;
@apply text-primary-link !important;
}
main nav a:hover .pagination-nav__label,
main nav a:hover .pagination-nav__sublabel {
@apply text-primary-link !important;
}
main nav a div.pagination-nav__label,
main nav a div.pagination-nav__sublabel {
@apply text-primary-text !important;
}
div.avatar__name span {
@apply text-primary-text font-bold !important;
@apply text-primary-text font-bold !important;
}
div.avatar__name a:hover {
@apply no-underline !important;
}
}
@layer navbar {
#topbar--home,
#topbar {
@apply bg-[#0000ff];
@apply bg-white text-primary-text font-bold text-lg !important;
@apply pt-2 pr-2 pl-4;
}
#topbar--home a,
#topbar a,
#topbar b {
@apply text-primary-text font-bold text-lg !important;
}
#topbar--home a:hover,
#topbar a:hover {
@apply no-underline !important;
}
#topbar {
@apply pb-2;
@apply shadow-normal !important;
}
#topbar--home {
@apply shadow-none !important;
}
.navbar__link--active {
@apply text-primary-text !important;
}
}
@layer sidebar {
aside a {
@apply text-primary-link !important;
}
aside a:hover {
@apply text-primary-text-over underline !important;
}
nav.menu {
@apply border-0 !important;
@apply shadow-none !important;
}
.theme-doc-sidebar-container {
@apply border-0 !important;
}
}
@layer toc {
ul.table-of-contents a {
@apply font-text text-secondary-text !important;
@apply text-xs !important;
}
}