@riebeckite/theme-rerurate 0.0.16 → 0.0.18

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 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/en/docs/reference/plugin-api.md)
125
+ - [Plugin guide](../../../docs/docs/reference/plugin-api.en.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/ja/docs/reference/theme-api.md)
65
+ - [テーマシステム](../../../docs/docs/reference/theme-api.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.16",
3
+ "version": "0.0.18",
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.16"
19
+ "@riebeckite/core": "0.0.18"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
package/styles/theme.css CHANGED
@@ -250,7 +250,6 @@
250
250
  .rb-article-body
251
251
  :is(ul, ol) {
252
252
  margin: 1.1em 0;
253
- padding-left: 1.4em;
254
253
  }
255
254
 
256
255
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body li {
@@ -521,7 +520,7 @@
521
520
  .rb-article-body
522
521
  blockquote {
523
522
  position: relative;
524
- margin: 1.75rem 0;
523
+ margin: 1.75rem 0 0;
525
524
  padding: 0.1rem 0 0.1rem 3.25rem;
526
525
  border: 0;
527
526
  background: none;
@@ -580,18 +579,24 @@
580
579
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
581
580
  .rb-article-body
582
581
  pre:not(:where(.rr-code *)) {
583
- margin: 1.75rem 0;
582
+ margin: 1.75rem 0 0;
584
583
  padding: 0.85rem 1rem;
585
584
  border: 1px solid var(--rb-color-border);
586
585
  border-radius: 0;
587
- background: var(--rb-color-code-background);
588
- color: var(--rb-color-ink);
586
+ background: #1c1a17;
587
+ color: #f6efe2;
589
588
  font-family: var(--rb-font-mono);
590
589
  font-size: 0.85rem;
591
590
  line-height: 1.65;
592
591
  overflow-x: auto;
593
592
  }
594
593
 
594
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
595
+ .rb-article-body
596
+ pre:not(:where(.rr-code *)):has(+ :is(h1, h2)) {
597
+ margin-bottom: 1.75rem;
598
+ }
599
+
595
600
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
596
601
  .rb-article-body
597
602
  pre:not(:where(.rr-code *))
@@ -657,11 +662,55 @@
657
662
 
658
663
  /* ---- Plugin roots: flatten radii and normalise rules. ---- */
659
664
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-code {
660
- margin: 1.75rem 0;
665
+ margin: 1.75rem 0 0;
661
666
  border: 1px solid var(--rb-color-border);
662
667
  border-radius: 0;
663
668
  }
664
669
 
670
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
671
+ .rr-code:not([data-terminal="true"]) {
672
+ --rr-code-paper: #1c1a17;
673
+ --rr-code-ink: #f6efe2;
674
+ }
675
+
676
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
677
+ .rr-code:not([data-terminal="true"])
678
+ .rr-code__code,
679
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
680
+ .rr-code:not([data-terminal="true"])
681
+ .rr-code__code
682
+ span {
683
+ color: var(--shiki-dark, inherit);
684
+ }
685
+
686
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
687
+ .rb-article-body
688
+ pre:not(:where(.rr-code *)) {
689
+ background: var(--rb-color-code-background);
690
+ color: var(--rb-color-ink);
691
+ }
692
+
693
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
694
+ .rr-code:not([data-terminal="true"]) {
695
+ --rr-code-paper: var(--rb-color-code-background);
696
+ --rr-code-ink: var(--rb-color-ink);
697
+ }
698
+
699
+ @media (prefers-color-scheme: dark) {
700
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
701
+ .rb-article-body
702
+ pre:not(:where(.rr-code *)) {
703
+ background: var(--rb-color-code-background);
704
+ color: var(--rb-color-ink);
705
+ }
706
+
707
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
708
+ .rr-code:not([data-terminal="true"]) {
709
+ --rr-code-paper: var(--rb-color-code-background);
710
+ --rr-code-ink: var(--rb-color-ink);
711
+ }
712
+ }
713
+
665
714
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-code pre {
666
715
  margin: 0;
667
716
  border: 0;
@@ -691,7 +740,7 @@
691
740
 
692
741
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
693
742
  .rr-callout
694
- .callout-title {
743
+ .rr-callout__title {
695
744
  font-family: var(--rb-font-heading);
696
745
  font-size: 0.72rem;
697
746
  font-weight: 600;
@@ -702,7 +751,7 @@
702
751
 
703
752
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
704
753
  .rr-callout
705
- .callout-icon {
754
+ .rr-callout__icon {
706
755
  color: var(--rb-color-accent);
707
756
  }
708
757