Skip to content

Commit

Permalink
chore: fix menu background
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Nov 14, 2023
1 parent 0ad696d commit 88005f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
top: 100%;
display: none;
white-space: nowrap;
min-width: 100%;
text-align: center;
}

.menu:hover .menu-item {
Expand Down
2 changes: 1 addition & 1 deletion templates/components/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% if item.children %}
<div class="menu">
<div class="py-4 px-2 cursor-pointer text-white transition duration-300 hover:text-shadow">{{ item.title }} / {{ item.eng }}</div>
<div class="menu-item shadow-lg border">
<div class="menu-item bg-black border">
{% for child in item.children %}
<a href="{{ child.url|url }}" class="block py-2 pl-2 pr-6 text-white transition duration-300 hover:bg-primary">{{ child.title }}</a>
{% endfor %}
Expand Down

0 comments on commit 88005f4

Please sign in to comment.