-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
129 lines (110 loc) · 2.2 KB
/
styles.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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Outfit', sans-serif;
color: hsl(215, 51%, 70%);
font-weight:300;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: hsl(217, 54%, 11%);
}
main {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: hsl(216, 50%, 16%);
height: 37.5rem;
width: 22rem;
border-radius: 10px;
box-shadow: 0 5rem 3rem 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.card-img {
position: relative;
margin: 1.5rem 1.5rem 0rem 1.5rem;
border-radius: 5px;
overflow: hidden;
cursor: pointer;
}
.card-img img {
width:100%;
height:auto;
object-fit: cover;
cursor: pointer;
}
.card-body {
height: 40%;
margin: 1.5rem;
font-size: 18px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card-title {
color: white;
font-weight: 600;
cursor: pointer;
}
.card-title:hover {
color: hsl(178, 100%, 50%);
}
.price-tag{
color: hsl(178, 100%, 50%);
font-weight: 400;
}
.tag{
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row;
padding-bottom: 1.5rem;
border-bottom: 1px solid hsl(215, 32%, 27%) ;
}
.card-footer {
display: flex;
align-items: center;
flex-direction: row;
}
.creator-name {
margin-left: 1rem;
}
.creator-name span {
color: white;
cursor: pointer;
}
.creator-name span:hover {
color: hsl(178, 100%, 50%);
}
.card-footer img {
width: 2.5rem;
border-radius: 50%;
border: 2px solid white;
}
/* picture hover */
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
color: #FFF;
background-color: hsl(178, 100%, 50%);
display: flex;
justify-content: center;
align-items: center;
}
.overlay img {
width: 3rem;
}
.overlay:hover {
opacity: 1;
background-color: hsla(178, 100%, 50%, 0.5);
}