Skip to content

Commit

Permalink
Fix pointer events
Browse files Browse the repository at this point in the history
Make all overlay content have `pointer-events: none` so user can
select/click elements as they would expect. Also fix the main landing
link.
  • Loading branch information
dzfrias authored and ADKaster committed Jul 11, 2024
1 parent 5d06bac commit ec45352
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/global/navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
id="header-nav"
class="container mx-auto flex flex-row items-center justify-between"
>
<a id="header-logo" class="z-20" href="/">
<a id="header-logo" href="/">
<img
class="w-36 z-10"
src="/assets/img/logo-new.webp"
Expand Down
2 changes: 2 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ a {
z-index: 0;
background-image: url("../../../assets/img/why-eclipse.svg");
background-repeat: no-repeat;
pointer-events: none;
background-size: cover;
max-width: 697px;
width: 100%;
Expand Down Expand Up @@ -370,6 +371,7 @@ a {
background: #fff;
opacity: 7%;
border-radius: 25px;
pointer-events: none;
position: absolute;
top: 0;
left: 0;
Expand Down

0 comments on commit ec45352

Please sign in to comment.