This commit is contained in:
jxxghp
2023-09-14 17:22:23 +08:00
parent 7cce57496d
commit 948e65d383
3 changed files with 24 additions and 25 deletions

View File

@@ -17,18 +17,16 @@
// This mixin is inspired from vuetify for adding hover styles via before pseudo element
@mixin before-pseudo() {
position: relative;
@media (hover) {
&::before {
position: absolute;
background: currentcolor;
block-size: 100%;
border-radius: inherit;
content: "";
inline-size: 100%;
inset: 0;
opacity: 0;
pointer-events: none;
}
&::before {
position: absolute;
background: currentcolor;
block-size: 100%;
border-radius: inherit;
content: "";
inline-size: 100%;
inset: 0;
opacity: 0;
pointer-events: none;
}
}

View File

@@ -8,18 +8,16 @@
// This mixin is inspired from vuetify for adding hover styles via before pseudo element
@mixin before-pseudo() {
position: relative;
@media (hover) {
&::before {
position: absolute;
border-radius: inherit;
background: currentcolor;
block-size: 100%;
content: "";
inline-size: 100%;
inset: 0;
opacity: 0;
pointer-events: none;
}
&::before {
position: absolute;
border-radius: inherit;
background: currentcolor;
block-size: 100%;
content: "";
inline-size: 100%;
inset: 0;
opacity: 0;
pointer-events: none;
}
}

View File

@@ -70,12 +70,15 @@ function handleNavScroll(evt: Event) {
<slot name="nav-items" :update-is-vertical-nav-scrolled="updateIsVerticalNavScrolled">
<PerfectScrollbar
tag="ul"
class="nav-items"
class="nav-items d-none d-lg-block"
:options="{ wheelPropagation: false }"
@ps-scroll-y="handleNavScroll"
>
<slot />
</PerfectScrollbar>
<ul class="nav-items d-lg-none overflow-auto">
<slot />
</ul>
</slot>
<slot name="after-nav-items" />