-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
styles.css
349 lines (302 loc) · 8.38 KB
/
styles.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
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
/* @settings
name: Ozan's Image in Editor Plugin
id: oz-image-in-editor-plugin
settings:
-
id: oz-img-in-editor-max-transclusion-height
title: Transclusion Embed Maximum Height
description: Set the max height of transclusion render in editor as px
type: variable-number
default: 600
format: px
-
id: oz-img-in-editor-max-msg-height
title: MSG Embed Maximum Height
description: Set the max height of msg render in editor as px
type: variable-number
default: 300
format: px
-
id: oz-img-in-editor-img-size-xx-small
title: Alt Text "#xx-small" Maximum Image Width
description: Set the max width of images with "#xx-small" alt text
type: variable-number
default: 25
format: "%"
-
id: oz-img-in-editor-img-size-x-small
title: Alt Text "#x-small" Maximum Image Width
description: Set the max width of images with "#x-small" alt text
type: variable-number
default: 50
format: "%"
-
id: oz-img-in-editor-img-size-small
title: Alt Text "#small" Maximum Image Width
description: Set the max width of images with "#small" alt text
type: variable-number
default: 75
format: "%"
*/
.theme-light,
.theme-dark {
--oz-img-in-editor-max-msg-height: 300px;
--oz-img-in-editor-max-transclusion-height: 600px;
--oz-img-in-editor-img-size-xx-small: 25%;
--oz-img-in-editor-img-size-x-small: 50%;
--oz-img-in-editor-img-size-small: 75%;
}
.CodeMirror-linewidget img {
margin-top: 5px;
margin-bottom: 5px;
}
.theme-dark img[alt$='#invert'],
.theme-dark div.oz-image-widget > img[alt$='#invert'],
.theme-dark div.oz-image-widget-cm6 > img[alt$='#invert'] {
filter: invert(1) hue-rotate(180deg);
}
.oz-transclusion-widget,
.oz-transclusion-widget-cm6 {
padding: 3px 3px 3px 19px;
border: 0.7px solid var(--text-muted);
max-height: var(oz-img-in-editor-max-transclusion-height);
overflow: auto;
border-radius: 7px;
margin-top: 5px;
}
.oz-coffee-div,
.oz-tip-div {
text-align: center;
margin-top: 10px;
}
.oz-tip-div img {
border-radius: 10px;
}
/* Line Numbers In Editor CodeBlock Renders */
pre[class*='language-'].line-numbers {
position: relative;
padding-left: 3.8em;
counter-reset: linenumber;
}
pre[class*='language-'].line-numbers > code {
position: relative;
white-space: inherit;
}
.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: 0;
font-size: 100%;
left: -3.8em;
width: 3em; /* works for line-numbers below 1000 lines */
letter-spacing: -1px;
border-right: 1px solid #999;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.line-numbers-rows > span {
display: block;
counter-increment: linenumber;
}
.line-numbers-rows > span:before {
content: counter(linenumber);
color: #999;
display: block;
padding-right: 0.8em;
text-align: right;
}
.mermaid-error-information {
color: red;
font-size: 14px;
margin-bottom: 3px;
}
.oz-modal-center {
text-align: center;
margin: 20px 10px 20px 10px;
}
.oz-modal-title {
text-align: center;
}
.inline-mathjax-block {
margin-left: 5px;
}
.oz-image-widget > img,
.oz-image-widget-cm6 > img {
-webkit-user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
div.oz-transclusion-widget pre,
div.oz-transclusion-widget-cm6 pre {
overflow-x: auto;
}
.oz-transclusion-widget > *,
.oz-transclusion-widget-cm6 > * {
user-select: text !important;
}
/* Rich Link Cards */
/* Credit: https://github.com/dhamaniasad/obsidian-rich-links */
.oz-rich-link-card {
border: 1px solid var(--background-modifier-border);
border-radius: 3px;
width: 100%;
display: flex;
text-decoration: none;
background-color: var(--background-primary);
}
.oz-rich-link-card-container {
position: relative;
}
.oz-rich-link-image-container {
height: 100px;
width: 35%;
min-width: 120px;
overflow: hidden;
border-right: 1px solid var(--background-modifier-border);
}
.oz-rich-link-image {
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
padding-bottom: 100px;
background-color: var(--background-secondary);
}
.oz-rich-link-card-text {
padding: 4px;
width: 75%;
}
.oz-rich-link-card-title {
font-family: sans-serif;
font-size: 16px;
margin: 0 0 4px 0;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
color: var(--text-normal);
}
.oz-rich-link-card-description {
font-family: sans-serif;
font-size: 14px;
margin: 0;
color: var(--text-muted);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.oz-rich-link-href {
font-family: sans-serif;
font-size: 14px;
margin: 0;
color: var(--text-faint);
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.image-in-editor-settings-main-header {
text-align: center !important;
margin-bottom: 20px;
}
.image-in-editor-cm-header {
margin-top: 0px;
}
.image-in-editor-editor-header {
margin-bottom: 5px;
}
/* Sizing for CM5 and CM6 */
div.oz-image-widget > img[alt$='#small'],
div.oz-image-widget-cm6 > img[alt$='#small'] {
max-width: var(--oz-img-in-editor-img-size-small) !important;
}
div.oz-image-widget > img[alt$='#x-small'],
div.oz-image-widget-cm6 > img[alt$='#x-small'] {
max-width: var(--oz-img-in-editor-img-size-x-small) !important;
}
div.oz-image-widget > img[alt$='#xx-small'],
div.oz-image-widget-cm6 > img[alt$='#xx-small'] {
max-width: var(--oz-img-in-editor-img-size-xx-small) !important;
}
/* Style For CM6 */
div.oz-image-widget-cm6,
div.oz-custom-html-widget-cm6,
div.oz-pdf-widget-cm6 {
padding-top: 5px;
padding-bottom: 5px;
}
div.oz-image-widget-cm6 + br,
div.oz-custom-html-widget-cm6 + br,
div.oz-pdf-widget-cm6 + br {
display: none;
}
.cm-line div.oz-transclusion-widget-cm6 {
padding-top: 10px;
padding-bottom: 10px;
}
.cm-line div.oz-transclusion-widget-cm6 * {
margin-block-start: 0px !important;
margin-block-end: 0px !important;
}
/* Legacy Admonition */
.oz-admonition {
margin: 1.5em 0;
padding: 0;
overflow: hidden;
page-break-inside: avoid;
border-left: 0.3rem solid rgb(var(--oz-admonition-color));
border-radius: 0.1rem;
box-shadow: 0 0.2rem 0.5rem rgb(44, 43, 43);
}
.oz-admonition-title {
position: relative;
padding: 15px 5px 15px 15px;
font-weight: 700;
background-color: rgba(var(--oz-admonition-color), 0.1);
}
.oz-admonition-title-content {
display: flex;
justify-content: flex-start;
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.oz-admonition-content-holder {
position: relative;
padding-top: 15px;
padding-bottom: 15px;
}
.oz-admonition-content {
margin: 10px 15px;
position: relative;
overflow-x: auto;
}
.oz-admonition-title-markdown {
text-transform: capitalize;
display: block;
}
.oz-transclusion-widget-cm6 span.hashtag {
background-color: var(--tag-background);
border: var(--tag-border-width) solid var(--tag-border-color);
border-radius: var(--tag-radius);
color: var(--tag-color);
font-size: var(--tag-size);
text-decoration: var(--tag-decoration);
padding: var(--tag-padding-y) var(--tag-padding-x);
line-height: 1;
}
.oz-custom-html-widget-cm6 .msg-handler-plugin-renderer {
max-height: var(--oz-img-in-editor-max-msg-height);
overflow-y: scroll;
border: 0.1px solid var(--text-muted);
padding: 10px;
}
.cm-line:has(div.is-collapsed) .oz-custom-html-widget-cm6,
.cm-line:has(div.is-collapsed) .oz-image-widget-cm6,
.cm-line:has(div.is-collapsed) .oz-pdf-widget-cm6,
.cm-line:has(div.is-collapsed) .oz-transclusion-widget-cm6 {
display: none;
}