X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-thumbnail%2Fvideo-thumbnail.component.scss;h=459539924d337e865843e893e303ea2aa68dd016;hb=8cbc40b2fe9d36ef0505b9441276ca561342e9e9;hp=1b6151c895aede764610a6ee1228305b12897832;hpb=da0310f821b039fea1fcbf8aea49e1d2279ba98e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss index 1b6151c89..459539924 100644 --- a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss +++ b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss @@ -1,82 +1,85 @@ -@import '_variables'; -@import '_mixins'; -@import '_miniature'; +@use '_variables' as *; +@use '_mixins' as *; +@use '_miniature' as *; .video-thumbnail { @include miniature-thumbnail; +} - .progress-bar { - height: 3px; - width: 100%; - position: absolute; - bottom: 0; - background-color: rgba(0, 0, 0, 0.20); +.progress-bar { + height: 3px; + width: 100%; + position: absolute; + bottom: 0; + background-color: rgba(0, 0, 0, 0.2); - div { - height: 100%; - background-color: pvar(--mainColor); - } + div { + height: 100%; + background-color: pvar(--mainColor); } +} - .video-thumbnail-watch-later-overlay, - .video-thumbnail-label-overlay, - .video-thumbnail-duration-overlay, - .video-thumbnail-live-overlay { - @include static-thumbnail-overlay; +.video-thumbnail-watch-later-overlay, +.video-thumbnail-label-overlay, +.video-thumbnail-duration-overlay, +.video-thumbnail-live-overlay { + @include static-thumbnail-overlay; - border-radius: 3px; - font-size: 12px; - font-weight: $font-semibold; - line-height: 1.2; - z-index: z(miniature); - } + border-radius: 3px; + font-size: 12px; + font-weight: $font-semibold; + line-height: 1.1; + z-index: z(miniature); +} - .video-thumbnail-label-overlay { - position: absolute; - padding: 0 5px; - left: 5px; - top: 5px; - font-weight: $font-bold; +.video-thumbnail-label-overlay { + position: absolute; + padding: 0 5px; + left: 5px; + top: 5px; + font-weight: $font-bold; - &.warning { background-color: orange; } - &.danger { background-color: red; } - } + &.warning { background-color: #ffa500; } + &.danger { background-color: #ff0000; } +} - .video-thumbnail-duration-overlay, - .video-thumbnail-live-overlay { - position: absolute; - padding: 0 3px; - right: 5px; - bottom: 5px; - } +.video-thumbnail-duration-overlay, +.video-thumbnail-live-overlay { + position: absolute; + padding: 0 3px; + right: 5px; + bottom: 5px; +} + +.video-thumbnail-live-overlay { + font-weight: $font-semibold; + color: #fff; - .video-thumbnail-live-overlay { + &:not(.live-ended) { background-color: rgba(224, 8, 8, 0.7); - color: #fff; - font-weight: $font-semibold; } +} - .video-thumbnail-actions-overlay { - position: absolute; - display: flex; - flex-direction: column; - right: 5px; - top: 5px; - opacity: 0; +.video-thumbnail-actions-overlay { + position: absolute; + display: flex; + flex-direction: column; + right: 5px; + top: 5px; + opacity: 0; - div:not(:first-child) { - margin-top: 2px; - } + div:not(:first-child) { + margin-top: 2px; + } +} - .video-thumbnail-watch-later-overlay { - padding: 3px; +.video-thumbnail-watch-later-overlay { + padding: 3px; - my-global-icon { - width: 22px; - height: 22px; + my-global-icon { + @include apply-svg-color(#fff); - @include apply-svg-color(#fff); - } - } + width: 22px; + height: 22px; } }