@riebeckite/theme-rerurate 0.0.15 → 0.0.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/styles/theme.css +64 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/theme-rerurate",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
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.15"
19
+ "@riebeckite/core": "0.0.17"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
package/styles/theme.css CHANGED
@@ -238,6 +238,10 @@
238
238
  line-height: 1.75;
239
239
  }
240
240
 
241
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-site-header {
242
+ border-bottom: 0;
243
+ }
244
+
241
245
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body p {
242
246
  margin: 1.1em 0;
243
247
  }
@@ -246,7 +250,6 @@
246
250
  .rb-article-body
247
251
  :is(ul, ol) {
248
252
  margin: 1.1em 0;
249
- padding-left: 1.4em;
250
253
  }
251
254
 
252
255
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body li {
@@ -517,7 +520,7 @@
517
520
  .rb-article-body
518
521
  blockquote {
519
522
  position: relative;
520
- margin: 1.75rem 0;
523
+ margin: 1.75rem 0 0;
521
524
  padding: 0.1rem 0 0.1rem 3.25rem;
522
525
  border: 0;
523
526
  background: none;
@@ -576,18 +579,24 @@
576
579
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
577
580
  .rb-article-body
578
581
  pre:not(:where(.rr-code *)) {
579
- margin: 1.75rem 0;
582
+ margin: 1.75rem 0 0;
580
583
  padding: 0.85rem 1rem;
581
584
  border: 1px solid var(--rb-color-border);
582
585
  border-radius: 0;
583
- background: var(--rb-color-code-background);
584
- color: var(--rb-color-ink);
586
+ background: #1c1a17;
587
+ color: #f6efe2;
585
588
  font-family: var(--rb-font-mono);
586
589
  font-size: 0.85rem;
587
590
  line-height: 1.65;
588
591
  overflow-x: auto;
589
592
  }
590
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
+
591
600
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
592
601
  .rb-article-body
593
602
  pre:not(:where(.rr-code *))
@@ -599,7 +608,9 @@
599
608
  }
600
609
 
601
610
  /* ---- Tables: hairline rules, no card chrome. ---- */
602
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body table {
611
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
612
+ .rb-article-body
613
+ table:not(:where(.rr-diff-history *)) {
603
614
  margin: 1.75rem 0;
604
615
  font-size: 0.92em;
605
616
  }
@@ -651,11 +662,55 @@
651
662
 
652
663
  /* ---- Plugin roots: flatten radii and normalise rules. ---- */
653
664
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-code {
654
- margin: 1.75rem 0;
665
+ margin: 1.75rem 0 0;
655
666
  border: 1px solid var(--rb-color-border);
656
667
  border-radius: 0;
657
668
  }
658
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
+
659
714
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-code pre {
660
715
  margin: 0;
661
716
  border: 0;
@@ -685,7 +740,7 @@
685
740
 
686
741
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
687
742
  .rr-callout
688
- .callout-title {
743
+ .rr-callout__title {
689
744
  font-family: var(--rb-font-heading);
690
745
  font-size: 0.72rem;
691
746
  font-weight: 600;
@@ -696,7 +751,7 @@
696
751
 
697
752
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
698
753
  .rr-callout
699
- .callout-icon {
754
+ .rr-callout__icon {
700
755
  color: var(--rb-color-accent);
701
756
  }
702
757