Skip to content

Commit c20ecff

Browse files
committed
add new icon in mobile menu and styling
1 parent afeb6c2 commit c20ecff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/custom/static/umap/theme.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ header.wrapper {
214214
display: block;
215215
background: none;
216216
border: none;
217-
font-size: 1.5rem;
217+
font-size: 2rem;
218218
cursor: pointer;
219219
padding: 0.5rem;
220220
}
@@ -231,15 +231,15 @@ header.wrapper {
231231
max-height 0.3s ease-out,
232232
opacity 0.15s ease-out;
233233
margin-top: var(--hot-spacing-small);
234-
gap: 0;
234+
gap: var(--hot-spacing-small);
235235
}
236236
.nav-links.open {
237237
max-height: 600px;
238238
opacity: 1;
239239
transition:
240240
max-height 0.4s ease-in,
241241
opacity 0.2s ease-in;
242-
gap: 0;
242+
gap: var(--hot-spacing-small);
243243
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
244244
}
245245
.hotosm-auth-desktop {

app/custom/templates/umap/navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</section>
88

99
<section>
10-
<button class="nav-hamburger" aria-label="Menu" onclick="this.closest('nav').querySelector('.nav-links').classList.toggle('open')">&#9776;</button>
10+
<button class="nav-hamburger" aria-label="Menu" onclick="this.closest('nav').querySelector('.nav-links').classList.toggle('open'); this.textContent = this.textContent.trim() === '✕' ? '☰' : '✕'">&#9776;</button>
1111
<ul class="nav-links">
1212
{% if AUTH_PROVIDER != 'hanko' %}
1313
{% if user.is_authenticated %}<li><a href="{% url 'user_dashboard' %}">{% trans "My Dashboard" %} ({{ user }})</a></li><li><a href="{{ user.get_stars_url }}">{% trans "Starred maps" %}</a></li>{% else %}<li><a href="{% url 'login' %}" class="login">{% trans "Log in" %} / {% trans "Sign in" %}</a></li>{% endif %}

0 commit comments

Comments
 (0)