]> git.openstreetmap.org Git - rails.git/commitdiff
Move the login form rules to be based on screen size
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Jul 2020 09:21:08 +0000 (11:21 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Jul 2020 09:21:08 +0000 (11:21 +0200)
Ideally this would be refactored to be mobile-first, but is likely
to be replaced by more general bootstrap form refactoring anyway.

app/assets/stylesheets/small.scss

index ddd812dc1064b1f5cf10b74dbf67317c248bb2ea..d9e203d954c348d0020d8c8ed8f431e853c61f64 100644 (file)
@@ -93,27 +93,6 @@ body.small {
   .leaflet-top.leaflet-right {
     top: 10px !important;
   }
-
-  /* Rules for the login form */
-
-  #login_login input#user_email {
-    width: 100%;
-    max-width: 18em;
-  }
-
-  #login_login input#user_password {
-    width: 100%;
-    max-width: 18em;
-  }
-
-  #login_login input#openid_url {
-    width: 100%;
-    max-width: 18em;
-  }
-
-  #login_openid_buttons td {
-    padding: 2px;
-  }
 }
 
 @media (max-width: 767.98px) {
@@ -145,3 +124,26 @@ body.small {
     }
   }
 }
+
+@media (max-width: 575.98px) {
+  /* Rules for the login form */
+
+  #login_login input#user_email {
+    width: 100%;
+    max-width: 18em;
+  }
+
+  #login_login input#user_password {
+    width: 100%;
+    max-width: 18em;
+  }
+
+  #login_login input#openid_url {
+    width: 100%;
+    max-width: 18em;
+  }
+
+  #login_openid_buttons td {
+    padding: 2px;
+  }
+}