Skip to content

Commit 38bb78d

Browse files
Merge pull request #233 from Povindu/style/povindu/minor-styling-changes-in-header
style: minor header styling changes
2 parents 8fc5de0 + 8f6fd37 commit 38bb78d

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

src/components/Header.astro

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,14 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
2424
---
2525

2626
<header
27-
class:list={[
28-
"z-40 flex-none bg-white mx-auto w-full border-b border-gray-50/0 transition-[opacity] ease-in-out",
29-
]}
27+
class="z-40 flex-none shadow-[0_1px_1px_rgba(0,0,0,0.05)] shadow-gray-200 bg-white mx-auto w-full border-b border-gray-50/0 transition-[opacity] ease-in-out"
3028
id="header"
3129
>
3230
<div
33-
class:list={[
34-
"relative w-full text-default mx-auto py-2 xl:px-5 flex flex-col lg:justify-between xl:flex-row xl:items-center",
35-
]}
31+
class="relative w-full text-default mx-auto py-2 px-3 md:pr-0 lg:px-5 flex flex-col lg:justify-between xl:flex-row xl:items-center"
3632
>
3733
<!-- Logo -->
38-
<div class="flex justify-between md:pl-5">
34+
<div class="flex justify-between">
3935
<a class="flex items-start" href=`${base}`>
4036
<span class="">
4137
<img id="logo" class="svg" src={logo.src} alt={"SuperOffice"} />
@@ -46,27 +42,27 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
4642

4743
<!-- Nav -->
4844
<nav
49-
class="text-sm lg:text-base items-center md:ml-auto md:mr-3 md:mt-3 w-full md:w-fit"
45+
class="text-base items-center md:ml-auto md:mr-3 w-full md:w-fit"
5046
aria-label="Main"
5147
>
5248
<div class="hidden md:flex md:justify-self-end md:h-10" id="primaryNav">
5349
<ul
54-
class="font-medium w-full py-4 md:py-0 text-left flex flex-col md:flex-row md:self-center md:w-auto md:text-base md:text-[0.9375rem] tracking-[0.01rem] md:justify-center"
50+
class="font-medium md:text-sm lg:text-base w-full py-4 md:py-0 text-left flex flex-col md:flex-row md:self-center md:w-auto tracking-[0.01rem] md:justify-center"
5551
>
5652
{
5753
links.map(({ text, href, links }, id) => (
5854
<li
5955
class:list={[
6056
links?.length ? "dropdown" : "",
61-
"py-1 md:py-0 lg:px-4 md:content-center w-full md:w-fit",
57+
"py-2 px-2 md:py-0 md:px-1 lg:px-4 md:content-center h-fit w-full md:w-fit hover:bg-gray-200",
6258
id != 5 ? "md:border-r md:border-black" : "",
6359
]}
6460
>
6561
{links?.length ? (
6662
<>
6763
<button
6864
type="button"
69-
class="hover:text-link rounded px-4 py-1 flex items-center text-xs lg:text-base"
65+
class="hover:text-link rounded lg:px-4 flex items-center"
7066
>
7167
{text}
7268
<Icon
@@ -80,7 +76,7 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
8076
<li>
8177
<a
8278
class:list={[
83-
"text-xs lg:text-sm md:hover:bg-gray-100 md:hover:border-l-4 md:hover:border-superOfficeGreen hover:text-link py-1.5 md:py-2 px-5 block whitespace-no-wrap ",
79+
"md:hover:bg-gray-100 md:hover:border-l-4 md:hover:border-superOfficeGreen hover:text-link py-1 md:py-2 md:px-5 block whitespace-no-wrap ",
8480
{ "aw-link-active": href2 === currentPath },
8581
]}
8682
href={base + href2}
@@ -94,7 +90,7 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
9490
) : (
9591
<a
9692
class:list={[
97-
"hover:text-link text-xs lg:text-base rounded px-2 py-2 md:flex md:items-center text-right md:text-center",
93+
"hover:text-link rounded md:px-2 md:flex md:items-center text-right md:text-center",
9894
{ "aw-link-active": href === currentPath },
9995
]}
10096
href={base + href}

0 commit comments

Comments
 (0)