@terrafirmagreg-team/ui 1.2.0 → 1.2.2
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/package.json +4 -5
- package/styles/content/base.css +198 -198
- package/styles/content/shiki.css +107 -107
- package/styles/content/typography.mjs +3637 -3637
- package/styles/content.css +5 -5
- package/styles.css +430 -430
- package/src/locales/en_us.json +0 -110
- package/src/locales/pl_pl.json +0 -33
- package/src/locales/ru_ru.json +0 -110
- package/src/locales/uk_ua.json +0 -33
- package/src/locales/zh_cn.json +0 -15
- package/src/locales/zh_tw.json +0 -15
- package/src/locales.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terrafirmagreg-team/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared UI kit",
|
|
6
6
|
"license": "LGPL-3.0-only",
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
"./components/mdx/*": [
|
|
37
37
|
"./src/components/mdx/*.tsx",
|
|
38
38
|
"./src/components/mdx/*/index.tsx"
|
|
39
|
-
]
|
|
40
|
-
"./locales": "./src/locales.ts"
|
|
39
|
+
]
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
42
|
"@base-ui/react": "^1.9.0",
|
|
@@ -45,7 +44,7 @@
|
|
|
45
44
|
"@react-three/drei": "10.7.9",
|
|
46
45
|
"@react-three/fiber": "9.8.2",
|
|
47
46
|
"@shadcn/react": "^0.3.1",
|
|
48
|
-
"@terrafirmagreg-team/translate": "1.2.
|
|
47
|
+
"@terrafirmagreg-team/translate": "1.2.3",
|
|
49
48
|
"@xyflow/react": "12.12.0",
|
|
50
49
|
"beautiful-mermaid": "^1.1.3",
|
|
51
50
|
"class-variance-authority": "^0.7.1",
|
|
@@ -66,7 +65,7 @@
|
|
|
66
65
|
"tailwindcss": "^4.3.4",
|
|
67
66
|
"three": "^0.186.1",
|
|
68
67
|
"three-stdlib": "2.36.1",
|
|
69
|
-
"@terrafirmagreg-team/data": "1.2.
|
|
68
|
+
"@terrafirmagreg-team/data": "1.2.1"
|
|
70
69
|
},
|
|
71
70
|
"peerDependencies": {
|
|
72
71
|
"next": ">=15",
|
package/styles/content/base.css
CHANGED
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--sidebar-drawer-offset: 100%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
[dir='rtl'] {
|
|
6
|
-
--sidebar-drawer-offset: -100%;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@theme {
|
|
10
|
-
--animate-fade-in: fade-in 300ms ease;
|
|
11
|
-
--animate-fade-out: fade-out 300ms ease;
|
|
12
|
-
|
|
13
|
-
--animate-roll-in: roll-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
14
|
-
|
|
15
|
-
--animate-dialog-in: dialog-in 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
16
|
-
--animate-dialog-out: dialog-out 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
17
|
-
|
|
18
|
-
--animate-popover-in: popover-in 100ms ease;
|
|
19
|
-
--animate-popover-out: popover-out 100ms ease;
|
|
20
|
-
|
|
21
|
-
--animate-sidebar-in: sidebar-in 250ms ease;
|
|
22
|
-
--animate-sidebar-out: sidebar-out 250ms ease;
|
|
23
|
-
|
|
24
|
-
@keyframes sidebar-in {
|
|
25
|
-
from {
|
|
26
|
-
transform: translateX(var(--sidebar-drawer-offset));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@keyframes sidebar-out {
|
|
31
|
-
to {
|
|
32
|
-
transform: translateX(var(--sidebar-drawer-offset));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@keyframes dialog-in {
|
|
37
|
-
from {
|
|
38
|
-
transform: scale(1.06);
|
|
39
|
-
opacity: 0;
|
|
40
|
-
}
|
|
41
|
-
to {
|
|
42
|
-
transform: scale(1);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@keyframes dialog-out {
|
|
47
|
-
from {
|
|
48
|
-
transform: scale(1);
|
|
49
|
-
}
|
|
50
|
-
to {
|
|
51
|
-
transform: scale(1.04);
|
|
52
|
-
opacity: 0;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@keyframes popover-in {
|
|
57
|
-
from {
|
|
58
|
-
opacity: 0;
|
|
59
|
-
transform: scale(0.9);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@keyframes popover-out {
|
|
64
|
-
to {
|
|
65
|
-
opacity: 0;
|
|
66
|
-
transform: scale(0.9);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@keyframes fade-in {
|
|
71
|
-
from {
|
|
72
|
-
opacity: 0;
|
|
73
|
-
}
|
|
74
|
-
to {
|
|
75
|
-
opacity: 1;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@keyframes roll-in {
|
|
80
|
-
from {
|
|
81
|
-
opacity: 0;
|
|
82
|
-
translate: 0 calc(var(--roll, 1) * 0.6em);
|
|
83
|
-
filter: blur(2px);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@keyframes fade-out {
|
|
88
|
-
from {
|
|
89
|
-
opacity: 1;
|
|
90
|
-
}
|
|
91
|
-
to {
|
|
92
|
-
opacity: 0;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@layer base {
|
|
98
|
-
*,
|
|
99
|
-
::after,
|
|
100
|
-
::before,
|
|
101
|
-
::backdrop,
|
|
102
|
-
::file-selector-button {
|
|
103
|
-
border-color: var(--color-border, currentColor);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
body {
|
|
107
|
-
background-color: var(--color-background);
|
|
108
|
-
color: var(--color-foreground);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@utility scroll-container {
|
|
113
|
-
&::-webkit-scrollbar {
|
|
114
|
-
width: 5px;
|
|
115
|
-
height: 5px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&::-webkit-scrollbar-thumb {
|
|
119
|
-
border-radius: 5px;
|
|
120
|
-
background: var(--color-border);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&::-webkit-scrollbar-track {
|
|
124
|
-
background: transparent;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&::-webkit-scrollbar-corner {
|
|
128
|
-
display: none;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@utility fd-steps {
|
|
133
|
-
counter-reset: step;
|
|
134
|
-
position: relative;
|
|
135
|
-
@apply ps-6 ms-2 border-s sm:ms-4 sm:ps-7;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@utility fd-step {
|
|
139
|
-
position: relative;
|
|
140
|
-
@apply pb-6;
|
|
141
|
-
&:before {
|
|
142
|
-
background-color: var(--color-secondary);
|
|
143
|
-
color: var(--color-secondary-foreground);
|
|
144
|
-
content: counter(step);
|
|
145
|
-
counter-increment: step;
|
|
146
|
-
justify-content: center;
|
|
147
|
-
align-items: center;
|
|
148
|
-
font-size: 0.875rem;
|
|
149
|
-
line-height: 1.25rem;
|
|
150
|
-
display: flex;
|
|
151
|
-
position: absolute;
|
|
152
|
-
top: 0;
|
|
153
|
-
inset-inline-end: calc(100% + 0.5rem);
|
|
154
|
-
@media (min-width: 40rem) {
|
|
155
|
-
inset-inline-end: calc(100% + 0.75rem);
|
|
156
|
-
}
|
|
157
|
-
@apply size-8 rounded-full;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
@utility prose-no-margin {
|
|
162
|
-
& > :first-child {
|
|
163
|
-
margin-top: 0;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
& > :last-child {
|
|
167
|
-
margin-bottom: 0;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@variant dark (&:where(.dark, .dark *));
|
|
172
|
-
|
|
173
|
-
@variant layout {
|
|
174
|
-
#docs-layout:has(&),
|
|
175
|
-
#notebook-layout:has(&),
|
|
176
|
-
#home-layout:has(&),
|
|
177
|
-
#flux-layout:has(&),
|
|
178
|
-
#glass-layout:has(&),
|
|
179
|
-
#spacious-layout:has(&) {
|
|
180
|
-
@slot;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
@property --sidebar-col {
|
|
185
|
-
syntax: '<length>';
|
|
186
|
-
inherits: true;
|
|
187
|
-
initial-value: 0px;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
@property --ai-chat-col {
|
|
191
|
-
syntax: '<length>';
|
|
192
|
-
inherits: true;
|
|
193
|
-
initial-value: 0px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.fd-page-tree-item-name {
|
|
197
|
-
@apply inline-flex items-center gap-1 w-full;
|
|
198
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--sidebar-drawer-offset: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
[dir='rtl'] {
|
|
6
|
+
--sidebar-drawer-offset: -100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@theme {
|
|
10
|
+
--animate-fade-in: fade-in 300ms ease;
|
|
11
|
+
--animate-fade-out: fade-out 300ms ease;
|
|
12
|
+
|
|
13
|
+
--animate-roll-in: roll-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
14
|
+
|
|
15
|
+
--animate-dialog-in: dialog-in 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
16
|
+
--animate-dialog-out: dialog-out 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
17
|
+
|
|
18
|
+
--animate-popover-in: popover-in 100ms ease;
|
|
19
|
+
--animate-popover-out: popover-out 100ms ease;
|
|
20
|
+
|
|
21
|
+
--animate-sidebar-in: sidebar-in 250ms ease;
|
|
22
|
+
--animate-sidebar-out: sidebar-out 250ms ease;
|
|
23
|
+
|
|
24
|
+
@keyframes sidebar-in {
|
|
25
|
+
from {
|
|
26
|
+
transform: translateX(var(--sidebar-drawer-offset));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes sidebar-out {
|
|
31
|
+
to {
|
|
32
|
+
transform: translateX(var(--sidebar-drawer-offset));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@keyframes dialog-in {
|
|
37
|
+
from {
|
|
38
|
+
transform: scale(1.06);
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
to {
|
|
42
|
+
transform: scale(1);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@keyframes dialog-out {
|
|
47
|
+
from {
|
|
48
|
+
transform: scale(1);
|
|
49
|
+
}
|
|
50
|
+
to {
|
|
51
|
+
transform: scale(1.04);
|
|
52
|
+
opacity: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes popover-in {
|
|
57
|
+
from {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transform: scale(0.9);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@keyframes popover-out {
|
|
64
|
+
to {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
transform: scale(0.9);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@keyframes fade-in {
|
|
71
|
+
from {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
}
|
|
74
|
+
to {
|
|
75
|
+
opacity: 1;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@keyframes roll-in {
|
|
80
|
+
from {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
translate: 0 calc(var(--roll, 1) * 0.6em);
|
|
83
|
+
filter: blur(2px);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@keyframes fade-out {
|
|
88
|
+
from {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}
|
|
91
|
+
to {
|
|
92
|
+
opacity: 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@layer base {
|
|
98
|
+
*,
|
|
99
|
+
::after,
|
|
100
|
+
::before,
|
|
101
|
+
::backdrop,
|
|
102
|
+
::file-selector-button {
|
|
103
|
+
border-color: var(--color-border, currentColor);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
body {
|
|
107
|
+
background-color: var(--color-background);
|
|
108
|
+
color: var(--color-foreground);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@utility scroll-container {
|
|
113
|
+
&::-webkit-scrollbar {
|
|
114
|
+
width: 5px;
|
|
115
|
+
height: 5px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&::-webkit-scrollbar-thumb {
|
|
119
|
+
border-radius: 5px;
|
|
120
|
+
background: var(--color-border);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&::-webkit-scrollbar-track {
|
|
124
|
+
background: transparent;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&::-webkit-scrollbar-corner {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@utility fd-steps {
|
|
133
|
+
counter-reset: step;
|
|
134
|
+
position: relative;
|
|
135
|
+
@apply ps-6 ms-2 border-s sm:ms-4 sm:ps-7;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@utility fd-step {
|
|
139
|
+
position: relative;
|
|
140
|
+
@apply pb-6;
|
|
141
|
+
&:before {
|
|
142
|
+
background-color: var(--color-secondary);
|
|
143
|
+
color: var(--color-secondary-foreground);
|
|
144
|
+
content: counter(step);
|
|
145
|
+
counter-increment: step;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
align-items: center;
|
|
148
|
+
font-size: 0.875rem;
|
|
149
|
+
line-height: 1.25rem;
|
|
150
|
+
display: flex;
|
|
151
|
+
position: absolute;
|
|
152
|
+
top: 0;
|
|
153
|
+
inset-inline-end: calc(100% + 0.5rem);
|
|
154
|
+
@media (min-width: 40rem) {
|
|
155
|
+
inset-inline-end: calc(100% + 0.75rem);
|
|
156
|
+
}
|
|
157
|
+
@apply size-8 rounded-full;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@utility prose-no-margin {
|
|
162
|
+
& > :first-child {
|
|
163
|
+
margin-top: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
& > :last-child {
|
|
167
|
+
margin-bottom: 0;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@variant dark (&:where(.dark, .dark *));
|
|
172
|
+
|
|
173
|
+
@variant layout {
|
|
174
|
+
#docs-layout:has(&),
|
|
175
|
+
#notebook-layout:has(&),
|
|
176
|
+
#home-layout:has(&),
|
|
177
|
+
#flux-layout:has(&),
|
|
178
|
+
#glass-layout:has(&),
|
|
179
|
+
#spacious-layout:has(&) {
|
|
180
|
+
@slot;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@property --sidebar-col {
|
|
185
|
+
syntax: '<length>';
|
|
186
|
+
inherits: true;
|
|
187
|
+
initial-value: 0px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@property --ai-chat-col {
|
|
191
|
+
syntax: '<length>';
|
|
192
|
+
inherits: true;
|
|
193
|
+
initial-value: 0px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.fd-page-tree-item-name {
|
|
197
|
+
@apply inline-flex items-center gap-1 w-full;
|
|
198
|
+
}
|
package/styles/content/shiki.css
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
.shiki:not(.not-fumadocs-codeblock *) {
|
|
2
|
-
--padding-left: calc(var(--spacing) * 4);
|
|
3
|
-
--padding-right: calc(var(--spacing) * 4);
|
|
4
|
-
|
|
5
|
-
code span {
|
|
6
|
-
color: var(--shiki-light);
|
|
7
|
-
font-style: var(--shiki-light-font-style);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.line {
|
|
11
|
-
position: relative;
|
|
12
|
-
padding-left: var(--padding-left);
|
|
13
|
-
padding-right: var(--padding-right);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.line:empty {
|
|
17
|
-
height: 1lh;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.has-focused .line:not(.focused) {
|
|
21
|
-
filter: blur(2px);
|
|
22
|
-
transition: filter 200ms;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.has-focused:hover .line:not(.focused) {
|
|
26
|
-
filter: blur(0);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.diff::before {
|
|
30
|
-
position: absolute;
|
|
31
|
-
left: calc(var(--spacing) * 1.5);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.diff.remove {
|
|
35
|
-
opacity: 0.7;
|
|
36
|
-
--counter-color: var(--color-diff-remove-symbol);
|
|
37
|
-
@apply bg-diff-remove;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.diff.remove::before {
|
|
41
|
-
content: '-';
|
|
42
|
-
@apply text-diff-remove-symbol;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.diff.add {
|
|
46
|
-
--counter-color: var(--color-diff-add-symbol);
|
|
47
|
-
@apply bg-diff-add;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.diff.add::before {
|
|
51
|
-
content: '+';
|
|
52
|
-
@apply text-diff-add-symbol;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.highlighted {
|
|
56
|
-
--counter-color: var(--color-primary);
|
|
57
|
-
@apply bg-primary/10;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.highlighted::after {
|
|
61
|
-
position: absolute;
|
|
62
|
-
content: '';
|
|
63
|
-
@apply inset-y-0 left-0 border-l-2 border-primary/50;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.highlighted-word {
|
|
67
|
-
padding: 1px;
|
|
68
|
-
@apply border -my-px border-primary/30 bg-primary/10 rounded-md font-medium;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&[data-line-numbers] .twoslash-meta-line {
|
|
72
|
-
padding-left: calc(var(--padding-left) + 7 * var(--spacing));
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&[data-line-numbers] .line {
|
|
76
|
-
counter-increment: line;
|
|
77
|
-
padding-left: calc(var(--padding-left) + 7 * var(--spacing));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&[data-line-numbers] .line::after {
|
|
81
|
-
position: absolute;
|
|
82
|
-
content: counter(line);
|
|
83
|
-
color: color-mix(
|
|
84
|
-
in oklab,
|
|
85
|
-
var(--counter-color, var(--color-muted-foreground)) 60%,
|
|
86
|
-
transparent
|
|
87
|
-
);
|
|
88
|
-
@apply inset-y-0 left-0 w-7 text-right;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.dark .shiki:not(.not-fumadocs-codeblock *) {
|
|
93
|
-
code span {
|
|
94
|
-
color: var(--shiki-dark);
|
|
95
|
-
font-style: var(--shiki-dark-font-style);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
code.shiki:not(.not-fumadocs-code *) span {
|
|
100
|
-
color: var(--shiki-light);
|
|
101
|
-
font-style: var(--shiki-light-font-style);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.dark code.shiki:not(.not-fumadocs-code *) span {
|
|
105
|
-
color: var(--shiki-dark);
|
|
106
|
-
font-style: var(--shiki-dark-font-style);
|
|
107
|
-
}
|
|
1
|
+
.shiki:not(.not-fumadocs-codeblock *) {
|
|
2
|
+
--padding-left: calc(var(--spacing) * 4);
|
|
3
|
+
--padding-right: calc(var(--spacing) * 4);
|
|
4
|
+
|
|
5
|
+
code span {
|
|
6
|
+
color: var(--shiki-light);
|
|
7
|
+
font-style: var(--shiki-light-font-style);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.line {
|
|
11
|
+
position: relative;
|
|
12
|
+
padding-left: var(--padding-left);
|
|
13
|
+
padding-right: var(--padding-right);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.line:empty {
|
|
17
|
+
height: 1lh;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.has-focused .line:not(.focused) {
|
|
21
|
+
filter: blur(2px);
|
|
22
|
+
transition: filter 200ms;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.has-focused:hover .line:not(.focused) {
|
|
26
|
+
filter: blur(0);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.diff::before {
|
|
30
|
+
position: absolute;
|
|
31
|
+
left: calc(var(--spacing) * 1.5);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.diff.remove {
|
|
35
|
+
opacity: 0.7;
|
|
36
|
+
--counter-color: var(--color-diff-remove-symbol);
|
|
37
|
+
@apply bg-diff-remove;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.diff.remove::before {
|
|
41
|
+
content: '-';
|
|
42
|
+
@apply text-diff-remove-symbol;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.diff.add {
|
|
46
|
+
--counter-color: var(--color-diff-add-symbol);
|
|
47
|
+
@apply bg-diff-add;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.diff.add::before {
|
|
51
|
+
content: '+';
|
|
52
|
+
@apply text-diff-add-symbol;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.highlighted {
|
|
56
|
+
--counter-color: var(--color-primary);
|
|
57
|
+
@apply bg-primary/10;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.highlighted::after {
|
|
61
|
+
position: absolute;
|
|
62
|
+
content: '';
|
|
63
|
+
@apply inset-y-0 left-0 border-l-2 border-primary/50;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.highlighted-word {
|
|
67
|
+
padding: 1px;
|
|
68
|
+
@apply border -my-px border-primary/30 bg-primary/10 rounded-md font-medium;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-line-numbers] .twoslash-meta-line {
|
|
72
|
+
padding-left: calc(var(--padding-left) + 7 * var(--spacing));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&[data-line-numbers] .line {
|
|
76
|
+
counter-increment: line;
|
|
77
|
+
padding-left: calc(var(--padding-left) + 7 * var(--spacing));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[data-line-numbers] .line::after {
|
|
81
|
+
position: absolute;
|
|
82
|
+
content: counter(line);
|
|
83
|
+
color: color-mix(
|
|
84
|
+
in oklab,
|
|
85
|
+
var(--counter-color, var(--color-muted-foreground)) 60%,
|
|
86
|
+
transparent
|
|
87
|
+
);
|
|
88
|
+
@apply inset-y-0 left-0 w-7 text-right;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dark .shiki:not(.not-fumadocs-codeblock *) {
|
|
93
|
+
code span {
|
|
94
|
+
color: var(--shiki-dark);
|
|
95
|
+
font-style: var(--shiki-dark-font-style);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
code.shiki:not(.not-fumadocs-code *) span {
|
|
100
|
+
color: var(--shiki-light);
|
|
101
|
+
font-style: var(--shiki-light-font-style);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dark code.shiki:not(.not-fumadocs-code *) span {
|
|
105
|
+
color: var(--shiki-dark);
|
|
106
|
+
font-style: var(--shiki-dark-font-style);
|
|
107
|
+
}
|