-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
208 lines (186 loc) · 4.13 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
@import url('https://fonts.googleapis.com/css?family=Poppins:200,200,300,400,500,600,700,800,900&display=swap');
*{
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #131313;
}
.container{
position: relative;
}
/* CARD INTEIRO */
.container .card{
position: relative;
width: 320px;
height: 450px;
background: #232323;
border-radius: 20px;
overflow: hidden;
}
.container .card:before{
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #8f8f8f;
clip-path: circle(150px at 80% 20%);
transition: 0.5 ease-in-out;
}
.container .card:hover:before{
clip-path: circle(300px at 80% -20%);
}
.container .card:after{
content: 'Rotterman';
position: absolute;
top: 65%;
left: 5%;
font-size: 3em;
font-weight: 800;
font-style: italic;
color: rgba(255,255,255,0.04);
}
/* IMAGEM DO PRODUTO */
.container .card .imgBx{
position: absolute;
top: 50%;
transform:translateY(-50%);
z-index: 10000;
width: 100%;
height: 220px;
transition: 0.05s;
}
.container .card.card:hover .imgBx{
top: 0%;
transform: translateY(0%);
}
.container .card .imgBx img{
position: absolute;
top:50%;
left: 50%;
transform: translate(-50%,-50%);
width: 270px;
}
.imgBx img {
width: 100%;
position: absolute;
left: 0;
top: 0;
opacity: 0;
transition: all 0.3s ease;
}
.imgBx img.active {
opacity: 1;
}
.container .card .contentBx{
position: absolute;
bottom: 0;
width: 100%;
height: 100px;
text-align: center;
transition: 1s;
z-index: 10;
}
.container .card:hover .contentBx{
height: 210px;
}
.container .card .contentBx h2{
position: relative;
font-weight: 600;
letter-spacing: 1px;
color: #fff;
}
/* BOTÃO COMPRAR */
.container .card .contentBx a{
display: inline-block;
padding: 10px 20px;
background: #fff;
border-radius: 4px;
margin-top: 40px;
border-radius: 4px;
text-decoration: none;
font-weight: 600;
color: #111;
opacity: 0;
transform: translateY(50px);
}
.container .card:hover .contentBx a{
opacity: 1;
transform: translateY(0px);
transition-delay: 0.50s;
}
/* SELEÇÃO DAS CORES */
.product-color {
margin-bottom: 30px;
}
.color-choose div {
display: inline-block;
}
.color-choose input[type="radio"] {
display: none;
}
.color-choose input[type="radio"] + label span {
display: inline-block;
width: 40px;
height: 40px;
margin: -1px 4px 0 0;
vertical-align: middle;
cursor: pointer;
border-radius: 50%;
}
.color-choose input[type="radio"] + label span {
border: 2px solid #FFFFFF;
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.33);
}
.color-choose input[type="radio"]#red + label span {
background-color: rgb(236, 0, 0);
}
.color-choose input[type="radio"]#blue + label span {
background-color: #0026ce;
}
.color-choose input[type="radio"]#black + label span {
background-color: #1cf000;
}
.color-choose input[type="radio"]:checked + label span {
background-image: url(check-icn.svg);
background-repeat: no-repeat;
background-position: center;
}
.container .card .contentBx .product-color{
display: flex;
justify-content: center;
align-items: center;
padding: 8px 20px;
transition: 0.5s;
opacity: 0;
visibility: hidden;
}
.container .card:hover .contentBx .product-color{
opacity: 1;
visibility: visible;
transition-delay: 0.6s;
}
.container .card .contentBx .product-color h3
{
color: #fff;
font-weight: 300;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 2px;
margin-right: 10px;
}
.container .card .contentBx .product-color span{
width: 20px;
height: 20px;
background: ff0;
border-radius: 50%;
margin: 0 5px;
cursor: pointer;
}