few responsive adapations + langage switcher

This commit is contained in:
Antoine M 2023-12-04 11:28:21 +01:00
parent 5da39fa36c
commit 4c3fe1c125

View File

@ -8,7 +8,9 @@
w-full w-full
h-fit h-fit
py-4 py-4
px-8 px-4
md:px-0
xl:px-8
2xl:px-32 2xl:px-32
my-0; my-0;
@ -23,8 +25,8 @@
lg:mx-0 lg:mx-0
static static
bottom-0 bottom-0
translate-y-full lg:translate-y-full
lg:absolute; xl:absolute;
z-index: 999; z-index: 999;
display: none; display: none;
@ -57,7 +59,7 @@
&__navlist { &__navlist {
@apply w-full @apply w-full
max-w-screen-2xl mx-auto lg:flex justify-end pr-0; max-w-screen-2xl mx-auto lg:flex justify-center pr-0;
/* Highlight using list element */ /* Highlight using list element */
li.current-page-parent > a, li.current-page-parent > a,
@ -75,7 +77,8 @@
button, button,
a { a {
@apply block @apply block
px-4 px-2
xl:px-4
py-2; py-2;
} }
&:hover, &:hover,
@ -183,63 +186,22 @@
@apply hidden; @apply hidden;
} }
} }
/*##### RESPONSIVE */ .wpml-ls-item-nl {
@apply xl:ml-8;
}
.wpml-ls-item {
@apply px-1;
/* @media (max-width: 960px) { a {
&__wrapper-container { @apply !rounded-full h-10 w-10 border border-2 border-white p-0 !flex justify-center items-center font-semibold text-sm;
@apply mt-0 box-sizing: border-box;
left-0
z-40
absolute
hidden;
min-height: 100vh;
height: fit-content;
top: 0;
width: 100vw;
// Rendu conditionnel de l'élément si contenu dans une classe de parent (nesting inversé)
.nav-open & {
@apply flex;
}
> ul {
@apply max-w-xs
mx-auto;
padding-top: 5vh;
}
li.menu-item {
@apply mt-0
text-center
text-white
font-medium
py-8
text-lg
!block
pb-0;
.sub-menu li {
@apply text-sm;
}
}
} }
}
// BURGER MENU .wpml-ls-current-language {
body:has(.nav-open) { a {
@apply max-h-screen @apply bg-white text-primary font-bold;
overflow-hidden;
} }
} */ }
/* @media (max-width: 960px) and (hover: none) {
li.menu-item {
@apply mx-auto
}
} */
}
.menu-homegrade--header {
} }
.menu-homegrade--footer { .menu-homegrade--footer {