-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbonkers.css
More file actions
382 lines (335 loc) · 8.52 KB
/
bonkers.css
File metadata and controls
382 lines (335 loc) · 8.52 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
/* Bonkers CSS Framework - Semantic HTML with style */
:root {
/* Light mode colors - Airy palette */
--bg-primary: #f8fbff;
--bg-secondary: #ffffff;
--bg-tertiary: #f0f7ff;
--text-primary: #2d3748;
--text-secondary: #5a6c7d;
--text-muted: #93a5b8;
--accent-primary: #60a5fa;
--accent-secondary: #a78bfa;
--accent-gradient: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
--border-color: #e0ecf8;
--shadow-sm: 0 2px 12px rgba(96, 165, 250, 0.08);
--shadow-md: 0 4px 20px rgba(96, 165, 250, 0.12);
--shadow-lg: 0 8px 36px rgba(96, 165, 250, 0.16);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
:root {
--bg-primary: #0b1120;
--bg-secondary: #131b2e;
--bg-tertiary: #1a2540;
--text-primary: #e8f0f8;
--text-secondary: #b8c8d8;
--text-muted: #7a8a9a;
--border-color: #1f2d45;
--shadow-sm: 0 2px 12px rgba(96, 165, 250, 0.15);
--shadow-md: 0 4px 20px rgba(96, 165, 250, 0.2);
--shadow-lg: 0 8px 36px rgba(96, 165, 250, 0.25);
}
}
/* Base reset and typography */
main.bonkers * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
main.bonkers {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: var(--text-primary);
background: var(--bg-primary);
padding: 2rem;
min-height: 100vh;
}
/* Container */
main.bonkers > * {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
/* Typography */
main.bonkers h1, main.bonkers h2, main.bonkers h3, main.bonkers h4 {
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
main.bonkers h1 { font-size: 3rem; margin-bottom: 1.5rem; }
main.bonkers h2 { font-size: 2.25rem; margin-top: 2rem; }
main.bonkers h3 { font-size: 1.75rem; margin-top: 1.5rem; }
main.bonkers h4 { font-size: 1.25rem; }
main.bonkers p {
margin-bottom: 1rem;
color: var(--text-secondary);
}
main.bonkers a {
color: var(--accent-primary);
text-decoration: none;
transition: var(--transition);
position: relative;
}
main.bonkers a:hover {
color: var(--accent-secondary);
}
main.bonkers a::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: var(--accent-gradient);
transition: var(--transition);
}
main.bonkers a:hover::after {
width: 100%;
}
/* Forms */
main.bonkers form {
background: var(--bg-secondary);
padding: 2rem;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
margin: 2rem 0;
}
main.bonkers label {
display: block;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--text-primary);
font-size: 0.95rem;
}
main.bonkers input[type="text"],
main.bonkers input[type="email"],
main.bonkers input[type="password"],
main.bonkers input[type="number"],
main.bonkers input[type="tel"],
main.bonkers input[type="url"],
main.bonkers input[type="search"],
main.bonkers input[type="date"],
main.bonkers textarea,
main.bonkers select {
width: 100%;
padding: 0.875rem 1rem;
border: 2px solid var(--border-color);
border-radius: var(--radius-sm);
background: var(--bg-tertiary);
color: var(--text-primary);
font-size: 1rem;
transition: var(--transition);
margin-bottom: 1.5rem;
font-family: inherit;
}
main.bonkers input:focus,
main.bonkers textarea:focus,
main.bonkers select:focus {
outline: none;
border-color: var(--accent-primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
transform: translateY(-1px);
}
main.bonkers textarea {
resize: vertical;
min-height: 120px;
}
main.bonkers input[type="checkbox"],
main.bonkers input[type="radio"] {
width: 1.25rem;
height: 1.25rem;
margin-right: 0.5rem;
cursor: pointer;
accent-color: var(--accent-primary);
}
main.bonkers fieldset {
border: 2px solid var(--border-color);
border-radius: var(--radius-md);
padding: 1.5rem;
margin-bottom: 1.5rem;
}
main.bonkers legend {
padding: 0 0.75rem;
font-weight: 600;
color: var(--text-primary);
}
/* Buttons */
main.bonkers button,
main.bonkers input[type="submit"],
main.bonkers input[type="button"] {
padding: 0.875rem 2rem;
border: none;
border-radius: var(--radius-sm);
background: var(--accent-gradient);
color: white;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: var(--transition);
box-shadow: var(--shadow-sm);
font-family: inherit;
}
main.bonkers button:hover,
main.bonkers input[type="submit"]:hover,
main.bonkers input[type="button"]:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
main.bonkers button:active {
transform: translateY(0);
}
/* Article cards */
main.bonkers article {
background: var(--bg-secondary);
border-radius: var(--radius-lg);
padding: 2rem;
margin-bottom: 2rem;
box-shadow: var(--shadow-md);
transition: var(--transition);
border: 1px solid var(--border-color);
position: relative;
overflow: hidden;
}
main.bonkers article::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: var(--accent-gradient);
}
main.bonkers article:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}
main.bonkers article header {
margin-bottom: 1rem;
}
main.bonkers article h1,
main.bonkers article h2,
main.bonkers article h3 {
margin-top: 0;
}
main.bonkers article footer {
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid var(--border-color);
color: var(--text-muted);
font-size: 0.9rem;
display: flex;
justify-content: space-between;
align-items: center;
}
/* Card grid */
main.bonkers section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: 2rem 0;
}
/* Tables */
main.bonkers table {
width: 100%;
border-collapse: collapse;
background: var(--bg-secondary);
border-radius: var(--radius-md);
overflow: hidden;
box-shadow: var(--shadow-md);
margin: 2rem 0;
}
main.bonkers th,
main.bonkers td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
main.bonkers th {
background: var(--bg-tertiary);
font-weight: 600;
color: var(--text-primary);
}
main.bonkers tr:last-child td {
border-bottom: none;
}
main.bonkers tr:hover {
background: var(--bg-tertiary);
}
/* Lists */
main.bonkers ul,
main.bonkers ol {
margin-left: 1.5rem;
margin-bottom: 1rem;
color: var(--text-secondary);
}
main.bonkers li {
margin-bottom: 0.5rem;
}
/* Code */
main.bonkers code {
background: rgba(96, 165, 250, 0.15);
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-family: 'Courier New', monospace;
font-size: 0.9em;
color: #2563eb;
border: 1px solid rgba(96, 165, 250, 0.25);
}
@media (prefers-color-scheme: dark) {
main.bonkers code {
background: rgba(96, 165, 250, 0.2);
color: #93c5fd;
border-color: rgba(96, 165, 250, 0.3);
}
}
main.bonkers pre {
background: var(--bg-tertiary);
padding: 1.5rem;
border-radius: var(--radius-md);
overflow-x: auto;
margin: 1.5rem 0;
border: 1px solid var(--border-color);
}
main.bonkers pre code {
background: none;
padding: 0;
border: none;
}
/* Blockquote */
main.bonkers blockquote {
border-left: 4px solid var(--accent-primary);
padding-left: 1.5rem;
margin: 1.5rem 0;
font-style: italic;
color: var(--text-secondary);
}
/* HR */
main.bonkers hr {
border: none;
height: 2px;
background: var(--accent-gradient);
margin: 2rem 0;
border-radius: 2px;
}
/* Responsive */
@media (max-width: 768px) {
main.bonkers {
padding: 1rem;
}
main.bonkers h1 {
font-size: 2rem;
}
main.bonkers h2 {
font-size: 1.75rem;
}
main.bonkers section {
grid-template-columns: 1fr;
}
}