-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcover.css
116 lines (94 loc) · 1.43 KB
/
cover.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*CSS Setup*/
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
font-family: sans-serif;
margin: 0;
overflow: hidden;
background: url(Bokeh-Tov.jpg) no-repeat center center fixed;
background-size: cover;
}
.flex-item {
color: white;
z-index: 9999;
background-color: rgba(0,0,0,0.75);
}
footer {
color: white;
z-index: 9999;
position: absolute;
top: 90%;
width: 100%;
text-align: center;
left: 0;
bottom: 100%;
height: 100px;
}
.cover {
height: 100vh;
width: 100%;
overflow: hidden;
}
/*VIDEO*/
.bokeh {
position: absolute;
top: 0;
object-fit: cover;
width:100%;
height:100%;
}
video {
position:absolute;
z-index:0;
}
video.fillWidth {
width: 100%;
}
.name {
color: orange;
}
/*Flexbox*/
.cover {
display: flex;
justify-content: center;
align-items: center;
}
@media only screen and (min-device-width: 501px) {
.flex-item{
flex: 1;
font-size: 1rem;
flex-basis: 100%;
margin: 0;
padding: 1em;
text-align:center;
}
.flex-item h1{
text-align: center;
}
footer {
color: white;
font-size: 1em;
}
}
@media only screen and (max-device-width: 500px) {
.flex-item{
font-size: 2rem;
flex-basis: 45%;
margin: 10%;
padding: 1em;
text-align:left;
}
.flex-item h1{
text-align: left;
color: white;
}
footer {
color: white;
font-size: 2em;
top: 85%;
}
}