-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.css
More file actions
129 lines (113 loc) · 2.73 KB
/
app.css
File metadata and controls
129 lines (113 loc) · 2.73 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
:root {
--background: #f7ede2;
--button: #f6bd60;
--text: #f28482;
--secondary: #f5cac3;
--tertiary: #84a59d;
--price: #d36135;
--shadow: rgba(226, 109, 92, 0.2);
}
* {
box-sizing: border-box;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Helvetica Neue", Arial, sans-serif;
}
body {
/* background-color: #fafafa; */
background-color: rgba(245, 202, 195, 0.2);
}
.grid {
width: 100%;
height: auto;
padding: 2em 1em;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-row-gap: 3em;
grid-column-gap: 1em;
}
.product-card {
background-color: white;
margin: 0;
border-radius: 8px;
padding: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
transform-style: preserve-3d;
transform: perspective(1000px);
}
.product-card img {
width: 100%;
height: auto;
border-radius: 8px 8px 0 0;
cursor: pointer;
}
.product-card .product-details {
padding: 2em 1em;
}
.product-card .product-details p {
color: var(--text);
font-weight: 500;
font-size: 1.5em;
text-align: center;
transform: perspective(1000px);
transform: translateZ(20px);
}
.product-card .product-details .tags-container {
width: 100%;
margin: 1em 0;
height: auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(25px, 100px));
grid-row-gap: 10px;
grid-column-gap: 5px;
align-items: center;
justify-content: center;
align-content: center;
}
.product-card .product-details .tags-container .tag {
width: auto;
height: auto;
align-self: center;
display: block;
background-color: rgb(132, 165, 157, 0.2);
border-radius: 4px;
text-align: center;
text-transform: capitalize;
padding: 0.3em 0.2em;
color: var(--tertiary);
cursor: pointer;
transform: perspective(1000px);
transform: translateZ(20px);
}
.product-card .product-details .price {
font-weight: 700;
color: var(--price);
transform: perspective(1000px);
transform: translateZ(20px);
}
.product-card .buy-btn {
text-decoration: none;
color: black;
font-weight: 400;
text-transform: uppercase;
border-radius: 2em;
background-color: var(--button);
width: 150px;
padding: 1em 1em;
text-align: center;
position: relative;
bottom: -25px;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
transform: perspective(1000px);
transform: translateZ(20px);
}
.product-card .buy-btn:hover {
box-shadow: 0px 4px 8px rgba(246, 189, 75, 0.5);
}