-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorientation-lock.css
More file actions
47 lines (43 loc) · 1.12 KB
/
orientation-lock.css
File metadata and controls
47 lines (43 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Orientation lock overlay.
* Shows a full-screen overlay prompting the user to rotate to landscape.
* Only applies to screens ≤1024px in portrait orientation.
* support.html no longer uses this overlay.
*/
#orientation-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
/* width/height are overridden by fluid-scaling.js to compensate for body zoom */
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.85);
z-index: 999999;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 24px;
color: white;
font-family: 'Ubuntu', sans-serif;
font-weight: 300;
font-size: 18px;
text-align: center;
padding: 40px;
box-sizing: border-box;
}
#orientation-overlay svg {
width: 72px;
height: 72px;
fill: white;
display: block;
flex-shrink: 0;
}
#orientation-overlay p {
margin: 0;
max-width: 260px;
line-height: 1.5;
}
/* Overlay show/hide is handled by fluid-scaling.js via window.innerWidth/innerHeight,
* because viewport width=1440 makes CSS max-width media queries check the layout
* viewport (always 1440px) rather than the actual device width. */