From def1242e032ab35b03016a65e5c25df4580b641b Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Sat, 11 Jan 2025 16:18:04 +1030 Subject: [PATCH] changes to styling etc --- app/assets/stylesheets/application.css | 4 +++- app/views/devise/registrations/edit.html.erb | 15 +++++++++------ .../two_factor_authentication/show.html.erb | 18 ++++++++++-------- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 227e910..e8e1611 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -109,6 +109,7 @@ --standout-text: #fff; --standout-form-bg: #fdf9eb; --standout-form-text: #fff; + --standout-form-button-text: #191724; } /* Light mode */ @@ -135,6 +136,7 @@ --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 { diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 1fea6f7..c23b518 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -62,14 +62,17 @@

When enabled, AI-generated summaries will not be displayed on posts.

-
- <%= f.label :current_password %>

We need your current password to confirm your changes:

- <%= f.password_field :current_password, autocomplete: "current-password" %> -
+
+
+ <%= f.label :current_password %>

We need your current password to confirm your changes:

+ <%= f.password_field :current_password, autocomplete: "current-password" %> +
-
- <%= f.submit "Update" %> +
+ <%= f.submit "Update" %> +
+ <% end %>
diff --git a/app/views/users/two_factor_authentication/show.html.erb b/app/views/users/two_factor_authentication/show.html.erb index 1cd9604..e670a51 100644 --- a/app/views/users/two_factor_authentication/show.html.erb +++ b/app/views/users/two_factor_authentication/show.html.erb @@ -1,16 +1,18 @@
-

Two-Factor Authentication

+

Two-factor authentication

<%= form_tag(users_two_factor_authentication_path, method: :post) do %> -
- <%= label_tag :otp_attempt, "Enter your two-factor code" %> - <%= text_field_tag :otp_attempt, nil, autocomplete: 'off', inputmode: 'numeric', pattern: '[0-9]*' %> -
- - <%= submit_tag "Verify" %> +
+
+ <%= label_tag :otp_attempt, "Enter your two-factor code" %> + <%= text_field_tag :otp_attempt, nil, autocomplete: 'one-time-code', inputmode: 'numeric', pattern: '[0-9]*' %> +
+ + <%= submit_tag "Verify" %> +
<% end %>
-
\ No newline at end of file +
-- 2.39.5