X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo%2Fvideo-thumbnail.component.scss;h=feff78a87899b71b966bd48e2f8144e5714df482;hb=e66883b37ae0796256b3aba550670a2d76cfc98a;hp=ad221d6ed64a5c4ecf7641b7747578c0348b4af9;hpb=3fbba1d28a80b9e8bd97b422280a7465c5f7c89f;p=oweals%2Fpeertube.git diff --git a/client/src/app/shared/video/video-thumbnail.component.scss b/client/src/app/shared/video/video-thumbnail.component.scss index ad221d6ed..feff78a87 100644 --- a/client/src/app/shared/video/video-thumbnail.component.scss +++ b/client/src/app/shared/video/video-thumbnail.component.scss @@ -14,34 +14,40 @@ div { height: 100%; - background-color: var(--mainColor); + background-color: pvar(--mainColor); } } .video-thumbnail-watch-later-overlay, + .video-thumbnail-label-overlay, .video-thumbnail-duration-overlay { @include static-thumbnail-overlay; border-radius: 3px; font-size: 12px; + font-weight: $font-semibold; + line-height: 1.2; + z-index: z(miniature); + } + + .video-thumbnail-label-overlay { + position: absolute; + padding: 0 5px; + left: 5px; + top: 5px; font-weight: $font-bold; - z-index: 1; + + &.warning { background-color: orange; } + &.danger { background-color: red; } } .video-thumbnail-duration-overlay { position: absolute; - padding: 0 5px; + padding: 0 3px; right: 5px; bottom: 5px; } - &:focus, - &:hover { - .video-thumbnail-actions-overlay { - opacity: 1; - } - } - .video-thumbnail-actions-overlay { position: absolute; display: flex;