From 11dd0c2e4202e7ad68d8b7e6706de846401d29ff Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Apr 2019 13:25:52 +0200 Subject: Improve abstract videos list Better responsive and align miniatures to the left --- .../src/app/shared/video/abstract-video-list.scss | 39 ++++++++++++++++------ .../shared/video/video-miniature.component.scss | 3 +- 2 files changed, 30 insertions(+), 12 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/video/abstract-video-list.scss b/client/src/app/shared/video/abstract-video-list.scss index 65842af35..a1d9168de 100644 --- a/client/src/app/shared/video/abstract-video-list.scss +++ b/client/src/app/shared/video/abstract-video-list.scss @@ -1,14 +1,6 @@ @import '_mixins'; @import '_miniature'; -.videos { - text-align: center; - - my-video-miniature { - text-align: left; - } -} - .videos-header { display: flex; height: 80px; @@ -32,8 +24,33 @@ } } -@media screen and (max-width: 500px) { - .videos { - @include video-miniature-small-screen; +.margin-content { + width: $video-miniature-width * 6; + 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; + } } } + diff --git a/client/src/app/shared/video/video-miniature.component.scss b/client/src/app/shared/video/video-miniature.component.scss index 7d857a74e..4799e00c2 100644 --- a/client/src/app/shared/video/video-miniature.component.scss +++ b/client/src/app/shared/video/video-miniature.component.scss @@ -3,8 +3,9 @@ @import '_miniature'; .video-miniature { + width: $video-miniature-width; + display: inline-block; - padding-right: 15px; margin-bottom: 30px; height: 195px; vertical-align: top; -- cgit v1.2.3