X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccounts.component.scss;h=56b952b657960bb31fad19b39a575166e6de8f34;hb=0c302acb3c358b4d4d8dee45aed1de1108ea37ea;hp=3cedda889de1f5db897e71d5e0d5e4a4c951b382;hpb=54b3316099ed7d2dfcb6d708fdb686f1e125ce61;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+accounts/accounts.component.scss b/client/src/app/+accounts/accounts.component.scss index 3cedda889..56b952b65 100644 --- a/client/src/app/+accounts/accounts.component.scss +++ b/client/src/app/+accounts/accounts.component.scss @@ -1,18 +1,120 @@ -@import '_variables'; -@import '_mixins'; +@use '_variables' as *; +@use '_mixins' as *; +@use '_account-channel-page' as *; +@use '_miniature' as *; -.sub-menu { - @include sub-menu-with-actor; +.root { + --myFontSize: 1rem; + --myGreyFontSize: 1rem; } -my-user-moderation-dropdown, -.badge { - margin-left: 10px; +.section-label { + @include section-label-responsive; +} + +.links { + @include grid-videos-miniature-margins; + + display: flex; + justify-content: space-between; + align-items: center; + + &.on-channel-page { + max-width: $max-channels-width; + } + + simple-search-input { + @include margin-left(auto); + } +} + +.copy-button { + @include margin-left(3px); + + border: 0; + + my-global-icon { + width: 15px; + } +} + +.account-info { + @include grid-videos-miniature-margins(false, 15px); + @include padding-top(3.75rem); + @include padding-bottom(3.75rem); + @include margin-bottom(3rem); + @include font-size(1rem); + + grid-template-columns: 1fr min-content; + grid-template-rows: auto auto; + + background-color: pvar(--submenuBackgroundColor); +} + +.account-avatar-row { + @include avatar-row-responsive(2rem, var(--myGreyFontSize)); +} + +.actor-display-name { + align-items: center; +} - position: relative; - top: 3px; +.description { + grid-column: 1 / 3; + max-width: 1000px; + word-break: break-word; } -.badge { - font-size: 13px; -} \ No newline at end of file +.show-more { + @include show-more-description; + @include padding-bottom(3.75rem); + + 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) { + @include margin-bottom(1rem); + } + + >a { + white-space: nowrap; + } +} + +.pt-badge { + @include margin-right(5px); +} + +@media screen and (max-width: $small-view) { + + .description:not(.expanded) { + @include fade-text(30px, pvar(--submenuBackgroundColor)); + + max-height: 70px; + } + + .buttons { + justify-content: center; + } +} + +@media screen and (max-width: $mobile-view) { + .root { + --myFontSize: 14px; + --myGreyFontSize: 13px; + } + + .links { + margin: auto !important; + width: min-content; + } +}