X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo%2Fvideo-miniature.component.scss;h=d665ce021ccb45b7536207990e3ff0203e1c7c95;hb=743f023c5361af1428e927171effb2616d4e0245;hp=37e84897b5ec97aa872d75aa869e57375a072a9b;hpb=b1fa3eba70dbd7d9e5b795ad251e293c88ebeee2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/video/video-miniature.component.scss b/client/src/app/shared/video/video-miniature.component.scss index 37e84897b..d665ce021 100644 --- a/client/src/app/shared/video/video-miniature.component.scss +++ b/client/src/app/shared/video/video-miniature.component.scss @@ -1,44 +1,157 @@ +@import '_variables'; +@import '_mixins'; +@import '_miniature'; + +$more-button-width: 41px; +$more-margin-right: 10px; + .video-miniature { - display: inline-block; - padding-right: 15px; + width: $video-miniature-width; + display: inline-flex; + flex-direction: column; margin-bottom: 30px; - height: 175px; + height: 195px; vertical-align: top; - .video-miniature-information { - width: 200px; - margin-top: 2px; - line-height: normal; + .video-bottom { + display: flex; + + .video-miniature-information { + width: $video-miniature-width - $more-button-width - $more-margin-right; + line-height: normal; + + .video-miniature-name { + @include miniature-name; + } + + .video-miniature-created-at-views { + display: block; + font-size: 13px; + } + + .video-miniature-account, + .video-miniature-channel { + @include disable-default-a-behaviour; + @include ellipsis; + + display: block; + font-size: 13px; + color: $grey-foreground-color; + + &:hover { + color: $grey-foreground-hover-color; + } + } + + .video-info-privacy, + .video-info-blacklisted .blacklisted-label, + .video-info-nsfw { + font-weight: $font-semibold; + } - .video-miniature-name { - display: block; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - font-weight: bold; - transition: color 0.2s; - font-size: 16px; - font-weight: $font-semibold; - color: #000; + .video-info-blacklisted { + color: red; - &:hover { - text-decoration: none; + .blacklisted-reason::before { + content: ' - '; + } } - &.blur-filter { - filter: blur(3px); - padding-left: 4px; + .video-info-nsfw { + color: red; } } - .video-miniature-created-at-views { - display: block; - font-size: 13px; + .video-actions { + margin-top: 3px; + margin-right: $more-margin-right; + width: $more-button-width; + height: 30px; + + /deep/ .dropdown-root:not(.show) { + opacity: 0; + } + + /deep/ .playlist-dropdown.show + my-action-dropdown .dropdown-root { + opacity: 1; + } } - .video-miniature-account { - font-size: 13px; - color: #585858; + &:hover .video-actions /deep/ .dropdown-root { + opacity: 1; + } + + @media screen and (max-width: $small-view) { + .video-miniature-information .video-miniature-name { + margin-top: 0; + } + + .video-actions { + margin: 0; + top: -3px; + + /deep/ .dropdown-root { + opacity: 1 !important; + } + } + } + } + + &.display-as-row { + flex-direction: row; + margin-bottom: 0; + height: auto; + width: 100%; + + my-video-thumbnail { + margin-right: 10px; + } + + .video-bottom { + .video-miniature-information { + width: auto; + min-width: 500px; + + .video-miniature-name { + @include ellipsis-multiline(1.3em, 2); + + margin-top: 2px; + margin-bottom: 5px; + } + + .video-miniature-created-at-views, + .video-miniature-account, + .video-miniature-channel { + font-size: 14px; + width: fit-content; + } + + .video-info-privacy { + margin-top: 5px; + } + + .video-info-blacklisted { + margin-top: 3px; + } + } + + .video-actions { + margin: 0; + top: -3px; + } + } + + @media screen and (max-width: $small-view) { + flex-direction: column; + height: auto; + + my-video-thumbnail { + margin-right: 0; + } + + .video-miniature-information { + min-width: initial; + } } } }