Better structure footer-site-links in list

it follows service-public.fr structure

- remove extraneous footer-link class
- remove extraneous space with `>` haml weird stuff
- homogenize json-style hash
- merge classes on ul
- use pseudo element for eye candy
This commit is contained in:
simon lehericey 2019-11-06 14:56:49 +01:00
parent 79968f12fb
commit 8efac29eba
4 changed files with 26 additions and 15 deletions

View file

@ -113,3 +113,19 @@ footer {
margin-bottom: 0;
}
}
.footer-site-links {
li {
display: inline;
&::before {
content: "-";
margin: $default-spacer;
}
&:first-child::before {
content: none;
}
}
}

View file

@ -1,11 +1,7 @@
= link_to "Accessibilité", accessibilite_path, :class => "footer-link"
= link_to "CGU", CGU_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
= link_to "Mentions légales", MENTIONS_LEGALES_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
= link_to 'Documentation', DOC_URL
= contact_link "Contact technique", class: "footer-link", dossier_id: dossier&.id
= link_to 'Aide', FAQ_URL
%ul.footer-row.footer-bottom-line.footer-site-links
%li>= link_to "Accessibilité", accessibilite_path
%li>= link_to "CGU", CGU_URL, target: "_blank", rel: "noopener noreferrer"
%li>= link_to "Mentions légales", MENTIONS_LEGALES_URL, target: "_blank", rel: "noopener noreferrer"
%li>= link_to 'Documentation', DOC_URL
%li>= contact_link "Contact technique", dossier_id: dossier&.id
%li>= link_to 'Aide', FAQ_URL

View file

@ -38,5 +38,5 @@
- politiques.each do |politique|
%p= politique
.footer-row.footer-bottom-line
= render partial: 'users/general_footer_row', locals: { dossier: dossier }
= render partial: 'users/general_footer_row', locals: { dossier: dossier }

View file

@ -1,4 +1,3 @@
%footer.procedure-footer
.container
.footer-row.footer-bottom-line
= render partial: "users/general_footer_row", locals: { dossier: nil }
= render partial: "users/general_footer_row", locals: { dossier: nil }