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

514 lines
9.8 KiB
SCSS
Raw Normal View History

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