mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
chore: refine map list card CSS (#2606)
This commit is contained in:
commit
55babfde34
4 changed files with 11 additions and 7 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue