few menu refinments

This commit is contained in:
Antoine M 2024-01-15 15:39:05 +01:00
parent 1e6547557a
commit e6d4f30537
2 changed files with 10 additions and 14 deletions

View File

@ -25,8 +25,6 @@
mx-auto mx-auto
lg:mx-0 lg:mx-0
static static
/* left-0
w-full */
bottom-0 bottom-0
lg:translate-y-full lg:translate-y-full
xl:absolute; xl:absolute;
@ -67,10 +65,7 @@
/* Highlight using list element */ /* Highlight using list element */
li.current-page-parent > a, li.current-page-parent > a,
li.current_page_item > a { li.current_page_item > a {
@apply font-medium @apply font-bold;
text-white
decoration-secondary
underline underline-offset-8;
} }
li.menu-item { li.menu-item {
@ -85,12 +80,12 @@
px-2 px-2
xl:px-4 xl:px-4
py-2; py-2;
} &:hover:not(.wpml-ls-item),
&:hover:not(.wpml-ls-item), button:focus-visible,
button:focus-visible, a:focus-visible {
a:focus-visible { @apply cursor-pointer rounded-md;
@apply cursor-pointer; background-color: rgba(255, 255, 255, 0.1);
background-color: rgba(255, 255, 255, 0.1); }
} }
button:focus-visible, button:focus-visible,
a:focus-visible:not(.wpml-ls-item) { a:focus-visible:not(.wpml-ls-item) {
@ -107,7 +102,7 @@
/* @apply text-secondary; */ /* @apply text-secondary; */
} }
/* @apply relative pr-4; */ /* @apply relative pr-4; */
@apply pr-4; @apply pr-4 mx-auto;
&:after { &:after {
content: ''; content: '';
display: inline-block; display: inline-block;

View File

@ -70,11 +70,12 @@
lg:absolute lg:absolute
top-0 top-0
lg:min-h-0 lg:min-h-0
bottom-0
overflow-y-scroll overflow-y-scroll
lg:overflow-visible; lg:overflow-visible;
isolation: isolate; isolation: isolate;
bottom: 1px;
&:after { &:after {
content: ''; content: '';