@riebeckite/plugin-code-enhance 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 +1 -1
- package/README_ja.md +1 -1
- package/package.json +2 -2
- package/style.css +9 -4
package/README.md
CHANGED
package/README_ja.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-code-enhance",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"rehype-pretty-code": "^0.14.1",
|
|
25
25
|
"shiki": "^3.13.0",
|
|
26
|
-
"@riebeckite/core": "0.0.
|
|
26
|
+
"@riebeckite/core": "0.0.18"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"tsx": "^4.22.4"
|
package/style.css
CHANGED
|
@@ -4,15 +4,20 @@
|
|
|
4
4
|
--rr-code-muted: color-mix(in srgb, var(--rr-code-ink) 56%, transparent);
|
|
5
5
|
--rr-code-rule: color-mix(in srgb, var(--rr-code-ink) 18%, transparent);
|
|
6
6
|
--rr-code-accent: var(--rb-color-accent, #686868);
|
|
7
|
-
margin: 2rem 0;
|
|
7
|
+
margin: 2rem 0 0;
|
|
8
8
|
border: 1px solid var(--rr-code-rule);
|
|
9
9
|
background: var(--rr-code-paper);
|
|
10
10
|
color: var(--rr-code-ink);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.rr-code:has(+ :is(h1, h2)) {
|
|
14
|
+
margin-bottom: 2rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
.rr-code[data-terminal="true"] {
|
|
14
18
|
--rr-code-paper: var(--rb-color-ink, #000000);
|
|
15
19
|
--rr-code-ink: var(--rb-color-paper, #ffffff);
|
|
20
|
+
--rr-code-syntax: var(--shiki-dark, inherit);
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
.rr-code__header {
|
|
@@ -86,18 +91,18 @@
|
|
|
86
91
|
|
|
87
92
|
.rr-code .rr-code__code,
|
|
88
93
|
.rr-code .rr-code__code span {
|
|
89
|
-
color: var(--shiki-light, inherit);
|
|
94
|
+
color: var(--rr-code-syntax, var(--shiki-light, inherit));
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
:root[data-theme="dark"] .rr-code .rr-code__code,
|
|
93
98
|
:root[data-theme="dark"] .rr-code .rr-code__code span {
|
|
94
|
-
color: var(--shiki-dark, inherit);
|
|
99
|
+
color: var(--rr-code-syntax, var(--shiki-dark, inherit));
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
@media (prefers-color-scheme: dark) {
|
|
98
103
|
:root:not([data-theme]) .rr-code .rr-code__code,
|
|
99
104
|
:root:not([data-theme]) .rr-code .rr-code__code span {
|
|
100
|
-
color: var(--shiki-dark, inherit);
|
|
105
|
+
color: var(--rr-code-syntax, var(--shiki-dark, inherit));
|
|
101
106
|
}
|
|
102
107
|
}
|
|
103
108
|
|