-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathglobals.css
More file actions
249 lines (218 loc) · 5.42 KB
/
Copy pathglobals.css
File metadata and controls
249 lines (218 loc) · 5.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
@import "tailwindcss";
@import "fumadocs-ui/css/neutral.css";
@import "fumadocs-ui/css/preset.css";
@import "tw-animate-css";
/* Newsprint Design System Tokens */
@theme {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-muted: var(--muted);
--color-accent: #cc0000;
--color-border: var(--foreground);
--font-serif: "Playfair Display", "Times New Roman", serif;
--font-body: "Lora", Georgia, serif;
--font-sans: "Inter", "Helvetica Neue", sans-serif;
--font-mono: "JetBrains Mono", "Courier New", monospace;
--radius-none: 0px;
--radius-sm: 0px;
--radius-md: 0px;
--radius-lg: 0px;
--radius-xl: 0px;
--radius-2xl: 0px;
}
@layer base {
* {
/* 统一方角风格:强制清零圆角;注意会影响第三方组件的默认圆角,如果需要圆角请在组件里覆盖或调整此规则 */
border-radius: 0px !important;
border-color: var(--foreground);
}
body {
background-color: var(--background);
color: var(--foreground);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-serif);
font-weight: 900;
line-height: 0.9;
letter-spacing: -0.05em;
}
}
@layer utilities {
.newsprint-texture {
position: relative;
}
.newsprint-texture::before {
content: "";
position: absolute;
inset: 0;
background-image:
linear-gradient(0deg, transparent 98%, var(--grid-line) 100%),
linear-gradient(90deg, transparent 98%, var(--grid-line) 100%);
background-size: 3px 3px;
pointer-events: none;
opacity: 0.5;
}
.hard-shadow-hover:hover {
box-shadow: 4px 4px 0px 0px var(--foreground);
transform: translate(-2px, -2px);
transition: all 0.2s ease-out;
}
.halftone {
background-image: radial-gradient(var(--foreground) 1px, transparent 1px);
background-size: 16px 16px;
opacity: 0.1;
}
.text-justify {
text-align: justify;
}
.drop-cap::first-letter {
float: left;
font-size: 5rem;
line-height: 1;
font-family: var(--font-serif);
margin-right: 0.5rem;
color: var(--color-accent);
}
.ticker {
overflow: hidden;
}
.ticker-track {
display: flex;
width: max-content;
animation: ticker-scroll 30s linear infinite;
will-change: transform;
}
.ticker:hover .ticker-track {
animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
.ticker-track {
animation: none;
transform: translate3d(0, 0, 0);
}
}
}
@keyframes ticker-scroll {
0% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(-50%, 0, 0);
}
}
/* Theme Variables */
:root {
--background: #f9f9f7;
--foreground: #111111;
--muted: #e5e5e0;
--grid-line: rgba(0, 0, 0, 0.02);
/* Light mode paper texture */
--paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23111111' fill-opacity='0.04' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}
.dark {
--background: #050505; /* Deep black to blend with stars */
--foreground: #ededed; /* Off-white for text */
--muted: #1a1a1a;
--grid-line: rgba(255, 255, 255, 0.05);
/* Remove paper texture in dark mode, or make it very subtle white */
--paper-texture: none;
}
body {
background-image: var(--paper-texture);
}
/* ========================================
Starry Background Animation (Restored)
======================================== */
.site-bg {
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
overflow: hidden;
}
/* Dark mode stars */
.site-bg--stars {
display: none;
background-color: #050505;
}
.dark .site-bg--stars {
display: block;
}
.site-bg--stars::before,
.site-bg--stars::after {
content: "";
position: absolute;
inset: 0;
background-repeat: repeat;
}
.site-bg--stars::before {
opacity: 0.7;
background-image:
radial-gradient(
1px 1px at 10px 20px,
rgba(255, 255, 255, 0.9) 50%,
transparent 51%
),
radial-gradient(
1px 1px at 130px 80px,
rgba(186, 214, 255, 0.9) 50%,
transparent 51%
),
radial-gradient(
1px 1px at 60px 140px,
rgba(255, 210, 210, 0.9) 50%,
transparent 51%
);
background-size: 220px 220px;
animation: stars-drift 120s linear infinite;
}
.site-bg--stars::after {
opacity: 0.5;
background-image:
radial-gradient(
1.5px 1.5px at 50px 30px,
rgba(255, 255, 255, 0.8) 50%,
transparent 51%
),
radial-gradient(
2px 2px at 120px 160px,
rgba(200, 220, 255, 0.8) 50%,
transparent 51%
),
radial-gradient(
1.5px 1.5px at 180px 100px,
rgba(255, 220, 220, 0.8) 50%,
transparent 51%
);
background-size: 320px 320px;
animation: stars-drift 180s linear infinite reverse;
}
@keyframes stars-drift {
0% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(-50%, 0, 0);
}
}
/* Fumadocs 表面样式调整,避免使用 !important */
#nd-sidebar {
border-radius: 0;
--color-fd-card: var(--background);
--color-fd-border: var(--foreground);
background-color: var(--color-fd-card);
border-inline-end: 1px solid var(--color-fd-border);
}
#nd-nav {
--color-fd-background: var(--background);
--color-fd-border: var(--foreground);
background-color: var(--color-fd-background);
border-bottom: 1px solid var(--color-fd-border);
}