chore: refine map list card CSS

Co-authored-by: David Larlet <david@larlet.fr>
Co-authored-by: Aurélie Jallut <aurelie.jallut@beta.gouv.fr>
This commit is contained in:
Yohan Boniface 2025-04-07 16:34:09 +02:00
parent 190cac3105
commit f186d3266c
4 changed files with 11 additions and 7 deletions

View file

@ -19,7 +19,11 @@ h1, h2, h3, h4, h5, h6, label, hr {
} }
a { a {
text-decoration: none; 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) { a[href^="http"]:not(nav.umap-nav a) {
text-decoration: underline; text-decoration: underline;
@ -81,9 +85,6 @@ hgroup > * {
hgroup { hgroup {
margin-bottom: var(--box-margin); margin-bottom: var(--box-margin);
} }
hgroup > :not(:first-child):last-child {
font-weight: normal;
}
hgroup p, hgroup p,
hgroup button { hgroup button {
margin: 0; margin: 0;

View file

@ -186,6 +186,8 @@ h2.tabs a:hover {
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
vertical-align: middle; vertical-align: middle;
font-size: small;
padding: 0 3px;
} }
.card { .card {
border: 1px solid var(--color-lightGray); border: 1px solid var(--color-lightGray);

View file

@ -12,13 +12,14 @@
--color-limeGreen: #b9f5d2; --color-limeGreen: #b9f5d2;
--color-brightCyan: #46ece6; --color-brightCyan: #46ece6;
--color-lightCyan: #d4fbf9; --color-lightCyan: #d4fbf9;
--color-darkCyan: #43a39f; --color-darkCyan: #009099;
--color-red: #c60f13; --color-red: #c60f13;
--color-darkRed: #5b2a2a; --color-darkRed: #5b2a2a;
--background-color: var(--color-light); --background-color: var(--color-light);
--color-accent: var(--color-brightCyan); --color-accent: var(--color-brightCyan);
--text-color: var(--color-dark); --text-color: var(--color-dark);
--link-color: var(--color-darkCyan);
/* Buttons. */ /* Buttons. */
--button-primary-background: var(--color-waterMint); --button-primary-background: var(--color-waterMint);

View file

@ -12,14 +12,14 @@
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
<h3><a href="{{ map_inst.get_absolute_url }}">{{ map_inst.name }}</a></h3> <h3>{{ map_inst.name }}</h3>
{% with author=map_inst.get_author %} {% with author=map_inst.get_author %}
{% if author %} {% if author %}
<p>{% trans "by" %} <a href="{{ author.get_url }}">{{ author }}</a></p> <p>{% trans "by" %} <a href="{{ author.get_url }}">{{ author }}</a></p>
{% endif %} {% endif %}
{% endwith %} {% endwith %}
</div> </div>
<a class="button" href="{{ map_inst.get_absolute_url }}">{% translate "See the map" %}</a> <a class="main" href="{{ map_inst.get_absolute_url }}">{% translate "See the map" %}</a>
</hgroup> </hgroup>
</div> </div>
{% endfor %} {% endfor %}