From e66883b37ae0796256b3aba550670a2d76cfc98a Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 9 Jun 2020 09:33:28 +0200 Subject: `fitWidth` for `video-miniature`, fluid grid (#2830) * Fluid abstract video list * normalize timestamp display on miniatures * use grid for abstract-video-list - refactor scss function var to pvar to avoid overriding css variables - move fluid-grid margins to adapt-margin-content-width mixin for maintainability - fix video-miniature-name margin-top on small screen * move sceenratio function in a mixin * display no miniature avatar in channel videos view --- client/src/app/shared/video/video-thumbnail.component.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared/video/video-thumbnail.component.scss') diff --git a/client/src/app/shared/video/video-thumbnail.component.scss b/client/src/app/shared/video/video-thumbnail.component.scss index 5fca916f0..feff78a87 100644 --- a/client/src/app/shared/video/video-thumbnail.component.scss +++ b/client/src/app/shared/video/video-thumbnail.component.scss @@ -14,7 +14,7 @@ div { height: 100%; - background-color: var(--mainColor); + background-color: pvar(--mainColor); } } @@ -25,7 +25,8 @@ border-radius: 3px; font-size: 12px; - font-weight: $font-bold; + font-weight: $font-semibold; + line-height: 1.2; z-index: z(miniature); } @@ -34,6 +35,7 @@ padding: 0 5px; left: 5px; top: 5px; + font-weight: $font-bold; &.warning { background-color: orange; } &.danger { background-color: red; } @@ -41,7 +43,7 @@ .video-thumbnail-duration-overlay { position: absolute; - padding: 0 5px; + padding: 0 3px; right: 5px; bottom: 5px; } -- cgit v1.2.3