-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCard.css
81 lines (70 loc) · 1.52 KB
/
Card.css
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
:root {
--primary-color: #e0c521;
}
.card {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 150px;
height: 250px;
border: 2px solid var(--primary-color);
padding: 0.5rem 0.3rem;
margin: 13px 10px;
position: relative;
border-radius: 5px;
}
.card__title {
font-weight: 400;
text-align: center;
}
.card__title .card__price {
font-weight: bold;
}
.image__container {
width: 100px;
height: 100px;
margin: 0 auto;
}
.image__container img {
width: 100%;
object-fit: cover;
}
.btn-container {
display: flex;
flex-direction: row;
justify-content: center;
}
.card__price {
text-align: center;
display: inline-block;
}
.card__badge {
position: absolute;
top: 0;
right: 0;
width: 40px;
height: 40px;
background-color: rgb(227, 112, 30);
border-radius: 50%;
transform: translate(20px, -20px) scale(1);
color: #fff;
font-weight: bold;
text-align: center;
border: 2px solid rgb(227, 112, 30);
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
animation: scaleanimation 1s ease infinite;
opacity: 0.8;
}
@keyframes scaleanimation {
to {
transform: translate(20px, -20px) scale(1.05);
opacity: 1;
}
}
.card__badge--hidden {
display: none;
}