-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathenv-function.html
30 lines (30 loc) · 954 Bytes
/
env-function.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS env() function test.</title>
<style>
body {
margin: 0;
min-height: 1600px;
background: linear-gradient(#0074D9 48px, white 48px) 0 0 / 100% 96px repeat-y;
}
.safeArea {
position: fixed;
width: 100%;
bottom: env(safe-area-inset-bottom);
height: calc(env(safe-area-inset-bottom) + 48px);
line-height: calc(env(safe-area-inset-bottom) + 48px);
background: #FF4136;
opacity: .9;
text-align: center;
color: #fff;
}
</style>
</head>
<body>
<a class="safeArea" href="https://github.com/naradesign/css/blob/main/env-function.html">VIEW HTML/CSS SOURCE CODE</a>
</body>
</html>