Merge pull request #3725 from betagouv/fix-fat-blue-button

commencer: fix fat two-lines button on small screens
This commit is contained in:
Pierre de La Morinerie 2019-04-02 18:48:51 +02:00 committed by GitHub
commit 2b09d16688
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

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

View file

@ -3,7 +3,10 @@
.commencer.form
- if !user_signed_in?
%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']
- else