|
23 | 23 | // HTML sizes
|
24 | 24 | @html-width: ~"calc(max(var(--small-viewport-width), var(--dynamic-viewport-width)))";
|
25 | 25 | @html-height: ~"calc(max(var(--small-viewport-height), var(--dynamic-viewport-height)))";
|
26 |
| -@html-standalone-width: ~"calc(max(100%, var(--large-viewport-width)))"; |
27 |
| -@html-standalone-height: ~"calc(max(100%, var(--large-viewport-height)))"; |
| 26 | +@html-standalone-width: ~"calc(max(100%, var(--small-viewport-width)))"; |
| 27 | +@html-standalone-height: ~"calc(max(100%, var(--small-viewport-height)))"; |
28 | 28 |
|
29 | 29 | // Safe area insets
|
30 | 30 | @safe-area-inset-top: env(safe-area-inset-top, 0rem);
|
|
64 | 64 | --modal-background-color: rgba(15, 13, 32, 1);
|
65 | 65 | --outer-glow: 0px 0px 15px rgba(123, 91, 245, 0.37);
|
66 | 66 | --border-radius: 0.75rem;
|
67 |
| - --calculated-bottom-safe-inset: @calculated-bottom-safe-inset; |
68 | 67 | --top-overlay-size: @top-overlay-size;
|
69 | 68 | --bottom-overlay-size: @bottom-overlay-size;
|
70 | 69 | --overlap-size: @overlap-size;
|
|
99 | 98 | @supports (height: 100lvh) and (height: 100svh) {
|
100 | 99 | --viewport-height-diff: calc(100lvh - 100svh);
|
101 | 100 | }
|
| 101 | + |
| 102 | + @media (display-mode: standalone) { |
| 103 | + --safe-area-inset-bottom: @calculated-bottom-safe-inset; |
| 104 | + } |
102 | 105 | }
|
103 | 106 |
|
104 | 107 | * {
|
@@ -174,7 +177,7 @@ html {
|
174 | 177 | position: absolute;
|
175 | 178 | top: calc(1.2 * var(--horizontal-nav-bar-size) + var(--safe-area-inset-top));
|
176 | 179 | right: var(--safe-area-inset-right);
|
177 |
| - bottom: calc(1.2 * var(--horizontal-nav-bar-size) + var(--calculated-bottom-safe-inset, 0rem)); |
| 180 | + bottom: calc(1.2 * var(--horizontal-nav-bar-size) + var(--safe-area-inset-bottom, 0rem)); |
178 | 181 | left: auto;
|
179 | 182 | z-index: 1;
|
180 | 183 | padding: 0 calc(0.5 * var(--horizontal-nav-bar-size));
|
|
0 commit comments