ChandimaPrabath's picture
patch #2
5989701
.movie-card:hover .movie-card-poster{
transform: scale(1.1);
}
.movie-card {
position: relative;
width: 130px;
height: 250px;
min-width: 130px;
min-height: 250px;
margin: 10px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
cursor: pointer;
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
opacity: 0;
animation: fadeIn 0.5s forwards;
border: 1px solid var(--primary-special-color);
border-left: none;
border-right: none;
background-image: linear-gradient(120deg, var(--card-color), var(--bg-secondary));
}
.movie-card-image-container {
position: relative;
width: 100%;
height: inherit;
}
.movie-card-poster {
object-fit: cover;
object-position: top;
border-radius: 8px 8px 0 0;
animation: fade-in 2s forwards;
opacity: 0;
transition: transform .1s ease;
}
@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.movie-card-info {
position: relative;
width: 100%;
height: 30%;
padding: 5px;
color: #fff;
text-align: center;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
text-decoration: none !important;
}
.movie-card-title {
margin: 0;
font-size: .8rem;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.movie-card-year {
margin: 5px 0 0;
font-size: .8rem;
font-weight: 200;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.error {
color: #e74c3c;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@media (orientation: portrait) {
.movie-card {
width: 100px;
min-width: 100px;
height: 200px;
min-height: 200px;
margin: 5px;
}
.movie-card-info {
height: 30%;
padding: 5px;
}
.movie-card-title {
margin: 0;
font-size: .8rem;
}
.movie-card-year {
margin: 5px 0 0;
font-size: 0.8rem;
}
}