Skip to content

Commit d90b3b3

Browse files
committed
fix hambuerger BG on mobile
1 parent dc42fa4 commit d90b3b3

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

src/components/Navigation.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ import { baseUrl } from '../lib/utils';
4242
</div>
4343

4444
<!-- Mobile menu -->
45-
<div id="mobile-menu" class="hidden md:hidden pb-4 border-t border-gray-300 dark:border-ipython-slate mt-2">
46-
<a href={baseUrl('features')} class="block px-4 py-2 text-gray-700 dark:text-gray-200 hover:text-theme-primary hover:bg-gray-50 dark:hover:bg-ipython-slate dark:hover:text-theme-secondary rounded">Features</a>
47-
<a href={baseUrl('install')} class="block px-4 py-2 text-gray-700 dark:text-gray-200 hover:text-theme-primary hover:bg-gray-50 dark:hover:bg-ipython-slate dark:hover:text-theme-secondary rounded">Install</a>
48-
<a href={baseUrl('get-started')} class="block px-4 py-2 text-gray-700 dark:text-gray-200 hover:text-theme-primary hover:bg-gray-50 dark:hover:bg-ipython-slate dark:hover:text-theme-secondary rounded">Get Started</a>
49-
<a href={baseUrl('community')} class="block px-4 py-2 text-gray-700 dark:text-gray-200 hover:text-theme-primary hover:bg-gray-50 dark:hover:bg-ipython-slate dark:hover:text-theme-secondary rounded">Community</a>
50-
<a href={baseUrl('about')} class="block px-4 py-2 text-gray-700 dark:text-gray-200 hover:text-theme-primary hover:bg-gray-50 dark:hover:bg-ipython-slate dark:hover:text-theme-secondary rounded">About</a>
45+
<div id="mobile-menu" class="hidden md:hidden border-t border-gray-200 dark:border-ipython-slate bg-white dark:bg-ipython-dark">
46+
<a href={baseUrl('features')}>Features</a>
47+
<a href={baseUrl('install')}>Install</a>
48+
<a href={baseUrl('get-started')}>Get Started</a>
49+
<a href={baseUrl('community')}>Community</a>
50+
<a href={baseUrl('about')}>About</a>
5151
</div>
5252
</div>
5353
</nav>

src/styles/global.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
--theme-secondary: #008b95;
2929
--theme-accent: #059669;
3030
--ipython-dark: #0f172a;
31-
31+
3232
/* Inspira UI variables */
3333
--card: oklch(1 0 0);
3434
--card-foreground: oklch(0.141 0.005 285.823);
@@ -54,7 +54,7 @@
5454

5555
:root.dark {
5656
color-scheme: dark;
57-
57+
5858
/* Inspira UI dark mode variables */
5959
--background: oklch(0.141 0.005 285.823);
6060
--foreground: oklch(0.985 0 0);
@@ -231,7 +231,8 @@ p {
231231
}
232232

233233
/* List styling */
234-
ul, ol {
234+
ul,
235+
ol {
235236
@apply my-4 ml-6;
236237
}
237238

@@ -247,7 +248,10 @@ li {
247248
@apply my-2 text-gray-700 dark:text-gray-300;
248249
}
249250

250-
ul ul, ol ol, ul ol, ol ul {
251+
ul ul,
252+
ol ol,
253+
ul ol,
254+
ol ul {
251255
@apply my-2;
252256
}
253257

@@ -395,3 +399,11 @@ h3.text-white {
395399
.dark section.gradient-header p.text-gray-100 {
396400
color: rgb(156 163 175) !important; /* gray-400 */
397401
}
402+
403+
#mobile-menu > a {
404+
@apply block w-full px-4 py-3 text-gray-700 dark:text-gray-200 active:bg-gray-100 dark:active:bg-ipython-slate font-medium no-underline border-b border-gray-200 dark:border-ipython-slate;
405+
}
406+
407+
#mobile-menu > a:last-child {
408+
@apply border-b-0;
409+
}

0 commit comments

Comments
 (0)