2017-08-30 19:57:42 +02:00
|
|
|
|
2017-08-18 07:37:35 +02:00
|
|
|
$height-video-embedded: $width-page-constrained * 9 / 16;
|
2017-09-07 00:03:09 +02:00
|
|
|
|
2017-04-13 20:52:26 +02:00
|
|
|
video {
|
2017-04-14 00:32:03 +02:00
|
|
|
object-fit: contain;
|
|
|
|
box-sizing: border-box;
|
|
|
|
max-height: 100%;
|
|
|
|
max-width: 100%;
|
2017-05-17 23:52:45 +02:00
|
|
|
background-size: contain;
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
2017-04-14 00:32:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.video {
|
|
|
|
background: #000;
|
|
|
|
color: white;
|
2017-04-13 20:52:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.video-embedded {
|
2017-04-14 00:32:03 +02:00
|
|
|
max-width: $width-page-constrained;
|
2017-04-17 14:27:39 +02:00
|
|
|
max-height: $height-video-embedded;
|
|
|
|
height: $height-video-embedded;
|
2017-07-02 16:48:18 +02:00
|
|
|
position: relative;
|
2017-04-13 20:52:26 +02:00
|
|
|
video {
|
2017-04-14 00:32:03 +02:00
|
|
|
height: 100%;
|
2017-08-09 03:35:47 +02:00
|
|
|
width: 100%;
|
2017-08-09 17:28:54 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2017-04-14 00:32:03 +02:00
|
|
|
}
|
|
|
|
&.video--hidden {
|
2017-04-17 14:27:39 +02:00
|
|
|
height: $height-video-embedded;
|
2017-04-13 20:52:26 +02:00
|
|
|
}
|
2017-06-07 18:06:14 +02:00
|
|
|
}
|
2017-06-26 16:00:24 +02:00
|
|
|
.video--obscured .video__cover
|
|
|
|
{
|
|
|
|
position: relative;
|
2017-08-18 07:37:35 +02:00
|
|
|
filter: blur(var(--nsfw-blur-intensity));
|
2017-06-26 16:00:24 +02:00
|
|
|
}
|
2017-06-07 08:32:38 +02:00
|
|
|
|
|
|
|
|
2017-06-09 01:16:38 +02:00
|
|
|
.video__loading-screen {
|
2017-06-07 18:06:14 +02:00
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2017-06-07 08:32:38 +02:00
|
|
|
|
2017-06-09 01:16:38 +02:00
|
|
|
.video__loading-spinner {
|
2017-06-07 18:06:14 +02:00
|
|
|
position: relative;
|
|
|
|
width: 11em;
|
|
|
|
height: 11em;
|
|
|
|
margin: 20px auto;
|
|
|
|
font-size: 3px;
|
|
|
|
border-radius: 50%;
|
2017-06-07 06:12:45 +02:00
|
|
|
|
2017-06-07 18:06:14 +02:00
|
|
|
background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 50%);
|
|
|
|
animation: spin 1.4s infinite linear;
|
|
|
|
transform: translateZ(0);
|
2017-06-07 06:12:45 +02:00
|
|
|
|
2017-06-07 18:06:14 +02:00
|
|
|
@keyframes spin {
|
|
|
|
from {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
2017-06-07 08:32:38 +02:00
|
|
|
|
2017-06-07 18:06:14 +02:00
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
2017-06-07 08:32:38 +02:00
|
|
|
|
2017-06-07 18:06:14 +02:00
|
|
|
&:before {
|
|
|
|
width: 50%;
|
|
|
|
height: 50%;
|
|
|
|
background: #ffffff;
|
|
|
|
border-radius: 100% 0 0 0;
|
2017-06-07 06:12:45 +02:00
|
|
|
}
|
|
|
|
|
2017-06-07 18:06:14 +02:00
|
|
|
&:after {
|
|
|
|
height: 75%;
|
|
|
|
width: 75%;
|
|
|
|
margin: auto;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
background: black;
|
|
|
|
border-radius: 50%;
|
2017-05-17 23:52:45 +02:00
|
|
|
}
|
2017-04-14 00:32:03 +02:00
|
|
|
}
|
|
|
|
|
2017-06-09 01:16:38 +02:00
|
|
|
.video__loading-status {
|
2017-06-07 18:06:14 +02:00
|
|
|
padding-top: 20px;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
2017-04-14 00:32:03 +02:00
|
|
|
.video__cover {
|
|
|
|
text-align: center;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2017-04-14 01:43:17 +02:00
|
|
|
background-size: auto 100%;
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
2017-04-14 00:32:03 +02:00
|
|
|
position: relative;
|
2017-09-07 00:03:09 +02:00
|
|
|
.video__play-button {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2017-04-14 00:32:03 +02:00
|
|
|
}
|
2017-06-09 01:16:38 +02:00
|
|
|
|
2017-04-14 00:32:03 +02:00
|
|
|
.video__play-button {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
cursor: pointer;
|
|
|
|
display: none;
|
|
|
|
font-size: $spacing-vertical * 3;
|
|
|
|
color: white;
|
|
|
|
z-index: 1;
|
2017-08-19 01:25:35 +02:00
|
|
|
background: var(--color-dark-overlay);
|
2017-04-17 22:45:51 +02:00
|
|
|
opacity: 0.6;
|
2017-04-14 00:32:03 +02:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2017-04-17 22:45:51 +02:00
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
2017-08-19 02:06:53 +02:00
|
|
|
transition: opacity var(--transition-duration) var(--transition-type);
|
2017-04-17 22:45:51 +02:00
|
|
|
}
|
2017-06-07 06:12:45 +02:00
|
|
|
}
|