X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccount-video-channels%2Faccount-video-channels.component.scss;h=30b8098be8eaa61e3a1ab2b54741d3bb2e83940b;hb=eaa529528cafcfb291009f9f99d296c81e792899;hp=c9c7fa8ebed28fbdf059633f51c8baa240e2d7e4;hpb=170726f523ff48f89da45473fc53ca54784f43dd;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss index c9c7fa8eb..30b8098be 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss @@ -1,30 +1,170 @@ -@import '_variables'; -@import '_mixins'; +@use 'sass:math'; +@use '_variables' as *; +@use '_mixins' as *; +@use '_miniature' as *; -.row { - text-align: center; +.margin-content { + @include grid-videos-miniature-margins; } -a.video-channel { - @include disable-default-a-behaviour; +.channel { + max-width: $max-channels-width; + background-color: pvar(--channelBackgroundColor); + padding: 30px; - display: inline-block; - text-align: center; - color: #000; - margin: 10px 30px; + margin: 30px 0; - img { - @include avatar(80px); + display: grid; + grid-template-columns: 1fr auto; + grid-template-rows: auto auto; + column-gap: 15px; +} + +.channel-avatar-row { + grid-column: 1; + grid-row: 1; + + display: grid; + grid-template-columns: auto auto 1fr; + grid-template-rows: auto 1fr; + + my-actor-avatar { + @include margin-right(15px); + + grid-column: 1; + grid-row: 1 / 3; + } - margin-bottom: 10px; + a { + @include peertube-word-wrap; + + color: pvar(--mainForegroundColor); } - .video-channel-display-name { + h2 { + grid-row: 1; + grid-column: 2; font-size: 20px; + line-height: 1; font-weight: $font-bold; + margin: 0; + } + + .actor-counters { + @include margin-left(15px); + @include actor-counters; + + grid-row: 1; + grid-column: 3; + } + + .description-html { + @include fade-text(30px, pvar(--channelBackgroundColor)); + + grid-column: 2 / 4; + grid-row: 2; + + max-height: 80px; + font-size: 16px; + } +} + +my-subscribe-button { + grid-row: 1; + grid-column: 2; +} + +.videos { + display: flex; + grid-column: 1 / 3; + grid-row: 2; + margin-top: 30px; + + position: relative; + overflow: hidden; + + my-video-miniature { + @include margin-right(15px); + + min-width: $video-thumbnail-medium-width; + max-width: $video-thumbnail-medium-width; + } + + .no-results { + height: auto; } +} + +.miniature-show-channel { + height: 100%; + position: absolute; + right: 0; + background: linear-gradient(90deg, transparent 0, pvar(--channelBackgroundColor) 45px); + padding: (math.div($video-thumbnail-medium-height, 2) - 10px) 15px 0 60px; + z-index: z(miniature) + 1; + + a { + color: pvar(--mainColor); + font-size: 16px; + font-weight: $font-semibold; + } +} + +.button-show-channel { + display: none; +} + +@media screen and (max-width: $mobile-view) { + .channel { + padding: 15px; + } + + .channel-avatar-row { + grid-template-columns: auto auto auto 1fr; + + .avatar-link { + grid-row: 1 / 4; + } + + h2 { + font-size: 16px; + } - .video-channel-followers { - font-size: 15px; + .actor-counters { + margin: 0; + font-size: 13px; + grid-row: 2; + grid-column: 2 / 4; + } + + .description-html { + grid-row: 3; + font-size: 14px; + } + } + + .show-channel a { + @include peertube-button-link; + @include orange-button-inverted; + } + + .videos { + display: none; + } + + my-subscribe-button, + .button-show-channel { + grid-column: 1 / 4; + grid-row: 3; + margin-top: 15px; + } + + my-subscribe-button { + justify-self: start; } -} \ No newline at end of file + + .button-show-channel { + display: block; + justify-self: end; + } +}