movie-card.module.scss 539 Bytes
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
.layer{
    position: relative;
Jiwon Yoon's avatar
Jiwon Yoon committed
3
}
Jiwon Yoon's avatar
Jiwon Yoon committed
4
5
6
7
.poster{
    max-height: 20rem;
    object-fit: contain;
}
Jiwon Yoon's avatar
Jiwon Yoon committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.description{
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color:rgba(0, 0, 0, 0.6);
    text-align: center;
    color:white;
    //ellipsis
    text-overflow: ellipsis;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
    &:hover{
        opacity: 1;
    }
}
Jiwon Yoon's avatar
Jiwon Yoon committed
29
30
.txt{
    font-size: 99%;
Jiwon Yoon's avatar
Jiwon Yoon committed
31
}