vanilla-jui 1.4.1 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -14
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/accordion.ts +7 -10
- package/src/components/drop.ts +5 -15
- package/src/components/parabola.ts +2 -2
- package/src/components/tabs.ts +5 -25
- package/src/components/theme.ts +25 -22
- package/src/components/toast.ts +34 -19
- package/src/components/tooltip.ts +3 -9
- package/src/core/Component.ts +1 -1
- package/src/css/accordion.css +1 -1
- package/src/css/components.css +1 -0
- package/src/css/content.css +147 -151
- package/src/css/drop.css +1 -1
- package/src/css/editor.css +16 -0
- package/src/css/form.css +27 -14
- package/src/css/icon.css +3 -3
- package/src/css/index.css +2 -2
- package/src/css/layout.css +2 -2
- package/src/css/loading.css +77 -29
- package/src/css/menu.css +29 -32
- package/src/css/pagination.css +4 -4
- package/src/css/status.css +2 -1
- package/src/css/table.css +20 -20
- package/src/css/tabs.css +2 -2
- package/src/css/theme-palette.css +10 -17
- package/src/css/themes/default/accordion.css +4 -4
- package/src/css/themes/default/avatar.css +17 -1
- package/src/css/themes/default/content.css +59 -0
- package/src/css/themes/default/editor.css +10 -0
- package/src/css/themes/default/index.css +8 -1
- package/src/css/themes/default/loading.css +16 -16
- package/src/css/themes/default/menu.css +15 -0
- package/src/css/themes/default/pagination.css +8 -0
- package/src/css/themes/default/table.css +18 -0
- package/src/css/themes/default/tabs.css +2 -2
- package/src/css/themes/default/theme-palette.css +12 -0
- package/src/css/themes/default/toolbar.css +34 -0
- package/src/css/toast.css +13 -23
- package/src/css/toolbar.css +29 -48
- package/src/locales/index.ts +3 -3
package/src/css/content.css
CHANGED
|
@@ -1,86 +1,44 @@
|
|
|
1
1
|
@layer content {
|
|
2
|
-
/* ============================================
|
|
3
|
-
Content - 文章阅读/编辑器预览样式
|
|
4
|
-
============================================ */
|
|
5
2
|
|
|
3
|
+
/* ============================================
|
|
4
|
+
Content - 文章阅读/编辑器预览样式
|
|
5
|
+
============================================ */
|
|
6
6
|
.j-content {
|
|
7
|
-
|
|
8
|
-
--content-line-height: 1.75;
|
|
9
|
-
--content-letter-spacing: 0.01em;
|
|
10
|
-
--content-word-spacing: 0.02em;
|
|
11
|
-
--content-paragraph-spacing: 1.25em;
|
|
12
|
-
--content-heading-spacing: 1.5em;
|
|
13
|
-
--content-block-spacing: 1.5em;
|
|
14
|
-
--content-list-spacing: 0.5em;
|
|
15
|
-
|
|
7
|
+
font-size: var(--content-font-size);
|
|
16
8
|
line-height: var(--content-line-height);
|
|
17
|
-
letter-spacing: var(--content-letter-
|
|
18
|
-
word-spacing: var(--content-word-
|
|
9
|
+
letter-spacing: var(--content-letter-space);
|
|
10
|
+
word-spacing: var(--content-word-space);
|
|
19
11
|
word-break: break-word;
|
|
20
12
|
text-rendering: optimizeLegibility;
|
|
21
13
|
-webkit-font-smoothing: antialiased;
|
|
22
14
|
-moz-osx-font-smoothing: grayscale;
|
|
23
|
-
outline:
|
|
15
|
+
outline: var(--content-outline);
|
|
24
16
|
position: relative;
|
|
25
17
|
}
|
|
26
18
|
|
|
27
|
-
/* --- Size Modes --- */
|
|
28
|
-
.j-content,
|
|
29
|
-
.j-content.is-md {
|
|
30
|
-
font-size: var(--font-size-lg);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.j-content.is-sm {
|
|
34
|
-
--content-line-height: 1.65;
|
|
35
|
-
--content-paragraph-spacing: 1em;
|
|
36
|
-
--content-heading-spacing: 1.25em;
|
|
37
|
-
--content-block-spacing: 1.25em;
|
|
38
|
-
font-size: var(--font-size-md);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.j-content.is-lg {
|
|
42
|
-
--content-line-height: 1.8;
|
|
43
|
-
--content-paragraph-spacing: 1.5em;
|
|
44
|
-
--content-heading-spacing: 1.75em;
|
|
45
|
-
--content-block-spacing: 1.75em;
|
|
46
|
-
font-size: var(--font-size-xl);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.j-content.is-xl {
|
|
50
|
-
--content-line-height: 1.85;
|
|
51
|
-
--content-paragraph-spacing: 1.75em;
|
|
52
|
-
--content-heading-spacing: 2em;
|
|
53
|
-
--content-block-spacing: 2em;
|
|
54
|
-
font-size: var(--font-size-2xl);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
19
|
/* ============================================
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/* Reset */
|
|
20
|
+
Typography - 段落与标题
|
|
21
|
+
============================================ */
|
|
62
22
|
.j-content *,
|
|
63
23
|
.j-content *::before,
|
|
64
24
|
.j-content *::after {
|
|
65
25
|
box-sizing: border-box;
|
|
66
26
|
}
|
|
67
27
|
|
|
68
|
-
/* 段落 */
|
|
69
28
|
.j-content p {
|
|
70
|
-
margin: 0 0 var(--content-paragraph-
|
|
29
|
+
margin: 0 0 var(--content-paragraph-space);
|
|
71
30
|
}
|
|
72
31
|
|
|
73
|
-
/* 标题层级 */
|
|
74
32
|
.j-content h1,
|
|
75
33
|
.j-content h2,
|
|
76
34
|
.j-content h3,
|
|
77
35
|
.j-content h4,
|
|
78
36
|
.j-content h5,
|
|
79
37
|
.j-content h6 {
|
|
80
|
-
margin: var(--content-heading-
|
|
38
|
+
margin: var(--content-heading-space) 0 calc(var(--content-heading-space) * 0.75);
|
|
81
39
|
font-weight: 600;
|
|
82
40
|
line-height: 1.3;
|
|
83
|
-
color: var(--
|
|
41
|
+
color: var(--content-heading-fg);
|
|
84
42
|
letter-spacing: -0.02em;
|
|
85
43
|
}
|
|
86
44
|
|
|
@@ -95,7 +53,7 @@
|
|
|
95
53
|
font-size: 1.625em;
|
|
96
54
|
font-weight: 650;
|
|
97
55
|
padding-bottom: 0.5em;
|
|
98
|
-
border-bottom: 1px solid var(--
|
|
56
|
+
border-bottom: 1px solid var(--content-border-subtle);
|
|
99
57
|
}
|
|
100
58
|
|
|
101
59
|
.j-content h3 {
|
|
@@ -118,17 +76,16 @@
|
|
|
118
76
|
.j-content h4+p,
|
|
119
77
|
.j-content h5+p,
|
|
120
78
|
.j-content h6+p {
|
|
121
|
-
margin-top: calc(var(--content-paragraph-
|
|
79
|
+
margin-top: calc(var(--content-paragraph-space) * -0.5);
|
|
122
80
|
}
|
|
123
81
|
|
|
124
82
|
/* ============================================
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
83
|
+
Inline Elements - 内联元素
|
|
84
|
+
============================================ */
|
|
128
85
|
.j-content strong,
|
|
129
86
|
.j-content b {
|
|
130
87
|
font-weight: 650;
|
|
131
|
-
color: var(--
|
|
88
|
+
color: var(--content-heading-fg);
|
|
132
89
|
}
|
|
133
90
|
|
|
134
91
|
.j-content em,
|
|
@@ -139,18 +96,18 @@
|
|
|
139
96
|
.j-content u {
|
|
140
97
|
text-decoration: underline;
|
|
141
98
|
text-decoration-thickness: 4px;
|
|
142
|
-
text-decoration-color: var(--
|
|
99
|
+
text-decoration-color: var(--content-ring);
|
|
143
100
|
text-underline-offset: 0.2em;
|
|
144
101
|
}
|
|
145
102
|
|
|
146
103
|
.j-content s,
|
|
147
104
|
.j-content del {
|
|
148
105
|
text-decoration: line-through;
|
|
149
|
-
color: var(--
|
|
106
|
+
color: var(--content-caption-fg);
|
|
150
107
|
}
|
|
151
108
|
|
|
152
109
|
.j-content mark {
|
|
153
|
-
background
|
|
110
|
+
background: var(--tone-highlight);
|
|
154
111
|
color: var(--tone-highlight-fg);
|
|
155
112
|
padding: 0.1em 0.3em;
|
|
156
113
|
border-radius: 0.2em;
|
|
@@ -158,7 +115,7 @@
|
|
|
158
115
|
|
|
159
116
|
.j-content small {
|
|
160
117
|
font-size: 0.875em;
|
|
161
|
-
color: var(--
|
|
118
|
+
color: var(--content-caption-fg);
|
|
162
119
|
}
|
|
163
120
|
|
|
164
121
|
.j-content sub {
|
|
@@ -180,7 +137,7 @@
|
|
|
180
137
|
|
|
181
138
|
.j-content time {
|
|
182
139
|
white-space: nowrap;
|
|
183
|
-
color: var(--
|
|
140
|
+
color: var(--content-caption-fg);
|
|
184
141
|
}
|
|
185
142
|
|
|
186
143
|
.j-content ruby {
|
|
@@ -189,15 +146,14 @@
|
|
|
189
146
|
|
|
190
147
|
.j-content rt {
|
|
191
148
|
font-size: 0.7em;
|
|
192
|
-
color: var(--
|
|
149
|
+
color: var(--content-caption-fg);
|
|
193
150
|
}
|
|
194
151
|
|
|
195
152
|
/* ============================================
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
153
|
+
Links - 链接
|
|
154
|
+
============================================ */
|
|
199
155
|
.j-content a {
|
|
200
|
-
color: var(--
|
|
156
|
+
color: var(--content-link);
|
|
201
157
|
text-decoration: none;
|
|
202
158
|
text-decoration-color: transparent;
|
|
203
159
|
text-underline-offset: 0.15em;
|
|
@@ -205,33 +161,31 @@
|
|
|
205
161
|
}
|
|
206
162
|
|
|
207
163
|
.j-content a:hover {
|
|
208
|
-
color: var(--
|
|
164
|
+
color: var(--content-link-hover);
|
|
209
165
|
text-decoration: underline;
|
|
210
|
-
text-decoration-color: var(--
|
|
166
|
+
text-decoration-color: var(--content-link-hover);
|
|
211
167
|
}
|
|
212
168
|
|
|
213
169
|
.j-content a:visited {
|
|
214
|
-
color: var(--
|
|
170
|
+
color: var(--content-link-visited);
|
|
215
171
|
}
|
|
216
172
|
|
|
217
173
|
.j-content a:active {
|
|
218
|
-
color: var(--
|
|
174
|
+
color: var(--content-link-active);
|
|
219
175
|
}
|
|
220
176
|
|
|
221
177
|
/* ============================================
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
178
|
+
Lists - 列表
|
|
179
|
+
============================================ */
|
|
225
180
|
.j-content ul,
|
|
226
181
|
.j-content ol {
|
|
227
|
-
margin: 0 0 var(--content-paragraph-
|
|
182
|
+
margin: 0 0 var(--content-paragraph-space);
|
|
228
183
|
padding-left: 1.75em;
|
|
229
|
-
/* font-size: 0.875em; */
|
|
230
184
|
}
|
|
231
185
|
|
|
232
186
|
.j-content ul li,
|
|
233
187
|
.j-content ol li {
|
|
234
|
-
margin-bottom: var(--content-list-
|
|
188
|
+
margin-bottom: var(--content-list-space);
|
|
235
189
|
padding-left: 0.25em;
|
|
236
190
|
}
|
|
237
191
|
|
|
@@ -250,13 +204,13 @@
|
|
|
250
204
|
|
|
251
205
|
.j-content ul ul {
|
|
252
206
|
list-style-type: circle;
|
|
253
|
-
margin-top: var(--content-list-
|
|
207
|
+
margin-top: var(--content-list-space);
|
|
254
208
|
margin-bottom: 0;
|
|
255
209
|
}
|
|
256
210
|
|
|
257
211
|
.j-content ol ol {
|
|
258
212
|
list-style-type: lower-alpha;
|
|
259
|
-
margin-top: var(--content-list-
|
|
213
|
+
margin-top: var(--content-list-space);
|
|
260
214
|
margin-bottom: 0;
|
|
261
215
|
}
|
|
262
216
|
|
|
@@ -264,6 +218,10 @@
|
|
|
264
218
|
list-style-type: square;
|
|
265
219
|
}
|
|
266
220
|
|
|
221
|
+
.j-content ol ol ol {
|
|
222
|
+
list-style-type: lower-roman;
|
|
223
|
+
}
|
|
224
|
+
|
|
267
225
|
.j-content ul p,
|
|
268
226
|
.j-content ol p {
|
|
269
227
|
margin: 0;
|
|
@@ -271,14 +229,14 @@
|
|
|
271
229
|
|
|
272
230
|
/* Definition List */
|
|
273
231
|
.j-content dl {
|
|
274
|
-
margin: 0 0 var(--content-block-
|
|
232
|
+
margin: 0 0 var(--content-block-space);
|
|
275
233
|
}
|
|
276
234
|
|
|
277
235
|
.j-content dt {
|
|
278
236
|
font-weight: 600;
|
|
279
237
|
margin-top: 0.75em;
|
|
280
238
|
margin-bottom: 0.125em;
|
|
281
|
-
color: var(--
|
|
239
|
+
color: var(--content-heading-fg);
|
|
282
240
|
}
|
|
283
241
|
|
|
284
242
|
.j-content dt:first-child {
|
|
@@ -297,22 +255,21 @@
|
|
|
297
255
|
|
|
298
256
|
/* checkbox - 任务列表 */
|
|
299
257
|
.j-content .j-checkbox {
|
|
300
|
-
margin-block: var(--content-paragraph-
|
|
258
|
+
margin-block: var(--content-paragraph-space);
|
|
301
259
|
}
|
|
302
260
|
|
|
303
261
|
/* ============================================
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
262
|
+
Blockquote - 引用
|
|
263
|
+
============================================ */
|
|
307
264
|
.j-content blockquote {
|
|
308
|
-
margin: var(--content-block-
|
|
265
|
+
margin: var(--content-block-space) 0;
|
|
309
266
|
margin-left: 0;
|
|
310
267
|
margin-right: 0;
|
|
311
268
|
padding: 1em 1.5em;
|
|
312
|
-
border-left: 3px solid var(--
|
|
269
|
+
border-left: 3px solid var(--content-border-tone);
|
|
313
270
|
border-radius: 0 var(--radius-md) var(--radius-md) 0;
|
|
314
|
-
background-color: var(--
|
|
315
|
-
color: var(--
|
|
271
|
+
background-color: var(--content-blockquote-bg);
|
|
272
|
+
color: var(--content-blockquote-fg);
|
|
316
273
|
font-style: italic;
|
|
317
274
|
}
|
|
318
275
|
|
|
@@ -329,7 +286,7 @@
|
|
|
329
286
|
margin-top: 0.75em;
|
|
330
287
|
font-style: normal;
|
|
331
288
|
font-size: 0.875em;
|
|
332
|
-
color: var(--
|
|
289
|
+
color: var(--content-caption-fg);
|
|
333
290
|
}
|
|
334
291
|
|
|
335
292
|
.j-content cite::before {
|
|
@@ -337,25 +294,24 @@
|
|
|
337
294
|
}
|
|
338
295
|
|
|
339
296
|
/* ============================================
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
297
|
+
Code - 代码
|
|
298
|
+
============================================ */
|
|
343
299
|
.j-content code:not([class*="language-"]) {
|
|
344
300
|
font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
|
|
345
301
|
font-size: 0.875em;
|
|
346
|
-
border: 1px solid var(--
|
|
302
|
+
border: 1px solid var(--content-border-subtle);
|
|
347
303
|
border-radius: var(--radius-sm);
|
|
348
304
|
word-break: break-word;
|
|
349
305
|
padding: 0.15em 0.4em;
|
|
350
|
-
background
|
|
351
|
-
color: var(--
|
|
306
|
+
background: var(--content-code-bg);
|
|
307
|
+
color: var(--content-code-fg);
|
|
352
308
|
}
|
|
353
309
|
|
|
354
310
|
.j-content kbd {
|
|
355
311
|
font-family: inherit;
|
|
356
312
|
font-size: 0.875em;
|
|
357
|
-
background
|
|
358
|
-
border: 1px solid var(--
|
|
313
|
+
background: var(--content-code-bg);
|
|
314
|
+
border: 1px solid var(--content-border);
|
|
359
315
|
border-bottom-width: 2px;
|
|
360
316
|
border-radius: var(--radius-sm);
|
|
361
317
|
padding: 0.1em 0.4em;
|
|
@@ -363,8 +319,8 @@
|
|
|
363
319
|
}
|
|
364
320
|
|
|
365
321
|
.j-content pre {
|
|
366
|
-
margin: var(--content-block-
|
|
367
|
-
background
|
|
322
|
+
margin: var(--content-block-space) 0;
|
|
323
|
+
background: var(--content-code-bg);
|
|
368
324
|
font-size: 0.875em;
|
|
369
325
|
line-height: 1.6;
|
|
370
326
|
tab-size: 2;
|
|
@@ -382,26 +338,50 @@
|
|
|
382
338
|
margin-block: 1rem;
|
|
383
339
|
overflow: auto;
|
|
384
340
|
border-radius: var(--radius-md);
|
|
385
|
-
border: 1px solid var(--
|
|
341
|
+
border: 1px solid var(--content-border);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.j-content pre.j-code-editor.hljs {
|
|
345
|
+
color: var(--ui-fg);
|
|
346
|
+
background: var(--content-bg-subtle);
|
|
347
|
+
white-space: break-spaces;
|
|
386
348
|
}
|
|
387
349
|
|
|
388
350
|
html.j-radius-round .j-content pre.j-code-editor {
|
|
389
351
|
border-radius: 1.25rem;
|
|
390
352
|
}
|
|
391
353
|
|
|
392
|
-
.j-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
354
|
+
.j-code-editor .code-header {
|
|
355
|
+
display: flex;
|
|
356
|
+
align-items: center;
|
|
357
|
+
justify-content: space-between;
|
|
358
|
+
gap: 12px;
|
|
359
|
+
padding: .5rem 1rem 0;
|
|
360
|
+
font-size: .78rem;
|
|
396
361
|
}
|
|
397
362
|
|
|
398
|
-
.j-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
363
|
+
.j-code-editor .code-header .code-dots {
|
|
364
|
+
width: 8px;
|
|
365
|
+
height: 8px;
|
|
366
|
+
border-radius: 50%;
|
|
367
|
+
background: var(--state-success);
|
|
368
|
+
box-shadow: 14px 0 0 var(--state-warning), 28px 0 0 var(--state-danger);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.j-code-editor .code-header .code-language,
|
|
372
|
+
.j-code-editor .code-header select {
|
|
373
|
+
font-size: .75rem;
|
|
374
|
+
color: var(--ui-fg-soft);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.j-code-editor .code-header select {
|
|
378
|
+
appearance: none;
|
|
379
|
+
background: transparent;
|
|
380
|
+
border: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.j-code-editor .code-header select::-ms-expand {
|
|
384
|
+
display: none;
|
|
405
385
|
}
|
|
406
386
|
|
|
407
387
|
.j-content pre code[class*="language-"] {
|
|
@@ -410,6 +390,11 @@
|
|
|
410
390
|
padding: 1.25em 1.5em;
|
|
411
391
|
}
|
|
412
392
|
|
|
393
|
+
.j-content pre.j-code-editor .code-header+code[class*="language-"] {
|
|
394
|
+
padding: .5rem 1rem 1rem;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* prettylights-syntax-keyword */
|
|
413
398
|
.hljs-doctag,
|
|
414
399
|
.hljs-keyword,
|
|
415
400
|
.hljs-meta .hljs-keyword,
|
|
@@ -417,18 +402,18 @@
|
|
|
417
402
|
.hljs-template-variable,
|
|
418
403
|
.hljs-type,
|
|
419
404
|
.hljs-variable.language_ {
|
|
420
|
-
/* prettylights-syntax-keyword */
|
|
421
405
|
color: var(--ui-tomato)
|
|
422
406
|
}
|
|
423
407
|
|
|
408
|
+
/* prettylights-syntax-entity */
|
|
424
409
|
.hljs-title,
|
|
425
410
|
.hljs-title.class_,
|
|
426
411
|
.hljs-title.class_.inherited__,
|
|
427
412
|
.hljs-title.function_ {
|
|
428
|
-
/* prettylights-syntax-entity */
|
|
429
413
|
color: var(--ui-violet)
|
|
430
414
|
}
|
|
431
415
|
|
|
416
|
+
/* prettylights-syntax-constant */
|
|
432
417
|
.hljs-attr,
|
|
433
418
|
.hljs-attribute,
|
|
434
419
|
.hljs-literal,
|
|
@@ -439,85 +424,85 @@
|
|
|
439
424
|
.hljs-selector-attr,
|
|
440
425
|
.hljs-selector-class,
|
|
441
426
|
.hljs-selector-id {
|
|
442
|
-
/* prettylights-syntax-constant */
|
|
443
427
|
color: var(--ui-teal)
|
|
444
428
|
}
|
|
445
429
|
|
|
430
|
+
/* prettylights-syntax-string */
|
|
446
431
|
.hljs-regexp,
|
|
447
432
|
.hljs-string,
|
|
448
433
|
.hljs-meta .hljs-string {
|
|
449
|
-
/* prettylights-syntax-string */
|
|
450
434
|
color: var(--ui-pink)
|
|
451
435
|
}
|
|
452
436
|
|
|
437
|
+
/* prettylights-syntax-variable */
|
|
453
438
|
.hljs-built_in,
|
|
454
439
|
.hljs-symbol {
|
|
455
|
-
/* prettylights-syntax-variable */
|
|
456
440
|
color: var(--ui-orange)
|
|
457
441
|
}
|
|
458
442
|
|
|
443
|
+
/* prettylights-syntax-comment */
|
|
459
444
|
.hljs-comment,
|
|
460
445
|
.hljs-code,
|
|
461
446
|
.hljs-formula {
|
|
462
|
-
|
|
463
|
-
color: var(--ui-olive)
|
|
447
|
+
color: var(--ui-gray-shade)
|
|
464
448
|
}
|
|
465
449
|
|
|
450
|
+
/* prettylights-syntax-entity-tag */
|
|
466
451
|
.hljs-name,
|
|
467
452
|
.hljs-quote,
|
|
468
453
|
.hljs-selector-tag,
|
|
469
454
|
.hljs-selector-pseudo {
|
|
470
|
-
/* prettylights-syntax-entity-tag */
|
|
471
455
|
color: var(--ui-indigo);
|
|
472
456
|
}
|
|
473
457
|
|
|
458
|
+
/* prettylights-syntax-storage-modifier-import */
|
|
474
459
|
.hljs-subst {
|
|
475
|
-
/* prettylights-syntax-storage-modifier-import */
|
|
476
460
|
color: var(--ui-fg)
|
|
477
461
|
}
|
|
478
462
|
|
|
463
|
+
/* prettylights-syntax-markup-heading */
|
|
479
464
|
.hljs-section {
|
|
480
|
-
/* prettylights-syntax-markup-heading */
|
|
481
465
|
color: var(--ui-teal);
|
|
482
466
|
font-weight: bold
|
|
483
467
|
}
|
|
484
468
|
|
|
469
|
+
/* prettylights-syntax-markup-list */
|
|
485
470
|
.hljs-bullet {
|
|
486
|
-
/* prettylights-syntax-markup-list */
|
|
487
471
|
color: var(--ui-gold)
|
|
488
472
|
}
|
|
489
473
|
|
|
474
|
+
/* prettylights-syntax-markup-italic */
|
|
490
475
|
.hljs-emphasis {
|
|
491
|
-
/* prettylights-syntax-markup-italic */
|
|
492
476
|
color: var(--ui-fg);
|
|
493
477
|
font-style: italic
|
|
494
478
|
}
|
|
495
479
|
|
|
480
|
+
/* prettylights-syntax-markup-bold */
|
|
496
481
|
.hljs-strong {
|
|
497
|
-
/* prettylights-syntax-markup-bold */
|
|
498
482
|
color: var(--ui-fg);
|
|
499
483
|
font-weight: bold
|
|
500
484
|
}
|
|
501
485
|
|
|
486
|
+
/* prettylights-syntax-markup-inserted */
|
|
502
487
|
.hljs-addition {
|
|
503
|
-
/* prettylights-syntax-markup-inserted */
|
|
504
488
|
color: var(--ui-indigo);
|
|
505
489
|
background-color: #f0fff4
|
|
506
490
|
}
|
|
507
491
|
|
|
492
|
+
/* prettylights-syntax-markup-deleted */
|
|
508
493
|
.hljs-deletion {
|
|
509
|
-
/* prettylights-syntax-markup-deleted */
|
|
510
494
|
color: var(--ui-ruby);
|
|
511
495
|
background-color: #ffeef0;
|
|
512
496
|
}
|
|
513
497
|
|
|
498
|
+
/* purposely ignored */
|
|
514
499
|
.hljs-char.escape_,
|
|
515
500
|
.hljs-link,
|
|
516
501
|
.hljs-params,
|
|
517
502
|
.hljs-property,
|
|
518
503
|
.hljs-punctuation,
|
|
519
504
|
.hljs-tag {
|
|
520
|
-
|
|
505
|
+
color: var(--ui-lime);
|
|
521
506
|
}
|
|
522
507
|
|
|
523
508
|
/* ============================================
|
|
@@ -531,7 +516,7 @@
|
|
|
531
516
|
}
|
|
532
517
|
|
|
533
518
|
.j-content figure {
|
|
534
|
-
margin: var(--content-block-
|
|
519
|
+
margin: var(--content-block-space) 0;
|
|
535
520
|
}
|
|
536
521
|
|
|
537
522
|
.j-content figure img,
|
|
@@ -544,7 +529,7 @@
|
|
|
544
529
|
.j-content figcaption {
|
|
545
530
|
margin-top: 0.75em;
|
|
546
531
|
font-size: 0.875em;
|
|
547
|
-
color: var(--
|
|
532
|
+
color: var(--content-caption-fg);
|
|
548
533
|
text-align: center;
|
|
549
534
|
line-height: 1.5;
|
|
550
535
|
}
|
|
@@ -579,7 +564,7 @@
|
|
|
579
564
|
.j-content table {
|
|
580
565
|
min-width: 280px;
|
|
581
566
|
max-width: 100%;
|
|
582
|
-
margin: var(--content-block-
|
|
567
|
+
margin: var(--content-block-space) 0;
|
|
583
568
|
border-collapse: collapse;
|
|
584
569
|
font-size: 0.9375em;
|
|
585
570
|
display: block;
|
|
@@ -590,19 +575,19 @@
|
|
|
590
575
|
.j-content th,
|
|
591
576
|
.j-content td {
|
|
592
577
|
padding: 0.75em 1em;
|
|
593
|
-
border-bottom: 1px solid var(--
|
|
578
|
+
border-bottom: 1px solid var(--content-border-subtle);
|
|
594
579
|
text-align: left;
|
|
595
580
|
}
|
|
596
581
|
|
|
597
582
|
.j-content th {
|
|
598
|
-
background-color: var(--
|
|
583
|
+
background-color: var(--content-bg-subtle);
|
|
599
584
|
font-weight: 600;
|
|
600
|
-
color: var(--
|
|
585
|
+
color: var(--content-heading-fg);
|
|
601
586
|
white-space: nowrap;
|
|
602
587
|
}
|
|
603
588
|
|
|
604
589
|
.j-content thead th {
|
|
605
|
-
border-bottom: 2px solid var(--
|
|
590
|
+
border-bottom: 2px solid var(--content-border);
|
|
606
591
|
}
|
|
607
592
|
|
|
608
593
|
.j-content tbody tr:hover {
|
|
@@ -618,10 +603,10 @@
|
|
|
618
603
|
============================================ */
|
|
619
604
|
|
|
620
605
|
.j-content hr {
|
|
621
|
-
margin: var(--content-block-
|
|
606
|
+
margin: var(--content-block-space) 0;
|
|
622
607
|
border: 0;
|
|
623
608
|
height: 1px;
|
|
624
|
-
background
|
|
609
|
+
background: var(--content-border);
|
|
625
610
|
}
|
|
626
611
|
|
|
627
612
|
/* ============================================
|
|
@@ -629,17 +614,17 @@
|
|
|
629
614
|
============================================ */
|
|
630
615
|
|
|
631
616
|
.j-content details {
|
|
632
|
-
margin: var(--content-block-
|
|
633
|
-
padding: 1em
|
|
634
|
-
background-color: var(--
|
|
617
|
+
margin: var(--content-block-space) 0;
|
|
618
|
+
padding: 1em;
|
|
619
|
+
background-color: var(--content-bg-subtle);
|
|
635
620
|
border-radius: var(--radius-lg);
|
|
636
|
-
border: 1px solid var(--
|
|
621
|
+
border: 1px solid var(--content-border-subtle);
|
|
637
622
|
}
|
|
638
623
|
|
|
639
624
|
.j-content summary {
|
|
640
625
|
cursor: pointer;
|
|
641
626
|
font-weight: 600;
|
|
642
|
-
color: var(--
|
|
627
|
+
color: var(--content-heading-fg);
|
|
643
628
|
outline: none;
|
|
644
629
|
list-style: none;
|
|
645
630
|
display: flex;
|
|
@@ -657,14 +642,25 @@
|
|
|
657
642
|
transform: rotate(90deg);
|
|
658
643
|
}
|
|
659
644
|
|
|
660
|
-
.j-content details[open]
|
|
661
|
-
|
|
645
|
+
.j-content details[open] p,
|
|
646
|
+
.j-content details[open] ul,
|
|
647
|
+
.j-content details[open] ol,
|
|
648
|
+
.j-content details[open]>* {
|
|
649
|
+
margin-bottom: 1em;
|
|
662
650
|
}
|
|
663
651
|
|
|
652
|
+
/* .j-content details[open]>summary {
|
|
653
|
+
margin-bottom: 0.75em;
|
|
654
|
+
} */
|
|
655
|
+
|
|
664
656
|
.j-content details[open]>summary+* {
|
|
665
657
|
margin-top: 0;
|
|
666
658
|
}
|
|
667
659
|
|
|
660
|
+
.j-content details[open]>*:last-child {
|
|
661
|
+
margin-bottom: 0;
|
|
662
|
+
}
|
|
663
|
+
|
|
668
664
|
/* ============================================
|
|
669
665
|
Progress / Meter
|
|
670
666
|
============================================ */
|
|
@@ -689,11 +685,11 @@
|
|
|
689
685
|
|
|
690
686
|
.j-content address {
|
|
691
687
|
font-style: normal;
|
|
692
|
-
margin: 0 0 var(--content-block-
|
|
688
|
+
margin: 0 0 var(--content-block-space);
|
|
693
689
|
padding: 1em 1.25em;
|
|
694
|
-
background-color: var(--
|
|
690
|
+
background-color: var(--content-bg-subtle);
|
|
695
691
|
border-radius: var(--radius-lg);
|
|
696
|
-
color: var(--
|
|
692
|
+
color: var(--content-caption-fg);
|
|
697
693
|
font-size: 0.9375em;
|
|
698
694
|
}
|
|
699
695
|
|
|
@@ -702,7 +698,7 @@
|
|
|
702
698
|
============================================ */
|
|
703
699
|
|
|
704
700
|
.j-content .block-item {
|
|
705
|
-
margin: var(--content-block-
|
|
701
|
+
margin: var(--content-block-space) 0;
|
|
706
702
|
}
|
|
707
703
|
|
|
708
704
|
/* First/Last child margin reset */
|
package/src/css/drop.css
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
#j-editor {
|
|
3
|
+
max-width: var(--editor-max-width);
|
|
4
|
+
border-width: var(--editor-border-width);
|
|
5
|
+
border-style: var(--editor-border-style);
|
|
6
|
+
border-color: var(--editor-border-color);
|
|
7
|
+
border-top: none;
|
|
8
|
+
border-bottom: none;
|
|
9
|
+
min-height: var(--editor-min-height);
|
|
10
|
+
padding: var(--editor-padding);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ProseMirror {
|
|
14
|
+
outline: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|