]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+signup/+register/register.component.scss
Redesign register steps
[github/Chocobozzz/PeerTube.git] / client / src / app / +signup / +register / register.component.scss
index 53093a81a214b37be546511666612fe8922d6858..5d0df81bd3f966f2f439e9e455f770da5f646a2f 100644 (file)
@@ -2,7 +2,7 @@
 @use '_mixins' as *;
 
 .alert {
-  font-size: 15px;
+  font-size: 16px;
   text-align: center;
 }
 
   padding-top: 30vh;
 }
 
-.wrapper {
+.header-title {
+  font-weight: normal;
+  font-size: 15px;
+  background-color: pvar(--mainColorVeryLight);
+  padding: 35px 25px 15px 25px;
+  margin: 0;
+}
+
+.register-content {
+  font-size: 16px;
+}
+
+my-instance-about-accordion {
+  display: block;
+  margin-bottom: 25px;
+}
+
+.step-buttons {
   display: flex;
-  flex-direction: column;
+  flex-wrap: wrap;
+  align-items: center;
 
-  .register-form {
-    max-width: 600px;
-    align-self: center;
+  .skip-step {
+    @include margin-right(30px);
+
+    display: inline-block;
   }
 
-  .register-form,
-  .instance-information {
-    width: 100%;
+  .skip-step-description {
+    margin-top: 5px;
+    font-size: 14px;
   }
 
-  .instance-information {
-    margin-bottom: 15px;
+  .underline-orange {
+    color: pvar(--mainForegroundColor);
+
+    &:hover {
+      opacity: 0.8;
+    }
   }
-}
 
-input:not([type=submit]) {
-  @include peertube-input-text(100%);
-  display: block;
+  button,
+  .skip-step {
+    margin-top: 20px;
+    margin-bottom: 20px;
+  }
 
-  &#username,
-  &#name {
-    width: auto !important;
-    flex-grow: 1;
+  .skip-step,
+  button[cdkStepperNext] {
+    @include margin-left(auto);
+  }
+
+  .skip-step + button[cdkStepperNext] {
+    @include margin-left(0);
   }
 }
 
-input[type=submit],
 button {
-  @include peertube-button;
+  @include peertube-button-big;
 
   &[cdkStepperNext] {
     @include orange-button;
-
-    // Chrome does not support inline-end
-    float: right;
-    float: inline-end;
   }
 
   &[cdkStepperPrevious] {
     @include grey-button;
-
-    // Chrome does not support inline-start
-    float: left;
-    float: inline-start;
   }
 }
 
-.name-information {
-  margin-top: 10px;
-}
-
 .done-loader {
   display: flex;
   justify-content: center;
@@ -73,13 +87,16 @@ button {
 
   my-loader {
     margin-bottom: 20px;
+  }
+}
 
-    ::ng-deep .loader div {
-      border-color: pvar(--mainColor) transparent transparent transparent;
-    }
+@media screen and (max-width: $small-view) {
+  .step-buttons {
+    justify-content: space-between;
 
-    + div {
-      font-size: 15px;
+    .skip-step,
+    button[cdkStepperNext] {
+      @include margin-left(0);
     }
   }
 }