-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcart.css
More file actions
243 lines (240 loc) · 4.21 KB
/
cart.css
File metadata and controls
243 lines (240 loc) · 4.21 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
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
@font-face{
font-family: font1;
src: url(./font/GeneralSans-Regular.otf);
}
@font-face{
font-family: font2;
src: url(./font/GeneralSans-Medium.otf);
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: font1;
}
body{
height: 100%;
max-width: 1262px;
margin: 0px auto;
padding: 20px 10px;
overflow-x: hidden;
position: relative;
}
a{
font-size: 1.5rem;
text-decoration: none;
display: flex;
align-items: center;
gap: 2px;
width: fit-content;
color: black;
}
#main{
width: 100%;
display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
}
#pro-wrapper{
height: 32rem;
border: 2px solid rgb(171, 169, 169);
border-radius: 5px;
width: 50%;
padding: 10px;
overflow-y: auto;
}
#pro-wrapper::-webkit-scrollbar{
display: none;
}
.product h3{
display: flex;
justify-content: center;
align-items: center;
font-size: 1.3rem;
}
/* ye wala block javascript sy data ly kr ayega to os par apply hog ye styling */
.product{
width: 100%;
display: flex;
padding: 10px 0px;
justify-content: space-between;
border-bottom: 2px solid rgb(171, 169, 169);
}
.product h3:nth-child(1){
width: 16rem;
display: flex;
justify-content: start;
}
.remove{
font-size: 1.5rem;
cursor: pointer;
background-color: #239BF0;
padding: 4px;
border-radius: 100%;
color: white;
}
/* */
#wrapper{
height: 32rem;
background-color: #239BF0;
border-radius: 5px;
width: 50%;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
#form{
display: flex;
flex-direction: column;
gap: 20px;
}
#form h2{
font-size: 1.8rem;
color: white;
margin: 0px auto;
}
#order{
display: flex;
justify-content: space-between;
}
#order h4{
font-size: 1.8rem;
color: white;
}
#form input{
padding: 10px 5px;
border-radius: 5px;
outline: none;
border: none;
}
#wrapper button{
padding: 10px 25px;
border-radius: 50px;
background-color: black;
border: none;
color: white;
font-size: 1.15rem;
cursor: pointer;
}
/* ye code number input sy button hata rha hy default wlaay */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* media querys started */
@media(max-width: 930px){
header a i{
font-size: 3vw;
}
header a h3{
font-size: 3.5vw;
}
#pro-wrapper{
height: 27rem;
}
#wrapper{
height: 27rem;
}
#form h2{
font-size: 3.5vw;
}
#form input{
font-size: 1.6vw;
}
#order h4{
font-size: 3.2vw;
}
#order button{
padding: 1vw 3vw;
font-size: 2vw;
}
.product{
padding: 1vw 0vw;
}
.product h3{
font-size: 2vw;
}
.remove{
padding: 0.4vw;
font-size: 2.3vw;
}
.product h3:nth-child(1){
width: 25vw;
}
}
@media(max-width: 800px){
#main{
flex-direction: column;
}
#pro-wrapper{
width: 100%;
height: 26rem;
}
#wrapper{
width: 100%;
height: 26rem;
}
header a i{
font-size: 4vw;
}
header a h3{
font-size: 4.3vw;
}
.product{
padding: 0.8vw 0vw;
}
.product h3{
font-size: 2.8vw;
}
.remove{
padding: 1vw 1vw;
font-size: 2.5vw;
}
#form h2{
font-size: 4.8vw;
}
#form input{
font-size: 2vw;
}
#order h4{
font-size: 4.2vw;
}
#order button{
padding: 0.5vw 3vw;
font-size: 2.3vw;
}
}
@media(max-width: 500px){
header a i{
font-size: 4.7vw;
}
header a h3{
font-size: 5vw;
}
.product h3:nth-child(1){
width: 48vw;
}
.product h3{
font-size: 3.5vw;
}
.remove{
font-size: 3.5vw;
padding: 1.1vw;
}
#form h2{
font-size: 6vw;
}
#form input{
font-size: 3vw;
}
#order h4{
font-size: 6vw;
}
#order button{
font-size: 3.2vw;
padding: 0.5vw 4vw;
}
}