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

253 lines
4.9 KiB
SCSS
Raw Normal View History

2017-12-11 16:36:46 +00:00
@import '_variables';
@import '_mixins';
2016-11-08 19:49:43 +00:00
#video-container {
2017-12-05 09:44:11 +00:00
background-color: #000;
display: flex;
justify-content: center;
#video-element {
width: 888px;
height: 500px;
2017-12-07 09:02:01 +00:00
2017-12-11 08:08:15 +00:00
@media screen and (max-width: 800px) {
height: auto;
}
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
}
}
#video-not-found {
height: 300px;
line-height: 300px;
margin-top: 50px;
text-align: center;
font-weight: bold;
}
2017-12-06 16:15:59 +00:00
.video-bottom {
margin-top: 40px;
display: flex;
2017-12-06 16:15:59 +00:00
.video-info {
flex-grow: 1;
margin-right: 28px;
2017-05-01 16:05:28 +00:00
2017-12-06 16:15:59 +00:00
.video-info-name-actions {
display: flex;
align-items: center;
2017-12-06 16:15:59 +00:00
.video-info-name {
font-size: 27px;
font-weight: $font-semibold;
flex-grow: 1;
}
2017-04-21 14:40:45 +00:00
2017-12-06 16:15:59 +00:00
.video-info-actions {
.action-button {
@include peertube-button;
2017-12-07 09:02:01 +00:00
@include grey-button;
2017-04-21 14:40:45 +00:00
2017-12-06 16:15:59 +00:00
font-size: 15px;
font-weight: $font-semibold;
display: inline-block;
padding: 0 10px 0 10px;
2017-04-21 14:40:45 +00:00
2017-12-07 09:02:01 +00:00
.icon {
2017-12-07 09:27:33 +00:00
@include icon(21px);
2017-12-07 09:02:01 +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');
}
&.icon-share {
background-image: url('../../../assets/images/video/share.svg');
}
&.icon-more {
background-image: url('../../../assets/images/video/more.svg');
2017-12-07 13:48:47 +00:00
top: -1px;
2017-12-07 09:02:01 +00:00
}
2017-12-06 16:15:59 +00:00
}
2017-03-08 20:35:43 +00:00
2017-12-07 09:02:01 +00:00
&.activated {
@include orange-button;
2017-07-06 15:18:10 +00:00
2017-12-07 09:02:01 +00:00
.icon-like {
background-image: url('../../../assets/images/video/like-white.svg');
}
2017-03-08 20:35:43 +00:00
2017-12-07 09:02:01 +00:00
.icon-dislike {
background-image: url('../../../assets/images/video/dislike-white.svg');
}
2017-12-06 16:15:59 +00:00
}
2017-12-07 09:02:01 +00:00
}
2017-03-08 20:35:43 +00:00
2017-12-07 09:02:01 +00:00
.action-more {
display: inline-block;
2017-01-20 18:22:15 +00:00
2017-12-07 09:02:01 +00:00
.dropdown-menu .icon {
display: inline-block;
background-repeat: no-repeat;
background-size: contain;
width: 21px;
height: 21px;
vertical-align: middle;
margin-right: 5px;
position: relative;
top: -1px;
&.icon-download {
2017-12-07 09:27:33 +00:00
background-image: url('../../../assets/images/video/download-grey.svg');
2017-12-07 09:02:01 +00:00
}
&.icon-alert {
background-image: url('../../../assets/images/video/alert.svg');
}
&.icon-blacklist {
background-image: url('../../../assets/images/video/eye-closed.svg');
}
2017-12-06 16:15:59 +00:00
}
2017-07-06 15:18:10 +00:00
}
}
2017-01-20 18:22:15 +00:00
}
2017-12-06 17:04:40 +00: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 16:15:59 +00:00
.video-info-channel {
font-weight: $font-semibold;
font-size: 15px;
}
2017-12-06 16:15:59 +00:00
.video-info-by {
display: flex;
align-items: center;
font-size: 13px;
2017-04-21 14:40:45 +00:00
2017-12-06 16:15:59 +00:00
img {
width: 16px;
height: 16px;
margin-left: 3px;
2017-04-21 14:40:45 +00:00
}
2017-03-22 20:15:55 +00:00
}
2017-03-27 19:11:37 +00:00
2017-12-06 16:15:59 +00:00
.video-info-description {
margin: 20px 0;
font-size: 15px;
.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
}
2017-12-06 16:15:59 +00:00
.video-attributes {
.video-attribute {
font-size: 13px;
display: block;
margin-bottom: 12px;
2017-05-01 16:05:28 +00:00
2017-12-06 16:15:59 +00:00
.video-attribute-label {
width: 86px;
display: inline-block;
color: #585858;
font-weight: $font-bold;
2017-05-01 16:05:28 +00:00
}
}
}
}
.other-videos {
.title-page {
margin-top: 0;
}
/deep/ .video-miniature {
display: flex;
height: 100%;
margin-bottom: 20px;
2017-11-06 10:46:11 +00:00
.video-miniature-information {
margin-left: 10px;
}
}
2017-11-06 10:46:11 +00:00
}
}
2017-12-11 08:08:15 +00:00
2017-12-11 09:02:17 +00:00
@media screen and (max-width: 1000px) {
2017-12-11 08:08:15 +00:00
.other-videos {
display: none;
}
2017-12-11 09:02:17 +00:00
}
2017-12-11 08:08:15 +00:00
2017-12-11 09:02:17 +00:00
@media screen and (max-width: 800px) {
2017-12-11 08:08:15 +00:00
.video-bottom {
2017-12-11 09:02:17 +00:00
margin: 20px 0 0 0;
2017-12-11 08:08:15 +00:00
.video-info {
2017-12-11 09:02:17 +00:00
margin-right: 0;
2017-12-11 08:39:40 +00:00
2017-12-11 08:08:15 +00: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;
}
}
}
}
}