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