commencer: fix fat two-lines button on small screens

This commit is contained in:
Pierre de La Morinerie 2019-04-02 14:45:59 +02:00
parent b8c309acdb
commit 015a591efd
2 changed files with 10 additions and 1 deletions

View file

@ -8,4 +8,10 @@
.button { .button {
margin-bottom: 2 * $default-spacer; margin-bottom: 2 * $default-spacer;
} }
@media (max-width: 450px) {
.optional-on-small-screens {
display: none;
}
}
} }

View file

@ -3,7 +3,10 @@
.commencer.form .commencer.form
- if !user_signed_in? - if !user_signed_in?
%h1 Commencer la démarche %h1 Commencer la démarche
= link_to 'Créer un compte demarches-simplifiees.fr', commencer_sign_up_path(path: @procedure.path), class: ['button large expand primary'] = link_to commencer_sign_up_path(path: @procedure.path), class: ['button large expand primary'] do
Créer un compte
%span.optional-on-small-screens
demarches-simplifiees.fr
= link_to 'Jai déjà un compte', commencer_sign_in_path(path: @procedure.path), class: ['button large expand'] = link_to 'Jai déjà un compte', commencer_sign_in_path(path: @procedure.path), class: ['button large expand']
- else - else