diff --git a/app/assets/stylesheets/forms/_forms.sass b/app/assets/stylesheets/forms/_forms.sass index 547db9e6e..8faf5bf00 100644 --- a/app/assets/stylesheets/forms/_forms.sass +++ b/app/assets/stylesheets/forms/_forms.sass @@ -61,6 +61,11 @@ hr .btn margin-bottom: 30px +.text-overflow-center + text-align: center + display: flex + justify-content: center + .simple_form @include css4 color: var(--grey) diff --git a/app/views/devise/passwords/edit.html.haml b/app/views/devise/passwords/edit.html.haml index 76f92f72b..4a866a98e 100644 --- a/app/views/devise/passwords/edit.html.haml +++ b/app/views/devise/passwords/edit.html.haml @@ -2,7 +2,7 @@ .form-container.password .section-title.center Change Your - %span.emphasized Password + .emphasized Password = simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| = f.error_notification = f.input :reset_password_token, as: :hidden diff --git a/app/views/devise/passwords/new.html.haml b/app/views/devise/passwords/new.html.haml index 18281428a..b856f1727 100644 --- a/app/views/devise/passwords/new.html.haml +++ b/app/views/devise/passwords/new.html.haml @@ -2,6 +2,6 @@ .form-container.password %h1.section-title.center Reset Your - %span.emphasized Password + .emphasized Password = render 'form' diff --git a/app/views/devise/registrations/new.html.haml b/app/views/devise/registrations/new.html.haml index e0e19883e..50d55651b 100644 --- a/app/views/devise/registrations/new.html.haml +++ b/app/views/devise/registrations/new.html.haml @@ -2,7 +2,7 @@ .form-container.signup %h1.section-title.center Register for - %span.emphasized= HackathonConfig['name'] + .emphasized.text-overflow-center= HackathonConfig['name'] - if !HackathonConfig['accepting_questionnaires'] || HackathonConfig['disclaimer_message'].present? #disclaimer diff --git a/app/views/devise/sessions/new.html.haml b/app/views/devise/sessions/new.html.haml index 822d2b20f..b9bb3896c 100644 --- a/app/views/devise/sessions/new.html.haml +++ b/app/views/devise/sessions/new.html.haml @@ -2,5 +2,5 @@ .form-container.login %h1.section-title.center Sign in to - %span.emphasized= HackathonConfig['name'] + .emphasized.text-overflow-center= HackathonConfig['name'] = render 'form' diff --git a/app/views/questionnaires/new.html.haml b/app/views/questionnaires/new.html.haml index 6d389312f..229d9ed09 100644 --- a/app/views/questionnaires/new.html.haml +++ b/app/views/questionnaires/new.html.haml @@ -3,7 +3,7 @@ .form-container %h1.section-title Apply for - %span.emphasized= HackathonConfig['name'] + .emphasized.text-overflow-center= HackathonConfig['name'] = render 'form' - else .form-container