X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccounts.component.scss;h=5043b98c40a192b0a563d11f289bca9d8d8ca603;hb=636d73c58866ed235c207719e41fdde3c2d6c969;hp=40c6b649368c9136c30e54efe9aad5487a28ca06;hpb=efd31a6ae276ae0337b8b342861103551de32753;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+accounts/accounts.component.scss b/client/src/app/+accounts/accounts.component.scss index 40c6b6493..5043b98c4 100644 --- a/client/src/app/+accounts/accounts.component.scss +++ b/client/src/app/+accounts/accounts.component.scss @@ -1,98 +1,142 @@ -// Bootstrap grid utilities require functions, variables and mixins -@import 'node_modules/bootstrap/scss/functions'; -@import 'node_modules/bootstrap/scss/variables'; -@import 'node_modules/bootstrap/scss/mixins'; -@import 'node_modules/bootstrap/scss/grid'; +@use '_variables' as *; +@use '_mixins' as *; +@use '_account-channel-page' as *; +@use '_miniature' as *; + +.root { + --myGlobalTopPadding: 60px; + --myImgMargin: 30px; + --myFontSize: 16px; + --myGreyFontSize: 16px; +} + +.section-label { + @include section-label-responsive; +} -@import '_variables'; -@import '_mixins'; +.links { + @include grid-videos-miniature-margins; + + display: flex; + justify-content: space-between; + align-items: center; -.sub-menu { - @include sub-menu-with-actor; + &.on-channel-page { + max-width: $max-channels-width; + } - .actor { - width: 100%; + simple-search-input { + @include margin-left(auto); } } -.margin-content { - // margin-content is required, but child views have their own margins - // that match views outside the scope of accounts, so we only align - // them with the margins of .sub-menu when required. - margin: 0; +my-user-moderation-dropdown { + margin: 0 10px; + + height: fit-content; +} + +.copy-button { + 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)); +} + +.actor-display-name { + align-items: center; +} + +.description { + grid-column: 1 / 3; + max-width: 1000px; + word-break: break-word; } -.right-buttons { +.show-more { + @include show-more-description; + + display: none; + text-align: center; +} + +.buttons { + grid-column: 2; + grid-row: 1; + display: flex; - height: max-content; - margin-left: auto; - margin-top: 10px; + flex-wrap: wrap; + justify-content: flex-end; + align-content: flex-start; - @include media-breakpoint-down(lg) { - flex-flow: column-reverse; + > *:not(:last-child) { + margin-bottom: 15px; + } - a { - margin-top: 0.25rem; - margin-right: 0 !important; - } + > a { + white-space: nowrap; } +} - a { - @include peertube-button-outline; +@media screen and (max-width: $small-view) { + .root { + --myGlobalTopPadding: 45px; + --myChannelImgMargin: 15px; } - my-subscribe-button { - min-height: 30px; + .account-info { + display: block; + padding-bottom: 60px; } -} -my-user-moderation-dropdown, -.badge { - margin-left: 10px; + .description:not(.expanded) { + @include fade-text(30px, pvar(--submenuBackgroundColor)); - position: relative; - top: 3px; -} + max-height: 70px; + } -.badge { - font-size: 13px; -} + .show-more { + display: block; + } -.copy-button { - border: none; - padding: 5px; - margin-top: -2px; + .buttons { + justify-content: center; + } } @media screen and (max-width: $mobile-view) { - .sub-menu { - .actor { - flex-direction: column; - align-items: center; - - img, - .actor-info .actor-names .actor-display-name { - margin-right: 0; - } - - .actor-info { - .actor-names { - flex-direction: column; - align-items: center; - } - - my-user-moderation-dropdown { - margin-left: 0; - } - - .actor-followers { - text-align: center; - } - } - - .right-buttons { - margin-left: 0; - } - } + .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; } }