Improve abstract videos list

Better responsive and align miniatures to the left
pull/1759/head
Chocobozzz 2019-04-03 13:25:52 +02:00
parent 8137c8b986
commit 11dd0c2e42
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
5 changed files with 36 additions and 16 deletions

View File

@ -1,14 +1,6 @@
@import '_mixins'; @import '_mixins';
@import '_miniature'; @import '_miniature';
.videos {
text-align: center;
my-video-miniature {
text-align: left;
}
}
.videos-header { .videos-header {
display: flex; display: flex;
height: 80px; height: 80px;
@ -32,8 +24,33 @@
} }
} }
@media screen and (max-width: 500px) { .margin-content {
.videos { width: $video-miniature-width * 6;
@include video-miniature-small-screen; margin: auto;
@media screen and (max-width: 1800px) {
width: $video-miniature-width * 5;
}
@media screen and (max-width: 1800px - $video-miniature-width) {
width: $video-miniature-width * 4;
}
@media screen and (max-width: 1800px - (2* $video-miniature-width)) {
width: $video-miniature-width * 3;
}
@media screen and (max-width: 1800px - (3* $video-miniature-width)) {
width: $video-miniature-width * 2;
}
@media screen and (max-width: 500px) {
width: auto;
margin: 0 !important;
.videos {
@include video-miniature-small-screen;
}
} }
} }

View File

@ -3,8 +3,9 @@
@import '_miniature'; @import '_miniature';
.video-miniature { .video-miniature {
width: $video-miniature-width;
display: inline-block; display: inline-block;
padding-right: 15px;
margin-bottom: 30px; margin-bottom: 30px;
height: 195px; height: 195px;
vertical-align: top; vertical-align: top;

View File

@ -20,8 +20,6 @@ $player-factor: 1.7; // 16/9
} }
.root { .root {
margin: 0 -15px;
&.theater-enabled #video-wrapper { &.theater-enabled #video-wrapper {
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
@ -51,6 +49,7 @@ $player-factor: 1.7; // 16/9
background-color: #000; background-color: #000;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin: 0 -15px;
.remote-server-down { .remote-server-down {
color: #fff; color: #fff;
@ -531,7 +530,7 @@ my-video-comments {
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
.video-bottom { .video-bottom {
margin: 20px 0 0 0; margin: 20px 0 0 0 !important;
.video-info { .video-info {
padding: 0; padding: 0;

View File

@ -121,6 +121,7 @@ $play-overlay-width: 18px;
.video-miniature-information { .video-miniature-information {
width: 100% !important; width: 100% !important;
text-align: left;
span { span {
width: 100%; width: 100%;
@ -128,8 +129,9 @@ $play-overlay-width: 18px;
} }
.video-thumbnail { .video-thumbnail {
width: 100%; width: calc(100% + 30px);
height: auto; height: auto;
margin: 0 -15px;
img { img {
width: 100%; width: 100%;

View File

@ -46,6 +46,7 @@ $footer-border-color: $header-border-color;
$separator-border-color: rgba(0, 0, 0, 0.10); $separator-border-color: rgba(0, 0, 0, 0.10);
$video-miniature-width: 238px;
$video-thumbnail-height: 122px; $video-thumbnail-height: 122px;
$video-thumbnail-width: 223px; $video-thumbnail-width: 223px;