2024-08-26 20:50:06 +03:00
|
|
|
.movie-card {
|
|
|
|
overflow: hidden;
|
|
|
|
border-radius: 8px;
|
|
|
|
-webkit-border-radius: 8px;
|
|
|
|
-moz-border-radius: 8px;
|
|
|
|
-ms-border-radius: 8px;
|
|
|
|
-o-border-radius: 8px;
|
|
|
|
-webkit-transition: all 0.3s;
|
|
|
|
-o-transition: all 0.3s;
|
|
|
|
transition: all 0.3s;
|
2024-08-26 20:55:28 +03:00
|
|
|
@media (hover) {
|
2024-08-26 20:50:06 +03:00
|
|
|
|
2024-08-26 20:55:28 +03:00
|
|
|
&:hover {
|
|
|
|
-webkit-transform: scale(1.05);
|
|
|
|
-ms-transform: scale(1.05);
|
|
|
|
transform: scale(1.05);
|
|
|
|
}
|
2024-08-26 20:50:06 +03:00
|
|
|
|
2024-08-26 20:55:28 +03:00
|
|
|
&:hover .movie-card__thumb .icon {
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
2024-08-26 20:50:06 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-08-26 20:55:28 +03:00
|
|
|
|
2024-08-26 20:50:06 +03:00
|
|
|
.movie-card__thumb {
|
|
|
|
position: relative;
|
2024-08-29 19:36:18 +03:00
|
|
|
.card-title {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
padding: 4px 10px;
|
|
|
|
color: #fff;
|
|
|
|
background-color: rgba($secondary, 0.9);
|
|
|
|
font-size: 14px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2024-08-26 20:50:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.movie-card__thumb img {
|
|
|
|
width: 100%;
|
|
|
|
// height: 420px;
|
|
|
|
aspect-ratio: 2/3;
|
|
|
|
object-fit: cover;
|
|
|
|
-o-object-fit: cover;
|
|
|
|
object-position: center;
|
|
|
|
-o-object-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.movie-card__thumb .icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: rgba(0, 0, 0, 0.55);
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
color: $primary;
|
|
|
|
font-size: 24px;
|
|
|
|
opacity: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
-webkit-transition: all 0.3s;
|
|
|
|
-o-transition: all 0.3s;
|
|
|
|
transition: all 0.3s;
|
|
|
|
@media not (hover) {
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
|
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.movie-card__content {
|
|
|
|
padding: 20px;
|
|
|
|
background-color: #1b1b3f;
|
|
|
|
}
|
|
|
|
.movie-card__title {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 425px) {
|
|
|
|
.movie-card .movie-card__content {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.movie-card__content .year {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.movie-card__meta {
|
|
|
|
display: -ms-flexbox;
|
|
|
|
display: flex;
|
|
|
|
-ms-flex-wrap: wrap;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.movie-card__meta li i {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.movie-card__meta li span {
|
|
|
|
font-size: 12px;
|
|
|
|
padding-left: 4px;
|
|
|
|
}
|