X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideo-channels%2Fvideo-channels.component.scss;h=72ee2d7bbb4c59335935e827d7b5aecdeffc869d;hb=05ac4ac7ed5107ac8ef1d0d1f9fd5009bf29bedc;hp=fb71844bdfeef5a45c42c3cd6a9650a2c03acf42;hpb=900f7820814b95b07ef0bcac04036a95abfbe060;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+video-channels/video-channels.component.scss b/client/src/app/+video-channels/video-channels.component.scss index fb71844bd..72ee2d7bb 100644 --- a/client/src/app/+video-channels/video-channels.component.scss +++ b/client/src/app/+video-channels/video-channels.component.scss @@ -1,7 +1,7 @@ -@import '_variables'; -@import '_mixins'; -@import '_actor'; -@import '_miniature'; +@use '_variables' as *; +@use '_mixins' as *; +@use '_account-channel-page' as *; +@use '_miniature' as *; .root { --myGlobalTopPadding: 60px; @@ -11,16 +11,30 @@ --myGreyOwnerFontSize: 14px; } +.banner { + @include block-ratio('img', $banner-inverted-ratio); +} + .section-label { @include section-label-responsive; } .links { - @include fluid-videos-miniature-margins; + @include grid-videos-miniature-margins; +} + +.actor-info { + min-width: 1px; + width: 100%; + + > h4, + > .actor-handle { + @include ellipsis; + } } .channel-info { - @include fluid-videos-miniature-margins(false, 15px); + @include grid-videos-miniature-margins(false, 15px); display: grid; grid-template-columns: 1fr auto; @@ -36,8 +50,14 @@ @include avatar-row-responsive(var(--myChannelImgMargin), var(--myGreyChannelFontSize)); } +.support-button { + @include button-with-icon(21px, 0, -1px); +} + .channel-description { grid-column: 1; + word-break: break-word; + padding-bottom: var(--myGlobalTopPadding); } .show-more { @@ -51,12 +71,12 @@ flex-wrap: wrap; > *:not(:last-child) { - margin-right: 15px; + @include margin-right(15px); } } .channel-buttons.right { - margin-left: 45px; + @include margin-left(45px); } // Only used by mobile @@ -64,14 +84,8 @@ display: none; } -.created-at { - margin-top: 15px; - color: pvar(--greyForegroundColor); - padding-bottom: 60px; -} - .owner-card { - margin-left: 105px; + @include margin-left(105px); grid-column: 2; // Takes all the column grid-row: 1 / 3; @@ -93,17 +107,21 @@ display: flex; margin-bottom: 15px; - img { - @include avatar(48px); + .account-avatar { + @include actor-avatar-size(48px); } .actor-info { - margin-left: 15px; + @include margin-left(15px); } h4 { font-size: 18px; margin: 0; + + a { + color: pvar(--mainForegroundColor); + } } .actor-handle { @@ -113,9 +131,10 @@ } .owner-description { - height: 140px; - @include fade-text(120px, pvar(--mainBackgroundColor)); + + max-height: 140px; + word-break: break-word; } } @@ -131,7 +150,7 @@ } .copy-button { - border: none; + border: 0; } @media screen and (max-width: 1400px) { @@ -141,8 +160,9 @@ } .owner-card { + @include margin-left(60px); + grid-row: 2; - margin-left: 60px; } } @@ -159,9 +179,9 @@ } .channel-description:not(.expanded) { - max-height: 70px; - @include fade-text(30px, pvar(--channelBackgroundColor)); + + max-height: 70px; } .show-more { @@ -196,15 +216,16 @@ padding: 0; .avatar-row { + @include margin-right(30px); + grid-column: 1; - margin-right: 30px; } .owner-description { + @include fade-text(30px, pvar(--mainBackgroundColor)); + grid-column: 2; max-height: 70px; - - @include fade-text(30px, pvar(--mainBackgroundColor)); } .view-account { @@ -213,7 +234,8 @@ } .view-account.complete { - display: inline-block; + display: block; + text-align: end; margin-top: 10px; color: pvar(--mainColor); } @@ -269,8 +291,8 @@ margin-top: -5px; } - img { - @include channel-avatar(64px); + .account-avatar { + @include actor-avatar-size(64px); margin: -30px 0 0 15px; }