1
0
Fork 0
peertube/client/src/app/videos/+video-watch/video-watch.component.scss

472 lines
9 KiB
SCSS
Raw Normal View History

2017-12-11 11:36:46 -05:00
@import '_variables';
@import '_mixins';
2018-04-03 12:06:58 -04:00
#video-element-wrapper {
2017-12-05 04:44:11 -05:00
background-color: #000;
display: flex;
justify-content: center;
height: 500px;
2017-12-05 04:44:11 -05:00
@media screen and (max-width: 600px) {
width: 100vw;
height: calc(100vw / 1.7); // 16/9
}
.remote-server-down {
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
justify-content: center;
background-color: #141313;
width: 100%;
height: 100%;
font-size: 24px;
@media screen and (max-width: 1000px) {
font-size: 20px;
}
2017-12-07 04:02:01 -05:00
2018-02-28 03:39:08 -05:00
@media screen and (max-width: 600px) {
font-size: 16px;
2017-12-11 03:08:15 -05:00
}
}
/deep/ .video-js {
width: 888px;
height: 100%;
2017-12-11 03:08:15 -05:00
2017-12-07 04:02:01 -05:00
// VideoJS create an inner video player
video {
outline: 0;
2017-12-11 03:08:15 -05:00
position: relative !important;
2017-12-07 04:02:01 -05:00
}
2017-12-05 04:44:11 -05:00
}
2018-06-11 10:49:56 -04:00
/deep/ .video-js.vjs-theater-enabled {
width: 100%;
height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
}
}
.alert {
text-align: center;
}
#video-not-found {
height: 300px;
line-height: 300px;
margin-top: 50px;
text-align: center;
2017-12-21 09:24:49 -05:00
font-weight: $font-semibold;
font-size: 15px;
}
2017-12-06 11:15:59 -05:00
.video-bottom {
margin-top: 40px;
display: flex;
2017-12-06 11:15:59 -05:00
.video-info {
flex-grow: 1;
2018-03-26 03:36:30 -04:00
margin-right: 40px;
// Set min width for flex item
min-width: 1px;
2017-05-01 12:05:28 -04:00
2018-01-31 05:38:05 -05:00
.video-info-first-row {
2017-12-06 11:15:59 -05:00
display: flex;
2018-01-31 05:38:05 -05:00
& > div:first-child {
2018-01-31 05:38:05 -05:00
flex-grow: 1;
}
2017-12-06 11:15:59 -05:00
.video-info-name {
2017-12-12 08:41:59 -05:00
margin-right: 30px;
min-height: 40px; // Align with the action buttons
2017-12-06 11:15:59 -05:00
font-size: 27px;
font-weight: $font-semibold;
flex-grow: 1;
}
2017-04-21 10:40:45 -04:00
2018-01-31 05:38:05 -05:00
.video-info-date-views {
font-size: 16px;
margin-bottom: 10px;
flex-grow: 1;
}
.video-info-channel {
font-weight: $font-semibold;
font-size: 15px;
a {
@include disable-default-a-behaviour;
color: #000;
&:hover {
opacity: 0.8;
}
img {
@include avatar(18px);
margin: -2px 2px 0 5px;
}
}
my-help {
display: inline-block;
}
2018-01-31 05:38:05 -05:00
}
2018-04-25 08:32:19 -04:00
.video-info-by a {
@include disable-default-a-behaviour;
display: inline;
2018-01-31 05:38:05 -05:00
align-items: center;
font-size: 13px;
2018-04-25 08:32:19 -04:00
color: #000;
2018-01-31 05:38:05 -05:00
2018-04-25 08:32:19 -04:00
span:hover {
opacity: 0.8;
}
2018-01-31 05:38:05 -05:00
img {
@include avatar(18px);
margin-top: -2px;
2018-01-31 05:38:05 -05:00
margin-left: 7px;
}
2018-01-31 05:38:05 -05:00
}
2017-12-12 08:41:59 -05:00
my-video-feed {
margin-left: 5px;
margin-top: 1px;
}
2018-01-31 05:38:05 -05:00
.video-actions-rates {
display: flex;
flex-direction: column;
align-items: flex-end;
2017-04-21 10:40:45 -04:00
2018-01-31 05:38:05 -05:00
.video-actions {
height: 40px; // Align with the title
display: flex;
align-items: center;
2017-04-21 10:40:45 -04:00
2018-01-31 05:38:05 -05:00
.action-button:not(:first-child), .action-more {
margin-left: 10px;
}
2017-12-07 04:27:33 -05:00
2018-01-31 05:38:05 -05:00
.action-button {
@include peertube-button;
@include grey-button;
2017-12-07 04:02:01 -05:00
2018-01-31 05:38:05 -05:00
font-size: 15px;
font-weight: $font-semibold;
display: inline-block;
padding: 0 10px 0 10px;
2018-02-20 10:13:05 -05:00
white-space: nowrap;
2017-12-07 04:02:01 -05:00
2018-01-31 05:38:05 -05:00
.icon {
@include icon(21px);
2017-12-07 04:02:01 -05:00
2018-01-31 05:38:05 -05:00
position: relative;
top: -2px;
&.icon-like {
background-image: url('../../../assets/images/video/like-grey.svg');
}
&.icon-dislike {
background-image: url('../../../assets/images/video/dislike-grey.svg');
}
2017-12-07 04:02:01 -05:00
2018-02-20 10:13:05 -05:00
&.icon-support {
background-image: url('../../../assets/images/video/heart.svg');
}
2018-01-31 05:38:05 -05:00
&.icon-share {
background-image: url('../../../assets/images/video/share.svg');
}
&.icon-more {
background-image: url('../../../assets/images/video/more.svg');
top: -1px;
}
2017-12-07 04:02:01 -05:00
}
2017-03-08 15:35:43 -05:00
2018-06-05 10:52:25 -04:00
.icon-text {
margin-left: 3px;
}
2018-01-31 05:38:05 -05:00
&.action-button-like.activated {
background-color: #39CC0B;
2017-07-06 11:18:10 -04:00
2018-01-31 05:38:05 -05:00
.icon-like {
background-image: url('../../../assets/images/video/like-white.svg');
}
2017-12-07 04:02:01 -05:00
}
2018-01-31 05:38:05 -05:00
&.action-button-dislike.activated {
background-color: #FF0000;
2017-03-08 15:35:43 -05:00
2018-01-31 05:38:05 -05:00
.icon-dislike {
background-image: url('../../../assets/images/video/dislike-white.svg');
}
2017-12-07 04:02:01 -05:00
}
2017-12-06 11:15:59 -05:00
}
2017-03-08 15:35:43 -05:00
2018-01-31 05:38:05 -05:00
.action-more {
display: inline-block;
2017-01-20 13:22:15 -05:00
2018-01-31 05:38:05 -05:00
.dropdown-menu .dropdown-item {
padding: 6px 24px;
2017-12-07 04:02:01 -05:00
2018-01-31 05:38:05 -05:00
.icon {
@include icon(24px);
2017-12-07 04:02:01 -05:00
2018-01-31 05:38:05 -05:00
margin-right: 10px;
position: relative;
top: -1px;
2017-12-20 11:49:58 -05:00
2018-01-31 05:38:05 -05:00
&.icon-download {
background-image: url('../../../assets/images/video/download-black.svg');
}
2017-12-20 11:49:58 -05:00
2018-01-31 05:38:05 -05:00
&.icon-edit {
background-image: url('../../../assets/images/global/edit-black.svg');
}
2017-12-27 10:11:53 -05:00
2018-01-31 05:38:05 -05:00
&.icon-alert {
background-image: url('../../../assets/images/video/alert.svg');
}
2017-12-07 04:02:01 -05:00
2018-01-31 05:38:05 -05:00
&.icon-blacklist {
background-image: url('../../../assets/images/video/blacklist.svg');
}
2017-12-20 11:49:58 -05:00
}
2017-12-07 04:02:01 -05:00
}
2017-12-06 11:15:59 -05:00
}
2017-07-06 11:18:10 -04:00
}
2017-12-06 12:04:40 -05:00
2018-01-31 05:38:05 -05:00
.video-info-likes-dislikes-bar {
height: 5px;
width: 186px;
background-color: #E5E5E5;
margin-top: 25px;
2017-12-06 12:04:40 -05:00
2018-01-31 05:38:05 -05:00
.likes-bar {
height: 100%;
background-color: #39CC0B;
}
2017-12-06 12:04:40 -05:00
}
}
}
2017-12-06 11:15:59 -05:00
.video-info-description {
margin: 20px 0;
font-size: 15px;
.video-info-description-html {
2018-04-20 02:19:46 -04:00
@include peertube-word-wrap;
}
.glyphicon, .description-loading {
margin-left: 3px;
}
.description-loading {
display: inline-block;
}
2017-12-06 11:15:59 -05:00
.video-info-description-more {
cursor: pointer;
2017-12-06 11:15:59 -05:00
font-weight: $font-semibold;
color: #585858;
font-size: 14px;
.glyphicon {
position: relative;
top: 2px;
}
}
2017-04-21 10:40:45 -04:00
}
2018-01-31 05:38:05 -05:00
.video-attributes .video-attribute {
font-size: 13px;
display: block;
margin-bottom: 12px;
.video-attribute-label {
width: 86px;
display: inline-block;
color: #585858;
font-weight: $font-bold;
2017-05-01 12:05:28 -04:00
}
}
}
.other-videos {
padding-left: 1em;
.title-page {
margin-top: 0;
}
/deep/ .video-miniature {
display: flex;
height: 100%;
margin-bottom: 20px;
flex-wrap: wrap;
2017-11-06 05:46:11 -05:00
.video-miniature-information {
flex-grow: 1;
}
}
2017-11-06 05:46:11 -05:00
}
}
// If the view is not expanded, take into account the menu
.privacy-concerns {
width: calc(100% - #{$menu-width});
}
:host-context(.expanded) {
.privacy-concerns {
width: 100%;
}
}
.privacy-concerns {
position: fixed;
bottom: 0;
padding: 5px 15px;
display: flex;
align-items: center;
justify-content: flex-start;
background-color: rgba(0, 0, 0, 0.9);
color: #fff;
.privacy-concerns-text {
margin: 0 5px;
}
a {
@include disable-default-a-behaviour;
color: $orange-color;
transition: color 0.3s;
&:hover {
color: #fff;
}
}
.privacy-concerns-okay {
background-color: $orange-color;
padding: 5px 8px 5px 7px;
margin-left: auto;
border-radius: 3px;
cursor: pointer;
transition: background-color 0.3s;
font-weight: $font-semibold;
&:hover {
background-color: #000;
}
}
}
2017-12-11 03:08:15 -05:00
2018-02-20 10:13:05 -05:00
@media screen and (max-width: 1600px) {
2017-12-11 03:08:15 -05:00
.video-bottom {
.video-info {
2018-03-26 03:39:23 -04:00
margin-right: 20px;
2017-12-11 03:39:40 -05:00
2018-01-31 05:38:05 -05:00
.video-info-first-row {
2017-12-11 03:08:15 -05:00
flex-direction: column;
margin-bottom: 30px;
2018-01-31 05:38:05 -05:00
.video-actions-rates {
margin-top: 20px;
2018-04-18 04:20:13 -04:00
align-items: start;
2018-01-31 05:38:05 -05:00
.video-info-likes-dislikes-bar {
margin-top: 10px;
}
}
2017-12-11 03:08:15 -05:00
}
2018-01-31 05:38:05 -05:00
.video-info-date-views {
2017-12-11 03:08:15 -05:00
flex-direction: column;
margin-bottom: 30px;
.video-info-likes-dislikes-bar {
margin-top: 0;
}
}
2018-01-31 05:38:05 -05:00
.video-attributes .video-attribute {
margin-bottom: 5px;
}
2017-12-11 03:08:15 -05:00
}
}
}
2017-12-12 08:41:59 -05:00
@media screen and (max-width: 1300px) {
.video-bottom {
flex-direction: column;
}
2018-02-20 10:13:05 -05:00
.other-videos {
padding-left: 0;
2018-07-16 09:05:06 -04:00
/deep/ .video-miniature .video-miniature-information {
margin-left: 10px;
}
2018-02-20 10:13:05 -05:00
}
.privacy-concerns {
font-size: 12px;
padding: 2px 5px;
.privacy-concerns-text {
margin: 0;
}
}
2018-02-20 10:13:05 -05:00
}
2018-01-31 05:38:05 -05:00
@media screen and (max-width: 600px) {
2017-12-12 08:41:59 -05:00
.video-bottom {
margin: 20px 0 0 0;
2018-01-31 05:38:05 -05:00
.video-info {
.video-info-first-row {
.video-info-name {
font-size: 20px;
height: auto;
}
}
}
2017-12-12 08:41:59 -05:00
}
.privacy-concerns {
width: 100%;
strong {
display: none;
}
}
2017-12-12 08:41:59 -05:00
}
2018-02-20 10:13:05 -05:00
@media screen and (max-width: 450px) {
.video-bottom .action-button .icon-text {
display: none !important;
}
}