-
Notifications
You must be signed in to change notification settings - Fork 0
/
coin.css
345 lines (318 loc) · 5.95 KB
/
coin.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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
@import url("https://fonts.googleapis.com/css2?family=Arima:wght@100;200;300;400;500;700&family=Caveat:wght@400;600&family=Hurricane&family=Poppins:wght@300;400;500;600;700;800;900&family=Satisfy&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
/* border: 1px solid black; */
list-style-type: none;
text-decoration: none;
font-family: "Arima", cursive;
}
:root {
--primary-color: #4daf54;
}
#scroll-progress {
position: fixed;
top: 0;
width: 0%;
height: 4px;
background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
z-index: 10000;
}
body::-webkit-scrollbar {
display: none;
}
.sidebar {
width: 245px;
position: fixed;
left: 0;
top: 0;
height: 100%;
background: linear-gradient(to top, #12c2e9, #c471ed, #f64f59);
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
z-index: 100;
transition: width 300ms;
}
.sidebar-branch {
height: 90px;
padding: 1rem 0rem 1rem 2rem;
color: white;
display: flex;
align-items: center;
justify-content: center;
}
.sidebar-branch .logo {
display: inline-block;
padding-right: 1rem;
}
.sidebar-menu {
margin-top: 1rem;
}
.sidebar-menu li {
width: 100%;
margin-bottom: 1.7rem;
padding-left: 2rem;
}
.sidebar-menu a {
padding-left: 1rem;
display: block;
color: white;
font-size: 1.1rem;
}
.sidebar-menu a.active {
background: white;
padding-top: 1rem;
padding-bottom: 1rem;
color: pink;
border-radius: 30px 0px 0px 30px;
}
.sidebar-menu a span:first-child {
font-size: 1.5rem;
padding-right: 1rem;
}
.logo {
height: 100%;
width: 150px;
}
#nav-toggle:checked + .sidebar {
width: 70px;
}
#nav-toggle:checked + .sidebar .sidebar-branch,
#nav-toggle:checked + .sidebar li a {
padding-left: 1rem;
text-align: center;
}
#nav-toggle:checked + .sidebar li a {
padding-left: 0rem;
}
#nav-toggle:checked + .sidebar li .fa-coins {
padding: 0;
}
#nav-toggle:checked + .sidebar .sidebar-branch h2 span:last-child,
#nav-toggle:checked + .sidebar li a span:last-child,
#nav-toggle:checked + .sidebar .sidebar-branch .logo {
display: none;
}
#nav-toggle:checked ~ .main-content {
margin-left: 70px;
}
#nav-toggle:checked ~ .main-content header {
width: calc(100% - 70px);
left: 70px;
}
.main-content {
transition: margin-left 300ms;
margin-left: 245px;
}
header {
background: linear-gradient(to top, #ed71c4, #f64f59);
/* background-color: #f64fa3; */
display: flex;
justify-content: space-between;
padding: 1rem 1.5rem;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
position: fixed;
left: 245px;
width: calc(100% - 245px);
top: 0;
z-index: 100;
transition: left 300ms;
}
#nav-toggle {
display: none;
}
header h2 {
color: #f1f5f9;
}
header label span {
font-size: 1.7rem;
padding-right: 1rem;
}
.search-wrapper {
border: 1px solid #ccc;
border-radius: 30px;
height: 50px;
display: flex;
align-items: center;
overflow-x: hidden;
}
.search-wrapper span {
display: inline-block;
padding: 0rem 1rem;
font-size: 1.5rem;
}
.search-wrapper input {
height: 100%;
padding-left: 1rem;
border: none;
outline: none;
}
.user-wrapper {
display: flex;
align-items: center;
}
.user-wrapper img {
border-radius: 50%;
margin-right: 1rem;
}
.user-wrapper h4 {
margin-bottom: 0rem !important;
}
.user-wrapper small {
display: inline-block;
color: #f1f5f9;
}
main {
margin-top: 85px;
padding: 2rem 1.5rem;
background: #f1f5f9;
min-height: calc(100vh - 90px);
}
.card4 {
margin-left: 2rem;
margin-right: 7rem;
display: inline-block;
/* margin-bottom:-4px; */
height: 400px;
width: 300px;
/* display: flex;
align-items: center;
justify-content: center; */
border-radius: 20%;
position: relative;
background: linear-gradient(to top, #fc5c7d, #6a82fb);
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
/* margin-bottom: -110px; */
}
.card__img {
width: 90%;
transition: 0.5s;
}
.item {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.card4:hover .card__img {
transform: translateY(-50px) rotate(-20deg);
}
.card__title {
color: white;
transition: 0.5s;
text-align: center;
}
.card__price {
font-weight: 600;
font-size: 26px;
transition: 0.5s;
text-align: center;
}
.card4:hover .card__title {
transform: translate(-30px, -72px);
}
.card4:hover .card__price {
transform: translate(-112px, -72px);
}
.card__size,
.card__color,
.card__action {
opacity: 0;
visibility: hidden;
transition: 0.5s;
}
.card__size {
margin-top: 100px;
}
.card4:hover .card__size,
.card__color,
.card__action {
transform: translateY(-150px);
}
.card4:hover .card__size,
.card4:hover .card__color,
.card4:hover .card__action {
transition-delay: 0.2s;
opacity: 1;
visibility: visible;
}
.card__size,
.card__color {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.card__size h3,
.card__color h3 {
font-weight: unset;
margin-right: 12px;
}
.card__size span {
padding: 2px 10px;
background-color: #dadada;
margin: 0 5px;
border-radius: 5px;
color: #272d40;
cursor: pointer;
}
.card__color span {
width: 20px;
height: 20px;
border-radius: 50%;
margin: 0 5px;
cursor: pointer;
}
.card__color span.green {
background-color: green;
}
.card__color span.red {
background-color: red;
}
.card__color span.black {
background-color: black;
}
.card__action button {
padding: 10px 20px;
outline: none;
border: none;
background-color: var(--primary-color);
border-radius: 5px;
cursor: pointer;
color: white;
margin-right: 7px;
font-weight: 600;
transition: 0.25s;
}
.card__action button:hover {
transform: scale(0.9);
}
.like,
.cart {
font-size: 25px;
color: grey;
position: absolute;
top: 12px;
left: 30px;
cursor: pointer;
z-index: 2;
}
.card__price {
color: white;
}
.cart {
left: unset;
right: 30px;
}
.mycoin {
text-align: center;
margin-top: 2rem;
margin-bottom: 2rem;
font-size: 30px;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.mycoin span {
color: yellow;
}
.fa-coins {
color: yellow;
}