forked from yash11255/FINALDC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
216 lines (185 loc) · 4.1 KB
/
style.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
body {
margin: 0;
font-family: 'Poppins', sans-serif;
background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
}
a {
color: unset;
text-decoration: none;
}
.container {
width: 90%;
margin: auto;
max-width: 900px;
text-align: center;
padding-top: 10px;
}
.title {
font-size: xx-large;
margin-left: 225px;
font-weight: 800;
padding: 20px 0;
border: 0;
border-radius: 20px;
margin-top: 55px;
margin-bottom: 5px;
}
.button-34 {
margin-left: 500px;
background: #5E5DF0;
border-radius: 999px;
box-shadow: #5E5DF0 0 10px 20px -10px;
box-sizing: border-box;
color: #FFFFFF;
cursor: pointer;
font-family: Inter,Helvetica,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Noto Color Emoji","Segoe UI Symbol","Android Emoji",EmojiSymbols,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",sans-serif;
font-size: 16px;
font-weight: 700;
line-height: 24px;
opacity: 1;
outline: 0 solid transparent;
padding: 8px 18px;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
width: fit-content;
word-break: break-word;
border: 0;
}
.listProduct .item img {
width: 90%;
filter: drop-shadow(0 50px 20px #0009);
}
.listProduct {
/* padding-top: 80px; */
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.listProduct .item {
background: radial-gradient(#b92b27, #1565C0);
padding: 20px;
border-radius: 20px;
filter: drop-shadow(0 0 20px rgba(235, 14, 14, 0.6));
}
.listProduct .item h2 {
font-weight: 500;
font-size: large;
}
.listProduct .item .price {
letter-spacing: 7px;
font-size: small;
}
/* detail page */
.detail {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 50px;
text-align: left;
border-radius: 20px;
position: relative;
overflow: hidden;
}
.detail .image img {
width: 100%;
transform: translateY(0);
transform: scale(0.7);
}
.detail .image {
position: relative;
}
.detail .image::before {
position: absolute;
width: 300px;
height: 300px;
content: '';
background-color: #94817733;
z-index: -1;
border-radius: 190px 100px 170px 180px;
left: calc(50% - 150px);
top: 50px;
}
.detail .name {
font-size: xxx-large;
padding: 40px 0 0 0;
margin: 0 0 10px 0;
}
.detail .price {
font-weight: bold;
font-size: x-large;
letter-spacing: 7px;
margin-bottom: 20px;
}
.detail .buttons {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.detail .buttons button {
background-color: #eee;
border: none;
padding: 15px 20px;
border-radius: 20px;
font-family: 'Poppins', sans-serif;
font-size: large;
}
.detail .buttons svg {
width: 15px;
}
.detail .buttons span {
background-color: #555454;
width: 30px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
margin-left: 20px;
}
.detail .buttons button:nth-child(2) {
background-color: #2F2F2F;
display: flex;
justify-content: center;
align-items: center;
color: #eee;
box-shadow: 0 10px 20px #2F2F2F77;
}
.detail .description {
font-weight: 300;
color: aliceblue;
font-size: x-large;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
/* iPad */
@media only screen and (max-width: 992px) {
.listProduct {
grid-template-columns: repeat(3, 1fr);
}
.detail {
grid-template-columns: 40% 1fr;
}
}
/* Mobile */
@media only screen and (max-width: 768px) {
.listProduct {
grid-template-columns: repeat(2, 1fr);
}
.detail {
text-align: center;
grid-template-columns: 1fr;
}
.detail .image img {
width: unset;
height: 40vh;
}
.detail .name {
font-size: x-large;
margin: 0;
}
.detail .buttons button {
font-size: small;
}
.detail .buttons {
justify-content: center;
}
}