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