procedure_context: hide the description on auth pages

This commit is contained in:
Pierre de La Morinerie 2019-04-01 15:03:13 +02:00
parent e896310e34
commit adefd26413
4 changed files with 18 additions and 1 deletions

View file

@ -3,6 +3,19 @@
@import "placeholders";
@import "mixins";
#auth {
// On small screens, hide the procedure description text on auth pages.
// It avoids pushing the sign-in/sign-up form out of the viewport.
//
// The procedure description can still be read from the /commencer
// pages.
@media (max-width: $two-columns-breakpoint) {
.procedure-description {
display: none;
}
}
}
.auth-form {
.auth-options {
display: flex;

View file

@ -23,7 +23,7 @@
- if Rails.env.development?
= stylesheet_link_tag :xray
%body{ class: browser.platform.ios? ? 'ios' : nil }
%body{ id: content_for(:page_id), class: browser.platform.ios? ? 'ios' : nil }
.page-wrapper
= render partial: "layouts/outdated_browser_banner"
= render partial: 'layouts/pre_maintenance'

View file

@ -1,3 +1,5 @@
= content_for(:page_id, 'auth')
.auth-form
= devise_error_messages!
= form_for resource, url: user_registration_path, html: { class: "form" } do |f|

View file

@ -1,3 +1,5 @@
= content_for(:page_id, 'auth')
.auth-form.sign-in-form
- if resource_name == :user
%p.register