@riebeckite/theme-rerurate 0.0.35 → 0.0.37
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 +14 -2
- package/README_ja.md +14 -2
- package/package.json +2 -2
- package/styles/theme.css +72 -20
package/README.md
CHANGED
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
|
|
9
9
|
`@riebeckite/theme-rerurate` provides the official **Rerurate** theme. Its theme identity is `rerurate`. Rerurate's paper-and-ink reading theme with optional celestial details.
|
|
10
10
|
|
|
11
|
+
## Rendered example
|
|
12
|
+
|
|
13
|
+
**Light**
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
**Dark**
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
11
21
|
## Installation
|
|
12
22
|
|
|
13
23
|
```sh
|
|
@@ -34,7 +44,7 @@ export default defineConfig({
|
|
|
34
44
|
| --- | --- | --- |
|
|
35
45
|
| `colorMode` | `"light"`, `"dark"`, `"system"` | Chooses the color mode. `"system"` follows the browser preference. |
|
|
36
46
|
| `layout` | `"article"`, `"sidebar"`, `"full-width"` | Chooses the page layout. |
|
|
37
|
-
| `preset` |
|
|
47
|
+
| `preset` | `reading` | Applies a named set of theme settings before explicit `settings`. |
|
|
38
48
|
| `settings` | object | Overrides the settings listed below. Unknown keys and invalid values are rejected. |
|
|
39
49
|
| `stylesheets` | string array | Loads site-owned stylesheets after the theme CSS. |
|
|
40
50
|
|
|
@@ -57,7 +67,9 @@ Resolution order is schema defaults, then the selected preset, then explicit `se
|
|
|
57
67
|
|
|
58
68
|
## Presets
|
|
59
69
|
|
|
60
|
-
|
|
70
|
+
| Preset | Label | Applied settings |
|
|
71
|
+
| --- | --- | --- |
|
|
72
|
+
| `reading` | Reading | `{ typography: "serif" }` |
|
|
61
73
|
|
|
62
74
|
## CSS and attributes
|
|
63
75
|
|
package/README_ja.md
CHANGED
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
|
|
9
9
|
`@riebeckite/theme-rerurate` は公式テーマ **Rerurate** を提供します。テーマ ID は `rerurate` です。紙とインクを基調に、天体装飾を任意で加えられる Rerurate のテーマです。
|
|
10
10
|
|
|
11
|
+
## 実際の表示例
|
|
12
|
+
|
|
13
|
+
**ライト**
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
**ダーク**
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
11
21
|
## インストール
|
|
12
22
|
|
|
13
23
|
```sh
|
|
@@ -34,7 +44,7 @@ export default defineConfig({
|
|
|
34
44
|
| --- | --- | --- |
|
|
35
45
|
| `colorMode` | `"light"`、`"dark"`、`"system"` | カラーモードを選びます。`"system"` はブラウザの設定に従います。 |
|
|
36
46
|
| `layout` | `"article"`、`"sidebar"`、`"full-width"` | ページレイアウトを選びます。 |
|
|
37
|
-
| `preset` |
|
|
47
|
+
| `preset` | `reading` | 明示した `settings` より先に、名前付きのテーマ設定セットを適用します。 |
|
|
38
48
|
| `settings` | object | 下記の設定を上書きします。不明なキーや不正な値は拒否されます。 |
|
|
39
49
|
| `stylesheets` | string array | テーマ CSS の後にサイト固有のスタイルシートを読み込みます。 |
|
|
40
50
|
|
|
@@ -57,7 +67,9 @@ export default defineConfig({
|
|
|
57
67
|
|
|
58
68
|
## プリセット
|
|
59
69
|
|
|
60
|
-
|
|
70
|
+
| プリセット | ラベル | 適用する設定 |
|
|
71
|
+
| --- | --- | --- |
|
|
72
|
+
| `reading` | Reading | `{ typography: "serif" }` |
|
|
61
73
|
|
|
62
74
|
## CSS と属性
|
|
63
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/theme-rerurate",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
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.37"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
package/styles/theme.css
CHANGED
|
@@ -1022,50 +1022,95 @@
|
|
|
1022
1022
|
|
|
1023
1023
|
:is(:root, .rb-theme-root)[data-rb-theme="rerurate"] .rb-article-header {
|
|
1024
1024
|
background-image:
|
|
1025
|
-
var(--rr-cosmic-stars, none),
|
|
1026
|
-
var(--rr-cosmic-constellation, none),
|
|
1025
|
+
var(--rr-cosmic-stars, none), var(--rr-cosmic-constellation, none),
|
|
1027
1026
|
var(--rr-cosmic-orbit, none);
|
|
1028
1027
|
background-repeat: no-repeat;
|
|
1029
|
-
background-position:
|
|
1028
|
+
background-position:
|
|
1029
|
+
right 0.25rem top 0.25rem,
|
|
1030
|
+
left 0.5rem bottom 0.25rem,
|
|
1030
1031
|
center;
|
|
1031
|
-
background-size:
|
|
1032
|
+
background-size:
|
|
1033
|
+
9rem 6rem,
|
|
1034
|
+
11rem 7rem,
|
|
1035
|
+
13rem 4.5rem;
|
|
1032
1036
|
}
|
|
1033
1037
|
|
|
1034
|
-
:is(
|
|
1038
|
+
:is(
|
|
1039
|
+
:root,
|
|
1040
|
+
.rb-theme-root
|
|
1041
|
+
)[data-rb-theme="rerurate"][data-rb-setting-stars="true"] {
|
|
1035
1042
|
--rr-cosmic-stars: var(--rr-svg-stars);
|
|
1036
1043
|
}
|
|
1037
1044
|
|
|
1038
|
-
:is(
|
|
1045
|
+
:is(
|
|
1046
|
+
:root,
|
|
1047
|
+
.rb-theme-root
|
|
1048
|
+
)[data-rb-theme="rerurate"][data-rb-setting-constellation="true"] {
|
|
1039
1049
|
--rr-cosmic-constellation: var(--rr-svg-constellation);
|
|
1040
1050
|
}
|
|
1041
1051
|
|
|
1042
|
-
:is(
|
|
1052
|
+
:is(
|
|
1053
|
+
:root,
|
|
1054
|
+
.rb-theme-root
|
|
1055
|
+
)[data-rb-theme="rerurate"][data-rb-setting-orbit="true"] {
|
|
1043
1056
|
--rr-cosmic-orbit: var(--rr-svg-orbit);
|
|
1044
1057
|
}
|
|
1045
1058
|
|
|
1046
|
-
:is(
|
|
1047
|
-
:
|
|
1048
|
-
|
|
1059
|
+
:is(
|
|
1060
|
+
:root,
|
|
1061
|
+
.rb-theme-root
|
|
1062
|
+
)[data-rb-theme="rerurate"][data-rb-setting-stars="true"]
|
|
1063
|
+
.rb-article-header,
|
|
1064
|
+
:is(
|
|
1065
|
+
:root,
|
|
1066
|
+
.rb-theme-root
|
|
1067
|
+
)[data-rb-theme="rerurate"][data-rb-setting-constellation="true"]
|
|
1068
|
+
.rb-article-header,
|
|
1069
|
+
:is(
|
|
1070
|
+
:root,
|
|
1071
|
+
.rb-theme-root
|
|
1072
|
+
)[data-rb-theme="rerurate"][data-rb-setting-orbit="true"]
|
|
1073
|
+
.rb-article-header {
|
|
1049
1074
|
position: relative;
|
|
1050
1075
|
}
|
|
1051
1076
|
|
|
1052
|
-
:is(
|
|
1053
|
-
:
|
|
1077
|
+
:is(
|
|
1078
|
+
:root,
|
|
1079
|
+
.rb-theme-root
|
|
1080
|
+
)[data-rb-theme="rerurate"][data-rb-setting-stars="true"]
|
|
1081
|
+
.rb-article-content,
|
|
1082
|
+
:is(
|
|
1083
|
+
:root,
|
|
1084
|
+
.rb-theme-root
|
|
1085
|
+
)[data-rb-theme="rerurate"][data-rb-setting-stars="true"]
|
|
1086
|
+
.rb-page-body {
|
|
1054
1087
|
background-image: var(--rr-svg-stars);
|
|
1055
1088
|
background-repeat: repeat;
|
|
1056
1089
|
background-size: 180px 120px;
|
|
1057
1090
|
background-position: center;
|
|
1058
1091
|
}
|
|
1059
1092
|
|
|
1060
|
-
:is(
|
|
1061
|
-
:
|
|
1093
|
+
:is(
|
|
1094
|
+
:root,
|
|
1095
|
+
.rb-theme-root
|
|
1096
|
+
)[data-rb-theme="rerurate"][data-rb-setting-constellation="true"]
|
|
1097
|
+
.rb-sidebar,
|
|
1098
|
+
:is(
|
|
1099
|
+
:root,
|
|
1100
|
+
.rb-theme-root
|
|
1101
|
+
)[data-rb-theme="rerurate"][data-rb-setting-constellation="true"]
|
|
1102
|
+
.rr-table-of-contents {
|
|
1062
1103
|
background-image: var(--rr-svg-constellation);
|
|
1063
1104
|
background-repeat: repeat;
|
|
1064
1105
|
background-size: 140px 90px;
|
|
1065
1106
|
background-position: center;
|
|
1066
1107
|
}
|
|
1067
1108
|
|
|
1068
|
-
:is(
|
|
1109
|
+
:is(
|
|
1110
|
+
:root,
|
|
1111
|
+
.rb-theme-root
|
|
1112
|
+
)[data-rb-theme="rerurate"][data-rb-setting-orbit="true"]
|
|
1113
|
+
.rb-article-footer {
|
|
1069
1114
|
background-image: var(--rr-svg-orbit);
|
|
1070
1115
|
background-repeat: repeat;
|
|
1071
1116
|
background-size: 160px 60px;
|
|
@@ -1092,24 +1137,31 @@
|
|
|
1092
1137
|
@media (prefers-reduced-motion: no-preference) {
|
|
1093
1138
|
:is(:root, .rb-theme-root)[data-rb-theme="rerurate"]:not(
|
|
1094
1139
|
[data-rb-setting-motion="false"]
|
|
1095
|
-
)[data-rb-setting-stars="true"]
|
|
1140
|
+
)[data-rb-setting-stars="true"]
|
|
1141
|
+
.rb-article-header,
|
|
1096
1142
|
:is(:root, .rb-theme-root)[data-rb-theme="rerurate"]:not(
|
|
1097
1143
|
[data-rb-setting-motion="false"]
|
|
1098
|
-
)[data-rb-setting-constellation="true"]
|
|
1144
|
+
)[data-rb-setting-constellation="true"]
|
|
1145
|
+
.rb-article-header,
|
|
1099
1146
|
:is(:root, .rb-theme-root)[data-rb-theme="rerurate"]:not(
|
|
1100
1147
|
[data-rb-setting-motion="false"]
|
|
1101
|
-
)[data-rb-setting-orbit="true"]
|
|
1148
|
+
)[data-rb-setting-orbit="true"]
|
|
1149
|
+
.rb-article-header {
|
|
1102
1150
|
animation: rr-cosmic-drift 28s linear infinite;
|
|
1103
1151
|
}
|
|
1104
1152
|
}
|
|
1105
1153
|
|
|
1106
1154
|
@keyframes rr-cosmic-drift {
|
|
1107
1155
|
from {
|
|
1108
|
-
background-position:
|
|
1156
|
+
background-position:
|
|
1157
|
+
right 0.25rem top 0.25rem,
|
|
1158
|
+
left 0.5rem bottom 0.25rem,
|
|
1109
1159
|
center;
|
|
1110
1160
|
}
|
|
1111
1161
|
to {
|
|
1112
|
-
background-position:
|
|
1162
|
+
background-position:
|
|
1163
|
+
right 0.25rem top 1.25rem,
|
|
1164
|
+
left 0.5rem bottom 1.25rem,
|
|
1113
1165
|
center;
|
|
1114
1166
|
}
|
|
1115
1167
|
}
|