Use topbar button style for mobile sidebar

This commit is contained in:
josedario87
2025-06-11 05:04:52 -06:00
parent 6dd7867ba6
commit 331cad8cbc

View File

@@ -80,8 +80,10 @@ const handleLinkClick = () => {
<div class="flex items-center justify-between px-4 py-4 md:px-5 md:py-4 md:border-none" <div class="flex items-center justify-between px-4 py-4 md:px-5 md:py-4 md:border-none"
style="border-bottom-color: var(--secondary-color); border-bottom-width: 1px;"> style="border-bottom-color: var(--secondary-color); border-bottom-width: 1px;">
<!-- preserve spacing where the 'Núcleo' title used to be --> <!-- preserve spacing where the 'Núcleo' title used to be -->
<button class="close-btn h-8 w-8 flex items-center justify-center rounded-full border transition duration-200" <button
@click="ui.toggleSidebar"> @click="ui.toggleSidebar"
class="hamburger-button inline-flex items-center justify-center h-9 w-9 rounded-md text-white transition"
>
</button> </button>
</div> </div>
@@ -148,14 +150,27 @@ ul { list-style: none; padding-left: 0; }
color: var(--text-color); color: var(--text-color);
} }
.close-btn { .hamburger-button {
border-color: var(--secondary-color); background-color: var(--primary-color);
color: var(--secondary-color); color: white; /* Assuming primary-color is dark enough for white text */
padding: 0.5rem; /* Increased padding */
border-radius: 0.375rem; /* Consistent border radius */
transition: background-color 0.2s ease-in-out, filter 0.2s ease-in-out;
line-height: 1; /* Ensure icon is centered if it's text-based */
} }
.close-btn:hover { .hamburger-button:hover {
background-color: var(--secondary-color); filter: brightness(1.15); /* Slightly more noticeable hover brightness */
color: var(--background-color); }
.hamburger-button:focus {
outline: 2px solid var(--primary-color); /* Simple outline for focus */
outline-offset: 2px; /* Offset outline slightly */
}
.hamburger-button:focus-visible { /* More modern focus indication */
outline: 2px solid var(--primary-color);
outline-offset: 2px;
} }
.nav-link.active { .nav-link.active {