Dropdown change on mobile
This commit is contained in:
parent
d2dddbeb2a
commit
99fe35aa23
6 changed files with 144 additions and 121 deletions
src/components/navbar
29
src/components/navbar/navbarDesktop.astro
Normal file
29
src/components/navbar/navbarDesktop.astro
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
|
||||
---
|
||||
|
||||
<ul>
|
||||
<slot />
|
||||
</ul>
|
||||
|
||||
<style>
|
||||
ul {
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
display: none;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
height: 64px;
|
||||
width: 100%;
|
||||
list-style-type: none;
|
||||
row-gap: 0.5em;
|
||||
column-gap: 0.5ch;
|
||||
margin: 0px;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
@media (min-width: 1140px) {
|
||||
ul {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue