move away from deprecated realtive path

This commit is contained in:
Set Sakrecoer 2019-06-19 16:52:49 +02:00
parent d53c344a70
commit 49fa7ba79f
23 changed files with 67 additions and 167 deletions

View file

@ -1,54 +0,0 @@
#videoplayer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
min-width: 100%;
min-height: 100%;
overflow: hidden;
}
video {
min-width: 100%;
min-height: 100%;
background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/polina.jpg') no-repeat;
background-size: cover;
opacity: 0.3;
-webkit-transition: 1s opacity; transition: 1s opacity;
overflow: hidden;
}
button {
position:fixed;
top:100px;
left: 100px;
display: block;
width: 200px;
padding: .4rem;
border: none;
margin: 1rem auto;
font-size: 1.3rem;
background: rgba(255,255,255,0.23);
color: #fff;
border-radius: 3px;
cursor: pointer;
-webkit-transition: .3s background;
transition: .3s background;
}
#videoplayer button:hover {
background: rgba(0,0,0,0.5);
}
@media screen and (max-width: 500px) {
div{width:70%;}
}
@media all and (max-device-width: 800px) {
body { background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/polina.jpg") #000 no-repeat center center fixed; background-size: cover; }
#bgvid, #videoplayer button { display: none; }
div{width:70%;}
}
.stopfade { opacity: 1;
}

View file

@ -1,46 +0,0 @@
html,
body {
height: 100%;
}
body {
display: flex;
margin: 0;
}
#content {
flex-grow: 1;
background: steelblue;
overflow-x: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#bgvid {
object-fit: cover;
width: 100%;
height: 100%;
}
button {
position:fixed;
top:70%;
left: 20%;
display: block;
width: 200px;
padding: .4rem;
border: none;
margin: 1rem auto;
font-size: 1.3rem;
background: rgba(255,255,255,0.23);
color: #fff;
border-radius: 3px;
cursor: pointer;
-webkit-transition: .3s background;
transition: .3s background;
}
button:hover {
background: rgba(0,0,0,0.5);
}