fix video

This commit is contained in:
sakrecoer 2020-08-10 12:47:49 +02:00
parent 2759e9cb27
commit 7062f902a9
4 changed files with 27 additions and 10 deletions

View file

@ -19,6 +19,7 @@ body {
-webkit-transition: filter 400ms ease-in;
-moz-transition: filter 400ms ease-in;
transition: filter 400ms ease-in;
z-index: 1;
}
.content-wrapper {
@ -88,6 +89,7 @@ section {
-webkit-box-shadow: inset 0px 23px 25px -25px _palette(border-alt);
-moz-box-shadow: inset 0px 23px 25px -25px _palette(border-alt);
box-shadow: inset 0px 23px 25px -25px _palette(border-alt);
z-index: 2;
h2 {
text-align: center;
}
@ -96,6 +98,8 @@ section:first-of-type {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
margin-top:0;
padding-top: 40px;
}
footer {
display: flex;
@ -110,6 +114,7 @@ footer {
background-repeat: repeat-x;
background-position: top;
box-sizing: border-box;
z-index: 2;
div {
flex: 0 1 280px;
margin:20px;

View file

@ -4,17 +4,24 @@
height: 100%;
width: 100%;
overflow: hidden;
z-index: -100;
background: #fff;
z-index: 0;
background: _palette(bg);
top: 0;
left: 0;
right: 0;
z-index: 0;
}
.fullscreen-bg__video {
background: #fff;
position: relative;
left: 50%;
top:50%;
transform: translate(-50%, -50%);
width: 100%;
object-fit: cover;
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
}
#myVideo {
position: absolute;
@ -22,4 +29,5 @@
bottom: 0;
min-width: 100%;
min-height: 100%;
}