|
1 | | -/* DAB styles v4 — 2026-03-21 */ |
| 1 | +/* DAB styles v5 — 2026-03-21 */ |
2 | 2 | /* ── Variables ───────────────────────────────────────── */ |
3 | 3 | :root { |
4 | 4 | --navy: #002145; |
@@ -37,6 +37,27 @@ h3 { margin: 0 0 0.4rem; font-size: 0.95rem; font-weight: 700; color: var(--blue |
37 | 37 | .container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; } |
38 | 38 | .muted { color: var(--muted); } |
39 | 39 |
|
| 40 | +.two-col { |
| 41 | + display: flex; |
| 42 | + gap: 1rem; |
| 43 | + align-items: flex-start; |
| 44 | +} |
| 45 | + |
| 46 | +.two-col-about { |
| 47 | + flex: 1 1 0; |
| 48 | + min-width: 0; |
| 49 | +} |
| 50 | + |
| 51 | +.two-col-main { |
| 52 | + flex: 3 1 0; |
| 53 | + min-width: 0; |
| 54 | + display: flex; |
| 55 | + flex-direction: column; |
| 56 | + gap: 1rem; |
| 57 | +} |
| 58 | + |
| 59 | +.stats-row-2col { grid-template-columns: repeat(2, 1fr); } |
| 60 | + |
40 | 61 | /* ── Header ──────────────────────────────────────────── */ |
41 | 62 | .page-header { |
42 | 63 | background: linear-gradient(140deg, var(--navy), var(--blue)); |
@@ -131,7 +152,7 @@ ul.about-list li { |
131 | 152 | } |
132 | 153 |
|
133 | 154 | /* ── Tables ──────────────────────────────────────────── */ |
134 | | -.table-wrap { overflow-x: auto; } |
| 155 | +.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } |
135 | 156 |
|
136 | 157 | table { width: 100%; border-collapse: collapse; font-size: 0.88rem; } |
137 | 158 |
|
@@ -275,13 +296,15 @@ pre.code-block code { |
275 | 296 | */ |
276 | 297 | .explorer-body { |
277 | 298 | display: flex; |
| 299 | + flex-direction: row; |
278 | 300 | height: 540px; |
279 | 301 | overflow: hidden; |
280 | 302 | } |
281 | 303 |
|
282 | 304 | .explorer-nav { |
283 | | - width: 200px; |
284 | | - min-width: 200px; |
| 305 | + width: 210px; |
| 306 | + min-width: 210px; |
| 307 | + flex-shrink: 0; |
285 | 308 | border-right: 1px solid var(--border); |
286 | 309 | overflow-y: auto; |
287 | 310 | background: #f2f7fc; |
@@ -459,15 +482,50 @@ pre.code-block code { |
459 | 482 | /* ── Responsive ──────────────────────────────────────── */ |
460 | 483 | @media (max-width: 960px) { |
461 | 484 | .hero-grid { flex-direction: column; } |
462 | | - .two-col { flex-direction: column !important; } |
463 | | - .two-col > .card { flex: unset !important; width: 100% !important; } |
| 485 | + .two-col { flex-direction: column; } |
| 486 | + .two-col-about { flex: unset; width: 100%; } |
| 487 | + .two-col-main { flex: unset; width: 100%; } |
464 | 488 | .stats-row { grid-template-columns: repeat(2, 1fr); } |
465 | 489 | } |
466 | 490 |
|
467 | 491 | @media (max-width: 600px) { |
468 | | - .explorer-body { flex-direction: column; height: auto; } |
469 | | - .explorer-nav { width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid var(--border); height: 160px; } |
| 492 | + .page-header { padding: 1.2rem 0; } |
| 493 | + .page-header h1 { font-size: 1.35rem; } |
| 494 | + .subtitle { font-size: 0.9rem; } |
| 495 | + .container { padding: 0 0.75rem; } |
| 496 | + h2 { font-size: 0.98rem; } |
| 497 | + .card { padding: 0.85rem 0.9rem; } |
| 498 | + .explorer-body { flex-direction: column; height: auto; overflow: visible; } |
| 499 | + .explorer-nav { |
| 500 | + width: 100%; |
| 501 | + min-width: unset; |
| 502 | + flex-shrink: unset; |
| 503 | + border-right: none; |
| 504 | + border-bottom: 1px solid var(--border); |
| 505 | + height: 160px; |
| 506 | + } |
470 | 507 | .explorer-main { height: auto; overflow-y: unset; } |
| 508 | + .explorer-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.65rem 0.9rem; } |
| 509 | + .explorer-bar .search-wrap { margin-left: 0; width: 100%; } |
| 510 | + .explorer-bar .search-wrap input { width: 100%; } |
471 | 511 | .ds-meta-grid { grid-template-columns: repeat(2, 1fr); } |
472 | 512 | .stats-row { grid-template-columns: repeat(2, 1fr); } |
| 513 | + .table-controls { flex-direction: column; align-items: flex-start; gap: 0.35rem; } |
| 514 | + .table-controls label { margin-top: 0.15rem; } |
| 515 | + .sel select { min-width: unset; width: 100%; } |
| 516 | + .sel { width: 100%; } |
| 517 | + table { font-size: 0.8rem; } |
| 518 | + th, td { padding: 0.38rem 0.45rem; } |
| 519 | + .hero-actions { justify-content: flex-start; } |
| 520 | + .btn { padding: 0.45rem 0.75rem; font-size: 0.82rem; } |
| 521 | + pre.code-block { font-size: 0.76rem; padding: 0.6rem; } |
| 522 | + .q-text-inline { font-size: 0.82rem; } |
| 523 | + .ds-link { font-size: 0.76rem; padding: 0.18rem 0.38rem; } |
| 524 | +} |
| 525 | + |
| 526 | +@media (max-width: 400px) { |
| 527 | + .page-header h1 { font-size: 1.15rem; } |
| 528 | + .stats-row-2col { grid-template-columns: 1fr; } |
| 529 | + .ds-meta-grid { grid-template-columns: 1fr; } |
| 530 | + .stat-value { font-size: 1.3rem; } |
473 | 531 | } |
0 commit comments