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

321 lines
6.5 KiB
SCSS
Raw Normal View History

2017-12-11 11:36:46 -05:00
@import '_variables';
@import '_mixins';
2016-11-08 14:49:43 -05:00
#video-container {
2017-12-05 04:44:11 -05:00
background-color: #000;
display: flex;
justify-content: center;
#video-element {
width: 888px;
height: 500px;
2017-12-07 04:02:01 -05:00
2018-02-28 03:39:08 -05:00
@media screen and (max-width: 600px) {
2017-12-11 03:08:15 -05:00
height: auto;
2018-02-28 03:39:08 -05:00
max-height: calc(100vh - #{$header-height});
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
}
}
#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;
margin-right: 28px;
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;
}
.video-info-by {
display: flex;
2018-01-31 05:38:05 -05:00
align-items: center;
font-size: 13px;
img {
@include avatar(18px);
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
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
&.action-button-share {
width: 82px;
}
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 {
word-break: break-all;
}
.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 {
.title-page {
margin-top: 0;
}
/deep/ .video-miniature {
display: flex;
height: 100%;
margin-bottom: 20px;
2017-11-06 05:46:11 -05:00
.video-miniature-information {
margin-left: 10px;
}
}
2017-11-06 05:46:11 -05:00
}
}
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 {
2017-12-11 04:02:17 -05:00
margin-right: 0;
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;
align-items: left;
.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
2018-02-20 10:13:05 -05:00
@media screen and (max-width: 1200px) {
.other-videos {
display: none;
}
}
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
}
}
2018-02-20 10:13:05 -05:00
@media screen and (max-width: 450px) {
.video-bottom .action-button .icon-text {
display: none !important;
}
}