-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshared-styles.css
More file actions
389 lines (340 loc) · 8.32 KB
/
shared-styles.css
File metadata and controls
389 lines (340 loc) · 8.32 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
/* ===== SHARED STYLES FOR 1SSB PORTFOLIO WEBSITE ===== */
/* CSS Variables - Design System */
:root {
/* Base Colors */
--bg-primary: #0f111a;
--bg-surface: rgba(22, 27, 34, 0.95);
--bg-elevated: rgba(30, 35, 42, 0.98);
--text-primary: #f0f6fc;
--text-secondary: #c9d1d9;
/* Accent Colors - Colorblind Friendly */
--accent-primary: #00b4d8;
/* Bright cyan - distinguishable from red/green */
--accent-secondary: #0077b6;
/* Darker cyan */
--accent-gold: #ffb703;
/* Bright orange - distinguishable from red/green */
--accent-emerald: #06ffa5;
/* Bright mint green - distinguishable from red */
/* Borders */
--border-light: rgba(0, 180, 216, 0.15);
--border-medium: rgba(0, 180, 216, 0.25);
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
--shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
/* Effects */
--ripple-color: rgba(0, 180, 216, 0.4);
}
/* Base Reset */
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
height: 100%;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.7;
transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 2rem 1rem;
overflow-y: auto;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: relative;
}
/* Background Pattern - Colorblind Friendly */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
/* PRIMARY GRID PATTERN - Colorblind friendly */
repeating-linear-gradient(45deg, transparent 0px, transparent 30px, #00b4d8 30px, #00b4d8 32px),
repeating-linear-gradient(-45deg, transparent 0px, transparent 40px, #06ffa5 40px, #06ffa5 42px),
/* PRIMARY DOTS - Colorblind friendly */
radial-gradient(circle at 25% 25%, #ffb703 0px, #ffb703 4px, transparent 4px),
radial-gradient(circle at 75% 75%, #ff6b6b 0px, #ff6b6b 4px, transparent 4px),
radial-gradient(circle at 25% 75%, #8b5cf6 0px, #8b5cf6 4px, transparent 4px),
radial-gradient(circle at 75% 25%, #06b6d4 0px, #06b6d4 4px, transparent 4px);
background-size: 60px 60px, 80px 80px, 100px 100px, 100px 100px, 100px 100px, 100px 100px;
opacity: 0.7;
z-index: -2;
}
body::after {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
/* OFFSET GRID PATTERN - Colorblind friendly */
repeating-linear-gradient(90deg, transparent 0px, transparent 35px, #00b4d8 35px, #00b4d8 37px),
repeating-linear-gradient(0deg, transparent 0px, transparent 45px, #ffb703 45px, #ffb703 47px),
/* OFFSET DOTS - Colorblind friendly */
radial-gradient(circle at 50% 50%, #ff6b6b 0px, #ff6b6b 3px, transparent 3px),
radial-gradient(circle at 10% 90%, #06ffa5 0px, #06ffa5 3px, transparent 3px),
radial-gradient(circle at 90% 10%, #00b4d8 0px, #00b4d8 3px, transparent 3px);
background-size: 70px 70px, 90px 90px, 120px 120px, 120px 120px, 120px 120px;
background-position: 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px;
opacity: 0.5;
z-index: -1;
}
/* Main Container */
#wrapper {
text-align: center;
padding: 20px;
border-radius: 10px;
margin: 20px;
max-width: 800px;
background-color: var(--bg-surface);
backdrop-filter: blur(20px);
box-shadow: var(--shadow-xl);
transition: background-color 0.3s;
border: 1px solid var(--border-light);
position: relative;
overflow: hidden;
}
/* Header Styles */
header h1,
header h2,
header h3,
header h4,
header h3 a,
nav ul,
nav ul li,
nav ul li a {
margin: 0;
padding: 5px;
}
header h3 a {
color: inherit;
text-decoration: none;
}
header h3 a:hover {
text-decoration: underline;
}
/* Navigation */
nav ul {
list-style-type: none;
padding: 0;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
nav ul li {
margin: 10px;
}
nav ul li a {
text-decoration: none;
color: inherit;
padding: 10px 20px;
border-radius: 10px;
border: 1px solid var(--text-primary);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
font-size: 18px;
display: inline-block;
min-width: 150px;
text-align: center;
position: relative;
overflow: hidden;
}
nav ul li a:hover {
background: var(--accent-primary);
color: white;
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
/* Social Icons */
.icons {
padding: 0;
margin: 20px 0;
list-style: none;
display: flex;
justify-content: center;
gap: 20px;
}
.icons li {
display: inline-block;
}
.icons a {
display: flex;
justify-content: center;
align-items: center;
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--border-light);
color: inherit;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
text-decoration: none;
position: relative;
overflow: hidden;
}
.icons a:hover {
background: var(--accent-gold);
color: white;
transform: scale(1.1);
box-shadow: var(--shadow-md);
}
/* Separator */
.separator {
width: 60%;
border-top: 2px solid var(--text-primary);
margin: 20px auto;
opacity: 0.3;
}
/* Inline pair: Home + Toggle */
.header-buttons {
display: inline-flex;
gap: 12px;
align-items: center;
margin-left: 0;
}
/* Cancel the floating behavior when inside header */
.header-buttons .home-button {
position: relative;
z-index: 10;
pointer-events: auto;
width: 40px;
height: 40px;
border-radius: 6px;
}
/* Footer */
footer {
margin-top: 20px;
text-align: center;
color: var(--text-secondary);
font-size: 14px;
}
/* Loading States */
.loading {
opacity: 0;
visibility: hidden;
transform: translateY(20px);
}
.loaded {
opacity: 1;
visibility: visible;
transform: translateY(0);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Ripple Effect */
.ripple {
position: absolute;
border-radius: 50%;
background: var(--ripple-color);
transform: scale(0);
animation: ripple-animation 0.6s linear;
pointer-events: none;
}
@keyframes ripple-animation {
to {
transform: scale(4);
opacity: 0;
}
}
/* Responsive Design */
@media (max-width: 768px) {
body {
padding: 1rem 0.5rem;
}
#wrapper {
margin: 10px;
padding: 15px;
}
nav ul li a {
min-width: 120px;
font-size: 16px;
padding: 8px 16px;
}
.icons a {
width: 40px;
height: 40px;
}
.header-buttons .home-button {
width: 36px;
height: 36px;
font-size: 14px;
border-radius: 8px;
}
}
@media (max-width: 480px) {
nav ul {
flex-direction: column;
align-items: center;
}
nav ul li {
margin: 5px;
}
nav ul li a {
min-width: 200px;
}
.icons {
gap: 15px;
}
.header-buttons .home-button {
width: 32px;
height: 32px;
font-size: 12px;
border-radius: 6px;
}
}
@media (max-width: 360px) {
.header-buttons .home-button {
width: 28px;
height: 28px;
font-size: 11px;
border-radius: 5px;
}
}
/* Accessibility */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Focus States */
nav ul li a:focus,
.icons a:focus {
outline: 3px solid var(--accent-primary);
outline-offset: 3px;
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}
/* Print Styles */
@media print {
body::before,
body::after {
display: none;
}
#wrapper {
box-shadow: none;
background: white;
}
nav ul li a:hover {
background: none;
color: black;
}
}