Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
424 lines (347 loc) · 11.2 KB
/
Copy pathstyles.css
File metadata and controls
424 lines (347 loc) · 11.2 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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
/* rnxJS demos, shared skin.
Same blueprint language as the playground index: drafting-paper ground,
hairline rules, ink type, one restrained accent. Class names are kept
exactly as they were so the demo pages need no edits. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700&family=JetBrains+Mono:wght@400;500&family=Public+Sans:wght@400;500;600&display=swap');
:root {
--ground: #eef1f4;
--panel: #ffffff;
--ink: #101418;
--muted: #5a6672;
--faint: #8b96a1;
--rule: #d3dae1;
--rule-soft: #e4e9ee;
/* one accent, a drafting blue: not Bootstrap's, not the old indigo */
--accent: #0f5c6b;
--accent-ink: #0a4552;
--accent-soft: #0f5c6b12;
--primary: #0f5c6b;
--primary-dark: #0a4552;
--secondary: #5a6672;
--success: #12664a;
--danger: #9a3b2c;
--warning: #8a5a12;
--info: #1f5e7a;
--dark: #101418;
--light: #eef1f4;
--radius: 9px;
--shadow-sm: 0 1px 0 #0a1a2a0d;
--shadow-md: 0 1px 2px #0a1a2a10;
--shadow-lg: 0 12px 32px -24px #0a1a2a55;
--shadow-xl: 0 20px 44px -30px #0a1a2a66;
--transition: all .14s ease;
}
body {
background: var(--ground);
color: var(--ink);
font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, .display-1, .display-2, .display-3 {
font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
letter-spacing: -0.02em;
}
code, pre, .mono, .font-monospace {
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
font-variant-ligatures: none;
}
/* ---------- surfaces ----------
.glass was a frosted blur panel. It is used 23 times across the demos, so
it stays as the name for "a panel", now a plain one with a hairline. */
.glass,
.glass-dark,
.card {
background: var(--panel);
border: 1px solid var(--rule);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
backdrop-filter: none;
}
.glass-dark {
background: var(--ink);
border-color: #23303c;
color: #e8edf2;
}
.card { transition: border-color .14s ease, transform .14s ease; }
.card:hover { border-color: var(--accent); transform: none; }
.hover-lift { transition: transform .14s ease, border-color .14s ease; }
.hover-lift:hover { transform: translateY(-2px); border-color: var(--accent); }
/* Gradients are gone. The names survive so nothing breaks, but they are
now flat surfaces: a gradient was never carrying information here. */
.card-gradient,
.btn-gradient {
background: var(--accent);
color: #fff;
border: 1px solid var(--accent);
}
.gradient-text {
background: none;
-webkit-text-fill-color: currentColor;
color: var(--accent);
font-weight: 700;
}
/* ---------- controls ---------- */
.btn {
border-radius: 7px;
font-weight: 500;
transition: var(--transition);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.btn-primary {
--bs-btn-bg: var(--accent);
--bs-btn-border-color: var(--accent);
--bs-btn-hover-bg: var(--primary-dark);
--bs-btn-hover-border-color: var(--primary-dark);
--bs-btn-active-bg: var(--primary-dark);
--bs-btn-active-border-color: var(--primary-dark);
--bs-btn-disabled-bg: var(--accent);
--bs-btn-disabled-border-color: var(--accent);
}
.btn-outline-primary {
--bs-btn-color: var(--accent);
--bs-btn-border-color: var(--accent);
--bs-btn-hover-bg: var(--accent);
--bs-btn-hover-border-color: var(--accent);
}
.form-control,
.form-select {
border-color: var(--rule);
border-radius: 7px;
}
.form-control:focus,
.form-select:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
/* ---------- navigation ---------- */
.navbar {
background: color-mix(in srgb, var(--panel) 70%, transparent) !important;
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--rule);
box-shadow: none;
}
.navbar .navbar-brand { font-family: Archivo, sans-serif; font-weight: 700; letter-spacing: -0.01em; }
/* ---------- data ---------- */
.table { --bs-table-border-color: var(--rule-soft); margin-bottom: 0; }
.table thead th {
font-size: 0.72rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--faint);
font-weight: 600;
border-bottom: 1px solid var(--rule);
background: #fbfcfd;
}
.stat-card {
background: var(--panel);
border: 1px solid var(--rule);
border-left: 3px solid var(--accent);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
color: inherit;
}
.stat-card .display-4,
.stat-card .h2,
.stat-card h2 {
font-family: Archivo, sans-serif;
font-variant-numeric: tabular-nums;
letter-spacing: -0.03em;
}
/* ---------- demo-specific bits ---------- */
.product-card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); }
.product-card:hover { border-color: var(--accent); }
.product-badge {
background: var(--accent);
color: #fff;
font-family: "JetBrains Mono", monospace;
font-size: 0.68rem;
letter-spacing: 0.04em;
border-radius: 4px;
}
.task-item {
background: var(--panel);
border: 1px solid var(--rule);
border-radius: 7px;
transition: border-color .14s ease;
}
.task-item:hover { border-color: var(--accent); }
.chat-container { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); }
.chat-messages { background: var(--ground); }
.chat-bubble {
border-radius: 10px;
border: 1px solid var(--rule);
background: var(--panel);
color: var(--ink);
}
.chat-message.own .chat-bubble,
.chat-bubble.own {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
/* ---------- motion ---------- */
.fade-in { animation: fade-in .22s ease both; }
@keyframes fade-in {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: none; }
}
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation: none !important;
transition: none !important;
}
.hover-lift:hover { transform: none; }
}
/* ============================================================
Discipline pass.
Colour carries meaning or it does not appear. Bootstrap's
semantic variants were being used decoratively, which is what
made the pages read as unfinished.
============================================================ */
/* ---- one accent, and grey for everything else ---- */
.btn-success, .btn-info, .btn-warning, .btn-secondary {
--bs-btn-bg: var(--panel);
--bs-btn-border-color: var(--rule);
--bs-btn-color: var(--ink);
--bs-btn-hover-bg: #f6f8f9;
--bs-btn-hover-border-color: var(--rule-strong, #c3ccd4);
--bs-btn-hover-color: var(--ink);
--bs-btn-active-bg: #eef1f4;
--bs-btn-active-border-color: var(--accent);
--bs-btn-active-color: var(--ink);
}
/* Destructive stays red. That is information. */
.btn-danger, .btn-outline-danger {
--bs-btn-bg: var(--panel);
--bs-btn-border-color: #e0c4bf;
--bs-btn-color: var(--danger);
--bs-btn-hover-bg: var(--danger);
--bs-btn-hover-border-color: var(--danger);
--bs-btn-hover-color: #fff;
}
/* Bootstrap's link blue was leaking into prices and headings. */
.text-primary { color: var(--ink) !important; }
.text-info, .text-secondary { color: var(--muted) !important; }
.text-warning { color: var(--warning) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
a:not(.btn):not(.nav-link):not(.demo) { color: var(--accent); text-underline-offset: 2px; }
/* ---- numbers and labels ---- */
.stat-card {
padding: 1.05rem 1.15rem 1.15rem;
display: flex;
flex-direction: column;
gap: 0.15rem;
}
/* the label is the small part, the number is the point */
.stat-card > :first-child,
.stat-card .stat-label,
.stat-card .text-muted:first-child {
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.09em;
text-transform: uppercase;
color: var(--faint);
order: -1;
}
.stat-card .stat-value,
.stat-card h2, .stat-card h3, .stat-card .h2, .stat-card .h4, .stat-card .display-6 {
font-family: Archivo, sans-serif;
font-size: clamp(1.6rem, 2.6vw, 2.05rem);
font-weight: 700;
line-height: 1.05;
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
margin: 0;
color: var(--ink);
}
.stat-card small, .stat-card .small { font-size: 0.78rem; color: var(--muted); }
td, th, .tabular { font-variant-numeric: tabular-nums; }
/* ---- cards in the same row end at the same line ----
Scoped to cards on purpose: an earlier blanket rule on every column
turned the navbar into a stacked, centred column. */
.row > .col > .card,
.row > .col > .glass,
.row > .col > .product-card,
.row > [class*="col-"] > .card,
.row > [class*="col-"] > .glass,
.row > [class*="col-"] > .product-card { height: 100%; }
/* rnxJS <Column> renders class="col", with no hyphen. An earlier selector
used [class*="col-"], which never matched, so nothing lined up.
Only cards laid out in a grid. `.glass` is also used for page headers that
carry `d-flex` for a horizontal bar, and forcing a column direction on those
stacked the title above the buttons. */
.row > .col > .card,
.row > .col > .glass,
.row > [class*="col-"] > .card,
.row > [class*="col-"] > .glass,
.product-card { display: flex; flex-direction: column; }
.row > .col > .card > .card-body,
.row > .col > .glass > .card-body { flex: 1 1 auto; }
/* ---- product tiles: a considered placeholder, not a fake photo ---- */
.product-card img,
img[src*="placehold"] {
display: block;
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
background: var(--ground);
border-bottom: 1px solid var(--rule);
/* the colour block with a huge product name reads as unfinished */
filter: grayscale(1) contrast(0.9) opacity(0.55);
}
.product-badge {
position: absolute;
top: 0.6rem;
left: 0.6rem;
z-index: 2;
}
.product-card { position: relative; overflow: hidden; }
/* ---- rating stars: one weight, not Bootstrap yellow ---- */
.bi-star-fill, .bi-star-half { color: var(--ink); }
.bi-star { color: var(--rule-strong, #c3ccd4); }
/* ---- table actions ---- */
.table .btn-sm, .table .btn { --bs-btn-padding-y: 0.2rem; --bs-btn-padding-x: 0.45rem; font-size: 0.8rem; }
.table td { vertical-align: middle; }
/* ---- section headings ---- */
.card-title, .card-header h5, .card-header h4 {
font-family: Archivo, sans-serif;
font-size: 0.95rem;
font-weight: 600;
letter-spacing: -0.01em;
}
/* ---- product tiles ----
A coloured rectangle with the product name set in 40px is what a
placeholder looks like. A quiet monogram reads as a deliberate
no-image state, and it costs no external request. */
.product-thumb {
aspect-ratio: 4 / 3;
display: grid;
place-items: center;
background:
repeating-linear-gradient(45deg, #f4f6f8 0 10px, #eef1f4 10px 20px);
border-bottom: 1px solid var(--rule);
color: var(--faint);
}
.product-thumb > span {
font-family: Archivo, sans-serif;
font-size: 2.1rem;
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1;
opacity: 0.55;
}
.product-thumb-sm {
width: 56px;
height: 56px;
aspect-ratio: auto;
border: 1px solid var(--rule);
border-radius: 7px;
flex: none;
}
.product-thumb-sm > span { font-size: 1.05rem; }