X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Finclude%2F_miniature.scss;h=c1d1b3c590afc82fd372ad53aa3d321174efff7f;hb=23f1b9da1577c64e2caa1dff8f3aa92eb8d184cf;hp=ba05b6a8eac9846863ed01553990208afc1bc088;hpb=1b8a8905950873f514dd0e85a33244e007eaca7d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss index ba05b6a8e..c1d1b3c59 100644 --- a/client/src/sass/include/_miniature.scss +++ b/client/src/sass/include/_miniature.scss @@ -45,7 +45,7 @@ $play-overlay-width: 18px; width: inherit; height: inherit; opacity: 0; - background-color: rgba(0, 0, 0, 0.7); + background-color: rgba(0, 0, 0, 0.3); &, .icon { transition: all $play-overlay-transition; @@ -95,7 +95,7 @@ $play-overlay-width: 18px; } @mixin thumbnail-size-component ($width, $height) { - /deep/ .video-thumbnail { + ::ng-deep .video-thumbnail { width: $width; height: $height; } @@ -110,7 +110,7 @@ $play-overlay-width: 18px; @mixin video-miniature-small-screen { text-align: center; - /deep/ .video-miniature { + ::ng-deep .video-miniature { padding-right: 0; height: auto; width: 100%; @@ -129,6 +129,7 @@ $play-overlay-width: 18px; margin: 0 -15px 10px -15px; width: 100vw; height: calc(100vw / #{$video-thumbnail-ratio}); + border-radius: 0; img { width: 100%; @@ -137,3 +138,114 @@ $play-overlay-width: 18px; } } } + +@mixin miniature-rows { + &:first-child { + padding-top: 30px; + + .section-title { + border-top: none !important; + } + } + + my-video-miniature { + text-align: left; + } + + .section-title { + font-size: 24px; + font-weight: $font-semibold; + padding-top: 15px; + margin-bottom: 15px; + display: flex; + justify-content: space-between; + border-top: 1px solid $separator-border-color; + + a { + &:hover, &:focus:not(.focus-visible), &:active { + text-decoration: none; + outline: none; + } + + color: var(--mainForegroundColor); + } + } + + &.channel { + .section-title { + a { + display: flex; + width: fit-content; + align-items: center; + + img { + @include avatar(28px); + + margin-right: 8px; + } + } + + .followers { + color: $grey-foreground-color; + font-weight: normal; + font-size: 14px; + margin-left: 10px; + position: relative; + top: 2px; + } + } + } + + .show-more { + position: relative; + top: -5px; + display: inline-block; + font-size: 16px; + text-transform: uppercase; + color: $grey-foreground-color; + margin-bottom: 10px; + font-weight: $font-semibold; + text-decoration: none; + } + + @media screen and (max-width: $mobile-view) { + max-height: initial; + overflow: initial; + + @include video-miniature-small-screen; + + .section-title { + font-size: 17px; + } + } +} + +@mixin adapt-margin-content-width { + width: $video-miniature-width * 6; + margin: auto !important; + + @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: $mobile-view) { + width: auto; + margin: 0 !important; + + .videos { + @include video-miniature-small-screen; + } + } +}