a11y: switch to better contrasted links (#2532)

And underline for external links otherwise the new green color is too
close to the text one to clearly identify links.
This commit is contained in:
David Larlet 2025-03-03 09:36:50 -05:00 committed by GitHub
commit 5eab942f25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 3 deletions

View file

@ -274,7 +274,7 @@ UMAP_MAPS_PER_PAGE = 5
UMAP_MAPS_PER_SEARCH = 25
UMAP_MAPS_PER_PAGE_OWNER = 10
UMAP_SEARCH_CONFIGURATION = "simple"
UMAP_HELP_URL = "https://wiki.openstreetmap.org/wiki/UMap#Feedback_and_help"
UMAP_HELP_URL = "https://discover.umap-project.org/"
USER_MAPS_URL = "user_maps"
DATABASES = {
"default": env.db(

View file

@ -19,7 +19,10 @@ h1, h2, h3, h4, h5, h6, label, hr {
}
a {
text-decoration: none;
color: SeaGreen;
color: #1F5C39;
}
a[href^="http"]:not(nav.umap-nav a) {
text-decoration: underline;
}
button {
cursor: pointer;

View file

@ -27,6 +27,10 @@ footer a.branding {
font-weight: bold;
padding-inline-start: 70px;
display: inline-block;
text-decoration: none;
}
footer a.branding:hover {
text-decoration: underline;
}
html[dir="rtl"] footer a.branding {
background-position: right center;

View file

@ -1,7 +1,7 @@
{% load i18n %}
<footer>
<a href="https://wiki.openstreetmap.org/wiki/UMap" class="branding">uMap</a>
<a href="{% url "home" %}" class="branding">uMap</a>
<span>{% trans "An OpenStreetMap project" %}
({% trans "version" %} <a href="https://docs.umap-project.org/en/stable/changelog/">{{ UMAP_VERSION }}</a>)</span>
{% if UMAP_HOST_INFOS.url and UMAP_HOST_INFOS.name %}<span>{% trans "Hosted by" %} <a href="{{ UMAP_HOST_INFOS.url }}">{{ UMAP_HOST_INFOS.name }}</a></span>{% endif %}