-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathMovieCard.css
More file actions
109 lines (93 loc) · 1.77 KB
/
Copy pathMovieCard.css
File metadata and controls
109 lines (93 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
.movie-card {
width: 200px;
margin: 1rem;
border-radius: 0.8rem;
overflow: hidden;
transition: transform 0.3s ease,
box-shadow 0.3s ease;
background-color: #1a1a1a;
position: relative;
}
.movie-card:hover {
transform: scale(1.03);
box-shadow: 0rem 0.15rem 0.9rem rgba(229, 9, 20);
}
.movie-card-content {
cursor: pointer;
}
.movie-card-actions {
position: absolute;
top: 10px;
right: 10px;
display: flex;
flex-direction: column;
gap: 8px;
z-index: 10;
}
.action-button {
width: 32px;
height: 32px;
border-radius: 50%;
border: none;
background-color: rgba(0, 0, 0, 0.6);
color: white;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
}
.action-button:hover {
background-color: rgba(0, 0, 0, 0.8);
transform: scale(1.1);
}
.favorite-button.active {
background-color: #fa5252;
color: white;
}
.watched-button.active {
background-color: #40c057;
color: white;
}
.favorite-button svg,
.watched-button svg {
transition: fill 0.3s ease, stroke 0.3s ease;
}
/* Already in your CSS — controls bg */
.favorite-button.active {
background-color: rgba(250, 82, 82, 0.2);
}
.watched-button.active {
background-color: rgba(64, 192, 87, 0.2);
}
.movie-poster {
width: 100%;
height: 300px;
object-fit: cover;
}
.movie-info {
padding: 1rem;
}
.movie-title {
margin: 0 0 0.5rem 0;
font-size: 1rem;
color: white;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.movie-vote {
display: flex;
align-items: center;
/* text-align: center; */
}
.vote-average {
background-color: #fa5252;
color: black;
padding: 0.2rem 0.5rem;
margin: 0.05rem auto;
border-radius: 4px;
font-weight: bold;
font-size: 0.9rem;
}