Skip to content

Commit

Permalink
fix: Hackathon names now consistently on newline, wrapping is centered (
Browse files Browse the repository at this point in the history
#358)

* Hackthon name title page has newline

* Make houndbot happy
  • Loading branch information
peterkos authored Sep 20, 2020
1 parent 5e03082 commit 2e9379f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/forms/_forms.sass
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/passwords/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/passwords/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
.form-container.password
%h1.section-title.center
Reset Your
%span.emphasized Password
.emphasized Password

= render 'form'
2 changes: 1 addition & 1 deletion app/views/devise/registrations/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/sessions/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion app/views/questionnaires/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e9379f

Please sign in to comment.