Skip to content

Commit

Permalink
horizontal overflow for tall screens
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 5, 2024
1 parent afb3caf commit 8cbec23
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions apps/website/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,30 @@ export default function Nav({
<>
<style>{`
@scope {
nav {display:inline-block;}
nav {
width:100%; overflow:auto; scroll-snap-type: x mandatory;
position:fixed;
bottom:0;
@media (min-aspect-ratio:1/1) {
display:inline-block;
position:static;
ul {display:inline-flex; flex-direction:column;}
}
}
ul {
padding-inline-start:unset;
list-style:none;
padding:2rem;
display:flex; flex-direction:column; gap:1rem; position:relative;
display:flex; gap:1rem; position:relative;
}
li {
padding-inline-start:unset;
scroll-snap-align: center;
}
a {display:block; background:white;}
Expand Down

0 comments on commit 8cbec23

Please sign in to comment.