Skip to content

Commit

Permalink
Merge pull request #341 from hhofner/master
Browse files Browse the repository at this point in the history
[Pagination] Apply hover classes only on supported devices
  • Loading branch information
ismail9k authored Oct 18, 2023
2 parents 11a2105 + 65074d1 commit 8b5dfc6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/styles/navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
transform: translateY(-50%);
}

.carousel__prev:hover,
.carousel__next:hover {
color: var(--vc-nav-color-hover);
}

.carousel__next--disabled,
.carousel__prev--disabled {
cursor: not-allowed;
Expand All @@ -48,3 +43,10 @@
right: auto;
left: 0;
}

@media (hover: hover) {
.carousel__prev:hover,
.carousel__next:hover {
color: var(--vc-nav-color-hover);
}
}
7 changes: 6 additions & 1 deletion src/styles/pagination.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
background-color: var(--vc-pgn-background-color);
}

.carousel__pagination-button:hover::after,
.carousel__pagination-button--active::after {
background-color: var(--vc-pgn-active-color);
}

@media(hover: hover) {
.carousel__pagination-button:hover::after {
background-color: var(--vc-pgn-active-color);
}
}

0 comments on commit 8b5dfc6

Please sign in to comment.