]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+accounts/accounts.component.scss
Fix lint
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / accounts.component.scss
index 3cedda889de1f5db897e71d5e0d5e4a4c951b382..56927dea6917a6afa464c0d5d476661ab0f0577e 100644 (file)
@@ -1,8 +1,30 @@
 @import '_variables';
 @import '_mixins';
+@import '_actor';
+@import '_miniature';
 
-.sub-menu {
-  @include sub-menu-with-actor;
+.root {
+  --myGlobalTopPadding: 60px;
+  --myImgMargin: 30px;
+  --myFontSize: 16px;
+  --myGreyFontSize: 16px;
+}
+
+.section-label {
+  @include section-label-responsive;
+}
+
+.links {
+  @include grid-videos-miniature-margins;
+
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  max-width: $max-channels-width;
+
+  simple-search-input {
+    margin-left: auto;
+  }
 }
 
 my-user-moderation-dropdown,
@@ -15,4 +37,105 @@ my-user-moderation-dropdown,
 
 .badge {
   font-size: 13px;
-}
\ No newline at end of file
+}
+
+.copy-button {
+  border: none;
+}
+
+.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) {
+    max-height: 70px;
+
+    @include fade-text(30px, pvar(--submenuBackgroundColor));
+  }
+
+  .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;
+  }
+}