vanilla-jui 1.7.15 → 1.7.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jui",
3
- "version": "1.7.15",
3
+ "version": "1.7.17",
4
4
  "private": false,
5
5
  "description": "A lightweight, reactive, and fully customizable vanilla JS UI library.",
6
6
  "keywords": [
@@ -62,12 +62,9 @@
62
62
  --avatar-bg: var(--tone-subtle);
63
63
  --avatar-fg: var(--tone-solid);
64
64
  --avatar-font-weight: var(--font-medium);
65
-
66
- display: flex;
67
- justify-content: center;
68
- align-items: center;
69
65
  }
70
66
 
67
+ .j-avatar.is-text,
71
68
  .j-avatar-group {
72
69
  display: flex;
73
70
  justify-content: center;
@@ -80,7 +77,7 @@
80
77
  }
81
78
 
82
79
  .j-avatar-group .j-avatar:not(:first-child) {
83
- margin-inline-start: calc(var(--space) * -3);
80
+ margin-inline-start: calc(var(--s3) * -1);
84
81
  }
85
82
 
86
83
  .j-avatar-group .j-avatar:last-child {
@@ -4,12 +4,9 @@
4
4
  --badge-min-width: 1.25rem;
5
5
  --badge-height: 1.25rem;
6
6
  --badge-font-size: var(--font-size-sm);
7
- --badge-font-weight: var(--font-medium);
8
- --badge-radius: 500px;
9
7
  --badge-border-color: var(--ui-border);
10
8
  --badge-fg: var(--ui-fg);
11
9
  --badge-bg: var(--ui-bg);
12
- --badge-box-shadow: none;
13
10
  --badge-gap: 4px;
14
11
 
15
12
  gap: var(--badge-gap);
@@ -17,12 +14,12 @@
17
14
  min-width: var(--badge-min-width);
18
15
  height: var(--badge-height);
19
16
  font-size: var(--badge-font-size);
20
- font-weight: var(--badge-font-weight);
21
- border-radius: var(--badge-radius);
17
+ font-weight: var(--font-medium);
18
+ border-radius: 50%;
22
19
  border: 1px solid var(--badge-border-color);
23
20
  color: var(--badge-fg);
24
21
  background-color: var(--badge-bg);
25
- box-shadow: var(--badge-box-shadow);
22
+ box-shadow: none;
26
23
 
27
24
  display: inline-flex;
28
25
  justify-content: center;
@@ -1,14 +1,11 @@
1
1
  @layer components {
2
2
  .j-breadcrumb {
3
3
  --breadcrumb-font-size: var(--font-size-md);
4
- --breadcrumb-fg: var(--ui-fg-muted);
5
4
  --breadcrumb-icon-size: var(--font-size-md);
6
- --breadcrumb-divider-fg: var(--ui-fg-soft);
7
5
  --breadcrumb-link-fg: var(--tone-text);
8
- --breadcrumb-item-padding: 0 var(--s2);
9
6
 
10
7
  font-size: var(--breadcrumb-font-size);
11
- color: var(--breadcrumb-fg);
8
+ color: var(--ui-fg-muted);
12
9
 
13
10
  white-space: nowrap;
14
11
  user-select: none;
@@ -65,7 +62,7 @@
65
62
  .j-breadcrumb a {
66
63
  gap: var(--space);
67
64
  color: var(--breadcrumb-link-fg);
68
- padding: var(--breadcrumb-item-padding);
65
+ padding: 0 var(--s2);
69
66
 
70
67
  display: flex;
71
68
  align-items: center;
@@ -84,7 +81,7 @@
84
81
  }
85
82
 
86
83
  .j-breadcrumb li + li::before {
87
- color: var(--breadcrumb-divider-fg);
84
+ color: var(--ui-fg-soft);
88
85
  }
89
86
 
90
87
  .j-breadcrumb li.is-active a {
@@ -1,8 +1,6 @@
1
1
  @layer components {
2
2
  .drop-container {
3
- border-width: 1px;
4
- border-style: solid;
5
- border-color: var(--ui-border);
3
+ border: 1px solid var(--ui-border);
6
4
  border-radius: var(--radius-sm);
7
5
  background: var(--ui-bg);
8
6
  color: var(--ui-fg);
@@ -1,20 +1,13 @@
1
1
  @layer components {
2
2
  #j-editor-container {
3
- --editor-max-width: 880px;
4
- --editor-min-height: calc(100vh - 51px);
5
- --editor-padding: 1.5rem 1.5rem 4rem;
6
- --editor-border-width: 1px;
7
- --editor-border-style: solid;
8
- --editor-border-color: var(--ui-border);
9
-
10
- max-width: var(--editor-max-width);
11
- border-width: var(--editor-border-width);
12
- border-style: var(--editor-border-style);
13
- border-color: var(--editor-border-color);
3
+ max-width: 880px;
4
+ border-width: 1px;
5
+ border-style: solid;
6
+ border-color: var(--ui-border);
14
7
  border-top: none;
15
8
  border-bottom: none;
16
- min-height: var(--editor-min-height);
17
- padding: var(--editor-padding);
9
+ min-height: calc(100vh - 51px);
10
+ padding: 1.5rem 1.5rem 4rem;
18
11
  }
19
12
 
20
13
  .ProseMirror {
@@ -28,32 +21,17 @@
28
21
  .j-editor {
29
22
  --editor-font-size: var(--font-size-lg);
30
23
  --editor-line-height: 1.75;
31
- --editor-word-space: 0.02em;
32
- --editor-letter-space: 0.01em;
33
24
  --editor-block-space: 1.25rem;
34
- --editor-list-space: 1rem;
35
- --editor-space: 0.25rem;
36
25
 
37
26
  --editor-heading-fg: var(--tone-heading);
38
27
  --editor-caption-fg: var(--tone-caption);
39
- --editor-ring: var(--tone-ring);
40
- --editor-border-tone: var(--tone-border);
41
28
  --editor-border-subtle: var(--ui-border-subtle);
42
- --editor-blockquote-bg: var(--tone-wash);
43
- --editor-blockquote-fg: var(--tone-subtitle);
44
- --editor-link: var(--tone-link);
45
- --editor-link-hover: var(--tone-link-hover);
46
- --editor-link-visited: var(--tone-link-visited);
47
- --editor-link-active: var(--tone-link-active);
48
- --editor-border: var(--ui-border-subtle);
49
- --editor-code-bg: var(--tone-code-bg);
50
- --editor-code-fg: var(--tone-code-fg);
51
29
  --editor-bg-subtle: var(--ui-bg-subtle);
52
30
 
53
31
  font-size: var(--editor-font-size);
54
32
  line-height: 1.5;
55
- letter-spacing: var(--editor-letter-space);
56
- word-spacing: var(--editor-word-space);
33
+ letter-spacing: 0.01em;
34
+ word-spacing: 0.02em;
57
35
  word-break: break-word;
58
36
  outline: 0;
59
37
  position: relative;
@@ -166,7 +144,7 @@
166
144
  text-decoration: underline;
167
145
  text-decoration-thickness: 4px;
168
146
 
169
- text-decoration-color: var(--editor-ring);
147
+ text-decoration-color: var(--tone-ring);
170
148
  text-underline-offset: 0.2em;
171
149
  }
172
150
 
@@ -223,7 +201,7 @@
223
201
  Links - 链接
224
202
  ============================================ */
225
203
  .j-editor a {
226
- color: var(--editor-link);
204
+ color: var(--tone-link);
227
205
  text-decoration: none;
228
206
 
229
207
  text-decoration-color: transparent;
@@ -234,17 +212,17 @@
234
212
  }
235
213
 
236
214
  .j-editor a:hover {
237
- color: var(--editor-link-hover);
215
+ color: var(--tone-link-hover);
238
216
  text-decoration: underline;
239
- text-decoration-color: var(--editor-link-hover);
217
+ text-decoration-color: var(--tone-link-hover);
240
218
  }
241
219
 
242
220
  .j-editor a:visited {
243
- color: var(--editor-link-visited);
221
+ color: var(--tone-link-visited);
244
222
  }
245
223
 
246
224
  .j-editor a:active {
247
- color: var(--editor-link-active);
225
+ color: var(--tone-link-active);
248
226
  }
249
227
 
250
228
  /* ============================================
@@ -252,14 +230,14 @@
252
230
  ============================================ */
253
231
  .j-editor ul,
254
232
  .j-editor ol {
255
- margin: 0 0 var(--editor-list-space);
256
- padding-left: 1.5em;
233
+ margin: 0 0 1rem;
234
+ padding-left: 18px;
257
235
  }
258
236
 
259
237
  .j-editor ul li,
260
238
  .j-editor ol li {
261
- margin-bottom: 0.375em;
262
- padding-left: 0.25em;
239
+ margin-bottom: 10px;
240
+ padding-left: 2px;
263
241
  }
264
242
 
265
243
  .j-editor ul li:last-child,
@@ -279,8 +257,7 @@
279
257
  .j-editor ol ol,
280
258
  .j-editor ol ul,
281
259
  .j-editor ul ol {
282
- margin-top: var(--editor-space);
283
- margin-bottom: 0;
260
+ margin: 10px 0;
284
261
  }
285
262
 
286
263
  .j-editor ul ul {
@@ -311,8 +288,7 @@
311
288
 
312
289
  .j-editor dt {
313
290
  font-weight: 600;
314
- margin-top: 0.75rem;
315
- margin-bottom: var(--editor-space);
291
+ margin: 1rem 0 10px;
316
292
  color: var(--editor-heading-fg);
317
293
  }
318
294
 
@@ -322,7 +298,7 @@
322
298
 
323
299
  .j-editor dd {
324
300
  margin: 0 0 0.75rem;
325
- padding-left: var(--editor-list-space);
301
+ padding-left: 18px;
326
302
  color: var(--tone-body);
327
303
  }
328
304
 
@@ -403,10 +379,10 @@
403
379
  .j-editor blockquote {
404
380
  margin: var(--editor-block-space) 0;
405
381
  padding: 0.75rem 1.25rem;
406
- border-left: 3px solid var(--editor-border-tone);
382
+ border-left: 3px solid var(--tone-border);
407
383
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
408
- background-color: var(--editor-blockquote-bg);
409
- color: var(--editor-blockquote-fg);
384
+ background-color: var(--tone-wash);
385
+ color: var(--tone-subtitle);
410
386
  }
411
387
 
412
388
  .j-editor blockquote > * {
@@ -443,8 +419,8 @@
443
419
  border: 1px solid var(--editor-border-subtle);
444
420
  border-radius: var(--radius-sm);
445
421
  word-break: break-word;
446
- background: var(--editor-code-bg);
447
- color: var(--editor-code-fg);
422
+ background: var(--tone-code-bg);
423
+ color: var(--tone-code-fg);
448
424
  }
449
425
 
450
426
  .j-editor code:not([class*='language-']) {
@@ -452,7 +428,7 @@
452
428
  }
453
429
 
454
430
  .j-editor kbd {
455
- border-color: var(--editor-border);
431
+ border-color: var(--editor-border-subtle);
456
432
  border-bottom-width: 2px;
457
433
  padding: 2px 6px;
458
434
  color: var(--tone-body);
@@ -706,7 +682,7 @@
706
682
  margin: var(--editor-block-space) 0;
707
683
  border: 0;
708
684
  height: 1px;
709
- background: var(--editor-border);
685
+ background: var(--editor-border-subtle);
710
686
  }
711
687
 
712
688
  /* ============================================
@@ -71,9 +71,7 @@
71
71
  --input-height: var(--el-height-md);
72
72
  --input-line-height: var(--line-height);
73
73
 
74
- border-width: 1px;
75
- border-style: solid;
76
- border-color: var(--ui-border);
74
+ border: 1px solid var(--ui-border);
77
75
  border-radius: var(--radius-md);
78
76
  padding: var(--input-padding);
79
77
  height: var(--input-height);
@@ -193,9 +191,7 @@
193
191
  width: 1rem;
194
192
  height: 1rem;
195
193
  border-radius: 50%;
196
- border-width: 1px;
197
- border-style: solid;
198
- border-color: var(--ui-border);
194
+ border: 1px solid var(--ui-border);
199
195
  background-color: var(--ui-bg);
200
196
  cursor: pointer;
201
197
  position: relative;
@@ -354,9 +350,7 @@
354
350
  width: 1rem;
355
351
  height: 1rem;
356
352
  aspect-ratio: 1/1;
357
- border-width: 1px;
358
- border-style: solid;
359
- border-color: var(--ui-border);
353
+ border: 1px solid var(--ui-border);
360
354
  border-radius: var(--radius-md);
361
355
  cursor: pointer;
362
356
  position: relative;
@@ -484,9 +478,7 @@
484
478
  --input-font-size: var(--font-size-md);
485
479
 
486
480
  padding: var(--input-padding);
487
- border-width: 1px;
488
- border-style: solid;
489
- border-color: var(--ui-border);
481
+ border: 1px solid var(--ui-border);
490
482
  border-radius: var(--radius-md);
491
483
  height: var(--input-height);
492
484
  line-height: var(--input-line-height, var(--line-height));
@@ -510,9 +502,7 @@
510
502
  /* textarea */
511
503
  textarea.j-textarea {
512
504
  min-height: var(--textarea-min-height, calc(var(--space) * 18));
513
- border-width: 1px;
514
- border-style: solid;
515
- border-color: var(--ui-border);
505
+ border: 1px solid var(--ui-border);
516
506
  border-radius: var(--radius-md);
517
507
  background-color: var(--input-background-color, var(--ui-bg));
518
508
  color: var(--input-color, var(--ui-input-color));
@@ -562,11 +552,8 @@
562
552
  background-color: var(--ui-bg-muted);
563
553
  padding: var(--s2);
564
554
  height: var(--el-height-md);
565
- border-color: var(--ui-border);
555
+ border: 1px solid var(--ui-border);
566
556
  border-radius: var(--radius-md);
567
-
568
- border-width: 1px;
569
- border-style: solid;
570
557
  }
571
558
 
572
559
  .input-group .el-addon .icon-close,
@@ -668,7 +655,6 @@
668
655
  .input-inner-group .el-addon.is-text {
669
656
  display: flex;
670
657
  align-items: center;
671
- flex-shrink: 0;
672
658
  padding-inline: var(--s2);
673
659
  user-select: none;
674
660
  }
@@ -678,6 +664,11 @@
678
664
  padding-inline: var(--space);
679
665
  }
680
666
 
667
+ .input-group .el-addon,
668
+ .input-inner-group .el-addon {
669
+ flex-shrink: 0;
670
+ }
671
+
681
672
  /* input style */
682
673
  .j-input.is-line:not([type='checkbox']) {
683
674
  border-top-color: transparent;
@@ -2,7 +2,6 @@
2
2
  .j-menu {
3
3
  --menu-border-radius: var(--radius-md);
4
4
  --menu-item-icon-size: var(--font-size-lg);
5
- --menu-item-padding: 0.5rem 0.75rem;
6
5
  --menu-item-height: var(--el-height-md);
7
6
  --menu-item-line-height: var(--line-height);
8
7
 
@@ -74,7 +73,7 @@
74
73
  .j-menu .menu .menu-item a {
75
74
  gap: var(--s2);
76
75
  color: currentColor;
77
- padding: var(--menu-item-padding);
76
+ padding: 0.5rem 0.75rem;
78
77
  height: var(--menu-item-height);
79
78
  line-height: var(--menu-item-line-height);
80
79
  border-radius: var(--menu-border-radius);
@@ -127,7 +126,7 @@
127
126
  @supports (color: color-mix(in srgb, red 50%, blue)) {
128
127
  background-color: color-mix(
129
128
  in srgb,
130
- var(--ui-bg-subtle) 50%,
129
+ var(--ui-bg-subtle) 75%,
131
130
  transparent
132
131
  );
133
132
  }
@@ -198,13 +197,13 @@
198
197
  }
199
198
 
200
199
  /* list card menu */
201
- .j-menu .menu-item.menu-item-has-children.list-card-menu:hover > .sub-menu {
200
+ .j-menu .menu-item.menu-item-has-children.list-menu:hover > .sub-menu {
202
201
  width: auto;
203
202
  display: grid;
204
203
  grid-template-columns: repeat(2, 1fr);
205
204
  }
206
205
 
207
- .j-menu .menu-item.list-card-menu > .sub-menu > .menu-item > a {
206
+ .j-menu .menu-item.list-menu > .sub-menu > .menu-item > a {
208
207
  overflow: hidden;
209
208
  display: -webkit-box;
210
209
  -webkit-box-orient: vertical;
@@ -212,156 +211,17 @@
212
211
  line-clamp: 1;
213
212
  }
214
213
 
215
- .j-menu .menu-item.menu-item-has-children.list-card-menu:hover > .sub-menu {
214
+ .j-menu .menu-item.menu-item-has-children.list-menu:hover > .sub-menu {
216
215
  min-width: 240px;
217
216
  max-width: 360px;
218
217
  transform: translateX(-20%) translateY(1px);
219
218
  }
220
219
 
221
- .j-menu .menu-item.list-card-menu > .sub-menu > .menu-item > a {
220
+ .j-menu .menu-item.list-menu > .sub-menu > .menu-item > a {
222
221
  padding: calc(var(--space) * 1.25) calc(var(--space) * 2.5);
223
222
  line-height: 1.75;
224
223
  }
225
224
 
226
- /* advanced card menu */
227
- .j-menu
228
- .menu-item.menu-item-has-children.advanced-card-menu:hover
229
- > .sub-menu {
230
- display: grid;
231
- grid-template-columns: repeat(6, 1fr);
232
- grid-template-rows: repeat(6, 1fr);
233
- grid-column-gap: var(--space);
234
- grid-row-gap: var(--space);
235
- min-width: 400px;
236
- max-width: 600px;
237
- padding-right: var(--s2);
238
- transform: translateX(-33.33%) translateY(1px);
239
- }
240
-
241
- .j-menu
242
- .menu-item.menu-item-has-children.advanced-card-menu:hover
243
- > .sub-menu
244
- img {
245
- margin: 0;
246
- }
247
-
248
- .j-menu
249
- .menu-item.menu-item-has-children.advanced-card-menu:hover
250
- > .sub-menu
251
- > .menu-item:nth-child(1) {
252
- grid-area: 1 / 1 / 2 / 3;
253
- }
254
-
255
- .j-menu
256
- .menu-item.menu-item-has-children.advanced-card-menu:hover
257
- > .sub-menu
258
- > .menu-item:nth-child(2) {
259
- grid-area: 1 / 3 / 4 / 5;
260
- }
261
-
262
- .j-menu
263
- .menu-item.menu-item-has-children.advanced-card-menu:hover
264
- > .sub-menu
265
- > .menu-item:nth-child(3) {
266
- grid-area: 1 / 5 / 4 / 7;
267
- }
268
-
269
- .j-menu
270
- .menu-item.menu-item-has-children.advanced-card-menu:hover
271
- > .sub-menu
272
- > .menu-item:nth-child(4) {
273
- grid-area: 2 / 1 / 3 / 3;
274
- }
275
-
276
- .j-menu
277
- .menu-item.menu-item-has-children.advanced-card-menu:hover
278
- > .sub-menu
279
- > .menu-item:nth-child(5) {
280
- grid-area: 3 / 1 / 4 / 3;
281
- }
282
-
283
- .j-menu
284
- .menu-item.menu-item-has-children.advanced-card-menu:hover
285
- > .sub-menu
286
- > .menu-item:nth-child(6) {
287
- grid-area: 4 / 1 / 5 / 3;
288
- }
289
-
290
- .j-menu
291
- .menu-item.menu-item-has-children.advanced-card-menu:hover
292
- > .sub-menu
293
- > .menu-item:nth-child(7) {
294
- grid-area: 4 / 3 / 7 / 5;
295
- }
296
-
297
- .j-menu
298
- .menu-item.menu-item-has-children.advanced-card-menu:hover
299
- > .sub-menu
300
- > .menu-item:nth-child(8) {
301
- grid-area: 4 / 5 / 7 / 7;
302
- }
303
-
304
- .j-menu
305
- .menu-item.menu-item-has-children.advanced-card-menu:hover
306
- > .sub-menu
307
- > .menu-item:nth-child(9) {
308
- grid-area: 5 / 1 / 6 / 3;
309
- }
310
-
311
- .j-menu
312
- .menu-item.menu-item-has-children.advanced-card-menu:hover
313
- > .sub-menu
314
- > .menu-item:nth-child(10) {
315
- grid-area: 6 / 1 / 7 / 3;
316
- }
317
-
318
- .j-menu
319
- .menu-item.menu-item-has-children.advanced-card-menu:hover
320
- > .sub-menu
321
- > .menu-item:nth-child(2)
322
- a,
323
- .j-menu
324
- .menu-item.menu-item-has-children.advanced-card-menu:hover
325
- > .sub-menu
326
- > .menu-item:nth-child(3)
327
- a,
328
- .j-menu
329
- .menu-item.menu-item-has-children.advanced-card-menu:hover
330
- > .sub-menu
331
- > .menu-item:nth-child(7)
332
- a,
333
- .j-menu
334
- .menu-item.menu-item-has-children.advanced-card-menu:hover
335
- > .sub-menu
336
- > .menu-item:nth-child(8)
337
- a {
338
- padding: 0;
339
- }
340
-
341
- .j-menu
342
- .menu-item.menu-item-has-children.advanced-card-menu:hover
343
- > .sub-menu
344
- > .menu-item:nth-child(2)
345
- a:hover,
346
- .j-menu
347
- .menu-item.menu-item-has-children.advanced-card-menu:hover
348
- > .sub-menu
349
- > .menu-item:nth-child(3)
350
- a:hover,
351
- .j-menu
352
- .menu-item.menu-item-has-children.advanced-card-menu:hover
353
- > .sub-menu
354
- > .menu-item:nth-child(7)
355
- a:hover,
356
- .j-menu
357
- .menu-item.menu-item-has-children.advanced-card-menu:hover
358
- > .sub-menu
359
- > .menu-item:nth-child(8)
360
- a:hover {
361
- background-color: transparent;
362
- outline-color: transparent;
363
- }
364
-
365
225
  /**
366
226
  * 侧边栏菜单
367
227
  */
@@ -390,7 +250,7 @@
390
250
  }
391
251
 
392
252
  .j-menu[data-menu-type='mobile'] .menu .menu-item:not(:has(a)) {
393
- padding: var(--menu-item-padding);
253
+ padding: 0.5rem 1rem;
394
254
  }
395
255
 
396
256
  .j-menu[data-menu-type='mobile'] .menu .menu-item a {
@@ -399,6 +259,7 @@
399
259
  white-space: normal;
400
260
  position: relative;
401
261
 
262
+ padding: 0.5rem 1rem;
402
263
  gap: var(--s2);
403
264
  min-height: var(--el-height-2xl);
404
265
  line-height: var(--line-height-paragraph);
@@ -6,9 +6,7 @@
6
6
 
7
7
  color: var(--ui-fg);
8
8
  background: var(--ui-bg);
9
- border-width: 1px;
10
- border-style: solid;
11
- border-color: var(--ui-border);
9
+ border: 1px solid var(--ui-border);
12
10
  border-radius: var(--radius-md);
13
11
  box-shadow: var(--shadow-md);
14
12
  min-width: 300px;
@@ -1,7 +1,6 @@
1
1
  @layer components {
2
2
  .j-theme-palette {
3
- padding-inline: var(--s4);
4
- padding-block: var(--s4) var(--s8);
3
+ padding: var(--s4) var(--s4) var(--s8);
5
4
  }
6
5
 
7
6
  .j-theme-palette .palette-container,
@@ -5,9 +5,7 @@
5
5
 
6
6
  row-gap: var(--s2);
7
7
  width: 100%;
8
- border-width: 1px;
9
- border-style: solid;
10
- border-color: var(--tip-border-color);
8
+ border: 1px solid var(--tip-border-color);
11
9
  border-radius: var(--radius-md);
12
10
  padding: var(--s3) var(--s4);
13
11
  font-size: var(--font-size-md);
@@ -26,9 +26,7 @@
26
26
  font-weight: var(--font-medium);
27
27
  color: var(--toast-fg);
28
28
  background: var(--toast-bg);
29
- border-width: 1px;
30
- border-style: solid;
31
- border-color: var(--toast-border-color);
29
+ border: 1px solid var(--toast-border-color);
32
30
  border-radius: var(--radius-md);
33
31
  min-width: 200px;
34
32
  max-width: 310px;
@@ -5,8 +5,8 @@
5
5
  }
6
6
 
7
7
  .j-toc .toc-link {
8
- padding-top: 0.375rem;
9
- padding-bottom: 0.375rem;
8
+ padding-top: 6px;
9
+ padding-bottom: 6px;
10
10
  color: var(--tone-caption);
11
11
  font-size: var(--font-size-sm);
12
12
  text-decoration: none;
@@ -23,6 +23,6 @@
23
23
  .j-toc .toc-link[data-toc-level='4'],
24
24
  .j-toc .toc-link[data-toc-level='5'],
25
25
  .j-toc .toc-link[data-toc-level='6'] {
26
- padding-left: 0.75rem;
26
+ padding-left: 12px;
27
27
  }
28
28
  }
@@ -17,13 +17,15 @@
17
17
  }
18
18
 
19
19
  .j-toolbar {
20
+ --toolbar-justify: center;
21
+
20
22
  gap: 0;
21
23
  padding: var(--s2);
22
24
  box-shadow: var(--shadow-sm);
23
25
 
24
26
  position: relative;
25
27
  display: flex;
26
- justify-content: center;
28
+ justify-content: var(--toolbar-justify);
27
29
  align-items: center;
28
30
  }
29
31
 
@@ -72,7 +74,7 @@
72
74
 
73
75
  @media screen and (max-width: 992px) {
74
76
  .j-toolbar {
75
- justify-content: flex-start;
77
+ --toolbar-justify: flex-start;
76
78
  }
77
79
  }
78
80
  }
@@ -6,9 +6,7 @@
6
6
 
7
7
  background: var(--tooltip-bg);
8
8
  color: var(--tooltip-fg);
9
- border-width: 1px;
10
- border-style: solid;
11
- border-color: var(--tooltip-border-color);
9
+ border: 1px solid var(--tooltip-border-color);
12
10
  border-radius: var(--radius-md);
13
11
  max-width: 260px;
14
12
  padding: 2px 4px;