X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideo-channels%2Fvideo-channels.component.scss;h=72ee2d7bbb4c59335935e827d7b5aecdeffc869d;hb=c9c0cc5179359b6a9fa7c46bf73df99c4f72c1fc;hp=ec8f67a7e8a9b8ed8b6df4c3334c8158fa3f51ab;hpb=100d9ce23bb7c5186132607e4c444f9cba5002a4;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 ec8f67a7e..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; @@ -42,6 +56,8 @@ .channel-description { grid-column: 1; + word-break: break-word; + padding-bottom: var(--myGlobalTopPadding); } .show-more { @@ -55,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 @@ -68,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; @@ -97,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 { @@ -117,9 +131,10 @@ } .owner-description { - height: 140px; - @include fade-text(120px, pvar(--mainBackgroundColor)); + + max-height: 140px; + word-break: break-word; } } @@ -135,7 +150,7 @@ } .copy-button { - border: none; + border: 0; } @media screen and (max-width: 1400px) { @@ -145,8 +160,9 @@ } .owner-card { + @include margin-left(60px); + grid-row: 2; - margin-left: 60px; } } @@ -163,9 +179,9 @@ } .channel-description:not(.expanded) { - max-height: 70px; - @include fade-text(30px, pvar(--channelBackgroundColor)); + + max-height: 70px; } .show-more { @@ -200,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 { @@ -217,7 +234,8 @@ } .view-account.complete { - display: inline-block; + display: block; + text-align: end; margin-top: 10px; color: pvar(--mainColor); } @@ -273,8 +291,8 @@ margin-top: -5px; } - img { - @include channel-avatar(64px); + .account-avatar { + @include actor-avatar-size(64px); margin: -30px 0 0 15px; }