From f186d3266c4b8ded6d9ca110e7c3cdef6caaaa41 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 7 Apr 2025 16:34:09 +0200 Subject: [PATCH] chore: refine map list card CSS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: David Larlet Co-authored-by: Aurélie Jallut --- umap/static/umap/base.css | 9 +++++---- umap/static/umap/content.css | 2 ++ umap/static/umap/vars.css | 3 ++- umap/templates/umap/map_list.html | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index 803c5068..cb926b15 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -19,7 +19,11 @@ h1, h2, h3, h4, h5, h6, label, hr { } a { text-decoration: none; - color: #1F5C39; + color: var(--link-color); +} +a.main { + font-weight: bold; + text-decoration: underline; } a[href^="http"]:not(nav.umap-nav a) { text-decoration: underline; @@ -81,9 +85,6 @@ hgroup > * { hgroup { margin-bottom: var(--box-margin); } -hgroup > :not(:first-child):last-child { - font-weight: normal; -} hgroup p, hgroup button { margin: 0; diff --git a/umap/static/umap/content.css b/umap/static/umap/content.css index 820b54c3..582f2968 100644 --- a/umap/static/umap/content.css +++ b/umap/static/umap/content.css @@ -186,6 +186,8 @@ h2.tabs a:hover { white-space: nowrap; text-overflow: ellipsis; vertical-align: middle; + font-size: small; + padding: 0 3px; } .card { border: 1px solid var(--color-lightGray); diff --git a/umap/static/umap/vars.css b/umap/static/umap/vars.css index 68df8ee3..1a46297a 100644 --- a/umap/static/umap/vars.css +++ b/umap/static/umap/vars.css @@ -12,13 +12,14 @@ --color-limeGreen: #b9f5d2; --color-brightCyan: #46ece6; --color-lightCyan: #d4fbf9; - --color-darkCyan: #43a39f; + --color-darkCyan: #009099; --color-red: #c60f13; --color-darkRed: #5b2a2a; --background-color: var(--color-light); --color-accent: var(--color-brightCyan); --text-color: var(--color-dark); + --link-color: var(--color-darkCyan); /* Buttons. */ --button-primary-background: var(--color-waterMint); diff --git a/umap/templates/umap/map_list.html b/umap/templates/umap/map_list.html index 67e6df8d..8c3515b2 100644 --- a/umap/templates/umap/map_list.html +++ b/umap/templates/umap/map_list.html @@ -12,14 +12,14 @@ {% endfor %} {% endif %} -

{{ map_inst.name }}

+

{{ map_inst.name }}

{% with author=map_inst.get_author %} {% if author %}

{% trans "by" %} {{ author }}

{% endif %} {% endwith %} - {% translate "See the map" %} + {% translate "See the map" %} {% endfor %}