2018-10-17 19:14:24 +02:00
|
|
|
.content__cover {
|
|
|
|
// Video thumbnail with play/download button
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
display: flex;
|
2019-01-09 03:54:39 +01:00
|
|
|
align-items: center;
|
2018-10-17 19:14:24 +02:00
|
|
|
justify-content: center;
|
|
|
|
position: absolute;
|
2019-01-08 00:29:40 +01:00
|
|
|
background-position: 50% 50%;
|
|
|
|
background-repeat: no-repeat;
|
2019-01-24 19:09:27 +01:00
|
|
|
background-size: 100%;
|
2019-01-09 03:54:39 +01:00
|
|
|
margin: auto;
|
2018-10-17 19:14:24 +02:00
|
|
|
|
|
|
|
&:not(.card__media--nsfw) {
|
2019-01-08 00:29:40 +01:00
|
|
|
background-color: #000; // solid black to blend nicely when the video starts (if it doesn't take the full width)
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
2019-01-09 16:59:12 +01:00
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
.button--view,
|
|
|
|
.button--play {
|
2019-06-17 22:32:38 +02:00
|
|
|
background-color: $lbry-teal-2;
|
2019-01-09 16:59:12 +01:00
|
|
|
}
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
2018-07-25 02:50:04 +02:00
|
|
|
}
|
|
|
|
|
2018-03-26 23:32:43 +02:00
|
|
|
.content__embedded {
|
2018-12-19 06:44:53 +01:00
|
|
|
@include thumbnail;
|
2018-10-17 19:14:24 +02:00
|
|
|
position: relative;
|
2018-03-26 23:32:43 +02:00
|
|
|
|
|
|
|
video {
|
|
|
|
width: 100%;
|
2018-10-17 19:14:24 +02:00
|
|
|
height: 100%;
|
2018-03-26 23:32:43 +02:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2018-10-17 19:14:24 +02:00
|
|
|
position: absolute;
|
|
|
|
|
2018-06-09 00:21:04 +02:00
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-05-26 08:18:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:-webkit-full-screen {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2018-06-08 22:09:51 +02:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.content__empty {
|
2018-12-19 06:44:53 +01:00
|
|
|
@include thumbnail;
|
2018-03-26 23:32:43 +02:00
|
|
|
align-items: center;
|
2018-10-17 19:14:24 +02:00
|
|
|
background-color: $lbry-black;
|
|
|
|
color: $lbry-white;
|
|
|
|
display: flex;
|
2018-03-26 23:32:43 +02:00
|
|
|
justify-content: center;
|
2018-10-17 19:14:24 +02:00
|
|
|
width: 100%;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2019-01-11 17:34:36 +01:00
|
|
|
.content__empty--nsfw,
|
|
|
|
.card__media--nsfw {
|
2018-12-19 06:44:53 +01:00
|
|
|
background-color: $lbry-grape-3;
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
|
|
|
|
2019-04-03 06:17:00 +02:00
|
|
|
.card__media--disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.content__loading {
|
2018-05-03 20:23:28 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
align-items: center;
|
2018-03-26 23:32:43 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-04-30 17:27:20 +02:00
|
|
|
justify-content: center;
|
2019-06-11 20:10:58 +02:00
|
|
|
padding: 0 var(--spacing-large);
|
2019-01-14 19:40:06 +01:00
|
|
|
background-color: #000;
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.content__loading-text {
|
2018-10-17 00:29:55 +02:00
|
|
|
color: $lbry-white;
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.content__view {
|
2018-06-13 22:32:38 +02:00
|
|
|
width: 100%;
|
2018-10-17 19:14:24 +02:00
|
|
|
height: 100%;
|
2019-01-14 19:40:06 +01:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2018-06-13 22:32:38 +02:00
|
|
|
align-items: center;
|
2018-10-17 19:14:24 +02:00
|
|
|
display: flex;
|
2018-06-13 22:32:38 +02:00
|
|
|
justify-content: center;
|
2019-01-14 19:40:06 +01:00
|
|
|
position: absolute;
|
2018-06-13 22:32:38 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
iframe {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: $lbry-white;
|
2018-06-13 22:32:38 +02:00
|
|
|
}
|
|
|
|
}
|
2019-01-14 19:40:06 +01:00
|
|
|
|
|
|
|
.content__view--container {
|
2019-06-17 22:32:38 +02:00
|
|
|
background-color: black;
|
2019-01-14 19:40:06 +01:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
position: absolute;
|
|
|
|
}
|