@riebeckite/theme-rerurate 0.0.27 → 0.0.29
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_ja.md +2 -2
- package/package.json +2 -2
- package/styles/theme.css +34 -89
package/README_ja.md
CHANGED
|
@@ -80,8 +80,8 @@ Rerurate の視覚表現をもとにした Theme です。
|
|
|
80
80
|
npm install @riebeckite/theme-rerurate
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
Theme の factory
|
|
83
|
+
Theme の factory 名と設定項目は、実装とこのページを一次情報として確認してください。`riebeckite.config.ts` の `theme` に設定して利用します。
|
|
84
84
|
|
|
85
85
|
## 詳細仕様
|
|
86
86
|
|
|
87
|
-
設定項目や Theme 固有の仕様は
|
|
87
|
+
設定項目や Theme 固有の仕様は このページを参照してください。Theme の仕組みは [Theme System](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/framework/theme-system.ja.md)、Theme を作る場合は [Writing a Theme](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/themes/writing-a-theme.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.29",
|
|
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.29"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
package/styles/theme.css
CHANGED
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
var(--rb-color-ink) 8%,
|
|
39
39
|
transparent
|
|
40
40
|
);
|
|
41
|
-
--rb-color-code-surface: #1c1a17;
|
|
42
41
|
--rb-color-overlay: rgb(0 0 0 / 0.4);
|
|
43
42
|
--rb-font-body:
|
|
44
43
|
Futura, "Futura PT", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans",
|
|
@@ -75,11 +74,6 @@
|
|
|
75
74
|
var(--rb-color-ink) 12%,
|
|
76
75
|
transparent
|
|
77
76
|
);
|
|
78
|
-
--rb-color-code-surface: color-mix(
|
|
79
|
-
in srgb,
|
|
80
|
-
var(--rb-color-ink) 12%,
|
|
81
|
-
var(--rb-color-paper)
|
|
82
|
-
);
|
|
83
77
|
--rb-color-overlay: rgb(0 0 0 / 0.6);
|
|
84
78
|
}
|
|
85
79
|
|
|
@@ -99,11 +93,6 @@
|
|
|
99
93
|
var(--rb-color-ink) 12%,
|
|
100
94
|
transparent
|
|
101
95
|
);
|
|
102
|
-
--rb-color-code-surface: color-mix(
|
|
103
|
-
in srgb,
|
|
104
|
-
var(--rb-color-ink) 12%,
|
|
105
|
-
var(--rb-color-paper)
|
|
106
|
-
);
|
|
107
96
|
--rb-color-overlay: rgb(0 0 0 / 0.6);
|
|
108
97
|
}
|
|
109
98
|
}
|
|
@@ -596,14 +585,34 @@
|
|
|
596
585
|
padding: 0.85rem 1rem;
|
|
597
586
|
border: 1px solid var(--rb-color-border);
|
|
598
587
|
border-radius: 0;
|
|
599
|
-
background:
|
|
600
|
-
color:
|
|
588
|
+
background: var(--rb-color-ink);
|
|
589
|
+
color: var(--rb-color-paper);
|
|
601
590
|
font-family: var(--rb-font-mono);
|
|
602
591
|
font-size: 0.85rem;
|
|
603
592
|
line-height: 1.65;
|
|
604
593
|
overflow-x: auto;
|
|
605
594
|
}
|
|
606
595
|
|
|
596
|
+
:where(
|
|
597
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
|
|
598
|
+
.rb-article-content
|
|
599
|
+
pre:not(:where(.rr-code *))
|
|
600
|
+
) {
|
|
601
|
+
background: var(--rb-color-paper);
|
|
602
|
+
color: var(--rb-color-ink);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
@media (prefers-color-scheme: dark) {
|
|
606
|
+
:where(
|
|
607
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
|
|
608
|
+
.rb-article-content
|
|
609
|
+
pre:not(:where(.rr-code *))
|
|
610
|
+
) {
|
|
611
|
+
background: var(--rb-color-paper);
|
|
612
|
+
color: var(--rb-color-ink);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
607
616
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
608
617
|
.rb-article-content
|
|
609
618
|
pre:not(:where(.rr-code *)):has(+ :is(h1, h2)) {
|
|
@@ -684,52 +693,6 @@
|
|
|
684
693
|
border-radius: 0;
|
|
685
694
|
}
|
|
686
695
|
|
|
687
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
688
|
-
.rr-code:not([data-terminal="true"]) {
|
|
689
|
-
--rr-code-paper: var(--rb-color-code-surface);
|
|
690
|
-
--rr-code-ink: #f6efe2;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
694
|
-
.rr-code:not([data-terminal="true"])
|
|
695
|
-
.rr-code__code,
|
|
696
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
697
|
-
.rr-code:not([data-terminal="true"])
|
|
698
|
-
.rr-code__code
|
|
699
|
-
span {
|
|
700
|
-
color: var(--shiki-dark, inherit);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
:where(
|
|
704
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
|
|
705
|
-
.rb-article-content
|
|
706
|
-
pre:not(:where(.rr-code *))
|
|
707
|
-
) {
|
|
708
|
-
background: var(--rb-color-code-background);
|
|
709
|
-
color: var(--rb-color-ink);
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
|
|
713
|
-
.rr-code:not([data-terminal="true"]) {
|
|
714
|
-
--rr-code-ink: var(--rb-color-ink);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
@media (prefers-color-scheme: dark) {
|
|
718
|
-
:where(
|
|
719
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
|
|
720
|
-
.rb-article-content
|
|
721
|
-
pre:not(:where(.rr-code *))
|
|
722
|
-
) {
|
|
723
|
-
background: var(--rb-color-code-background);
|
|
724
|
-
color: var(--rb-color-ink);
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
|
|
728
|
-
.rr-code:not([data-terminal="true"]) {
|
|
729
|
-
--rr-code-ink: var(--rb-color-ink);
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
|
|
733
696
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-code pre {
|
|
734
697
|
margin: 0;
|
|
735
698
|
border: 0;
|
|
@@ -749,6 +712,13 @@
|
|
|
749
712
|
|
|
750
713
|
/* Callouts: flat Paper/Ink, 1px rule, Orange left rule, ALL CAPS title. */
|
|
751
714
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-callout {
|
|
715
|
+
--rr-callout-title-color: var(--rb-color-ink);
|
|
716
|
+
--rr-callout-title-font-family: var(--rb-font-heading);
|
|
717
|
+
--rr-callout-title-font-size: 0.72rem;
|
|
718
|
+
--rr-callout-title-font-weight: 600;
|
|
719
|
+
--rr-callout-title-letter-spacing: 0.16em;
|
|
720
|
+
--rr-callout-title-text-transform: uppercase;
|
|
721
|
+
--rr-callout-icon-color: var(--rb-color-accent);
|
|
752
722
|
padding: 1rem 1.25rem;
|
|
753
723
|
border: 1px solid var(--rb-color-border);
|
|
754
724
|
border-left: 3px solid var(--rb-color-accent);
|
|
@@ -762,39 +732,14 @@
|
|
|
762
732
|
color: var(--rb-color-ink);
|
|
763
733
|
}
|
|
764
734
|
|
|
765
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
766
|
-
.rr-callout
|
|
767
|
-
.rr-callout__title {
|
|
768
|
-
font-family: var(--rb-font-heading);
|
|
769
|
-
font-size: 0.72rem;
|
|
770
|
-
font-weight: 600;
|
|
771
|
-
letter-spacing: 0.16em;
|
|
772
|
-
text-transform: uppercase;
|
|
773
|
-
color: var(--rb-color-ink);
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
777
|
-
.rr-callout
|
|
778
|
-
.rr-callout__icon {
|
|
779
|
-
color: var(--rb-color-accent);
|
|
780
|
-
}
|
|
781
|
-
|
|
782
735
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-table-of-contents {
|
|
736
|
+
--rr-table-of-contents-eyebrow-font-size: 1rem;
|
|
737
|
+
--rr-table-of-contents-eyebrow-margin-block-end: 1rem;
|
|
738
|
+
--rr-table-of-contents-item-line-height: 22px;
|
|
783
739
|
padding: 1rem 1.15rem;
|
|
784
740
|
font-size: 0.9rem;
|
|
785
741
|
}
|
|
786
742
|
|
|
787
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
788
|
-
.rr-table-of-contents__eyebrow {
|
|
789
|
-
font-size: 1rem;
|
|
790
|
-
margin-bottom: 1rem;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"]
|
|
794
|
-
.rr-table-of-contents__item {
|
|
795
|
-
line-height: 22;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
743
|
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-backlinks {
|
|
799
744
|
margin-top: 3.5rem;
|
|
800
745
|
padding-top: 1.5rem;
|
|
@@ -837,8 +782,8 @@
|
|
|
837
782
|
border-radius: 0;
|
|
838
783
|
}
|
|
839
784
|
|
|
840
|
-
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-
|
|
841
|
-
border-radius: 0;
|
|
785
|
+
:is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-lightbox {
|
|
786
|
+
--rr-lightbox-image-border-radius: 0;
|
|
842
787
|
}
|
|
843
788
|
|
|
844
789
|
/* ---- Page-load composition: rule draw-in, title rise, rule -> diagram.
|