]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Add ability to require invite request text
authorThibG <thib@sitedethib.com>
Mon, 14 Dec 2020 09:03:09 +0000 (10:03 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Tue, 15 Dec 2020 15:22:36 +0000 (16:22 +0100)
Port CSS changes from 47e507fa61be6dc39dd9821e1d07c33e993cc246 to glitch-soc

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/styles/forms.scss

index 20dc3eb82031900182657bcf863093e42e8cafe2..8ea50733385cac9984938a98b0e57a7c93377674 100644 (file)
@@ -368,11 +368,6 @@ code {
       box-shadow: none;
     }
 
-    &:focus:invalid:not(:placeholder-shown),
-    &:required:invalid:not(:placeholder-shown) {
-      border-color: lighten($error-red, 12%);
-    }
-
     &:required:valid {
       border-color: $valid-value-color;
     }
@@ -388,6 +383,16 @@ code {
     }
   }
 
+  input[type=text],
+  input[type=number],
+  input[type=email],
+  input[type=password] {
+    &:focus:invalid:not(:placeholder-shown),
+    &:required:invalid:not(:placeholder-shown) {
+      border-color: lighten($error-red, 12%);
+    }
+  }
+
   .input.field_with_errors {
     label {
       color: lighten($error-red, 12%);