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

295 lines
5.3 KiB
SCSS
Raw Normal View History

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;
}
}
#video-not-found {
height: 300px;
line-height: 300px;
margin-top: 50px;
text-align: center;
font-weight: bold;
}
#torrent-info {
font-size: 10px;
margin-top: 10px;
text-align: center;
div {
min-width: 60px;
}
}
#video-info {
2017-04-21 14:40:45 +00:00
.video-name-views {
font-weight: bold;
font-size: 18px;
2017-10-27 07:37:45 +00:00
min-height: $video-watch-title-height;
display: flex;
align-items: center;
2017-04-21 16:26:09 +00:00
.video-name {
padding-left: $video-watch-info-padding-left;
}
2017-04-21 14:40:45 +00:00
.video-views {
text-align: right;
2017-04-21 16:26:09 +00:00
// Keep a symmetry with the video name
padding-right: $video-watch-info-padding-left
}
2017-05-01 16:05:28 +00:00
2017-04-21 14:40:45 +00:00
}
2017-04-21 14:40:45 +00:00
.video-small-blocks {
2017-04-21 15:12:28 +00:00
height: $video-watch-info-height;
2017-04-21 14:40:45 +00:00
color: $video-watch-info-color;
border-color: $video-watch-border-color;
border-width: 1px 0px;
border-style: solid;
.video-small-block {
height: $video-watch-info-height;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
a {
cursor: pointer;
transition: color 0.3s;
2017-05-01 16:05:28 +00:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2017-04-21 14:40:45 +00:00
&, &:hover {
color: inherit;
text-decoration:none;
}
2017-03-08 20:35:43 +00:00
2017-04-21 14:40:45 +00:00
&:hover {
color: #000 !important;
}
2017-07-06 15:18:10 +00:00
&:hover > .glyphicon {
opacity: 1 !important;
}
2017-03-08 20:35:43 +00:00
}
2017-04-21 14:40:45 +00:00
.option .glyphicon {
font-size: 22px;
color: inherit;
2017-07-06 15:18:10 +00:00
opacity: 0.15;
2017-04-21 14:40:45 +00:00
margin-bottom: 10px;
2017-07-06 15:18:10 +00:00
transition: opacity 0.3s;
2017-03-08 20:35:43 +00:00
}
2017-04-21 14:40:45 +00:00
.video-small-block-text {
font-size: 15px;
font-weight: bold;
2017-03-08 20:35:43 +00:00
}
}
2017-04-21 14:40:45 +00:00
.video-small-block:not(:last-child) {
border-width: 0 1px 0 0;
border-color: $video-watch-border-color;
border-style: solid;
}
2017-01-20 18:22:15 +00:00
2017-11-14 08:31:41 +00:00
.video-small-block-account, .video-small-block-more {
2017-07-06 15:18:10 +00:00
a.option {
display: block;
.glyphicon {
display: block;
}
}
2017-01-20 18:22:15 +00:00
}
2017-04-21 14:40:45 +00:00
.video-small-block-share, .video-small-block-more {
a.option {
display: block;
2017-04-21 14:40:45 +00:00
.glyphicon {
display: block;
}
}
}
2017-04-21 14:40:45 +00:00
.video-small-block-more .video-small-block-dropdown {
position: relative;
.dropdown-item .glyphicon {
margin-right: 5px;
}
}
2017-04-21 14:40:45 +00:00
.video-small-block-rating {
2017-04-21 14:40:45 +00:00
.video-small-block-like {
margin-bottom: 10px;
}
2017-02-26 18:59:51 +00:00
2017-04-21 14:40:45 +00:00
.video-small-block-text {
vertical-align: top;
}
2017-04-21 14:40:45 +00:00
.glyphicon {
font-size: 18px;
margin: 0 10px 0 0;
2017-07-06 15:18:10 +00:00
opacity: 0.3;
2017-04-21 14:40:45 +00:00
}
2017-03-22 20:15:55 +00:00
2017-04-21 14:40:45 +00:00
.interactive {
cursor: pointer;
2017-07-06 15:18:10 +00:00
transition: opacity, color 0.3s;
2017-04-21 14:40:45 +00:00
&.activated, &:hover {
2017-07-06 15:18:10 +00:00
opacity: 1;
2017-04-21 14:40:45 +00:00
color: #000;
}
}
2017-03-22 20:15:55 +00:00
}
}
2017-04-21 14:40:45 +00:00
.video-details {
margin-top: 30px;
2017-03-27 19:11:37 +00:00
2017-04-21 14:40:45 +00:00
.video-details-date-description {
2017-04-21 16:26:09 +00:00
padding-left: $video-watch-info-padding-left;
.description-loading {
display: inline-block;
}
2017-04-21 14:40:45 +00:00
.video-details-date {
font-weight: bold;
margin-bottom: 30px;
}
.video-details-description-more {
cursor: pointer;
margin-top: 15px;
font-weight: bold;
color: #acaeb7;
.glyphicon {
position: relative;
top: 2px;
}
}
2017-04-21 14:40:45 +00:00
}
.video-details-attributes {
font-weight: bold;
2017-04-21 14:40:45 +00:00
font-size: 12px;
2017-10-27 07:37:45 +00:00
.video-details-attribute {
display: flex;
.video-details-attribute-label {
color: $video-watch-info-color;
flex-basis: 60px;
flex-grow: 0;
flex-shrink: 0;
margin-right: 5px;
}
2017-04-21 14:40:45 +00:00
}
}
2017-04-23 19:57:08 +00:00
.video-details-tags {
2017-10-27 07:37:45 +00:00
display: flex;
flex-wrap: wrap;
2017-04-23 19:57:08 +00:00
a {
2017-10-27 07:37:45 +00:00
margin: 0 3px 3px 0;
2017-04-23 19:57:08 +00:00
font-size: 11px;
}
}
}
2017-05-01 16:05:28 +00:00
@media screen and (max-width: 800px) {
.video-name-views {
.video-name {
padding-left: 5px;
padding-right: 0px;
}
.video-views {
padding-left: 0px;
padding-right: 5px;
}
}
.video-small-blocks {
a, .video-small-block-text {
font-size: 13px !important;
}
.glyphicon {
font-size: 18px !important;
}
2017-11-14 08:31:41 +00:00
.video-small-block-account {
2017-05-01 16:05:28 +00:00
padding-left: 10px;
2017-11-06 10:46:11 +00:00
padding-right: 10px;
2017-05-01 16:05:28 +00:00
}
}
.video-details {
.video-details-date-description {
padding-left: 10px;
font-size: 13px !important;
}
.video-details-attributes {
font-size: 11px !important;
.video-details-attribute-label {
width: 50px;
}
}
}
}
2017-11-06 10:46:11 +00:00
@media screen and (max-width: 500px) {
.video-name-views {
font-size: 16px !important;
}
// Keep the same hierarchy than max-width: 800px
.video-small-blocks {
a, .video-small-block-text {
font-size: 10px !important;
}
2017-11-14 08:31:41 +00:00
.video-small-block-account {
2017-11-06 10:46:11 +00:00
padding-left: 5px;
padding-right: 5px;
}
}
.video-details {
.video-details-date-description {
margin-bottom: 30px;
width: 100%;
.video-details-date {
margin-bottom: 15px;
}
}
.video-details-attributes {
padding-left: 10px;
padding-right: 10px;
}
}
}
}