|
53 | 53 | --home-next-layer-shift: 18px; |
54 | 54 | --home-next-layer-overlap: clamp(34rem, 68vh, 46rem); |
55 | 55 | --site-atmosphere-opacity: 1; |
| 56 | + |
| 57 | + --site-atmosphere-viewport-height: 100svh; |
| 58 | + --site-atmosphere-viewport-width: 100vw; |
| 59 | + --site-atmosphere-render-height: 100svh; |
| 60 | + --site-atmosphere-render-width: 100vw; |
| 61 | + --site-atmosphere-safe-top: 0px; |
| 62 | + --site-atmosphere-safe-bottom: 0px; |
| 63 | + |
56 | 64 | --site-atmosphere-width: 148vw; |
57 | | - --site-atmosphere-height: clamp(calc(100svh + 8rem), 132dvh, calc(100svh + 16rem)); |
58 | | - --site-atmosphere-offset-y: clamp(0.75rem, 2.2dvh, 2.25rem); |
| 65 | + --site-atmosphere-height: clamp( |
| 66 | + calc(var(--site-atmosphere-render-height) * 1.04), |
| 67 | + calc(var(--site-atmosphere-render-height) * 1.12), |
| 68 | + calc(var(--site-atmosphere-render-height) * 1.18) |
| 69 | + ); |
| 70 | + --site-atmosphere-offset-y: clamp(0.2rem, 1.2dvh, 1.2rem); |
59 | 71 | } |
60 | 72 |
|
61 | 73 | * { |
@@ -100,9 +112,9 @@ body.page-home { |
100 | 112 | top: 0; |
101 | 113 | left: 50%; |
102 | 114 | width: 100%; |
103 | | - height: 100vh; |
104 | | - height: 100svh; |
105 | | - height: 100dvh; |
| 115 | + height: var(--site-atmosphere-render-height); |
| 116 | + min-height: var(--site-atmosphere-render-height); |
| 117 | + max-height: var(--site-atmosphere-render-height); |
106 | 118 | opacity: var(--site-atmosphere-opacity); |
107 | 119 | will-change: opacity; |
108 | 120 | isolation: isolate; |
@@ -994,8 +1006,12 @@ a { |
994 | 1006 |
|
995 | 1007 | .site-atmosphere__layer { |
996 | 1008 | --site-atmosphere-width: 170vw; |
997 | | - --site-atmosphere-height: clamp(calc(100svh + 10rem), 138dvh, calc(100svh + 20rem)); |
998 | | - --site-atmosphere-offset-y: clamp(1.25rem, 3dvh, 3.25rem); |
| 1009 | + --site-atmosphere-height: clamp( |
| 1010 | + calc(var(--site-atmosphere-render-height) * 1.05), |
| 1011 | + calc(var(--site-atmosphere-render-height) * 1.13), |
| 1012 | + calc(var(--site-atmosphere-render-height) * 1.2) |
| 1013 | + ); |
| 1014 | + --site-atmosphere-offset-y: clamp(0.35rem, 1.6dvh, 1.4rem); |
999 | 1015 | background: |
1000 | 1016 | radial-gradient(78% 62% at 39% 31%, rgba(255, 157, 77, 0.13) 0%, rgba(255, 157, 77, 0.094) 28%, rgba(255, 157, 77, 0.03) 52%, rgba(255, 157, 77, 0) 72%), |
1001 | 1017 | radial-gradient(72% 58% at 61% 34%, rgba(82, 104, 255, 0.12) 0%, rgba(82, 104, 255, 0.086) 28%, rgba(82, 104, 255, 0.026) 52%, rgba(82, 104, 255, 0) 72%); |
@@ -2484,8 +2500,12 @@ body.page-home #about { |
2484 | 2500 |
|
2485 | 2501 | .site-atmosphere__layer { |
2486 | 2502 | --site-atmosphere-width: 156vw; |
2487 | | - --site-atmosphere-height: clamp(calc(100svh + 9rem), 134dvh, calc(100svh + 18rem)); |
2488 | | - --site-atmosphere-offset-y: clamp(1rem, 2.6dvh, 2.75rem); |
| 2503 | + --site-atmosphere-height: clamp( |
| 2504 | + calc(var(--site-atmosphere-render-height) * 1.03), |
| 2505 | + calc(var(--site-atmosphere-render-height) * 1.1), |
| 2506 | + calc(var(--site-atmosphere-render-height) * 1.16) |
| 2507 | + ); |
| 2508 | + --site-atmosphere-offset-y: clamp(0.25rem, 1.4dvh, 1.4rem); |
2489 | 2509 | } |
2490 | 2510 | } |
2491 | 2511 |
|
@@ -2666,8 +2686,12 @@ body.page-home #about { |
2666 | 2686 |
|
2667 | 2687 | .site-atmosphere__layer { |
2668 | 2688 | --site-atmosphere-width: 178vw; |
2669 | | - --site-atmosphere-height: clamp(calc(100svh + 10rem), 140dvh, calc(100svh + 22rem)); |
2670 | | - --site-atmosphere-offset-y: clamp(1.5rem, 3.2dvh, 3.75rem); |
| 2689 | + --site-atmosphere-height: clamp( |
| 2690 | + calc(var(--site-atmosphere-render-height) * 1.04), |
| 2691 | + calc(var(--site-atmosphere-render-height) * 1.1), |
| 2692 | + calc(var(--site-atmosphere-render-height) * 1.16) |
| 2693 | + ); |
| 2694 | + --site-atmosphere-offset-y: clamp(0.3rem, 1.5dvh, 1.2rem); |
2671 | 2695 | background: |
2672 | 2696 | radial-gradient(80% 64% at 40% 32%, rgba(255, 157, 77, 0.13) 0%, rgba(255, 157, 77, 0.094) 28%, rgba(255, 157, 77, 0.03) 52%, rgba(255, 157, 77, 0) 72%), |
2673 | 2697 | radial-gradient(74% 60% at 60% 35%, rgba(82, 104, 255, 0.12) 0%, rgba(82, 104, 255, 0.086) 28%, rgba(82, 104, 255, 0.026) 52%, rgba(82, 104, 255, 0) 72%); |
@@ -2724,8 +2748,12 @@ body.page-home #about { |
2724 | 2748 |
|
2725 | 2749 | .site-atmosphere__layer { |
2726 | 2750 | --site-atmosphere-width: 154vw; |
2727 | | - --site-atmosphere-height: clamp(calc(100svh + 7rem), 126dvh, calc(100svh + 13rem)); |
2728 | | - --site-atmosphere-offset-y: clamp(0.75rem, 2dvh, 2rem); |
| 2751 | + --site-atmosphere-height: clamp( |
| 2752 | + calc(var(--site-atmosphere-render-height) * 1.02), |
| 2753 | + calc(var(--site-atmosphere-render-height) * 1.08), |
| 2754 | + calc(var(--site-atmosphere-render-height) * 1.14) |
| 2755 | + ); |
| 2756 | + --site-atmosphere-offset-y: clamp(0.1rem, 1dvh, 0.9rem); |
2729 | 2757 | } |
2730 | 2758 | } |
2731 | 2759 |
|
|
0 commit comments