Skip to content

Commit

Permalink
Feature/37 mobile screen header (#38)
Browse files Browse the repository at this point in the history
* hide side name on small screens #37

* make nav buttons smaller on mobile screens #37

---------

Co-authored-by: Naomi Eliasar <naomi@omnimap.nl>
  • Loading branch information
naomi-eliasar and Naomi Eliasar authored Aug 2, 2024
1 parent ca72a78 commit 7946afe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
9 changes: 9 additions & 0 deletions src/brazil_blog/static/css/brazil_blog_compiled.css
Original file line number Diff line number Diff line change
Expand Up @@ -2302,6 +2302,10 @@ select {
width: auto;
}

.md\:inline-block {
display: inline-block;
}

.md\:max-w-5xl {
max-width: 64rem;
}
Expand All @@ -2318,6 +2322,11 @@ select {
align-items: flex-end;
}

.md\:text-base {
font-size: 1rem;
line-height: 1.5rem;
}

.md\:gap-2 {
gap: 0.5rem;
}
Expand Down
4 changes: 2 additions & 2 deletions src/brazil_blog/templates/includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
{% picture site_logo format-{webp,avif,jpeg} fill-64x64 bgcolor-3730a3 class="inline-block rounded-full" %}
</a>
<a href="/"
class="text-black hover:text-black no-underline hover:underline decoration-4 underline-offset-4 decoration-wavy">
class="hidden md:inline-block text-black hover:text-black no-underline hover:underline decoration-4 underline-offset-4 decoration-wavy">
<h1 class="text-3xl font-bold">{{ site_name }}</h1>
</a>
</div>
<ul class="flex items-center gap-3">
{% for menuitem in site_root.get_children.live.in_menu %}
<li>
<a href="{% pageurl menuitem %}" class="text-white hover:text-blue-800 transition-colors">
{{ menuitem.title }}
<span class="text-sm md:text-base"> {{ menuitem.title }} </span>
</a>
</li>
{% endfor %}
Expand Down

0 comments on commit 7946afe

Please sign in to comment.