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=2ffd70c89106aac989a63e191df3dbb5af2e267c;hpb=fcd8d3e0302cb1e061e6868f3180f0d66e149d18;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 2ffd70c89..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,6 +11,10 @@ --myGreyOwnerFontSize: 14px; } +.banner { + @include block-ratio('img', $banner-inverted-ratio); +} + .section-label { @include section-label-responsive; } @@ -53,6 +57,7 @@ .channel-description { grid-column: 1; word-break: break-word; + padding-bottom: var(--myGlobalTopPadding); } .show-more { @@ -66,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 @@ -79,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; @@ -108,12 +107,12 @@ 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 { @@ -132,10 +131,10 @@ } .owner-description { - height: 140px; - word-break: break-word; - @include fade-text(120px, pvar(--mainBackgroundColor)); + + max-height: 140px; + word-break: break-word; } } @@ -151,7 +150,7 @@ } .copy-button { - border: none; + border: 0; } @media screen and (max-width: 1400px) { @@ -161,8 +160,9 @@ } .owner-card { + @include margin-left(60px); + grid-row: 2; - margin-left: 60px; } } @@ -179,9 +179,9 @@ } .channel-description:not(.expanded) { - max-height: 70px; - @include fade-text(30px, pvar(--channelBackgroundColor)); + + max-height: 70px; } .show-more { @@ -216,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 { @@ -234,7 +235,7 @@ .view-account.complete { display: block; - text-align: right; + text-align: end; margin-top: 10px; color: pvar(--mainColor); } @@ -290,8 +291,8 @@ margin-top: -5px; } - img { - @include channel-avatar(64px); + .account-avatar { + @include actor-avatar-size(64px); margin: -30px 0 0 15px; }