-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
53 lines (53 loc) · 1.15 KB
/
style.css
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
48
49
50
51
52
53
html {
scroll-behavior: smooth;
}
.navbar{
z-index: 3;
}
header {
position: relative;
background-color: black;
height: 75vh;
min-height: 25rem;
width: 100%;
overflow: hidden;
display: flex;
align-items: center;
}
header video {
position:absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: 0;
-ms-transform: translateX(-50%) translateY(-50%);
-moz-transform: translateX(-50%) translateY(-50%);
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
}
header .overlay {
position:absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: black;
opacity: 0.7;
z-index: 1;
}
form {
z-index:2;
justify-content: center;
}
/*image is taken from google */
@media (pointer: coarse) and (hover: none) {
header {
background: url('media/vr_bed.jpg') black no-repeat center center scroll;
}
header video {
display: none;
}
}