We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13d847b commit c67c380Copy full SHA for c67c380
src/styles/base.scss
@@ -18,6 +18,20 @@
18
--width-40-dvh: 40dvw;
19
--width-70-dvh: 70dvw;
20
21
+ @media (display-mode: standalone) {
22
+ /* height */
23
+ --full-height: 100vh;
24
+ --half-height: 50vh;
25
+ --height-40-dvh: 40vh;
26
+ --height-70-dvh: 70vh;
27
+
28
+ /** width */
29
+ --full-width: 100vw;
30
+ --half-width: 50vw;
31
+ --width-40-dvh: 40vw;
32
+ --width-70-dvh: 70vw;
33
+ }
34
35
/* font variables */
36
--font-size-xxs: 0.625rem;
37
--font-size-xs: 0.75rem;
src/styles/mixin.scss
@@ -74,7 +74,7 @@
74
scale: 0.95;
75
76
&.show {
77
- max-height: 100dvh;
+ max-height: var(--full-height, 100dvh);
78
margin-top: initial;
79
opacity: 1;
80
transition:
0 commit comments