diff options
author | ThibG <thib@sitedethib.com> | 2019-11-22 15:56:59 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-11-22 15:56:59 +0100 |
commit | 42b3b019e01ee0c290a510483a2400e85cc250f1 (patch) | |
tree | 33d87e2b1ce5256b3c18c0e2870b1efb89387b67 /app/views/about | |
parent | a60b602ade955c8ce620facae160ffabd7893d4b (diff) |
Fix blur behind closed registration message (#12442)
* Fix closed registration message blur * Adjust overlay margins to account for blur Fixes #12425
Diffstat (limited to 'app/views/about')
-rw-r--r-- | app/views/about/_registration.html.haml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/about/_registration.html.haml b/app/views/about/_registration.html.haml index 1333c68c4..af28e2174 100644 --- a/app/views/about/_registration.html.haml +++ b/app/views/about/_registration.html.haml @@ -1,5 +1,5 @@ -= simple_form_for(new_user, url: user_registration_path, namespace: 'registration') do |f| - .simple_form__overlay-area +.simple_form__overlay-area{ class: (closed_registrations? && @instance_presenter.closed_registrations_message.present?) ? 'simple_form__overlay-area__blurred' : '' } + = simple_form_for(new_user, url: user_registration_path, namespace: 'registration') do |f| %p.lead= t('about.federation_hint_html', instance: content_tag(:strong, site_hostname)) .fields-group @@ -21,8 +21,8 @@ .actions = f.button :button, sign_up_message, type: :submit, class: 'button button-primary', disabled: closed_registrations? - - if closed_registrations? && @instance_presenter.closed_registrations_message.present? - .simple_form__overlay-area__overlay - .simple_form__overlay-area__overlay__content.rich-formatting - .block-icon= fa_icon 'warning' - = @instance_presenter.closed_registrations_message.html_safe + - if closed_registrations? && @instance_presenter.closed_registrations_message.present? + .simple_form__overlay-area__overlay + .simple_form__overlay-area__overlay__content.rich-formatting + .block-icon= fa_icon 'warning' + = @instance_presenter.closed_registrations_message.html_safe |