Skip to content

Commit

Permalink
feat: add hover display only on pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Nov 15, 2024
1 parent c6928e2 commit 3d745c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Document/DocumentCarousel/DocumentCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const adjustedPosition = computed({
v-model="adjustedPosition"
:per-page="1"
:total-rows="total"
class="mx-auto py-1"
class="document-carousel__pagination mx-auto py-1"
row
/>
<div class="document-carousel__content p-3">
Expand Down Expand Up @@ -77,11 +77,13 @@ const adjustedPosition = computed({
justify-content: center;
position: relative;
&:hover {
&:has(&__pagination:hover),
&:has(&__content:hover) {
background: var(--bs-tertiary-bg-subtle);
}
&:hover &__content {
&__pagination:hover ~ &__content,
&__content:hover {
visibility: visible;
opacity: 1;
pointer-events: all;
Expand Down

0 comments on commit 3d745c0

Please sign in to comment.