From: Aidan Cornelius-Bell <aidan@cornelius-bell.com> Date: Sat, 11 Jan 2025 05:48:04 +0000 (+1030) Subject: changes to styling etc X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=def1242e032ab35b03016a65e5c25df4580b641b;p=arelpe.git changes to styling etc --- 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 @@ <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> 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 @@ <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>