diff --git a/public/images/plus.svg b/public/images/plus.svg new file mode 100644 index 0000000..5b088c0 --- /dev/null +++ b/public/images/plus.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/public/styles/main.css b/public/styles/main.css index eb1e819..6349c38 100644 --- a/public/styles/main.css +++ b/public/styles/main.css @@ -25,7 +25,9 @@ h1 { } a { - color: var(--color-primary) + color: var(--color-primary); + text-decoration: none; + border-bottom: 2px solid var(--color-hightlight-2); } p.feedback { @@ -93,6 +95,13 @@ nav.main a { color: var(--color-contrast); } +nav.main a img { + filter: invert(100%); + width: 1.4em; + margin-bottom: -.3em; +} + + nav.main ul { list-style: none; padding: 0; diff --git a/templates/bases/app.html b/templates/bases/app.html index e36c1b1..5deb2d4 100644 --- a/templates/bases/app.html +++ b/templates/bases/app.html @@ -27,7 +27,7 @@ {% endfor %}
  • {{ macros::nav_link( - content="Ajouter une zone", + safe_content=' Ajouter une zone', href="/zones/new", current_page=nav_page, section="_new-zone", diff --git a/templates/macros.html b/templates/macros.html index 8a8e3a5..e00c87d 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -1,4 +1,4 @@ -{% macro nav_link(content, href, current_page, section=False, current_sections=False, props='') %} +{% macro nav_link(content, href, current_page, content='', safe_content='', section=False, current_sections=False, props='') %} {{ content }} +>{{ content }}{{ safe_content | safe }} {% endmacro nav_link %}