@riebeckite/theme-rerurate 0.0.18 → 0.0.20
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/README.md +1 -1
- package/README_ja.md +1 -1
- package/package.json +2 -2
- package/styles/theme.css +75 -50
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ Red and Green also back the functional `danger` / `success` tokens.
|
|
|
122
122
|
|
|
123
123
|
## See also
|
|
124
124
|
|
|
125
|
-
- [Plugin guide](../../../docs/docs/reference/plugin-api.
|
|
125
|
+
- [Plugin guide](../../../docs/docs/reference/plugin-api.md)
|
|
126
126
|
- [`@riebeckite/theme-default`](../default/README.md)
|
|
127
127
|
- [`@riebeckite/theme-sakura`](../sakura/README.md)
|
|
128
128
|
- [`@riebeckite/theme-tokyonight`](../tokyonight/README.md)
|
package/README_ja.md
CHANGED
|
@@ -62,7 +62,7 @@ export default defineConfig({
|
|
|
62
62
|
|
|
63
63
|
## 関連資料
|
|
64
64
|
|
|
65
|
-
- [テーマシステム](../../../docs/docs/reference/theme-api.md)
|
|
65
|
+
- [テーマシステム](../../../docs/docs/reference/theme-api.ja.md)
|
|
66
66
|
- [`@riebeckite/theme-default`](../default/README_ja.md)
|
|
67
67
|
- [`@riebeckite/theme-sakura`](../sakura/README_ja.md)
|
|
68
68
|
- [`@riebeckite/theme-tokyonight`](../tokyonight/README_ja.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/theme-rerurate",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/src/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"./styles/theme.css": "./styles/theme.css"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@riebeckite/core": "0.0.
|
|
19
|
+
"@riebeckite/core": "0.0.20"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
package/styles/theme.css
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
var(--rb-color-ink) 8%,
|
|
39
39
|
transparent
|
|
40
40
|
);
|
|
41
|
+
--rb-color-code-surface: #1c1a17;
|
|
41
42
|
--rb-color-overlay: rgb(0 0 0 / 0.4);
|
|
42
43
|
--rb-font-body:
|
|
43
44
|
Futura, "Futura PT", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans",
|
|
@@ -74,6 +75,11 @@
|
|
|
74
75
|
var(--rb-color-ink) 12%,
|
|
75
76
|
transparent
|
|
76
77
|
);
|
|
78
|
+
--rb-color-code-surface: color-mix(
|
|
79
|
+
in srgb,
|
|
80
|
+
var(--rb-color-ink) 12%,
|
|
81
|
+
var(--rb-color-paper)
|
|
82
|
+
);
|
|
77
83
|
--rb-color-overlay: rgb(0 0 0 / 0.6);
|
|
78
84
|
}
|
|
79
85
|
|
|
@@ -93,6 +99,11 @@
|
|
|
93
99
|
var(--rb-color-ink) 12%,
|
|
94
100
|
transparent
|
|
95
101
|
);
|
|
102
|
+
--rb-color-code-surface: color-mix(
|
|
103
|
+
in srgb,
|
|
104
|
+
var(--rb-color-ink) 12%,
|
|
105
|
+
var(--rb-color-paper)
|
|
106
|
+
);
|
|
96
107
|
--rb-color-overlay: rgb(0 0 0 / 0.6);
|
|
97
108
|
}
|
|
98
109
|
}
|
|
@@ -160,7 +171,7 @@
|
|
|
160
171
|
:root,
|
|
161
172
|
.rb-theme-root
|
|
162
173
|
)[data-theme-name="rerurate"][data-rerurate-initial="on"]
|
|
163
|
-
.rb-article-
|
|
174
|
+
.rb-article-content
|
|
164
175
|
p:first-of-type::first-letter {
|
|
165
176
|
float: left;
|
|
166
177
|
margin: 0.02em 0.12em 0 0;
|
|
@@ -233,7 +244,7 @@
|
|
|
233
244
|
}
|
|
234
245
|
|
|
235
246
|
/* ---- Body rhythm: readable body, kept off the display treatment. ---- */
|
|
236
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-
|
|
247
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content {
|
|
237
248
|
font-family: var(--rb-font-body);
|
|
238
249
|
line-height: 1.75;
|
|
239
250
|
}
|
|
@@ -242,22 +253,22 @@
|
|
|
242
253
|
border-bottom: 0;
|
|
243
254
|
}
|
|
244
255
|
|
|
245
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-
|
|
256
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content p {
|
|
246
257
|
margin: 1.1em 0;
|
|
247
258
|
}
|
|
248
259
|
|
|
249
260
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
250
|
-
.rb-article-
|
|
261
|
+
.rb-article-content
|
|
251
262
|
:is(ul, ol) {
|
|
252
263
|
margin: 1.1em 0;
|
|
253
264
|
}
|
|
254
265
|
|
|
255
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-
|
|
266
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content li {
|
|
256
267
|
margin: 0.35em 0;
|
|
257
268
|
}
|
|
258
269
|
|
|
259
270
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
260
|
-
.rb-article-
|
|
271
|
+
.rb-article-content
|
|
261
272
|
li::marker {
|
|
262
273
|
color: var(--rb-color-accent);
|
|
263
274
|
}
|
|
@@ -334,7 +345,7 @@
|
|
|
334
345
|
}
|
|
335
346
|
|
|
336
347
|
/* ---- Headings: hierarchy from size, weight and whitespace. ---- */
|
|
337
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-
|
|
348
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content h2 {
|
|
338
349
|
margin: 2.75rem 0 0.9rem;
|
|
339
350
|
padding-top: calc(3px + 0.6rem);
|
|
340
351
|
font-family: var(--rb-font-heading);
|
|
@@ -350,7 +361,7 @@
|
|
|
350
361
|
background-size: 2.75rem 3px;
|
|
351
362
|
}
|
|
352
363
|
|
|
353
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-
|
|
364
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content h3 {
|
|
354
365
|
margin: 2rem 0 0.6rem;
|
|
355
366
|
font-family: var(--rb-font-heading);
|
|
356
367
|
font-size: 1.05rem;
|
|
@@ -358,7 +369,7 @@
|
|
|
358
369
|
line-height: 1.3;
|
|
359
370
|
}
|
|
360
371
|
|
|
361
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-
|
|
372
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content h4 {
|
|
362
373
|
margin: 1.5rem 0 0.5rem;
|
|
363
374
|
font-family: var(--rb-font-heading);
|
|
364
375
|
font-size: 0.9rem;
|
|
@@ -367,7 +378,7 @@
|
|
|
367
378
|
}
|
|
368
379
|
|
|
369
380
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
370
|
-
.rb-article-
|
|
381
|
+
.rb-article-content
|
|
371
382
|
:is(h5, h6) {
|
|
372
383
|
margin: 1.25rem 0 0.4rem;
|
|
373
384
|
font-size: 0.85rem;
|
|
@@ -385,10 +396,10 @@
|
|
|
385
396
|
)
|
|
386
397
|
:is(
|
|
387
398
|
.rb-article-header h1,
|
|
388
|
-
.rb-article-
|
|
389
|
-
.rb-article-
|
|
390
|
-
.rb-article-
|
|
391
|
-
.rb-article-
|
|
399
|
+
.rb-article-content h2,
|
|
400
|
+
.rb-article-content h3,
|
|
401
|
+
.rb-article-content h4,
|
|
402
|
+
.rb-article-content h5
|
|
392
403
|
)::before {
|
|
393
404
|
display: inline;
|
|
394
405
|
margin-right: 0.4em;
|
|
@@ -408,7 +419,7 @@
|
|
|
408
419
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not(
|
|
409
420
|
[data-rerurate-heading-marks="off"]
|
|
410
421
|
)
|
|
411
|
-
.rb-article-
|
|
422
|
+
.rb-article-content
|
|
412
423
|
h2::before {
|
|
413
424
|
content: "##";
|
|
414
425
|
}
|
|
@@ -416,7 +427,7 @@
|
|
|
416
427
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not(
|
|
417
428
|
[data-rerurate-heading-marks="off"]
|
|
418
429
|
)
|
|
419
|
-
.rb-article-
|
|
430
|
+
.rb-article-content
|
|
420
431
|
h3::before {
|
|
421
432
|
content: "###";
|
|
422
433
|
}
|
|
@@ -424,7 +435,7 @@
|
|
|
424
435
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not(
|
|
425
436
|
[data-rerurate-heading-marks="off"]
|
|
426
437
|
)
|
|
427
|
-
.rb-article-
|
|
438
|
+
.rb-article-content
|
|
428
439
|
h4::before {
|
|
429
440
|
content: "####";
|
|
430
441
|
}
|
|
@@ -432,7 +443,7 @@
|
|
|
432
443
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not(
|
|
433
444
|
[data-rerurate-heading-marks="off"]
|
|
434
445
|
)
|
|
435
|
-
.rb-article-
|
|
446
|
+
.rb-article-content
|
|
436
447
|
h5::before {
|
|
437
448
|
content: "#####";
|
|
438
449
|
}
|
|
@@ -451,7 +462,7 @@
|
|
|
451
462
|
:root,
|
|
452
463
|
.rb-theme-root
|
|
453
464
|
)[data-theme-name="rerurate"][data-rerurate-headings="large"]
|
|
454
|
-
.rb-article-
|
|
465
|
+
.rb-article-content
|
|
455
466
|
h2 {
|
|
456
467
|
font-size: 1.35rem;
|
|
457
468
|
}
|
|
@@ -460,7 +471,7 @@
|
|
|
460
471
|
:root,
|
|
461
472
|
.rb-theme-root
|
|
462
473
|
)[data-theme-name="rerurate"][data-rerurate-headings="large"]
|
|
463
|
-
.rb-article-
|
|
474
|
+
.rb-article-content
|
|
464
475
|
h3 {
|
|
465
476
|
font-size: 1.1rem;
|
|
466
477
|
}
|
|
@@ -469,7 +480,7 @@
|
|
|
469
480
|
:root,
|
|
470
481
|
.rb-theme-root
|
|
471
482
|
)[data-theme-name="rerurate"][data-rerurate-headings="large"]
|
|
472
|
-
.rb-article-
|
|
483
|
+
.rb-article-content
|
|
473
484
|
h4 {
|
|
474
485
|
font-size: 0.95rem;
|
|
475
486
|
}
|
|
@@ -477,7 +488,7 @@
|
|
|
477
488
|
/* ---- Links: Ink -> Orange, with the rule (underline) expanding. ---- */
|
|
478
489
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
479
490
|
:is(
|
|
480
|
-
.rb-article-
|
|
491
|
+
.rb-article-content,
|
|
481
492
|
.rb-article-footer,
|
|
482
493
|
.rb-article-meta,
|
|
483
494
|
.rr-table-of-contents,
|
|
@@ -502,7 +513,7 @@
|
|
|
502
513
|
|
|
503
514
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
504
515
|
:is(
|
|
505
|
-
.rb-article-
|
|
516
|
+
.rb-article-content,
|
|
506
517
|
.rb-article-footer,
|
|
507
518
|
.rb-article-meta,
|
|
508
519
|
.rr-table-of-contents,
|
|
@@ -517,7 +528,7 @@
|
|
|
517
528
|
|
|
518
529
|
/* ---- Blockquote: flat, marked by Orange quote chevrons. ---- */
|
|
519
530
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
520
|
-
.rb-article-
|
|
531
|
+
.rb-article-content
|
|
521
532
|
blockquote {
|
|
522
533
|
position: relative;
|
|
523
534
|
margin: 1.75rem 0 0;
|
|
@@ -529,7 +540,7 @@
|
|
|
529
540
|
}
|
|
530
541
|
|
|
531
542
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
532
|
-
.rb-article-
|
|
543
|
+
.rb-article-content
|
|
533
544
|
blockquote::before {
|
|
534
545
|
content: "";
|
|
535
546
|
position: absolute;
|
|
@@ -544,18 +555,18 @@
|
|
|
544
555
|
}
|
|
545
556
|
|
|
546
557
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
547
|
-
.rb-article-
|
|
558
|
+
.rb-article-content
|
|
548
559
|
blockquote
|
|
549
560
|
p:first-of-type::before,
|
|
550
561
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
551
|
-
.rb-article-
|
|
562
|
+
.rb-article-content
|
|
552
563
|
blockquote
|
|
553
564
|
p:last-of-type::after {
|
|
554
565
|
content: none;
|
|
555
566
|
}
|
|
556
567
|
|
|
557
568
|
/* ---- Rules: 1px Ink, Paper-safe, stopping at the text edge. ---- */
|
|
558
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-
|
|
569
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content hr {
|
|
559
570
|
width: 100%;
|
|
560
571
|
height: 1px;
|
|
561
572
|
margin: 3rem 0;
|
|
@@ -565,7 +576,7 @@
|
|
|
565
576
|
|
|
566
577
|
/* ---- Inline code and bare pre (guarded against the code plugin). ---- */
|
|
567
578
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
568
|
-
.rb-article-
|
|
579
|
+
.rb-article-content
|
|
569
580
|
:not(pre)
|
|
570
581
|
> code {
|
|
571
582
|
padding: 0.15em 0.4em;
|
|
@@ -576,9 +587,11 @@
|
|
|
576
587
|
font-size: 0.85em;
|
|
577
588
|
}
|
|
578
589
|
|
|
579
|
-
:
|
|
580
|
-
.rb-
|
|
581
|
-
|
|
590
|
+
:where(
|
|
591
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
592
|
+
.rb-article-content
|
|
593
|
+
pre:not(:where(.rr-code *))
|
|
594
|
+
) {
|
|
582
595
|
margin: 1.75rem 0 0;
|
|
583
596
|
padding: 0.85rem 1rem;
|
|
584
597
|
border: 1px solid var(--rb-color-border);
|
|
@@ -592,13 +605,13 @@
|
|
|
592
605
|
}
|
|
593
606
|
|
|
594
607
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
595
|
-
.rb-article-
|
|
608
|
+
.rb-article-content
|
|
596
609
|
pre:not(:where(.rr-code *)):has(+ :is(h1, h2)) {
|
|
597
610
|
margin-bottom: 1.75rem;
|
|
598
611
|
}
|
|
599
612
|
|
|
600
613
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
601
|
-
.rb-article-
|
|
614
|
+
.rb-article-content
|
|
602
615
|
pre:not(:where(.rr-code *))
|
|
603
616
|
code {
|
|
604
617
|
padding: 0;
|
|
@@ -609,14 +622,14 @@
|
|
|
609
622
|
|
|
610
623
|
/* ---- Tables: hairline rules, no card chrome. ---- */
|
|
611
624
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
612
|
-
.rb-article-
|
|
625
|
+
.rb-article-content
|
|
613
626
|
table:not(:where(.rr-diff-history *)) {
|
|
614
627
|
margin: 1.75rem 0;
|
|
615
628
|
font-size: 0.92em;
|
|
616
629
|
}
|
|
617
630
|
|
|
618
631
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
619
|
-
.rb-article-
|
|
632
|
+
.rb-article-content
|
|
620
633
|
:is(th, td) {
|
|
621
634
|
padding: 0.55rem 0.75rem;
|
|
622
635
|
border-bottom: 1px solid var(--rb-color-border);
|
|
@@ -625,7 +638,7 @@
|
|
|
625
638
|
}
|
|
626
639
|
|
|
627
640
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
628
|
-
.rb-article-
|
|
641
|
+
.rb-article-content
|
|
629
642
|
thead
|
|
630
643
|
th {
|
|
631
644
|
border-bottom: 1px solid var(--rb-color-ink);
|
|
@@ -634,7 +647,7 @@
|
|
|
634
647
|
}
|
|
635
648
|
|
|
636
649
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
637
|
-
.rb-article-
|
|
650
|
+
.rb-article-content
|
|
638
651
|
tbody
|
|
639
652
|
tr:last-child
|
|
640
653
|
:is(th, td) {
|
|
@@ -656,7 +669,12 @@
|
|
|
656
669
|
}
|
|
657
670
|
|
|
658
671
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
659
|
-
:is(
|
|
672
|
+
:is(
|
|
673
|
+
.rb-article-content img,
|
|
674
|
+
.rb-article-content video,
|
|
675
|
+
.rr-media,
|
|
676
|
+
.rr-attachment
|
|
677
|
+
) {
|
|
660
678
|
border-radius: 0;
|
|
661
679
|
}
|
|
662
680
|
|
|
@@ -669,7 +687,7 @@
|
|
|
669
687
|
|
|
670
688
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
671
689
|
.rr-code:not([data-terminal="true"]) {
|
|
672
|
-
--rr-code-paper:
|
|
690
|
+
--rr-code-paper: var(--rb-color-code-surface);
|
|
673
691
|
--rr-code-ink: #f6efe2;
|
|
674
692
|
}
|
|
675
693
|
|
|
@@ -683,30 +701,32 @@
|
|
|
683
701
|
color: var(--shiki-dark, inherit);
|
|
684
702
|
}
|
|
685
703
|
|
|
686
|
-
:
|
|
687
|
-
.rb-
|
|
688
|
-
|
|
704
|
+
:where(
|
|
705
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
|
|
706
|
+
.rb-article-content
|
|
707
|
+
pre:not(:where(.rr-code *))
|
|
708
|
+
) {
|
|
689
709
|
background: var(--rb-color-code-background);
|
|
690
710
|
color: var(--rb-color-ink);
|
|
691
711
|
}
|
|
692
712
|
|
|
693
713
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
|
|
694
714
|
.rr-code:not([data-terminal="true"]) {
|
|
695
|
-
--rr-code-paper: var(--rb-color-code-background);
|
|
696
715
|
--rr-code-ink: var(--rb-color-ink);
|
|
697
716
|
}
|
|
698
717
|
|
|
699
718
|
@media (prefers-color-scheme: dark) {
|
|
700
|
-
:
|
|
701
|
-
.rb-
|
|
702
|
-
|
|
719
|
+
:where(
|
|
720
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
|
|
721
|
+
.rb-article-content
|
|
722
|
+
pre:not(:where(.rr-code *))
|
|
723
|
+
) {
|
|
703
724
|
background: var(--rb-color-code-background);
|
|
704
725
|
color: var(--rb-color-ink);
|
|
705
726
|
}
|
|
706
727
|
|
|
707
728
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
|
|
708
729
|
.rr-code:not([data-terminal="true"]) {
|
|
709
|
-
--rr-code-paper: var(--rb-color-code-background);
|
|
710
730
|
--rr-code-ink: var(--rb-color-ink);
|
|
711
731
|
}
|
|
712
732
|
}
|
|
@@ -723,6 +743,11 @@
|
|
|
723
743
|
border-radius: 0;
|
|
724
744
|
}
|
|
725
745
|
|
|
746
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-code-tabs .rr-code {
|
|
747
|
+
margin-block: 0;
|
|
748
|
+
border: 0;
|
|
749
|
+
}
|
|
750
|
+
|
|
726
751
|
/* Callouts: flat Paper/Ink, 1px rule, Orange left rule, ALL CAPS title. */
|
|
727
752
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-callout {
|
|
728
753
|
padding: 1rem 1.25rem;
|
|
@@ -761,13 +786,13 @@
|
|
|
761
786
|
}
|
|
762
787
|
|
|
763
788
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
764
|
-
.table-of-contents__eyebrow {
|
|
789
|
+
.rr-table-of-contents__eyebrow {
|
|
765
790
|
font-size: 1rem;
|
|
766
791
|
margin-bottom: 1rem;
|
|
767
792
|
}
|
|
768
793
|
|
|
769
794
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
770
|
-
.table-of-contents__item {
|
|
795
|
+
.rr-table-of-contents__item {
|
|
771
796
|
line-height: 22;
|
|
772
797
|
}
|
|
773
798
|
|