63 lines
1,005 B
CSS
63 lines
1,005 B
CSS
#movie-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
flex-direction: row;
|
|
gap: 1rem;
|
|
}
|
|
|
|
#movie-grid a {
|
|
position: relative;
|
|
}
|
|
|
|
#movie-grid a .details {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: grid;
|
|
place-content: center;
|
|
align-content: center;
|
|
background: #000;
|
|
opacity: 0;
|
|
color: var(--default-text);
|
|
transition: all .5s;
|
|
|
|
max-height: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
#movie-grid a:hover .details {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* --- */
|
|
|
|
|
|
#movie-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#movie-list a {
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin: 0.5rem 0;
|
|
padding: 0.5rem;
|
|
background: var(--second-bg);
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
#movie-list a img {
|
|
width: 10vw;
|
|
height: 16vw;
|
|
object-fit: cover;
|
|
transition: transform 0.5s;
|
|
}
|
|
|
|
#movie-list a .details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-left: 1rem;
|
|
}
|