@riebeckite/theme-folio 0.0.0-stage → 0.0.34
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/LICENSE +201 -0
- package/README.md +65 -2
- package/README_ja.md +66 -0
- package/dist/src/index.d.ts +72 -0
- package/dist/src/index.js +71 -0
- package/package.json +54 -3
- package/styles/theme.css +339 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright Rerurate_514
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,66 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @riebeckite/theme-folio
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<!-- Generated from docs/docs/themes/folio.md. Edit the canonical documentation in docs/docs/themes and run `pnpm docs:sync`. -->
|
|
4
|
+
|
|
5
|
+
[日本語](./README_ja.md)
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
`@riebeckite/theme-folio` provides the official **Folio** theme. Its theme identity is `folio`. A spacious portfolio-style theme with editorial framing.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @riebeckite/theme-folio
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { defineConfig } from "@riebeckite/core";
|
|
21
|
+
import { folioTheme } from "@riebeckite/theme-folio";
|
|
22
|
+
|
|
23
|
+
export default defineConfig({
|
|
24
|
+
theme: folioTheme({
|
|
25
|
+
colorMode: "system",
|
|
26
|
+
settings: { typography: "system" },
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Common options
|
|
32
|
+
|
|
33
|
+
| Property | Values | Description |
|
|
34
|
+
| --- | --- | --- |
|
|
35
|
+
| `colorMode` | `"light"`, `"dark"`, `"system"` | Chooses the color mode. `"system"` follows the browser preference. |
|
|
36
|
+
| `layout` | `"article"`, `"sidebar"`, `"full-width"` | Chooses the page layout. |
|
|
37
|
+
| `preset` | — | This theme does not define presets. |
|
|
38
|
+
| `settings` | object | Overrides the settings listed below. Unknown keys and invalid values are rejected. |
|
|
39
|
+
| `stylesheets` | string array | Loads site-owned stylesheets after the theme CSS. |
|
|
40
|
+
|
|
41
|
+
Resolution order is schema defaults, then the selected preset, then explicit `settings`.
|
|
42
|
+
|
|
43
|
+
## Theme settings
|
|
44
|
+
|
|
45
|
+
| Property | Type | Default and allowed values | Effect |
|
|
46
|
+
| --- | --- | --- | --- |
|
|
47
|
+
| `typography` | select | `"system"` — `system`, `serif`, `sans`, `mono` | Selects the article typeface. |
|
|
48
|
+
| `accentColor` | color | `"#d6422c"` | Rules and interactive accents. |
|
|
49
|
+
| `articleWidth` | slider | `62` — 44–76, step 1 | Maximum article width in rem. |
|
|
50
|
+
| `fontSize` | slider | `1.05` — 0.95–1.25, step 0.05 | Article text size in rem. |
|
|
51
|
+
| `lineHeight` | slider | `1.65` — 1.5–2.1, step 0.05 | Article line height. |
|
|
52
|
+
| `motion` | boolean | `true` | Enables theme motion effects. |
|
|
53
|
+
| `ornament` | boolean | `true` | Show the corner mark in the article header. |
|
|
54
|
+
| `seal` | boolean | `false` | Add a circular folio stamp to the article header. |
|
|
55
|
+
|
|
56
|
+
## Presets
|
|
57
|
+
|
|
58
|
+
This theme does not define presets.
|
|
59
|
+
|
|
60
|
+
## CSS and attributes
|
|
61
|
+
|
|
62
|
+
The root receives `data-rb-theme="folio"`, `data-rb-mode` for an explicit light or dark mode, and `data-rb-layout`. Every setting is reflected as `data-rb-setting-<name>`; color, number, and slider settings are also available as safe `--rb-setting-<name>` custom properties.
|
|
63
|
+
|
|
64
|
+
## See also
|
|
65
|
+
|
|
66
|
+
[Theme API](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/theme-api.md) and [Writing a theme](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/themes/writing-a-theme.md).
|
package/README_ja.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# @riebeckite/theme-folio
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/docs/themes/folio.ja.md. Edit the canonical documentation in docs/docs/themes and run `pnpm docs:sync`. -->
|
|
4
|
+
|
|
5
|
+
[English](./README.md)
|
|
6
|
+
|
|
7
|
+
## 概要
|
|
8
|
+
|
|
9
|
+
`@riebeckite/theme-folio` は公式テーマ **Folio** を提供します。テーマ ID は `folio` です。エディトリアルな枠組みを持つ、余白の広いポートフォリオ風テーマです。
|
|
10
|
+
|
|
11
|
+
## インストール
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @riebeckite/theme-folio
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## 使い方
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { defineConfig } from "@riebeckite/core";
|
|
21
|
+
import { folioTheme } from "@riebeckite/theme-folio";
|
|
22
|
+
|
|
23
|
+
export default defineConfig({
|
|
24
|
+
theme: folioTheme({
|
|
25
|
+
colorMode: "system",
|
|
26
|
+
settings: { typography: "system" },
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 共通オプション
|
|
32
|
+
|
|
33
|
+
| プロパティ | 値 | 説明 |
|
|
34
|
+
| --- | --- | --- |
|
|
35
|
+
| `colorMode` | `"light"`、`"dark"`、`"system"` | カラーモードを選びます。`"system"` はブラウザの設定に従います。 |
|
|
36
|
+
| `layout` | `"article"`、`"sidebar"`、`"full-width"` | ページレイアウトを選びます。 |
|
|
37
|
+
| `preset` | — | このテーマにはプリセットがありません。 |
|
|
38
|
+
| `settings` | object | 下記の設定を上書きします。不明なキーや不正な値は拒否されます。 |
|
|
39
|
+
| `stylesheets` | string array | テーマ CSS の後にサイト固有のスタイルシートを読み込みます。 |
|
|
40
|
+
|
|
41
|
+
設定スキーマの既定値、選択したプリセット、明示した `settings` の順に適用されます。
|
|
42
|
+
|
|
43
|
+
## テーマ設定
|
|
44
|
+
|
|
45
|
+
| プロパティ | 型 | 既定値と選択値 | 効果 |
|
|
46
|
+
| --- | --- | --- | --- |
|
|
47
|
+
| `typography` | select | 既定値 `"system"` — `system`、`serif`、`sans`、`mono` | 本文の書体を選びます。 |
|
|
48
|
+
| `accentColor` | color | 既定値 `"#d6422c"` | 操作要素などのアクセント色を設定します。 |
|
|
49
|
+
| `articleWidth` | slider | 既定値 `62` — 44–76、刻み 1 | 本文の最大幅を rem で設定します。 |
|
|
50
|
+
| `fontSize` | slider | 既定値 `1.05` — 0.95–1.25、刻み 0.05 | 本文の文字サイズを rem で設定します。 |
|
|
51
|
+
| `lineHeight` | slider | 既定値 `1.65` — 1.5–2.1、刻み 0.05 | 本文の行間を設定します。 |
|
|
52
|
+
| `motion` | boolean | 既定値 `true` | テーマの動きを有効にします。 |
|
|
53
|
+
| `ornament` | boolean | 既定値 `true` | 記事ヘッダーの装飾を表示します。 |
|
|
54
|
+
| `seal` | boolean | 既定値 `false` | 記事ヘッダーに円形のフォリオ印を追加します。 |
|
|
55
|
+
|
|
56
|
+
## プリセット
|
|
57
|
+
|
|
58
|
+
このテーマにはプリセットがありません。
|
|
59
|
+
|
|
60
|
+
## CSS と属性
|
|
61
|
+
|
|
62
|
+
ルートには `data-rb-theme="folio"`、明示的にライトまたはダークを選んだ場合は `data-rb-mode`、そして `data-rb-layout` が設定されます。すべての設定は `data-rb-setting-<name>` 属性に反映されます。color、number、slider 型の設定は安全な `--rb-setting-<name>` カスタムプロパティとしても利用できます。
|
|
63
|
+
|
|
64
|
+
## 関連情報
|
|
65
|
+
|
|
66
|
+
[Theme API](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/theme-api.md) と [テーマを書く](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/themes/writing-a-theme.ja.md) を参照してください。
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const folioTheme: import("@riebeckite/core").ThemeDefinition<{
|
|
2
|
+
readonly typography: {
|
|
3
|
+
readonly type: "select";
|
|
4
|
+
readonly label: "Typography";
|
|
5
|
+
readonly default: "system";
|
|
6
|
+
readonly options: readonly [{
|
|
7
|
+
readonly value: "system";
|
|
8
|
+
readonly label: "System";
|
|
9
|
+
}, {
|
|
10
|
+
readonly value: "serif";
|
|
11
|
+
readonly label: "Serif";
|
|
12
|
+
}, {
|
|
13
|
+
readonly value: "sans";
|
|
14
|
+
readonly label: "Sans";
|
|
15
|
+
}, {
|
|
16
|
+
readonly value: "mono";
|
|
17
|
+
readonly label: "Mono";
|
|
18
|
+
}];
|
|
19
|
+
};
|
|
20
|
+
readonly accentColor: {
|
|
21
|
+
readonly type: "color";
|
|
22
|
+
readonly label: "Accent color";
|
|
23
|
+
readonly description: "Rules and interactive accents.";
|
|
24
|
+
readonly default: "#d6422c";
|
|
25
|
+
readonly light: "#d6422c";
|
|
26
|
+
readonly dark: "#ff826c";
|
|
27
|
+
};
|
|
28
|
+
readonly articleWidth: {
|
|
29
|
+
readonly type: "slider";
|
|
30
|
+
readonly label: "Article width";
|
|
31
|
+
readonly description: "Maximum article width in rem.";
|
|
32
|
+
readonly default: 62;
|
|
33
|
+
readonly min: 44;
|
|
34
|
+
readonly max: 76;
|
|
35
|
+
readonly step: 1;
|
|
36
|
+
};
|
|
37
|
+
readonly fontSize: {
|
|
38
|
+
readonly type: "slider";
|
|
39
|
+
readonly label: "Font size";
|
|
40
|
+
readonly description: "Article text size in rem.";
|
|
41
|
+
readonly default: 1.05;
|
|
42
|
+
readonly min: 0.95;
|
|
43
|
+
readonly max: 1.25;
|
|
44
|
+
readonly step: 0.05;
|
|
45
|
+
};
|
|
46
|
+
readonly lineHeight: {
|
|
47
|
+
readonly type: "slider";
|
|
48
|
+
readonly label: "Line height";
|
|
49
|
+
readonly description: "Article line height.";
|
|
50
|
+
readonly default: 1.65;
|
|
51
|
+
readonly min: 1.5;
|
|
52
|
+
readonly max: 2.1;
|
|
53
|
+
readonly step: 0.05;
|
|
54
|
+
};
|
|
55
|
+
readonly motion: {
|
|
56
|
+
readonly type: "boolean";
|
|
57
|
+
readonly label: "Motion";
|
|
58
|
+
readonly default: true;
|
|
59
|
+
};
|
|
60
|
+
readonly ornament: {
|
|
61
|
+
readonly type: "boolean";
|
|
62
|
+
readonly label: "Corner ornament";
|
|
63
|
+
readonly description: "Show the corner mark in the article header.";
|
|
64
|
+
readonly default: true;
|
|
65
|
+
};
|
|
66
|
+
readonly seal: {
|
|
67
|
+
readonly type: "boolean";
|
|
68
|
+
readonly label: "Folio seal";
|
|
69
|
+
readonly description: "Add a circular folio stamp to the article header.";
|
|
70
|
+
readonly default: false;
|
|
71
|
+
};
|
|
72
|
+
}>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { defineTheme, defineThemeSettings } from "@riebeckite/core";
|
|
3
|
+
var folioTheme = defineTheme({
|
|
4
|
+
name: "folio",
|
|
5
|
+
styles: [{ moduleSpecifier: "@riebeckite/theme-folio/style.css" }],
|
|
6
|
+
settings: defineThemeSettings({
|
|
7
|
+
typography: {
|
|
8
|
+
type: "select",
|
|
9
|
+
label: "Typography",
|
|
10
|
+
default: "system",
|
|
11
|
+
options: [
|
|
12
|
+
{ value: "system", label: "System" },
|
|
13
|
+
{ value: "serif", label: "Serif" },
|
|
14
|
+
{ value: "sans", label: "Sans" },
|
|
15
|
+
{ value: "mono", label: "Mono" }
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
accentColor: {
|
|
19
|
+
type: "color",
|
|
20
|
+
label: "Accent color",
|
|
21
|
+
description: "Rules and interactive accents.",
|
|
22
|
+
default: "#d6422c",
|
|
23
|
+
light: "#d6422c",
|
|
24
|
+
dark: "#ff826c"
|
|
25
|
+
},
|
|
26
|
+
articleWidth: {
|
|
27
|
+
type: "slider",
|
|
28
|
+
label: "Article width",
|
|
29
|
+
description: "Maximum article width in rem.",
|
|
30
|
+
default: 62,
|
|
31
|
+
min: 44,
|
|
32
|
+
max: 76,
|
|
33
|
+
step: 1
|
|
34
|
+
},
|
|
35
|
+
fontSize: {
|
|
36
|
+
type: "slider",
|
|
37
|
+
label: "Font size",
|
|
38
|
+
description: "Article text size in rem.",
|
|
39
|
+
default: 1.05,
|
|
40
|
+
min: 0.95,
|
|
41
|
+
max: 1.25,
|
|
42
|
+
step: 0.05
|
|
43
|
+
},
|
|
44
|
+
lineHeight: {
|
|
45
|
+
type: "slider",
|
|
46
|
+
label: "Line height",
|
|
47
|
+
description: "Article line height.",
|
|
48
|
+
default: 1.65,
|
|
49
|
+
min: 1.5,
|
|
50
|
+
max: 2.1,
|
|
51
|
+
step: 0.05
|
|
52
|
+
},
|
|
53
|
+
motion: { type: "boolean", label: "Motion", default: true },
|
|
54
|
+
ornament: {
|
|
55
|
+
type: "boolean",
|
|
56
|
+
label: "Corner ornament",
|
|
57
|
+
description: "Show the corner mark in the article header.",
|
|
58
|
+
default: true
|
|
59
|
+
},
|
|
60
|
+
seal: {
|
|
61
|
+
type: "boolean",
|
|
62
|
+
label: "Folio seal",
|
|
63
|
+
description: "Add a circular folio stamp to the article header.",
|
|
64
|
+
default: false
|
|
65
|
+
}
|
|
66
|
+
}),
|
|
67
|
+
presets: { reading: { label: "Reading", settings: { typography: "serif" } } }
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
folioTheme
|
|
71
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/theme-folio",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.34",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/src/index.js",
|
|
7
|
+
"types": "./dist/src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/src/index.d.ts",
|
|
11
|
+
"import": "./dist/src/index.js",
|
|
12
|
+
"source": "./src/index.ts",
|
|
13
|
+
"default": "./dist/src/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./style.css": "./styles/theme.css",
|
|
16
|
+
"./styles/theme.css": "./styles/theme.css"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@riebeckite/core": "0.0.34"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"README.md",
|
|
27
|
+
"README_ja.md",
|
|
28
|
+
"dist",
|
|
29
|
+
"styles"
|
|
30
|
+
],
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/Rerurate514/riebeckite.git",
|
|
34
|
+
"directory": "packages/themes/folio"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/Rerurate514/riebeckite#readme",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/Rerurate514/riebeckite/issues"
|
|
39
|
+
},
|
|
40
|
+
"description": "A portfolio CSS theme for Riebeckite sites.",
|
|
41
|
+
"keywords": [
|
|
42
|
+
"riebeckite",
|
|
43
|
+
"theme",
|
|
44
|
+
"css",
|
|
45
|
+
"portfolio",
|
|
46
|
+
"folio"
|
|
47
|
+
],
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
50
|
+
},
|
|
51
|
+
"sideEffects": [
|
|
52
|
+
"./styles/*.css"
|
|
53
|
+
],
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "node ../../../scripts/build_package.mjs"
|
|
56
|
+
}
|
|
6
57
|
}
|
package/styles/theme.css
ADDED
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--font-sans: var(--rb-font-body);
|
|
3
|
+
--font-serif: var(--rb-font-heading);
|
|
4
|
+
--font-mono: var(--rb-font-mono);
|
|
5
|
+
--color-rb-paper: var(--rb-color-paper);
|
|
6
|
+
--color-rb-ink: var(--rb-color-ink);
|
|
7
|
+
--color-rb-muted: var(--rb-color-muted);
|
|
8
|
+
--color-rb-accent: var(--rb-color-accent);
|
|
9
|
+
--color-rb-surface: var(--rb-color-surface);
|
|
10
|
+
--color-rb-danger: var(--rb-color-danger);
|
|
11
|
+
--color-rb-success: var(--rb-color-success);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@layer base {
|
|
15
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] {
|
|
16
|
+
color-scheme: light;
|
|
17
|
+
--rb-color-paper: #f1f0ec;
|
|
18
|
+
--rb-color-surface: #ffffff;
|
|
19
|
+
--rb-color-surface-hover: #e4e2dc;
|
|
20
|
+
--rb-color-ink: #161616;
|
|
21
|
+
--rb-color-muted: #65635f;
|
|
22
|
+
--rb-color-accent: var(--rb-setting-accent-color, #d6422c);
|
|
23
|
+
--rb-color-link: #bd301e;
|
|
24
|
+
--rb-color-focus: #d6422c;
|
|
25
|
+
--rb-color-selected: #ffd1c9;
|
|
26
|
+
--rb-color-border: #cbc8c0;
|
|
27
|
+
--rb-color-border-strong: #827e76;
|
|
28
|
+
--rb-color-danger: #bc302a;
|
|
29
|
+
--rb-color-success: #297052;
|
|
30
|
+
--rb-color-code-background: #1c1c1b;
|
|
31
|
+
--rb-color-code-ink: #f4f1eb;
|
|
32
|
+
--rb-color-code-inline: #e1ded7;
|
|
33
|
+
--rb-color-overlay: rgb(0 0 0 / 0.68);
|
|
34
|
+
--rb-font-body:
|
|
35
|
+
ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans",
|
|
36
|
+
"Noto Sans JP", "Yu Gothic", sans-serif;
|
|
37
|
+
--rb-font-heading:
|
|
38
|
+
ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans",
|
|
39
|
+
"Noto Sans JP", "Yu Gothic", sans-serif;
|
|
40
|
+
--rb-font-mono:
|
|
41
|
+
"SFMono-Regular", Consolas, "Noto Sans Mono CJK JP", monospace;
|
|
42
|
+
--rb-layout-page-max: 100rem;
|
|
43
|
+
--rb-layout-article-max: calc(var(--rb-setting-article-width, 62) * 1rem);
|
|
44
|
+
--rb-layout-sidebar: 15rem;
|
|
45
|
+
--rb-layout-gap: 2.5rem;
|
|
46
|
+
--rb-radius-sm: 0;
|
|
47
|
+
--rb-radius-md: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"][data-rb-mode="dark"] {
|
|
51
|
+
color-scheme: dark;
|
|
52
|
+
--rb-color-paper: #171716;
|
|
53
|
+
--rb-color-surface: #222220;
|
|
54
|
+
--rb-color-surface-hover: #30302d;
|
|
55
|
+
--rb-color-ink: #f5f2eb;
|
|
56
|
+
--rb-color-muted: #c0bcb3;
|
|
57
|
+
--rb-color-accent: var(--rb-setting-accent-color, #ff826c);
|
|
58
|
+
--rb-color-link: #ffac9c;
|
|
59
|
+
--rb-color-focus: #ffbdaf;
|
|
60
|
+
--rb-color-selected: #71382e;
|
|
61
|
+
--rb-color-border: #4a4945;
|
|
62
|
+
--rb-color-border-strong: #76736c;
|
|
63
|
+
--rb-color-danger: #ff9e8d;
|
|
64
|
+
--rb-color-success: #88cda8;
|
|
65
|
+
--rb-color-code-background: #0d0d0c;
|
|
66
|
+
--rb-color-code-ink: #f5f2eb;
|
|
67
|
+
--rb-color-code-inline: #33312e;
|
|
68
|
+
--rb-color-overlay: rgb(0 0 0 / 0.76);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (prefers-color-scheme: dark) {
|
|
72
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"]:not([data-rb-mode]) {
|
|
73
|
+
color-scheme: dark;
|
|
74
|
+
--rb-color-paper: #171716;
|
|
75
|
+
--rb-color-surface: #222220;
|
|
76
|
+
--rb-color-surface-hover: #30302d;
|
|
77
|
+
--rb-color-ink: #f5f2eb;
|
|
78
|
+
--rb-color-muted: #c0bcb3;
|
|
79
|
+
--rb-color-accent: var(--rb-setting-accent-color, #ff826c);
|
|
80
|
+
--rb-color-link: #ffac9c;
|
|
81
|
+
--rb-color-focus: #ffbdaf;
|
|
82
|
+
--rb-color-selected: #71382e;
|
|
83
|
+
--rb-color-border: #4a4945;
|
|
84
|
+
--rb-color-border-strong: #76736c;
|
|
85
|
+
--rb-color-danger: #ff9e8d;
|
|
86
|
+
--rb-color-success: #88cda8;
|
|
87
|
+
--rb-color-code-background: #0d0d0c;
|
|
88
|
+
--rb-color-code-ink: #f5f2eb;
|
|
89
|
+
--rb-color-code-inline: #33312e;
|
|
90
|
+
--rb-color-overlay: rgb(0 0 0 / 0.76);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] {
|
|
95
|
+
background: var(--rb-color-paper);
|
|
96
|
+
color: var(--rb-color-ink);
|
|
97
|
+
font-family: var(--rb-font-body);
|
|
98
|
+
accent-color: var(--rb-color-accent);
|
|
99
|
+
caret-color: var(--rb-color-accent);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] ::selection {
|
|
104
|
+
background: var(--rb-color-selected);
|
|
105
|
+
color: var(--rb-color-ink);
|
|
106
|
+
}
|
|
107
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] :focus-visible {
|
|
108
|
+
outline: 3px solid var(--rb-color-focus);
|
|
109
|
+
outline-offset: 3px;
|
|
110
|
+
}
|
|
111
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article {
|
|
112
|
+
font-size: calc(var(--rb-setting-font-size, 1.05) * 1rem);
|
|
113
|
+
line-height: var(--rb-setting-line-height, 1.65);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:is(
|
|
117
|
+
:root,
|
|
118
|
+
.rb-theme-root
|
|
119
|
+
)[data-rb-theme="folio"][data-rb-setting-typography="mono"]
|
|
120
|
+
.rb-article {
|
|
121
|
+
font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
122
|
+
}
|
|
123
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] {
|
|
124
|
+
--rb-folio-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Cpath d='M2 34V2h32M70 38v32H38' stroke='%23d6422c' stroke-width='4'/%3E%3Cpath d='M2 70 70 2' stroke='%23d6422c' stroke-width='1'/%3E%3C/svg%3E");
|
|
125
|
+
}
|
|
126
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"][data-rb-mode="dark"] {
|
|
127
|
+
--rb-folio-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Cpath d='M2 34V2h32M70 38v32H38' stroke='%23ff826c' stroke-width='4'/%3E%3Cpath d='M2 70 70 2' stroke='%23ff826c' stroke-width='1'/%3E%3C/svg%3E");
|
|
128
|
+
}
|
|
129
|
+
@media (prefers-color-scheme: dark) {
|
|
130
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"]:not([data-rb-mode]) {
|
|
131
|
+
--rb-folio-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Cpath d='M2 34V2h32M70 38v32H38' stroke='%23ff826c' stroke-width='4'/%3E%3Cpath d='M2 70 70 2' stroke='%23ff826c' stroke-width='1'/%3E%3C/svg%3E");
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-header {
|
|
135
|
+
border-left: 0.5rem solid var(--rb-color-accent);
|
|
136
|
+
margin-bottom: 3rem;
|
|
137
|
+
padding-left: 1.25rem;
|
|
138
|
+
padding-right: 5rem;
|
|
139
|
+
position: relative;
|
|
140
|
+
}
|
|
141
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-header::after {
|
|
142
|
+
background: var(--rb-folio-corner) center / contain no-repeat;
|
|
143
|
+
content: "";
|
|
144
|
+
height: 4rem;
|
|
145
|
+
position: absolute;
|
|
146
|
+
right: 0;
|
|
147
|
+
top: 0;
|
|
148
|
+
width: 4rem;
|
|
149
|
+
}
|
|
150
|
+
:is(
|
|
151
|
+
:root,
|
|
152
|
+
.rb-theme-root
|
|
153
|
+
)[data-rb-theme="folio"][data-rb-setting-ornament="false"]
|
|
154
|
+
.rb-article-header {
|
|
155
|
+
padding-right: 1.25rem;
|
|
156
|
+
}
|
|
157
|
+
:is(
|
|
158
|
+
:root,
|
|
159
|
+
.rb-theme-root
|
|
160
|
+
)[data-rb-theme="folio"][data-rb-setting-ornament="false"]
|
|
161
|
+
.rb-article-header::after {
|
|
162
|
+
display: none;
|
|
163
|
+
}
|
|
164
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-header h1 {
|
|
165
|
+
font-size: clamp(2.4rem, 1.6rem + 3.5vw, 5rem);
|
|
166
|
+
font-weight: 800;
|
|
167
|
+
letter-spacing: -0.055em;
|
|
168
|
+
line-height: 0.95;
|
|
169
|
+
text-wrap: balance;
|
|
170
|
+
}
|
|
171
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-meta {
|
|
172
|
+
color: var(--rb-color-muted);
|
|
173
|
+
font-size: 0.8rem;
|
|
174
|
+
font-weight: 700;
|
|
175
|
+
letter-spacing: 0.05em;
|
|
176
|
+
text-transform: uppercase;
|
|
177
|
+
}
|
|
178
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-content h2 {
|
|
179
|
+
border-left: 0.25rem solid var(--rb-color-accent);
|
|
180
|
+
font-size: 1.65rem;
|
|
181
|
+
font-weight: 800;
|
|
182
|
+
letter-spacing: -0.03em;
|
|
183
|
+
margin-top: 3.5rem;
|
|
184
|
+
padding-left: 0.75rem;
|
|
185
|
+
}
|
|
186
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-content h3 {
|
|
187
|
+
font-size: 1.2rem;
|
|
188
|
+
font-weight: 800;
|
|
189
|
+
margin-top: 2.4rem;
|
|
190
|
+
}
|
|
191
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-content a {
|
|
192
|
+
color: var(--rb-color-link);
|
|
193
|
+
font-weight: 650;
|
|
194
|
+
text-decoration-thickness: 2px;
|
|
195
|
+
text-underline-offset: 0.16em;
|
|
196
|
+
transition:
|
|
197
|
+
color 140ms ease,
|
|
198
|
+
text-decoration-thickness 140ms ease;
|
|
199
|
+
}
|
|
200
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-content a:hover {
|
|
201
|
+
color: var(--rb-color-accent);
|
|
202
|
+
text-decoration-thickness: 3px;
|
|
203
|
+
}
|
|
204
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"]
|
|
205
|
+
.rb-article-content
|
|
206
|
+
blockquote {
|
|
207
|
+
border-left: 0.35rem solid var(--rb-color-accent);
|
|
208
|
+
font-size: 1.2em;
|
|
209
|
+
font-weight: 600;
|
|
210
|
+
margin-inline: 0;
|
|
211
|
+
padding-left: 1.2rem;
|
|
212
|
+
}
|
|
213
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"]
|
|
214
|
+
.rb-article-content
|
|
215
|
+
:is(pre, code) {
|
|
216
|
+
font-family: var(--rb-font-mono);
|
|
217
|
+
}
|
|
218
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-content pre {
|
|
219
|
+
overflow-x: auto;
|
|
220
|
+
}
|
|
221
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-content table {
|
|
222
|
+
border-collapse: collapse;
|
|
223
|
+
display: block;
|
|
224
|
+
max-width: 100%;
|
|
225
|
+
overflow-x: auto;
|
|
226
|
+
}
|
|
227
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"]
|
|
228
|
+
.rb-article-content
|
|
229
|
+
:is(th, td) {
|
|
230
|
+
border-bottom: 2px solid var(--rb-color-border);
|
|
231
|
+
padding: 0.65rem;
|
|
232
|
+
text-align: left;
|
|
233
|
+
}
|
|
234
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"]
|
|
235
|
+
:is(.rr-media, .rr-lightbox, .rr-recent-posts, .rr-cardlink) {
|
|
236
|
+
border-top: 3px solid var(--rb-color-ink);
|
|
237
|
+
margin-top: 2.5rem;
|
|
238
|
+
padding-top: 1rem;
|
|
239
|
+
}
|
|
240
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] :is(.rr-media, .rr-lightbox) {
|
|
241
|
+
border-top-color: var(--rb-color-accent);
|
|
242
|
+
}
|
|
243
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rr-cardlink {
|
|
244
|
+
transition:
|
|
245
|
+
border-color 140ms ease,
|
|
246
|
+
transform 140ms ease;
|
|
247
|
+
}
|
|
248
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
249
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"]:not(
|
|
250
|
+
[data-rb-setting-motion="false"]
|
|
251
|
+
)
|
|
252
|
+
.rb-article-header::after {
|
|
253
|
+
animation: rb-folio-frame-in 420ms ease-out both;
|
|
254
|
+
}
|
|
255
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rr-cardlink:hover {
|
|
256
|
+
border-color: var(--rb-color-accent);
|
|
257
|
+
transform: translateX(0.25rem);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
@keyframes rb-folio-frame-in {
|
|
261
|
+
from {
|
|
262
|
+
opacity: 0;
|
|
263
|
+
transform: translate(0.6rem, -0.6rem);
|
|
264
|
+
}
|
|
265
|
+
to {
|
|
266
|
+
opacity: 1;
|
|
267
|
+
transform: translate(0);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"]
|
|
271
|
+
:is(.rb-site-header, .rb-site-footer) {
|
|
272
|
+
font-weight: 700;
|
|
273
|
+
}
|
|
274
|
+
@media (max-width: 48rem) {
|
|
275
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article {
|
|
276
|
+
font-size: 1rem;
|
|
277
|
+
}
|
|
278
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] .rb-article-header {
|
|
279
|
+
border-left-width: 0.3rem;
|
|
280
|
+
padding-right: 3.5rem;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
@media (prefers-reduced-motion: reduce) {
|
|
284
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"] * {
|
|
285
|
+
scroll-behavior: auto;
|
|
286
|
+
transition-duration: 0s;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"][data-rb-setting-seal="true"]
|
|
291
|
+
.rb-article-header {
|
|
292
|
+
padding-right: 5rem;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"][data-rb-setting-seal="true"]
|
|
296
|
+
.rb-article-header::before {
|
|
297
|
+
position: absolute;
|
|
298
|
+
top: 1.25rem;
|
|
299
|
+
right: 5.25rem;
|
|
300
|
+
display: grid;
|
|
301
|
+
width: 3.25rem;
|
|
302
|
+
height: 3.25rem;
|
|
303
|
+
border: 1px solid var(--rb-color-accent);
|
|
304
|
+
border-radius: 50%;
|
|
305
|
+
color: var(--rb-color-accent);
|
|
306
|
+
content: "FOLIO";
|
|
307
|
+
font-family: var(--rb-font-heading);
|
|
308
|
+
font-size: 0.5rem;
|
|
309
|
+
font-weight: 700;
|
|
310
|
+
letter-spacing: 0.14em;
|
|
311
|
+
opacity: 0.75;
|
|
312
|
+
place-items: center;
|
|
313
|
+
text-indent: 0.14em;
|
|
314
|
+
transform: rotate(-12deg);
|
|
315
|
+
pointer-events: none;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@media (max-width: 48rem) {
|
|
319
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"][data-rb-setting-seal="true"]
|
|
320
|
+
.rb-article-header {
|
|
321
|
+
padding-right: 3.5rem;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"][data-rb-setting-seal="true"]
|
|
325
|
+
.rb-article-header::before {
|
|
326
|
+
top: 1rem;
|
|
327
|
+
right: 3.75rem;
|
|
328
|
+
width: 2.75rem;
|
|
329
|
+
height: 2.75rem;
|
|
330
|
+
font-size: 0.4375rem;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
:is(:root, .rb-theme-root)[data-rb-theme="folio"]
|
|
335
|
+
.rb-article-content
|
|
336
|
+
> :is(.rr-callout, .rb-table-scroll, pre, .rr-code)
|
|
337
|
+
+ :is(.rr-callout, .rb-table-scroll, pre, .rr-code) {
|
|
338
|
+
margin-block-start: 2.5rem;
|
|
339
|
+
}
|