-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.css
More file actions
219 lines (203 loc) · 4.46 KB
/
base.css
File metadata and controls
219 lines (203 loc) · 4.46 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
/* base.css - shared variables and minimal resets used by all pages */
/*
* NOTE: The Lexend font used as the primary body font is NOT loaded here.
* Every page that includes base.css MUST load Lexend via <link> tags in its
* <head> (before base.css) to avoid falling back to system fonts:
*
* <link rel="preconnect" href="https://fonts.googleapis.com" />
* <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
* <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap" />
*/
:root {
--bg-color: #ffffff;
--text-color: #1a1a1a;
--card-bg: #f5f5f5;
--card-hover: #e8e8e8;
--border-color: #e0e0e0;
--shadow: rgba(0, 0, 0, 0.1);
--accent-color: #667eea;
--link-transition:
color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
[data-theme="dark"] {
--bg-color: #1a1a1a;
--text-color: #ffffff;
--card-bg: #2d2d2d;
--card-hover: #3a3a3a;
--border-color: #404040;
--shadow: rgba(0, 0, 0, 0.3);
--accent-color: #8b9dff;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
/* Primary site font: Lexend (fallbacks provided) */
font-family:
"Lexend",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
"Helvetica Neue",
Arial,
sans-serif;
/* Base font size tuned for readability */
font-size: 18px;
background: var(--bg-color);
color: var(--text-color);
transition:
background-color 0.18s ease,
color 0.18s ease;
min-height: 100vh;
line-height: 1.6;
padding: 20px 16px;
/* ensure content isn't obscured by a fixed footer */
padding-bottom: 120px; /* avoid fixed footer overlap */
}
@media (max-width: 768px) {
/* slightly smaller base on phones */
body {
font-size: 16px;
}
}
/* SLF Dreamer font used by footer copyright */
@font-face {
font-family: "Slfdreamer";
src: url("assetlab/faces/Slfdreamer-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* theme toggle basics used by multiple pages */
.theme-toggle {
position: fixed;
top: 20px;
right: 20px;
background: var(--card-bg);
border: 2px solid var(--border-color);
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 1000;
transition:
transform 0.18s ease,
background 0.18s ease,
box-shadow 0.18s ease;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.theme-toggle:hover {
background: var(--card-hover);
transform: rotate(12deg);
}
.theme-toggle svg {
width: 24px;
height: 24px;
color: var(--text-color);
}
@media (max-width: 768px) {
/* keep theme toggle sizing consistent across all pages */
.theme-toggle {
width: 45px;
height: 45px;
top: 15px;
right: 15px;
}
}
/* sun/moon visibility */
.sun-icon {
display: none;
}
.moon-icon {
display: block;
}
[data-theme="dark"] .sun-icon {
display: block;
}
[data-theme="dark"] .moon-icon {
display: none;
}
/* avatar / profile basics */
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
overflow: hidden;
background: var(--card-bg);
border: 4px solid var(--border-color);
display: flex;
align-items: center;
justify-content: center;
}
.avatar-img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* SLFMacro font for site title */
@font-face {
font-family: "SLFMacro";
src: url("assetlab/faces/Slfmacro-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* footer shared rule */
footer.site-footer {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: var(--card-bg);
border-top: 1px solid var(--border-color);
padding: 10px 16px;
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
/* Keep footer copyright in SLF Dreamer */
footer.site-footer .footer-copyright {
font-family:
"Slfdreamer",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
"Helvetica Neue",
Arial,
sans-serif;
}
/* link/button groups baseline */
.links {
display: flex;
flex-direction: column;
gap: 16px;
}
.link-button {
text-decoration: none;
border-radius: 10px;
padding: 14px 18px;
display: flex;
align-items: center;
justify-content: center;
}
/* code token baseline colors (may be overridden per page) */
.token-tag {
color: #d97316;
}
.token-attr {
color: #60a5fa;
}
.token-string {
color: #10b981;
}
.token-link {
color: #7dd3fc;
}