EHS-Studio commited on
Commit
fedead1
·
1 Parent(s): 54adc52

homepage and footer shrink properly on narrow screens

Browse files
Files changed (2) hide show
  1. public/styles/home.dssl +101 -2
  2. public/styles/site.dssl +1 -1
public/styles/home.dssl CHANGED
@@ -45,6 +45,7 @@
45
 
46
  .hero-copy {
47
  max-width: 560
 
48
  }
49
 
50
  .hero-title {
@@ -70,11 +71,11 @@
70
  }
71
 
72
  .hero-ctas {
73
- row: gap 12 center
74
  }
75
 
76
  .hero-meta {
77
- row: gap 14 center
78
  margin-top: space.5
79
  color: color.muted
80
  font-size: 13
@@ -97,6 +98,7 @@
97
  .demo {
98
  width: 100%
99
  max-width: 480
 
100
  }
101
 
102
  .demo-tabs {
@@ -326,6 +328,7 @@ motion rise-in {
326
 
327
  .compare-col {
328
  column: gap 10
 
329
  }
330
 
331
  .compare-tag {
@@ -387,6 +390,102 @@ motion rise-in {
387
  color: color.muted
388
  }
389
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
390
  // ------------------------------------------------------------------- cta
391
 
392
  .cta-band {
 
45
 
46
  .hero-copy {
47
  max-width: 560
48
+ min-width: 0
49
  }
50
 
51
  .hero-title {
 
71
  }
72
 
73
  .hero-ctas {
74
+ row: gap 12 center wrap
75
  }
76
 
77
  .hero-meta {
78
+ row: gap 14 center wrap
79
  margin-top: space.5
80
  color: color.muted
81
  font-size: 13
 
98
  .demo {
99
  width: 100%
100
  max-width: 480
101
+ min-width: 0
102
  }
103
 
104
  .demo-tabs {
 
328
 
329
  .compare-col {
330
  column: gap 10
331
+ min-width: 0
332
  }
333
 
334
  .compare-tag {
 
390
  color: color.muted
391
  }
392
 
393
+ // ------------------------------------------------- get the engine (v0.4.1)
394
+ // The install section: three platform cards and the two-tag wiring snippet.
395
+ // Same reveal choreography as the grids above, because consistency is style.
396
+
397
+ .get-grid {
398
+ display: grid
399
+ grid-template-columns: repeat(3, 1fr)
400
+ gap: space.4
401
+ }
402
+
403
+ @media (width <= 980) {
404
+ .get-grid {
405
+ grid-template-columns: 1fr
406
+ }
407
+ }
408
+
409
+ .get-card {
410
+ column: gap space.4
411
+ padding: space.5
412
+ min-width: 0
413
+ }
414
+
415
+ // grid children default to min-width auto: without this the long install
416
+ // one-liners push their card (and the whole grid) past the viewport instead
417
+ // of scrolling inside the code block
418
+ .get-wire-code {
419
+ min-width: 0
420
+ }
421
+
422
+ .get-card .code {
423
+ font-size: 12.5
424
+ }
425
+
426
+ .get-os {
427
+ font-family: font.mono
428
+ font-size: 11.5
429
+ font-weight: 700
430
+ letter-spacing: 0.09em
431
+ text-transform: uppercase
432
+ color: color.accent
433
+ }
434
+
435
+ .get-note {
436
+ margin: 0
437
+ font-size: 13
438
+ line-height: 1.6
439
+ color: color.muted
440
+ }
441
+
442
+ .get-downloads {
443
+ row: gap space.3
444
+ }
445
+
446
+ .get-wire {
447
+ display: grid
448
+ grid-template-columns: 3fr 2fr
449
+ gap: space.5
450
+ margin-top: space.6
451
+ align-items: center
452
+ }
453
+
454
+ @media (width <= 980) {
455
+ .get-wire {
456
+ grid-template-columns: 1fr
457
+ margin-top: space.5
458
+ }
459
+ }
460
+
461
+ .get-wire-copy {
462
+ column: gap space.3
463
+ }
464
+
465
+ .get-wire-copy h3 {
466
+ font-family: font.serif
467
+ font-size: 22
468
+ font-weight: 650
469
+ margin: 0
470
+ }
471
+
472
+ .get-wire-copy p {
473
+ margin: 0
474
+ font-size: 14
475
+ line-height: 1.7
476
+ color: color.muted
477
+ }
478
+
479
+ .get-grid {
480
+ stagger: 60
481
+ }
482
+
483
+ .get-card {
484
+ seen {
485
+ animate: rise-in 480 snap
486
+ }
487
+ }
488
+
489
  // ------------------------------------------------------------------- cta
490
 
491
  .cta-band {
public/styles/site.dssl CHANGED
@@ -480,7 +480,7 @@ html:not([data-theme-mode="dark"]):not([data-theme-mode="light"]) .theme-btn {
480
  }
481
 
482
  .footer-links {
483
- row: gap 4 center
484
  }
485
 
486
  // -------------------------------------------------------------- utilities
 
480
  }
481
 
482
  .footer-links {
483
+ row: gap 12 center wrap
484
  }
485
 
486
  // -------------------------------------------------------------- utilities