fix: color consistency between buttons and icons

This commit is contained in:
David Larlet 2024-02-09 10:47:04 -05:00
parent e8a9c68dde
commit 81a1367696
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD
6 changed files with 14 additions and 11 deletions

View file

@ -203,8 +203,11 @@ body.content #umap-ui-container {
input[type="submit"],
.button {
background-color: #79c1c0;
color: #323737;
background-color: #B9F5D2;
color: #263B58;
}
.button-primary {
font-weight: bold;
}
.wrapper input[type="submit"]:hover {
background-color: #689191;

View file

@ -1,7 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" width="128" height="128">
<path d="M128 64A64 64 0 1 1 0 64a64 64 0 0 1 128 0z" fill="#323e56"/>
<path d="M94.3 17.3 86 25.5l16.4 16.3 8.1-8.2z" fill="#79c1c0"/>
<path d="M128 64A64 64 0 1 1 0 64a64 64 0 0 1 128 0z" fill="#263B58"/>
<path d="M94.3 17.3 86 25.5l16.4 16.3 8.1-8.2z" fill="#B9F5D2"/>
<path d="m82 29.5-44.9 45 16.3 16.3 45-45z" fill="#fff"/>
<path d="M37.1 74.5 24.8 103l28.6-12.3z" fill="#79c1c0"/>
<path d="M37.1 74.5 24.8 103l28.6-12.3z" fill="#B9F5D2"/>
<text xml:space="preserve" style="line-height:125%" x="-37.8" y="977.1" font-size="157.6" font-weight="400" letter-spacing="0" word-spacing="0" font-family="Sans" transform="translate(0 -924.4)"/>
</svg>

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 554 B

View file

@ -1,7 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" width="128" height="128">
<path d="M128 64A64 64 0 1 1 0 64a64 64 0 1 1 128 0z" fill="#323e56"/>
<path d="M128 64A64 64 0 1 1 0 64a64 64 0 1 1 128 0z" fill="#263B58"/>
<g transform="matrix(1.014 0 0 1.014 -4.3 -933.4)">
<circle transform="matrix(.08 0 0 .08 28.3 944.2)" r="440" cy="490" cx="490" fill="none" stroke="#79c1c0" stroke-width="100"/>
<circle transform="matrix(.08 0 0 .08 28.3 944.2)" r="440" cy="490" cx="490" fill="none" stroke="#B9F5D2" stroke-width="100"/>
<path d="M67 961.3c-10.4 0-19 7.3-21.3 17h10.4a12 12 0 1 1 0 10H45.7a21.9 21.9 0 1 0 21.3-27z" fill="#fff"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 473 B

View file

@ -1,7 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" width="128" height="128">
<path d="M128 64A64 64 0 1 1 0 64a64 64 0 1 1 128 0z" fill="#2e364f" fill-opacity=".95"/>
<path d="M128 64A64 64 0 1 1 0 64a64 64 0 1 1 128 0z" fill="#263B58" fill-opacity=".95"/>
<g fill="#fff">
<path d="M83.5 20.4a30 30 0 0 0-21 8.4A29.5 29.5 0 0 0 60.2 67l-8 7.6 5.4 5.2 7.6-7.5c13 9.1 29 7.6 39.4-2.5a28.3 28.3 0 0 0 0-40.9 30 30 0 0 0-21-8.4zm0 4.8a25 25 0 0 1 17.5 7 23.6 23.6 0 0 1 0 34 25.2 25.2 0 0 1-35 0 23.6 23.6 0 0 1 0-34 25 25 0 0 1 17.5-7zM44 75.6l-23.7 23c-2 1.9-2 5 0 6.8l5.4 5.3a5 5 0 0 0 7 0l23.8-23c2-1.9 2-5 0-6.8l-5.4-5.3a5.3 5.3 0 0 0-7 0z"/>
</g>
<path d="m54.8 91.8-14 13.6 19.5-4.5 1.5-6.5c-3-.1-4.8-1.1-7-2.6zm21-7.5c-.7 8.4-4.4 9-11.5 10.2l-1.5 6.3 18.2 4.5 4.4-18.6-9.6-2.4zm-8.7-2-2.3 10.1c8.3-1.3 8.5-4 8.8-8.7L67 82.2zm-2.4-.2c-2 .1-3 .4-5.3 1 .7 1.3 1 4-3 7.2 2.1 1.3 4 1.8 5.8 2 1.7-7.7 2.6-9 2.5-10.2zM24.9 82l-3.6 13.7 12-11.6L25 82zm83.4-.5A1945 1945 0 0 0 88 86.7l-4.5 18.7 19.9-4.8zm-32.5-2.9v3.1c4.2 1 8.4 2 9.2 2l-1-4c-3.6 0-4.8-.2-8.2-1zm-10-4.6 1.4 5.7 6.4 1.5V78c-2.8-1-5.4-2.3-7.9-4zM23 72.2l2 7.3L35.5 82l.5-.5c-7.3-2.7-7.4-8.1-12.9-9.3zm83-1.6a33.3 33.3 0 0 1-19.6 9l1.1 4.1c.1.3 7-1.2 20.7-4.7zm-47.7-3.7c-1-1.3-1.7-2.6-2.4-4-5.4 1.3-14.2 3.3-14.4 3.6a74 74 0 0 0 1.7 7.8 6 6 0 0 1 7.8-.6m7.5 7.2c1.9-.6 4.4-1 6-1.3a15 15 0 0 0-.9-3.9M20.5 61.4l2 7.7c9.8 3.7 10.5 11.2 15.8 10.2l3.4-3.3a76 76 0 0 0-2.6-9.3l-18.6-5.3zM53 44.7l-6.6 1.7L42 63.8c5.4-1.5 6.9-1.8 13-3-2.2-5.2-2.9-10.7-2-16zM25 40.6l-4.7 18.2c7.2 2 11.4 3.2 18.6 4.9 1.6-4.7 3.3-10 4.6-17.5L25 40.6zm35-20.7-18.2 4.5c2.6 11 4.4 19 4.6 19.1l7-1.4c1.7-6.9 3.2-9.2 8.4-14.4L60 19.9zm2.4-.2 1.4 6.1c2.1-1.7 4.4-3 6.8-4.1zm-42.4 0 4.7 18.2a856 856 0 0 0 18.8 5.4l-4.2-19zm83.3-.2L96 21.3c3.4 1.4 6.6 3.4 9.4 6zM63 53.5c1.6 10 12.5 17.5 23.9 16.2 4.2-10 7.2-9.5 8.8-19.5 0-9-11.6-3.4-17-3.1C69.6 46.8 70 36 69 34.4c-2.8 2-7.7 8.6-6 19.2zM73.4 31c3 9.4 3.7 12.6 13.2 9 7.1-2.2 12.8.7 13.8 4 1.5 5-1 12.5-7.6 24a21.6 21.6 0 0 0 10-27 21.2 21.2 0 0 0-29.4-10z" fill="#79c1c0"/>
<path d="m54.8 91.8-14 13.6 19.5-4.5 1.5-6.5c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5 17.5 23.9 16.2 4.2-10 7.2-9.5 8.8-19.5 0-9-11.6-3.4-17-3.1C69.6 46.8 70 36 69 34.4c-2.8 2-7.7 8.6-6 19.2zM73.4 31c3 9.4 3.7 12.6 13.2 9 7.1-2.2 12.8.7 13.8 4 1.5 5-1 12.5-7.6 24a21.6 21.6 0 0 0 10-27 21.2 21.2 0 0 0-29.4-10z" fill="#B9F5D2"/>
</svg>

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -45,7 +45,7 @@
{% spaceless %}
<div class="button-bar {% if demo_map %}half{% endif %}">
{% if not UMAP_READONLY %}
<a href="{% url 'map_new' %}" class="button half">{% trans "Create a map" %}</a>
<a href="{% url 'map_new' %}" class="button button-primary half">{% trans "Create a map" %}</a>
{% endif %}
{% if demo_map %}
<a href="{{ demo_map.get_absolute_url }}" class="button half neutral">{% trans "Play with the demo" %}</a>

View file

@ -37,7 +37,7 @@
</section>
<section>
{% if not UMAP_READONLY %}
<a href="{% url "map_new" %}" class="button">{% trans "Create a map" %}</a>
<a href="{% url "map_new" %}" class="button button-primary">{% trans "Create a map" %}</a>
{% endif %}
</section>
</nav>