Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CloudPak-Outcomes
GitHub Repository: CloudPak-Outcomes/Outcomes-Projects
Path: blob/main/markdown-pdf.css
1928 views
1
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
2
3
:root {
4
--font-size: 10pt;
5
--markdown-line-height: 1.07rem;
6
--font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
7
--font-weight: 400;
8
--code-font-family: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
9
--textSeparator-foreground: rgba(0, 0, 0, 0.18);
10
--text-foreground: #0043ce;
11
--style-foreground: #0f62fe;
12
--textPreformat-foreground: #d12771;
13
--textBlockQuote-background: rgba(191, 191, 191, 0.1);
14
--textBlockQuote-border: rgba(0, 122, 204, 0.5);
15
--textCodeBlock-background: rgba(220, 220, 220, 0.4);
16
--pre-code-border: 1px solid var(--text-foreground);
17
}
18
19
html {
20
font-size: var(--font-size);
21
}
22
23
html body {
24
color: var(--foreground);
25
font-family: var(--font-family);
26
font-weight: var(--font-weight);
27
font-size: var(--font-size);
28
margin: 0;
29
padding: 0 20px;
30
}
31
32
html body img {
33
max-width: 100%;
34
max-height: 100%;
35
}
36
37
html body a {
38
color: var(--text-foreground);
39
;
40
}
41
42
html body a:hover {
43
color: var(--style-foreground);
44
}
45
46
html body a:focus,
47
html body input:focus,
48
html body select:focus,
49
html body textarea:focus {
50
outline: 1px solid -webkit-focus-ring-color;
51
outline-offset: -1px;
52
}
53
54
html body code {
55
color: var(--textPreformat-foreground);
56
}
57
58
html body blockquote {
59
background: var(--textBlockQuote-background);
60
border-color: var(--textBlockQuote-border);
61
}
62
63
html body kbd {
64
color: var(--foreground);
65
border-radius: 3px;
66
vertical-align: middle;
67
padding: 1px 3px;
68
background-color: hsla(0, 0%, 50%, .17);
69
border: 1px solid rgba(71, 71, 71, .4);
70
border-bottom-color: rgba(88, 88, 88, .4);
71
box-shadow: inset 0 -1px 0 rgba(88, 88, 88, .4);
72
}
73
74
html body .light kbd {
75
background-color: hsla(0, 0%, 87%, .5);
76
border: 1px solid hsla(0, 0%, 80%, .7);
77
border-bottom-color: hsla(0, 0%, 73%, .7);
78
box-shadow: inset 0 -1px 0 hsla(0, 0%, 73%, .7);
79
}
80
81
html body ::-webkit-scrollbar {
82
width: 10px;
83
height: 10px;
84
}
85
86
html body ::-webkit-scrollbar-corner {
87
background-color: var(--background);
88
}
89
90
html body ::-webkit-scrollbar-thumb {
91
background-color: var(--scrollbarSlider-background);
92
}
93
94
html body ::-webkit-scrollbar-thumb:hover {
95
background-color: var(--scrollbarSlider-hoverBackground);
96
}
97
98
html body ::-webkit-scrollbar-thumb:active {
99
background-color: var(--scrollbarSlider-activeBackground);
100
}
101
102
html body .emoji {
103
height: 20px;
104
}
105
106
html body pre {
107
white-space: pre-wrap;
108
}
109
110
html body h5:nth-of-type(3n) {
111
display: block;
112
page-break-after: always;
113
}
114
115
html body .no-page-break {
116
page-break-inside: avoid;
117
}
118
119
html body> :first-child {
120
margin-top: 0;
121
}
122
123
html body h2,
124
html body h3,
125
html body h4,
126
html body h5,
127
html body h6 {
128
line-height: 1.2;
129
margin-top: 1em;
130
margin-bottom: 16px;
131
color: var(--cds-text-01, #161616);
132
}
133
134
html body h1 {
135
font-size: 3.5rem;
136
font-weight: 300;
137
padding-bottom: 0.3em;
138
color: var(--text-foreground);
139
letter-spacing: -0.5pt;
140
/* Condensed by 0.5pt */
141
font-kerning: normal;
142
/* Kerning set, but CSS doesn't specify exact pt value */
143
line-height: normal;
144
}
145
146
html body h2 {
147
font-size: 1.6rem;
148
/* 16pt converted to rem */
149
color: rgb(0, 67, 206);
150
/* Custom font color */
151
text-indent: 0;
152
font-weight: 400;
153
margin-bottom: 1rem;
154
margin-top: 2.88rem;
155
line-height: 1.5;
156
counter-reset: section;
157
}
158
159
html body h3 {
160
font-size: 1.5rem;
161
font-weight: 500;
162
}
163
164
html body h4 {
165
font-size: 1.25rem;
166
font-weight: 600;
167
}
168
169
html body h5 {
170
font-size: 1.2rem;
171
/* 12pt converted to rem based on a 10px base */
172
margin-bottom: 0;
173
margin-top: 0.5rem;
174
font-weight: 400;
175
}
176
177
html body h6 {
178
font-size: 3rem;
179
font-weight: 400;
180
color: var(--cds-text-02, #525252);
181
}
182
183
html body strong {
184
font-weight: 500;
185
}
186
187
html body del {
188
color: var(--cds-text-02, #525252);
189
}
190
191
html body a {
192
color: var(--cds-interactive-01, #0043ce);
193
text-decoration: none;
194
}
195
196
html body a.toc-first-level {
197
padding-left: -0.1in;
198
/* Indentation for the list text */
199
line-height: 1.5;
200
}
201
202
html body a:hover {
203
color: var(--cds-interactive-02, #0043ce);
204
}
205
206
html body img {
207
max-width: 100%;
208
}
209
210
html body p {
211
font-family: "IBM Plex Sans Light", sans-serif;
212
/* Font family */
213
font-size: 1rem;
214
/* 10pt converted to rem (10pt = 10px, using base 10px) */
215
color: #000;
216
/* Assuming "Text 1" is black, adjust the color code if necessary */
217
line-height: 1.4rem;
218
/* Single line spacing */
219
margin-bottom: 10pt;
220
/* Space after paragraph, 10pt converted directly */
221
text-align: left;
222
/* Align text to the left */
223
widows: 1;
224
/* Widow/Orphan control */
225
orphans: 1;
226
/* Orphan control */
227
font-variant-ligatures: none;
228
/* No ligatures */
229
}
230
231
html body ul,
232
ol {
233
list-style-position: outside;
234
/* Ensure bullets/numbers are outside the content */
235
}
236
237
html body ul {
238
list-style-type: disc;
239
/* Bullet list style */
240
}
241
242
html body ol {
243
list-style-type: decimal;
244
/* Numbered list style */
245
}
246
247
html body li {
248
margin-bottom: 0;
249
/* No space between list items */
250
line-height: 1.5;
251
/* Line height for readability */
252
}
253
254
html body blockquote {
255
margin: 16px 0;
256
font-size: inherit;
257
padding: 0 15px;
258
color: var(--cds-text-02, #525252);
259
background-color: var(--cds-field-02, #f4f4f4);
260
border-left: 4px solid var(--cds-border-01, #8d8d8d);
261
}
262
263
html body blockquote> :first-child {
264
margin-top: 0;
265
}
266
267
html body blockquote> :last-child {
268
margin-bottom: 0;
269
}
270
271
html body hr {
272
height: 4px;
273
margin: 32px 0;
274
background-color: var(--cds-border-01, #8d8d8d);
275
border: none;
276
}
277
278
html body table {
279
margin: 10px 0 15px 0;
280
border-collapse: collapse;
281
border-spacing: 0;
282
display: block;
283
width: 100%;
284
overflow: auto;
285
word-break: keep-all;
286
page-break-inside: avoid;
287
}
288
289
html body th {
290
font-weight: 700;
291
color: var(--cds-text-01, #161616);
292
}
293
294
table a {
295
color: black;
296
}
297
298
table a:hover {
299
color: black;
300
}
301
302
html body td,
303
html body th {
304
border: 1px solid var(--cds-border-01, #8d8d8d);
305
padding: 6px 13px;
306
}
307
308
html body dl {
309
padding: 0;
310
}
311
312
html body dt {
313
padding: 0;
314
margin-top: 16px;
315
font-size: 1em;
316
font-style: italic;
317
font-weight: 700;
318
}
319
320
html body dd {
321
padding: 0 16px;
322
margin-bottom: 16px;
323
}
324
325
html body pre,
326
html body code {
327
font-family: 'IBM Plex Mono', monospace;
328
font-size: 0.85em;
329
border-radius: 3px;
330
padding: 4px 8px;
331
box-sizing: border-box;
332
word-break: break-word;
333
white-space: pre-wrap;
334
overflow: visible;
335
}
336
337
html body pre {
338
margin: 16px 0;
339
padding: 8px 12px;
340
line-height: 1.45;
341
border-radius: 3px;
342
box-sizing: border-box;
343
word-break: break-word;
344
white-space: pre-wrap;
345
border: 1px solid var(--style-foreground);
346
overflow: visible;
347
}
348
349
html body code {
350
padding: 2px 4px;
351
display: inline-block;
352
white-space: pre-wrap;
353
word-break: break-word;
354
color: var(--text-foreground);
355
border-radius: 3px;
356
word-wrap: normal;
357
background-color: transparent;
358
}
359
360
@media print {
361
html body {
362
background-color: var(--cds-ui-background, #ffffff);
363
}
364
365
html body h1 {
366
font-size: 35 pt;
367
font-weight: 300;
368
letter-spacing: -0.5pt;
369
padding-bottom: 0.3em;
370
color: var(--text-foreground);
371
}
372
373
html body h6 {
374
font-weight: 400;
375
}
376
377
html body h2,
378
html body h3,
379
html body h4,
380
html body h5,
381
html body h6 {
382
color: var(--cds-text-01, #161616);
383
page-break-after: avoid;
384
page-break-before: auto;
385
}
386
387
html body blockquote {
388
color: var(--cds-text-02, #525252);
389
}
390
391
html body pre {
392
width: 90%;
393
page-break-inside: avoid;
394
word-break: break-word;
395
white-space: pre-wrap;
396
overflow: visible;
397
}
398
399
html body code,
400
html body pre {
401
word-break: break-word;
402
white-space: pre-wrap;
403
}
404
405
html body table {
406
display: table;
407
}
408
409
html body img {
410
display: block;
411
max-width: 100%;
412
max-height: 100%;
413
}
414
}
415
416
/* Styles for first-level list items */
417
.first-level {
418
font-size: 1.1rem;
419
margin-bottom: 0rem;
420
tab-size: 62.304rem;
421
position: relative;
422
padding-left: 0rem;
423
}
424
425
.first-level li {
426
margin-left: 0;
427
list-style-type: none;
428
}
429
430
/* Styles for second-level list items */
431
.second-level {
432
font-size: 1rem;
433
margin-bottom: 0.5rem;
434
position: relative;
435
padding-right: 2rem;
436
margin-top: 0rem;
437
}
438
439
.second-level li {
440
margin-left: 2rem;
441
list-style-type: none;
442
}
443
444
.toc .page {
445
position: absolute;
446
right: 0;
447
font-weight: bold;
448
}
449
450
html body ul.first-level>li>a {
451
font-size: 1.1rem;
452
color: black;
453
}
454
455
html body ul.second-level>li>a {
456
font-size: 1rem;
457
color: black;
458
}
459
460
html body ul.first-level li {
461
margin-bottom: 0;
462
padding-left: 0.1in;
463
line-height: 1.5;
464
}
465
466