]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
changes to styling etc
authorAidan Cornelius-Bell <[email protected]>
Sat, 11 Jan 2025 05:48:04 +0000 (16:18 +1030)
committerAidan Cornelius-Bell <[email protected]>
Sat, 11 Jan 2025 05:48:04 +0000 (16:18 +1030)
app/assets/stylesheets/application.css
app/views/devise/registrations/edit.html.erb
app/views/users/two_factor_authentication/show.html.erb

index 227e9102c8b9d90ef33dec1690713ee6c0ac4ccf..e8e1611e8ee240c4c37127ac799d84e7768ce8c0 100644 (file)
     --standout-text: #fff;
     --standout-form-bg: #fdf9eb;
     --standout-form-text: #fff;
+    --standout-form-button-text: #191724;
 }
 
 /* Light mode */
         --standout-form-text: #333333;
         --standout-text: #333333;
         --standout-form-bg: #fff;
+        --standout-form-button-text: #fff;
     }
 }
 
@@ -266,7 +268,7 @@ label {
 
 .reg-form input {
     background-color: var(--standout-form-bg) !important;
-    color: var(--standout-form-text) !important;
+    color: var(--standout-form-button-text) !important;
 }
 
 .reg-form .help-text {
index 1fea6f7729e116a744b7750e41436e4bf25e225f..c23b518060885752611c5cb05d6eaee3916a74ed 100644 (file)
     <p class="help-text">When enabled, AI-generated summaries will not be displayed on posts.</p>
     </div>
 
-    <div class="field reg-form">
-      <%= f.label :current_password %><p class="help-text">We need your current password to confirm your changes:</p>
-      <%= f.password_field :current_password, autocomplete: "current-password" %>
-    </div>
+    <div class="reg-form">
+        <div class="field">
+        <%= f.label :current_password %><p class="help-text">We need your current password to confirm your changes:</p>
+        <%= f.password_field :current_password, autocomplete: "current-password" %>
+        </div>
 
-    <div class="actions">
-      <%= f.submit "Update" %>
+        <div class="actions">
+        <%= f.submit "Update" %>
+        </div>
     </div>
+
   <% end %>
 
   <br>
index 1cd960474b75f3ed557ce6c600b83fff572a89fa..e670a51345c91312b0d680761d64fea76be04937 100644 (file)
@@ -1,16 +1,18 @@
 <div class="container">
-       <h2>Two-Factor Authentication</h2>
+       <h2>Two-factor authentication</h2>
 </div>
 
 <div class="post">
        <div class="container">
                <%= form_tag(users_two_factor_authentication_path, method: :post) do %>
-               <div>
-                       <%= label_tag :otp_attempt, "Enter your two-factor code" %>
-                       <%= text_field_tag :otp_attempt, nil, autocomplete: 'off', inputmode: 'numeric', pattern: '[0-9]*' %>
-               </div>
-               
-               <%= submit_tag "Verify" %>
+               <div class="reg-form">
+               <div>
+                       <%= label_tag :otp_attempt, "Enter your two-factor code" %>
+                       <%= text_field_tag :otp_attempt, nil, autocomplete: 'one-time-code', inputmode: 'numeric', pattern: '[0-9]*' %>
+               </div>
+
+               <%= submit_tag "Verify" %>
+               </div>
                <% end %>
        </div>
-</div>
\ No newline at end of file
+</div>