Skip to content

Commit

Permalink
Merge pull request #556 from ChanceM/fix/carousel-handles
Browse files Browse the repository at this point in the history
  • Loading branch information
CGBassPlayer authored Nov 16, 2023
2 parents fb89e6e + 056f089 commit caf5016
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions themes/jb/assets/css/layout/show-slider.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

.show-img {
height: 168px !important;
width: 300px !important
// height: 170px !important;
// width: 303px !important
}

.show-card {
Expand All @@ -11,14 +11,56 @@
.show-slider {
margin-bottom: 2rem;
display: block;
border-radius: 12px;
}

.swiper-button-prev,
.swiper-button-next {
top: 0;
width: 50px;
margin-top: 0;
height: 100%;

&.swiper-button-disabled:before {
display: none;
}
}
.swiper-button-prev {
color: white;
left: 0;

&:before {
content: '';
background: linear-gradient(90deg, #333333dd, transparent);
inset: 0;
position: absolute;
z-index: -1;
opacity: .75;
transition: opacity .5s ease-in-out;

}
&:hover:before {
opacity: 1;
}
}

.swiper-button-next {
color: white;
right: 0;

&:before {
content: '';
background: linear-gradient(-90deg, #333333dd, transparent);
inset: 0;
position: absolute;
z-index: -1;
opacity: .75;
transition: opacity .5s ease-in-out;

}
&:hover:before {
opacity: 1;
}
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
Expand Down

0 comments on commit caf5016

Please sign in to comment.