This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Netflix-Clone/src/static/sass/components/_movieShowcase.scss
2021-10-07 10:51:00 -04:00

132 lines
2.5 KiB
SCSS

// Override swiper styles
.swiper-pagination {
top: 0 !important;
height: 2rem !important;
text-align: right !important;
}
.swiper-pagination-bullet {
background-color: rgb(255, 255, 255) !important;
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
width: 97.5% !important;
}
.swiper-container-horizontal > .swiper-pagination-bullets {
bottom: 0 !important;
left: 0 !important;
// width: 10% !important;
}
div.swiper-button-prev,
div.swiper-button-next {
transition: all 450ms !important;
color: rgb(255, 255, 255);
&:hover {
transform: scale(1.2) !important;
transition: all 450ms !important;
}
}
.swiper-slide {
transition: all 450ms !important;
}
.swiper-wrapper:hover .swiper-slide {
z-index: 10000;
opacity: 0.3 !important;
&:hover {
transform: scale(1.4) !important;
opacity: 1 !important;
@include responsive(tab_port) {
transform: scale(1.2) !important;
}
}
}
.movieShowcase {
background-color: transparent;
grid-column: 2 / 13;
color: #fff;
&__heading {
margin-bottom: 0;
padding-left: 4rem;
}
&__container::-webkit-scrollbar {
display: none;
}
&__container {
@include responsive(phone) {
width: 98vw;
}
&--movie:hover ~ &--movie {
transform: translate3d(6.5rem, 0, 0);
@include responsive(tab_port) {
transform: translate3d(3rem, 0, 0);
}
@include responsive(phone) {
transform: translate3d(2.8rem, 0, 0);
}
}
&--movie__netflix:hover ~ &--movie__netflix {
transform: translate3d(1rem, 0, 0);
}
&:hover &--movie__netflix {
&:hover {
transform: scale(1.1) !important;
@include responsive(tab_port) {
transform: scale(1.05) !important;
}
@include responsive(phone) {
transform: scale(1.05) !important;
}
}
}
&--movie {
cursor: pointer;
transition: all 450ms;
transform: center left;
padding-top: 3.5rem;
padding-bottom: 4rem;
min-height: 0;
object-fit: contain;
&:not(:last-child) {
padding-right: 0.5rem;
}
&-image {
height: 100%;
width: 100%;
object-fit: contain;
}
&__netflix {
min-height: 0;
padding-top: 3rem;
padding-bottom: 4rem;
padding-right: 1rem;
cursor: pointer;
transition: all 450ms;
transform: center left;
}
}
}
}