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

269 lines
5.2 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
2017-12-11 03:08:15 -05:00
@media screen and (max-width: 800px) {
height: auto;
}
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
2017-12-06 11:15:59 -05:00
.video-info-name-actions {
display: flex;
align-items: center;
2017-12-06 11:15:59 -05:00
.video-info-name {
2017-12-12 08:41:59 -05:00
margin-right: 30px;
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
2017-12-06 11:15:59 -05:00
.video-info-actions {
2017-12-12 08:41:59 -05:00
min-width: 215px;
display: flex;
justify-content: end;
.action-button:not(:first-child), .action-more {
margin-left: 10px;
}
2017-12-12 08:41:59 -05:00
2017-12-06 11:15:59 -05:00
.action-button {
@include peertube-button;
2017-12-07 04:02:01 -05:00
@include grey-button;
2017-04-21 10:40:45 -04:00
2017-12-06 11:15:59 -05:00
font-size: 15px;
font-weight: $font-semibold;
display: inline-block;
padding: 0 10px 0 10px;
2017-04-21 10:40:45 -04:00
2017-12-07 04:02:01 -05:00
.icon {
2017-12-07 04:27:33 -05:00
@include icon(21px);
2017-12-07 04:02:01 -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');
}
&.icon-share {
background-image: url('../../../assets/images/video/share.svg');
}
&.icon-more {
background-image: url('../../../assets/images/video/more.svg');
2017-12-07 08:48:47 -05:00
top: -1px;
2017-12-07 04:02:01 -05:00
}
2017-12-06 11:15:59 -05:00
}
2017-03-08 15:35:43 -05:00
&.action-button-like.activated {
background-color: #39CC0B;
2017-07-06 11:18:10 -04:00
2017-12-07 04:02:01 -05:00
.icon-like {
background-image: url('../../../assets/images/video/like-white.svg');
}
}
&.action-button-dislike.activated {
background-color: #FF0000;
2017-03-08 15:35:43 -05:00
2017-12-07 04:02:01 -05:00
.icon-dislike {
background-image: url('../../../assets/images/video/dislike-white.svg');
}
2017-12-06 11:15:59 -05:00
}
2017-12-07 04:02:01 -05:00
}
2017-03-08 15:35:43 -05:00
2017-12-07 04:02:01 -05:00
.action-more {
display: inline-block;
2017-01-20 13:22:15 -05:00
2017-12-20 11:49:58 -05:00
.dropdown-menu .dropdown-item {
padding: 6px 24px;
2017-12-07 04:02:01 -05:00
2017-12-20 11:49:58 -05:00
.icon {
@include icon(24px);
2017-12-07 04:02:01 -05:00
2017-12-20 11:49:58 -05:00
margin-right: 10px;
position: relative;
top: -1px;
&.icon-download {
background-image: url('../../../assets/images/video/download-black.svg');
}
&.icon-alert {
background-image: url('../../../assets/images/video/alert.svg');
}
2017-12-07 04:02:01 -05:00
2017-12-20 11:49:58 -05:00
&.icon-blacklist {
background-image: url('../../../assets/images/video/blacklist.svg');
}
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-01-20 13:22:15 -05:00
}
2017-12-06 12:04:40 -05:00
.video-info-date-views-bar {
display: flex;
.video-info-date-views {
font-size: 16px;
margin-bottom: 10px;
flex-grow: 1;
}
.video-info-likes-dislikes-bar {
height: 5px;
width: 186px;
background-color: #E5E5E5;
margin-top: 25px;
.likes-bar {
height: 100%;
background-color: #39CC0B;
}
}
}
2017-12-06 11:15:59 -05:00
.video-info-channel {
font-weight: $font-semibold;
font-size: 15px;
}
2017-12-06 11:15:59 -05:00
.video-info-by {
display: flex;
align-items: center;
font-size: 13px;
2017-04-21 10:40:45 -04:00
2017-12-06 11:15:59 -05:00
img {
width: 16px;
height: 16px;
margin-left: 3px;
2017-04-21 10:40:45 -04:00
}
2017-03-22 16:15:55 -04:00
}
2017-03-27 15:11:37 -04:00
2017-12-06 11:15:59 -05:00
.video-info-description {
margin: 20px 0;
font-size: 15px;
.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
}
2017-12-06 11:15:59 -05:00
.video-attributes {
.video-attribute {
font-size: 13px;
display: block;
margin-bottom: 12px;
2017-05-01 12:05:28 -04:00
2017-12-06 11:15:59 -05:00
.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
@media screen and (max-width: 1300px) {
2017-12-11 03:08:15 -05:00
.other-videos {
display: none;
}
.video-bottom {
.video-info {
2017-12-11 04:02:17 -05:00
margin-right: 0;
2017-12-11 03:39:40 -05:00
2017-12-11 03:08:15 -05:00
.video-info-name-actions {
align-items: left;
flex-direction: column;
margin-bottom: 30px;
}
.video-info-date-views-bar {
align-items: left;
flex-direction: column;
margin-bottom: 30px;
.video-info-likes-dislikes-bar {
margin-top: 0;
}
}
}
}
}
2017-12-12 08:41:59 -05:00
@media screen and (max-width: 800px) {
.video-bottom {
margin: 20px 0 0 0;
}
}