]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+login/login.component.scss
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +login / login.component.scss
index f605cbb7a06583092d6f04a96ffe5d2f8c6add12..d31d428f70f0ef0f6cee85c62d06dc510b945e6f 100644 (file)
-@import '_variables';
-@import '_mixins';
-@import './_bootstrap-variables';
+@use '_variables' as *;
+@use '_mixins' as *;
+
 @import '~bootstrap/scss/functions';
 @import '~bootstrap/scss/variables';
 
 label {
   display: block;
+  font-size: 18px;
+  margin-bottom: 5px;
 }
 
 input[type=text],
 input[type=email] {
-  @include peertube-input-text(340px);
+  @include peertube-input-text(100%);
 }
 
 .modal-body {
-  text-align: left;
+  text-align: start;
 
   .forgot-password-instructions {
     margin-bottom: 20px;
   }
 }
 
-.modal-footer.inputs {
-  .action-button.action-button-cancel {
-    width: auto !important;
-    display: inline-block;
-  }
-}
-
-@media screen and (max-width: #{map-get($container-max-widths, sm)}) {
+@media screen and (max-width: $small-view) {
   .modal-body {
     #forgot-password-email {
       width: 100%;
     }
   }
 
-  .modal-footer.inputs {
-    .action-button.action-button-cancel {
-      display: none;
-    }
-  }
-}
-
-.create-an-account, .forgot-password-button {
-  color: pvar(--mainForegroundColor);
-  cursor: pointer;
-  transition: opacity cubic-bezier(0.39, 0.575, 0.565, 1);
-
-  &:hover {
-    text-decoration: none !important;
-    opacity: .7 !important;
+  .modal-footer .grey-button {
+    display: none;
   }
 }
 
 .wrapper {
   display: flex;
-  justify-content: space-around;
+  justify-content: space-between;
   flex-wrap: wrap;
+  margin: auto;
 
-  > div {
+  > div {
     flex: 1 1;
   }
 
-  .login-form-and-externals {
-    display: flex;
-    flex-wrap: wrap;
-    font-size: 15px;
-    max-width: 450px;
-    margin-bottom: 40px;
-    margin-left: 10px;
-    margin-right: 10px;
+  form {
+    width: 100%;
+  }
+}
 
-    form {
-      margin: 0;
+.wrapper,
+.alert {
+  max-width: 1200px;
+}
 
-      &, input {
-        width: 100%;
-      }
+.alert {
+  margin: 0 auto 30px;
+}
 
-      .additionnal-links {
-        display: block;
-        text-align: center;
-        margin-top: 20px;
-        margin-bottom: 20px;
+.login-form-and-externals {
+  @include margin-left(10px);
+  @include margin-right(10px);
 
-        .forgot-password-button,
-        .create-an-account {
-          padding: 4px;
-          display: inline-block;
+  display: flex;
+  flex-wrap: wrap;
+  justify-content: center;
+  max-width: 450px;
+  margin-bottom: 40px;
 
-          color: var(--mainColor);
+  form {
+    margin: 0;
 
-          &:hover, &:active {
-            color: var(--mainHoverColor);
-          }
-        }
-      }
+    input[type=submit] {
+      width: 100%;
     }
 
-    .external-login-blocks {
-      min-width: 200px;
+    .additional-links {
+      display: flex;
+      justify-content: center;
+      margin: 20px 0 30px;
 
-      .block-title {
-        font-weight: $font-semibold;
+      .link-orange {
+        margin: 0 15px;
       }
-
-      .external-login-block {
-        @include disable-default-a-behaviour;
-
-        cursor: pointer;
-        border: 1px solid #d1d7e0;
-        border-radius: 5px;
-        color: pvar(--mainForegroundColor);
-        margin: 10px 10px 0 0;
-        display: flex;
-        justify-content: center;
-        align-items: center;
-        min-height: 35px;
-        min-width: 100px;
-
-        &:hover {
-          background-color: rgba(209, 215, 224, 0.5)
-        }
-      }
-    }
-
-    .signup-link {
-      display: inline-block;
     }
   }
+}
 
-  .instance-information {
-    max-width: 600px;
-    min-width: 350px;
-    margin-bottom: 40px;
-    margin-left: 10px;
-    margin-right: 10px;
-  }
+.external-login-blocks {
+  min-width: 200px;
+  text-align: center;
 
-  .terms-anchor {
-    display: inline;
+  .block-title {
+    font-weight: $font-semibold;
   }
 
-  .terms-link {
-    display: none;
+  .external-login-block {
+    @include disable-default-a-behaviour;
+
+    cursor: pointer;
+    border: 1px solid #d1d7e0;
+    border-radius: 5px;
+    color: pvar(--mainForegroundColor);
+    margin: 10px 10px 0 0;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    min-height: 35px;
+    min-width: 100px;
+
+    &:hover {
+      background-color: rgba(209, 215, 224, 0.5);
+    }
   }
 }
 
-@mixin columnReverseDisplay {
+.instance-information {
+  @include margin-left(10px);
+  @include margin-right(10px);
+
+  max-width: 600px;
+  min-width: 350px;
+  margin-bottom: 40px;
+}
+
+.terms-anchor {
+  display: inline;
+}
+
+.terms-link {
+  display: none;
+}
+
+@mixin column-reverse-display {
   flex-direction: column-reverse;
 
   .login-form-and-externals,
   .instance-information {
+    @include margin-left(0);
+    @include margin-right(0);
+
     width: 100%;
-    margin-left: 0;
-    margin-right: 0;
     max-width: 450px;
     min-width: unset;
     align-self: center;
@@ -177,14 +164,14 @@ input[type=email] {
 
 @media screen and (max-width: breakpoint(md)) {
   .wrapper {
-    @include columnReverseDisplay();
+    @include column-reverse-display();
   }
 }
 
 @media screen and (max-width: breakpoint(md) + $menu-width) {
   :host-context(.main-col:not(.expanded)) {
     .wrapper {
-      @include columnReverseDisplay();
+      @include column-reverse-display();
     }
   }
 }