diff --git a/umap/static/umap/content.css b/umap/static/umap/content.css index 907736ef..820b54c3 100644 --- a/umap/static/umap/content.css +++ b/umap/static/umap/content.css @@ -76,26 +76,8 @@ body.login header { .demo_map .map_fragment { height: var(--map-fragment-height); } -.map_list .legend { - padding-top: 7px; - margin-bottom: 28px; - text-align: center; - font-size: 1.2em; -} -.map_list .legend a { - color: #222; - font-weight: bold; -} -.map_list .legend em, -.map_list .legend em a { - color: #444; - font-weight: normal; -} -.map_list hr { - display: none; -} -.map_list .wide + hr { - display: block; +.grid-container hgroup { + text-align: left; } .umap-features-list ul { margin-top: 14px; @@ -189,7 +171,6 @@ h2.tabs a:hover { display: flex; flex-wrap: wrap; gap: calc(var(--gutter) / 2 ); - justify-content: center; } .tag-list li { border: 1px solid var(--color-darkBlue); @@ -206,6 +187,27 @@ h2.tabs a:hover { text-overflow: ellipsis; vertical-align: middle; } +.card { + border: 1px solid var(--color-lightGray); + border-radius: var(--border-radius); + padding: var(--box-padding); + display: flex; + flex-direction: column; +} +.card .button { + margin-bottom: 0; +} +.card hgroup { + display: flex; + flex-direction: column; + justify-content: space-between; + margin-bottom: 0; + flex-grow: 1; + gap: var(--gutter); +} +.card h3 { + margin-bottom: 0; +} /* **************************** */ /* colors */ diff --git a/umap/templates/umap/map_list.html b/umap/templates/umap/map_list.html index bdce48a8..67e6df8d 100644 --- a/umap/templates/umap/map_list.html +++ b/umap/templates/umap/map_list.html @@ -1,22 +1,25 @@ {% load umap_tags i18n %} {% for map_inst in maps %} -
+
{% map_fragment map_inst prefix=prefix page=request.GET.p %}
- {% if map_inst.tags %} -
    - {% for tag, label in map_inst.get_tags_display %} -
  • {{ label }}
  • - {% endfor %} -
- {% endif %} -

{{ map_inst.name }}

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

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

+
+ {% if map_inst.tags %} +
    + {% for tag, label in map_inst.get_tags_display %} +
  • {{ label }}
  • + {% endfor %} +
{% endif %} - {% endwith %} +

{{ map_inst.name }}

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

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

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