update links colours
This commit is contained in:
parent
d0df3584c8
commit
c910ca5f99
4 changed files with 16 additions and 4 deletions
3
public/images/plus.svg
Normal file
3
public/images/plus.svg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-plus" viewBox="0 0 16 16">
|
||||||
|
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 245 B |
|
@ -25,7 +25,9 @@ h1 {
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--color-primary)
|
color: var(--color-primary);
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 2px solid var(--color-hightlight-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
p.feedback {
|
p.feedback {
|
||||||
|
@ -93,6 +95,13 @@ nav.main a {
|
||||||
color: var(--color-contrast);
|
color: var(--color-contrast);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav.main a img {
|
||||||
|
filter: invert(100%);
|
||||||
|
width: 1.4em;
|
||||||
|
margin-bottom: -.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
nav.main ul {
|
nav.main ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<li>
|
<li>
|
||||||
{{ macros::nav_link(
|
{{ macros::nav_link(
|
||||||
content="Ajouter une zone",
|
safe_content='<img alt="" src="/images/plus.svg"> Ajouter une zone',
|
||||||
href="/zones/new",
|
href="/zones/new",
|
||||||
current_page=nav_page,
|
current_page=nav_page,
|
||||||
section="_new-zone",
|
section="_new-zone",
|
||||||
|
|
|
@ -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='') %}
|
||||||
<a
|
<a
|
||||||
href="{{ href }}"
|
href="{{ href }}"
|
||||||
{{ props }}
|
{{ props }}
|
||||||
|
@ -7,5 +7,5 @@
|
||||||
{% elif section and section in current_sections %}
|
{% elif section and section in current_sections %}
|
||||||
aria-current="location"
|
aria-current="location"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>{{ content }}</a>
|
>{{ content }}{{ safe_content | safe }}</a>
|
||||||
{% endmacro nav_link %}
|
{% endmacro nav_link %}
|
||||||
|
|
Loading…
Reference in a new issue