forked from silverbulletmd/silverbullet-libraries
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcode.css
More file actions
executable file
·259 lines (219 loc) · 4.75 KB
/
code.css
File metadata and controls
executable file
·259 lines (219 loc) · 4.75 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
:root {
--base-10: oklch(100%,0,0);
--base-9: oklch(99.5% 0.01 var(--hue)); /* lightest */
--base-8: oklch(97% 0.03 var(--hue));
--base-7: oklch(90% 0.06 var(--hue));
--base-6: oklch(75% 0.10 var(--hue));
--base-5: oklch(60% 0.25 var(--hue)); /* accent */
--base-4: oklch(40% 0.15 var(--hue));
--base-3: oklch(30% 0.15 var(--hue));
--base-2: oklch(20% 0.13 var(--hue));
--base-1: oklch(10% 0.10 var(--hue)); /* darkest */
--base-0: oklch(0,0,0);
/* font-family: Palatino, Georgia, Garamond, "Times New Roman", serif; */
/* font-family: "Trebuchet MS",Verdana, "Segoe UI", Helvetica, Arial, sans-serif; */
font-family: Monaco, Menlo, Consolas, "Courier New", Courier, monospace;
}
@page {
@top-center {
font-size: 0.8em;
font-weight: 600;
color: var(--base-2);
letter-spacing: 0.5px;
}
@bottom-center {
content: counter(page) " / " counter(pages);
font-size: 9pt;
color: var(--base-2);
}
}
body {
margin: 0 auto 5em auto;
width: clamp(420px, 70%, 1000px);
line-height: 1.35;
hyphens: auto;
overflow-wrap: break-word;
word-break: normal;
hyphens: auto;
font-size: 0.9em;
}
p {
margin: 0 0 1em 0;
/* text-align: justify; */
/* text-justify: inter-word; */
/* text-align-last: justify; */
}
a {
color: var(--base-5);
text-decoration: none;
font-weight: 600;
}
a:hover {
text-decoration: underline;
}
a[href^="http"]::after {
content: " <" attr(href) ">";
font-size: 80%;
color: var(--base-6);
/* white-space: normal; */
word-break: break-all;
}
h1, h2, h3, h4, h5, h6 {
color: var(--base-5);
margin: 1em 0 0.4em 0;
font-weight: 600;
page-break-after: avoid;
}
h1 {
padding-bottom: 0.5em;
}
hr {
border: 0;
height: 0;
margin: 0;
padding: 0;
/* page-break-before: always;
break-before: page;*/
}
/* Force HLJS not to style background */
code.hljs, code.hljs * {
background: transparent !important;
font-family: inherit !important;
font-size: inherit !important;
border: none !important;
}
pre, code.sb-code {
background: var(--base-8);
border: 1px solid var(--base-6e);
font-family: Monaco, "JetBrains Mono", monospace;
white-space: pre-wrap;
overflow-wrap: break-word;
word-break: auto-phrase;
padding: 0.35em 0.5em;
border-radius: 5px;
font-size: 0.70em;
max-width: 100%;
overflow-x: hidden;
position: relative;
}
pre[data-lang]::before {
content: attr(data-lang);
position: absolute;
top: 0.3em;
right: 0.3em;
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 0.5px;
background: var(--base-7);
padding: 0.2em 0.5em;
border-radius: 5px;
color: var(--base-1);
opacity: 0.9;
}
pre > code {
background: none;
border: none;
font-family: inherit;
font-size: inherit;
white-space: inherit;
overflow: inherit;
padding: 0;
}
table {
width: 100%;
font-size: 80%;
border-collapse: collapse;
page-break-inside: auto;
}
table th,
table td {
border: 1px solid var(--base-1);
padding: 0.15rem 0.5rem;
}
thead {
background: var(--base-8);
font-weight: 600;
page-break-inside: avoid;
}
tbody tr:nth-child(even) {
background: var(--base-9);
}
tbody tr:nth-child(odd) {
background: var(--base-10);
}
blockquote {
margin: 0.7em 2em;
padding: 0.5em;
border: 1px solid var(--base-5);
color: var(--base-1);
border-radius: 5px;
font-style: italic;
page-break-inside: avoid;
break-inside: avoid;
}
blockquote .p {
font-style: normal;
}
blockquote strong {
font-family: Menlo, Consolas, "Courier New", monospace;
font-weight: bold;
font-style: normal;
}
blockquote .p br + * {
font-style: italic;
}
ol {
margin: 0.5em 2em;
padding-left: 0.5em;
font-style: italic;
}
:not(blockquote) > span.p {
display: block;
text-align: justify;
}
span:has(img) {
display: inline-block;
padding: 1em;
overflow: hidden;
}
img {
display: block;
max-width: 100%;
height: auto;
margin: 0.6em auto;
border-radius: 5px;
page-break-inside: avoid;
break-inside: avoid;
}
/*
img {
page-break-inside: avoid;
break-inside: avoid;
}
*/
figure {
display: block;
text-align: center;
page-break-inside: avoid;
}
@media print {
body {
width: 100% !important;
margin: 0 !important;
}
}
/* OPTIONAL Hide specific colour tags inside tables */
table.isWidget {
display: none;
}
.sb-hashtag[data-tag-name^="t"],
.sb-hashtag[data-tag-name="silver"],
.sb-hashtag[data-tag-name="burgundy"],
.sb-hashtag[data-tag-name="maroon"],
.sb-hashtag[data-tag-name="hazel"],
.sb-hashtag[data-tag-name="mint"],
.sb-hashtag[data-tag-name="sea"],
.sb-hashtag[data-tag-name="grape"],
.sb-hashtag[data-tag-name="wine"] {
display: none !important;
}