2021-05-27 18:25:00 +02:00
|
|
|
@use 'sass:math';
|
|
|
|
@use '_variables' as *;
|
|
|
|
@use '_mixins' as *;
|
2021-05-27 17:45:36 +02:00
|
|
|
@use '_bootstrap-variables';
|
2021-05-27 18:25:00 +02:00
|
|
|
@use '_miniature' as *;
|
2018-09-28 14:37:04 +02:00
|
|
|
|
2021-06-30 08:50:20 +02:00
|
|
|
$video-height: 66vh;
|
|
|
|
|
2021-04-28 16:41:07 +02:00
|
|
|
@function getPlayerHeight ($width) {
|
2021-06-29 17:15:05 +02:00
|
|
|
@return calc(#{$width} / #{$video-watch-player-factor});
|
2019-03-18 10:26:53 +01:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:41:07 +02:00
|
|
|
@function getPlayerWidth ($height) {
|
2021-06-29 17:15:05 +02:00
|
|
|
@return calc(#{$height} * #{$video-watch-player-factor});
|
2019-03-18 10:26:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin playlist-below-player {
|
2019-05-13 11:18:24 +02:00
|
|
|
width: 100% !important;
|
|
|
|
height: auto !important;
|
|
|
|
max-height: 300px !important;
|
2019-05-17 14:17:38 +02:00
|
|
|
max-width: initial;
|
2019-05-13 11:18:24 +02:00
|
|
|
border-bottom: 1px solid $separator-border-color !important;
|
2019-03-18 10:26:53 +01:00
|
|
|
}
|
|
|
|
|
2021-06-30 08:50:20 +02:00
|
|
|
.blocked-label {
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.placeholder-image {
|
|
|
|
height: 100%;
|
2021-11-29 14:00:15 +01:00
|
|
|
max-width: 100%;
|
|
|
|
object-fit: contain;
|
2021-06-30 08:50:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.flex-direction-column {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2019-03-18 10:26:53 +01:00
|
|
|
.root {
|
|
|
|
&.theater-enabled #video-wrapper {
|
2021-04-28 16:41:07 +02:00
|
|
|
$height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
|
|
|
|
|
2019-03-18 10:26:53 +01:00
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
#videojs-wrapper {
|
|
|
|
width: 100%;
|
2020-11-05 10:56:23 +01:00
|
|
|
height: $height;
|
2019-03-18 10:26:53 +01:00
|
|
|
}
|
|
|
|
|
2019-07-24 16:12:35 +02:00
|
|
|
::ng-deep .video-js {
|
2019-03-18 10:26:53 +01:00
|
|
|
height: $height;
|
|
|
|
width: 100%;
|
2019-08-06 09:49:46 +02:00
|
|
|
max-width: initial;
|
2019-03-18 10:26:53 +01:00
|
|
|
}
|
|
|
|
|
2019-07-24 16:12:35 +02:00
|
|
|
my-video-watch-playlist ::ng-deep .playlist {
|
2019-03-18 10:26:53 +01:00
|
|
|
@include playlist-below-player;
|
|
|
|
}
|
|
|
|
}
|
2018-08-14 09:08:47 +02:00
|
|
|
}
|
|
|
|
|
2019-03-13 14:18:58 +01:00
|
|
|
#video-wrapper {
|
2017-12-05 10:44:11 +01:00
|
|
|
background-color: #000;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2018-07-16 19:15:20 +02:00
|
|
|
|
2019-07-24 16:12:35 +02:00
|
|
|
::ng-deep .video-js {
|
2019-08-02 11:16:42 +02:00
|
|
|
width: 100%;
|
2021-06-30 08:50:20 +02:00
|
|
|
max-width: getPlayerWidth($video-height);
|
2020-09-25 10:04:21 +02:00
|
|
|
height: $video-height;
|
2018-07-17 17:06:34 +02:00
|
|
|
|
2017-12-07 10:02:01 +01:00
|
|
|
// VideoJS create an inner video player
|
|
|
|
video {
|
|
|
|
outline: 0;
|
2017-12-11 09:08:15 +01:00
|
|
|
position: relative !important;
|
2017-12-07 10:02:01 +01:00
|
|
|
}
|
2017-12-05 10:44:11 +01:00
|
|
|
}
|
2016-06-05 08:48:44 +02:00
|
|
|
}
|
|
|
|
|
2021-06-30 08:50:20 +02:00
|
|
|
#videojs-wrapper {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex-grow: 1;
|
|
|
|
height: $video-height;
|
2018-06-12 20:04:58 +02:00
|
|
|
}
|
|
|
|
|
2021-06-30 08:50:20 +02:00
|
|
|
.remote-server-down {
|
|
|
|
color: #fff;
|
|
|
|
display: flex;
|
2019-12-04 09:29:20 +01:00
|
|
|
flex-direction: column;
|
2021-06-30 08:50:20 +02:00
|
|
|
align-items: center;
|
|
|
|
text-align: center;
|
|
|
|
justify-content: center;
|
|
|
|
background-color: #141313;
|
|
|
|
width: 100%;
|
|
|
|
font-size: 24px;
|
|
|
|
height: 500px;
|
|
|
|
|
|
|
|
@media screen and (max-width: 1000px) {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 600px) {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2019-12-04 09:29:20 +01:00
|
|
|
}
|
|
|
|
|
2016-11-16 20:09:36 +01:00
|
|
|
#video-not-found {
|
|
|
|
height: 300px;
|
|
|
|
line-height: 300px;
|
|
|
|
margin-top: 50px;
|
|
|
|
text-align: center;
|
2017-12-21 15:24:49 +01:00
|
|
|
font-weight: $font-semibold;
|
|
|
|
font-size: 15px;
|
2016-11-16 20:09:36 +01:00
|
|
|
}
|
|
|
|
|
2017-12-06 17:15:59 +01:00
|
|
|
.video-bottom {
|
2019-03-18 10:26:53 +01:00
|
|
|
display: flex;
|
2020-06-12 12:27:37 +02:00
|
|
|
margin-top: 1.5rem;
|
2021-06-30 08:50:20 +02:00
|
|
|
}
|
2016-11-04 16:04:50 +01:00
|
|
|
|
2021-06-30 08:50:20 +02:00
|
|
|
.video-info {
|
|
|
|
flex-grow: 1;
|
|
|
|
// Set min width for flex item
|
|
|
|
min-width: 1px;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-info-first-row {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
> div:first-child {
|
2017-12-06 17:15:59 +01:00
|
|
|
flex-grow: 1;
|
2021-06-30 08:50:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-info-name {
|
|
|
|
@include peertube-word-wrap;
|
|
|
|
|
|
|
|
@include margin-right(30px);
|
|
|
|
|
|
|
|
min-height: 40px; // Align with the action buttons
|
|
|
|
font-size: 27px;
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-info-first-row-bottom {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-info-date-views {
|
|
|
|
@include margin-right(10px);
|
|
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
align-self: start;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-info-channel {
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
|
|
a {
|
|
|
|
@include disable-default-a-behaviour;
|
|
|
|
@include peertube-word-wrap;
|
|
|
|
|
|
|
|
color: pvar(--mainForegroundColor);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-info-channel-left {
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
.video-info-channel-left-links {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
position: relative;
|
|
|
|
line-height: 1.37;
|
|
|
|
|
|
|
|
a:nth-of-type(2) {
|
|
|
|
font-weight: $font-regular;
|
|
|
|
font-size: 90%;
|
2016-11-04 16:04:50 +01:00
|
|
|
}
|
|
|
|
|
2021-06-30 08:50:20 +02:00
|
|
|
a.single-link {
|
|
|
|
margin-top: 7px;
|
2019-12-15 21:27:37 +01:00
|
|
|
}
|
2021-06-30 08:50:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
my-subscribe-button {
|
|
|
|
@include margin-left(5px);
|
|
|
|
}
|
|
|
|
|
2021-06-30 09:49:45 +02:00
|
|
|
my-video-attributes {
|
2021-06-30 08:50:20 +02:00
|
|
|
@include margin-left($video-watch-info-margin-left);
|
|
|
|
|
2021-06-30 09:49:45 +02:00
|
|
|
display: block;
|
|
|
|
margin-bottom: 15px;
|
2021-04-01 11:10:27 +02:00
|
|
|
}
|
2017-12-06 18:10:57 +01:00
|
|
|
|
2021-06-29 17:57:59 +02:00
|
|
|
my-action-buttons {
|
|
|
|
@include margin-left(auto);
|
|
|
|
@include margin-right(0);
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
align-items: start;
|
|
|
|
width: max-content;
|
|
|
|
}
|
|
|
|
|
2021-04-01 11:10:27 +02:00
|
|
|
my-recommended-videos {
|
2021-06-07 17:38:31 +02:00
|
|
|
@include padding-left(15px);
|
|
|
|
|
2021-04-01 11:10:27 +02:00
|
|
|
display: block;
|
|
|
|
min-width: 250px;
|
2016-11-04 16:04:50 +01:00
|
|
|
}
|
2017-12-06 18:10:57 +01:00
|
|
|
|
2018-09-05 15:40:45 +02:00
|
|
|
my-video-comments {
|
|
|
|
display: inline-block;
|
2018-09-05 20:00:47 +02:00
|
|
|
width: 100%;
|
2018-09-05 15:40:45 +02:00
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
2021-04-01 11:10:27 +02:00
|
|
|
// Use the same breakpoint than in the typescript component to display the other video miniatures as row
|
2019-03-18 10:26:53 +01:00
|
|
|
@media screen and (max-width: 1100px) {
|
2019-04-05 15:23:41 +02:00
|
|
|
#video-wrapper {
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
|
2019-07-24 16:12:35 +02:00
|
|
|
my-video-watch-playlist ::ng-deep .playlist {
|
2019-04-05 15:23:41 +02:00
|
|
|
@include playlist-below-player;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-18 10:26:53 +01:00
|
|
|
.video-bottom {
|
|
|
|
flex-direction: column;
|
2021-04-01 11:10:27 +02:00
|
|
|
}
|
2019-03-18 10:26:53 +01:00
|
|
|
|
2021-04-01 11:10:27 +02:00
|
|
|
my-recommended-videos {
|
2021-06-07 17:38:31 +02:00
|
|
|
@include padding-left(0);
|
2019-03-18 10:26:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-31 11:38:05 +01:00
|
|
|
@media screen and (max-width: 600px) {
|
2021-06-30 08:50:20 +02:00
|
|
|
#videojs-wrapper {
|
|
|
|
height: getPlayerHeight(100vw) !important;
|
|
|
|
|
|
|
|
.remote-server-down,
|
|
|
|
::ng-deep .video-js {
|
|
|
|
width: 100vw;
|
|
|
|
height: getPlayerHeight(100vw) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-12 14:41:59 +01:00
|
|
|
.video-bottom {
|
2020-05-01 23:24:05 +02:00
|
|
|
margin-top: 20px !important;
|
2020-06-12 12:27:37 +02:00
|
|
|
padding-bottom: 20px !important;
|
2021-06-30 08:50:20 +02:00
|
|
|
}
|
2018-01-31 11:38:05 +01:00
|
|
|
|
2021-06-30 08:50:20 +02:00
|
|
|
.video-info {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2018-01-31 11:38:05 +01:00
|
|
|
|
2021-06-30 08:50:20 +02:00
|
|
|
.video-info-name {
|
|
|
|
font-size: 20px;
|
|
|
|
height: auto;
|
2017-12-12 14:41:59 +01:00
|
|
|
}
|
|
|
|
}
|
2018-02-20 16:13:05 +01:00
|
|
|
|
|
|
|
@media screen and (max-width: 450px) {
|
2021-06-30 08:50:20 +02:00
|
|
|
.video-info-name {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-info-date-views {
|
|
|
|
font-size: 14px;
|
2018-02-20 16:13:05 +01:00
|
|
|
}
|
2021-06-29 17:57:59 +02:00
|
|
|
|
|
|
|
my-action-buttons {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
2018-02-20 16:13:05 +01:00
|
|
|
}
|
2020-07-31 15:54:52 +02:00
|
|
|
|
|
|
|
// Special case for iOS, that takes into account the width for fullscreens
|
|
|
|
#video-wrapper ::ng-deep .video-js.vjs-fullscreen {
|
|
|
|
max-width: unset;
|
|
|
|
}
|