X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccounts.component.scss;h=c4e2159d1466bd0172b7041f5b0ae5bfe60d901e;hb=dd24f1bb0a4b252e5342b251ba36853364da7b8e;hp=96484c9d3d8ab5b45ad42e3cd0268499860c4a45;hpb=496b02e38f272622a84ba22db412858d478ae7b0;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+accounts/accounts.component.scss b/client/src/app/+accounts/accounts.component.scss index 96484c9d3..c4e2159d1 100644 --- a/client/src/app/+accounts/accounts.component.scss +++ b/client/src/app/+accounts/accounts.component.scss @@ -1,32 +1,38 @@ -@import '_variables'; -@import '_mixins'; +@use '_variables' as *; +@use '_mixins' as *; +@use '_actor' as *; +@use '_miniature' as *; -.sub-menu { - @include sub-menu-with-actor; +.root { + --myGlobalTopPadding: 60px; + --myImgMargin: 30px; + --myFontSize: 16px; + --myGreyFontSize: 16px; +} - .actor { - width: 100%; - } +.section-label { + @include section-label-responsive; } -.right-buttons { +.links { + @include grid-videos-miniature-margins; + display: flex; - height: max-content; - margin-left: auto; - margin-top: 20px; + justify-content: space-between; + align-items: center; - a { - @include peertube-button-outline; + &.on-channel-page { + max-width: $max-channels-width; } - my-subscribe-button { - min-height: 30px; + simple-search-input { + @include margin-left(auto); } } my-user-moderation-dropdown, .badge { - margin-left: 10px; + @include margin-left(10px); position: relative; top: 3px; @@ -37,7 +43,102 @@ my-user-moderation-dropdown, } .copy-button { - border: none; - padding: 5px; - margin-top: -2px; + border: 0; +} + +.account-info { + @include grid-videos-miniature-margins(false, 15px); + + display: grid; + grid-template-columns: 1fr min-content; + grid-template-rows: auto auto; + + background-color: pvar(--submenuBackgroundColor); + margin-bottom: 45px; + padding-top: var(--myGlobalTopPadding); + padding-bottom: var(--myGlobalTopPadding); + font-size: var(--myFontSize); +} + +.account-avatar-row { + @include avatar-row-responsive(var(--myImgMargin), var(--myGreyFontSize)); +} + +.description { + grid-column: 1 / 3; + max-width: 1000px; + word-break: break-word; +} + +.show-more { + @include show-more-description; + + display: none; + text-align: center; +} + +.buttons { + grid-column: 2; + grid-row: 1; + + display: flex; + flex-wrap: wrap; + justify-content: flex-end; + align-content: flex-start; + + > *:not(:last-child) { + margin-bottom: 15px; + } + + > a { + white-space: nowrap; + } +} + +@media screen and (max-width: $small-view) { + .root { + --myGlobalTopPadding: 45px; + --myChannelImgMargin: 15px; + } + + .account-info { + display: block; + padding-bottom: 60px; + } + + .description:not(.expanded) { + @include fade-text(30px, pvar(--submenuBackgroundColor)); + + max-height: 70px; + } + + .show-more { + display: block; + } + + .buttons { + justify-content: center; + } +} + +@media screen and (max-width: $mobile-view) { + .root { + --myGlobalTopPadding: 15px; + --myFontSize: 14px; + --myGreyFontSize: 13px; + } + + .account-info { + display: block; + padding-bottom: 30px; + } + + .links { + margin: auto !important; + width: min-content; + } + + .show-more { + margin-bottom: 30px; + } }