]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+login/login.component.scss
Fix login input size
[github/Chocobozzz/PeerTube.git] / client / src / app / +login / login.component.scss
index eddaff542364fdaa3ab4358c9ac08353c813b1e4..e59ae10f808c07af0e9baa554f6735460485190b 100644 (file)
@@ -1,6 +1,6 @@
-@import '_variables';
-@import '_mixins';
-@import './_bootstrap-variables';
+@use '_variables' as *;
+@use '_mixins' as *;
+
 @import '~bootstrap/scss/functions';
 @import '~bootstrap/scss/variables';
 
@@ -10,11 +10,11 @@ label {
 
 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;
@@ -33,7 +33,8 @@ input[type=email] {
   }
 }
 
-.create-an-account, .forgot-password-button {
+.create-an-account,
+.forgot-password-button {
   color: pvar(--mainForegroundColor);
   cursor: pointer;
   transition: opacity cubic-bezier(0.39, 0.575, 0.565, 1);
@@ -49,23 +50,25 @@ input[type=email] {
   justify-content: space-around;
   flex-wrap: wrap;
 
-  > div {
+  > div {
     flex: 1 1;
   }
 
   .login-form-and-externals {
+    @include margin-left(10px);
+    @include margin-right(10px);
+
     display: flex;
     flex-wrap: wrap;
     font-size: 15px;
     max-width: 450px;
     margin-bottom: 40px;
-    margin-left: 10px;
-    margin-right: 10px;
 
     form {
       margin: 0;
 
-      &, input {
+      &,
+      input {
         width: 100%;
       }
 
@@ -82,7 +85,8 @@ input[type=email] {
 
           color: var(--mainColor);
 
-          &:hover, &:active {
+          &:hover,
+          &:active {
             color: var(--mainHoverColor);
           }
         }
@@ -111,7 +115,7 @@ input[type=email] {
         min-width: 100px;
 
         &:hover {
-          background-color: rgba(209, 215, 224, 0.5)
+          background-color: rgba(209, 215, 224, 0.5);
         }
       }
     }
@@ -122,11 +126,12 @@ input[type=email] {
   }
 
   .instance-information {
+    @include margin-left(10px);
+    @include margin-right(10px);
+
     max-width: 600px;
     min-width: 350px;
     margin-bottom: 40px;
-    margin-left: 10px;
-    margin-right: 10px;
   }
 
   .terms-anchor {
@@ -138,14 +143,15 @@ input[type=email] {
   }
 }
 
-@mixin columnReverseDisplay {
+@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;
@@ -168,14 +174,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();
     }
   }
 }