FEATURE Amélioration des styles de survol et ajout de transitions pour les éléments du menu
This commit is contained in:
parent
9a6288420a
commit
adda47b8ae
|
|
@ -63,6 +63,7 @@
|
|||
text-lg
|
||||
text-center;
|
||||
|
||||
&:hover > button,
|
||||
&:hover > a,
|
||||
a:focus {
|
||||
@apply cursor-pointer
|
||||
|
|
@ -116,14 +117,16 @@
|
|||
@apply w-7 h-7 object-contain object-center;
|
||||
transition: transform 0.3s ease-out;
|
||||
}
|
||||
&:hover .page_icon {
|
||||
|
||||
&:hover > button > .page_icon,
|
||||
&:hover > a > .page_icon {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
}
|
||||
li.menu-item.menu-item-has-children:hover {
|
||||
&:hover .page_icon {
|
||||
/* &:hover .page_icon {
|
||||
transform: none;
|
||||
}
|
||||
} */
|
||||
@screen lg {
|
||||
.menu-item-submenu-toggle:after {
|
||||
transform: rotate(180deg);
|
||||
|
|
@ -167,29 +170,58 @@
|
|||
translate: 0 -30px;
|
||||
}
|
||||
}
|
||||
li.current-menu-item {
|
||||
a {
|
||||
@apply no-underline;
|
||||
.menu-item__title {
|
||||
@apply !underline underline-offset-8 decoration-1 decoration-secondary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
@apply lg:text-left;
|
||||
@apply max-w-3xl w-full lg:text-left;
|
||||
border-bottom: 1px solid #fff;
|
||||
|
||||
&:nth-last-child(-n + 2),
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
@apply max-w-3xl w-full;
|
||||
|
||||
&:nth-child(odd) {
|
||||
@apply ml-auto;
|
||||
}
|
||||
|
||||
.page_subtitle {
|
||||
@apply opacity-80 font-light mt-1;
|
||||
}
|
||||
|
||||
&.menu-item.has-page-icon a {
|
||||
@apply flex gap-4 items-center justify-start flex-row p-6 py-8;
|
||||
@apply flex gap-6 items-center justify-start flex-row p-6 py-8;
|
||||
.page_icon {
|
||||
@apply w-12 h-12;
|
||||
}
|
||||
}
|
||||
.menu-item__content-inner {
|
||||
transition: all 0.3s ease-out;
|
||||
span {
|
||||
@apply block;
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
@apply bg-black/10;
|
||||
a {
|
||||
@apply gap-12;
|
||||
.page_icon {
|
||||
transform: none !important;
|
||||
}
|
||||
@apply no-underline;
|
||||
.menu-item__content-inner {
|
||||
transform: translateX(4px);
|
||||
}
|
||||
.menu-item__title {
|
||||
@apply !underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user