Skip to content

Commit 8295392

Browse files
committed
checkout started
1 parent 4e8d902 commit 8295392

File tree

2 files changed

+271
-83
lines changed

2 files changed

+271
-83
lines changed

css/cart.css

Lines changed: 165 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,29 @@
1919

2020

2121
.shopping-container {
22-
position: relative;
23-
margin: auto;
24-
width: 80%;
22+
position: absolute;
23+
display: inline-block;
24+
height: 80vh;
25+
width: 80vw;
26+
margin: 10% 10% 5% 10%;
2527
}
2628

2729
.shopping-cart {
28-
position: absolute;
29-
display: none;
30-
z-index: -5;
30+
position: relative;
31+
/* display: none;
32+
z-index: -5; */
3133

32-
max-height: 80vh;
33-
width: 320px;
34-
right: 0px;
34+
height: 100%;
35+
width: 65%;
3536
padding: 20px;
36-
margin: 20px 0;
37+
left: 0%;
3738

38-
float: right;
39+
float: left;
3940
overflow: hidden;
40-
border-radius: 10px;
41+
border-radius: 10px 0px 0px 10px;
4142
backdrop-filter: blur(20px);
4243
background: rgba(0, 0, 0, 0.500);
44+
box-shadow: 0px 0px 25px 5px rgba(0, 0, 0, 0.650);
4345
}
4446

4547
.badge {
@@ -56,6 +58,7 @@
5658
}
5759

5860
.shopping-cart .shopping-cart-header {
61+
height: 10%;
5962
border-bottom: 1px solid #e8e8e852;
6063
padding-bottom: 15px;
6164
}
@@ -64,15 +67,12 @@
6467
}
6568
.shopping-cart .shopping-cart-items {
6669
display: flex;
70+
height: 100%;
6771
flex-direction: column;
6872
justify-content:space-between;
69-
padding: 20px;
73+
padding: 45px 45px 45px 20px;
7074
margin: 0;
7175
}
72-
.shopping-cart .shopping-cart-items li {
73-
list-style-type: none;
74-
margin-bottom: 18px;
75-
}
7676
.shopping-cart .shopping-cart-items img {
7777
float: left;
7878
height: 100%;
@@ -123,6 +123,7 @@
123123
}
124124

125125
.checkout-button {
126+
width: 100%;
126127
background: #6394F8;
127128
color: white;
128129
text-align: center;
@@ -144,30 +145,170 @@
144145
}
145146

146147
.clearfix {
147-
height: 75px;
148-
margin-bottom: 20px;
148+
height: 30% !important;
149149
overflow: hidden;
150+
list-style-type: none;
150151
}
151152

152153
.clearfix .cart-data{
153154
overflow: hidden;
154-
height: 75px;
155+
height: 100%;
155156
}
156157

157-
#cart-button:focus ~ .shopping-container .shopping-cart{
158+
/* #cart-button:focus ~ .shopping-container .shopping-cart{
158159
display:unset;
159160
z-index: 5;
160-
}
161+
} */
161162
#cart-button{
162163
position: absolute;
163164
}
164-
165+
/*
165166
.shopping-cart:hover{
166167
display:unset;
167168
z-index: 5;
168-
}
169+
} */
169170

170171
.shopping-cart .quantity{
171172
display: flex;
172173
justify-content: space-between;
173174
}
175+
176+
177+
178+
179+
180+
181+
/* checkout container */
182+
183+
.checkout-container{
184+
position: relative;
185+
height: 100%;
186+
width: 35%;
187+
right: 0%;
188+
float: right;
189+
190+
display: flex;
191+
flex-direction: column;
192+
justify-content: center;
193+
align-items: center;
194+
195+
border-radius: 0px 10px 10px 0px;
196+
backdrop-filter: blur(20px);
197+
background: rgba(255, 255, 255, 0.5);
198+
/* box-shadow: -10px 0px 15px -5px black; */
199+
box-shadow: 0px 0px 25px 5px rgba(0, 0, 0, 0.650);
200+
padding: 20px;
201+
}
202+
203+
.checkout-container .user-data{
204+
position: relative;
205+
height: 80%;
206+
width: 100%;
207+
208+
display: flex;
209+
flex-direction: column;
210+
justify-content:space-evenly;
211+
align-items:center;
212+
}
213+
214+
215+
216+
217+
218+
219+
220+
221+
/* vertical carousel */
222+
223+
.cart-carousel{
224+
height: 90%;
225+
width: 100%;
226+
}
227+
228+
.vertical.carousel.slide{
229+
height: 100%;
230+
width: 100%;
231+
background-color:unset;
232+
}
233+
234+
235+
.vertical.carousel .carousel-control {
236+
display: flex;
237+
justify-content: center;
238+
align-items: center;
239+
bottom: auto;
240+
width: 30%;
241+
height: 15%;
242+
left: 0;
243+
right: 0;
244+
margin: auto;
245+
background-color:unset;
246+
background:unset;
247+
/* background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));
248+
background: -moz-linear-gradient(top, rgba(0,0,0,0.5) 0, rgba(0,0,0,0) 100%);
249+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0) 100%); */
250+
}
251+
.vertical.carousel .carousel-control.right {
252+
top: auto;
253+
bottom: 0;
254+
/* background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.5)));
255+
background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
256+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%); */
257+
}
258+
.vertical.carousel .carousel-control .glyphicon {
259+
-webkit-transform: rotate(90deg);
260+
transform: rotate(90deg);
261+
262+
}
263+
.vertical.carousel .carousel-indicators {
264+
bottom: auto;
265+
top: 50%;
266+
height: fit-content;
267+
left: auto;
268+
right: 10px;
269+
width: 15px;
270+
margin: 0;
271+
-webkit-transform: translateY(-50%);
272+
transform: translateY(-50%);
273+
}
274+
.vertical.carousel .carousel-inner > .item {
275+
left: 0;
276+
top: 0;
277+
}
278+
.vertical.carousel .carousel-inner > .item > img {
279+
width: 100%;
280+
}
281+
.vertical.carousel .carousel-inner > .item.next,
282+
.vertical.carousel .carousel-inner > .item.active.right {
283+
-webkit-transform: translate3d(0, 100%, 0);
284+
transform: translate3d(0, 100%, 0);
285+
top: 0;
286+
}
287+
.vertical.carousel .carousel-inner > .item.prev,
288+
.vertical.carousel .carousel-inner > .item.active.left {
289+
-webkit-transform: translate3d(0, -100%, 0);
290+
transform: translate3d(0, -100%, 0);
291+
top: 0;
292+
}
293+
.vertical.carousel .carousel-inner > .item.next.left,
294+
.vertical.carousel .carousel-inner > .item.prev.right,
295+
.vertical.carousel .carousel-inner > .item.active {
296+
-webkit-transform: translate3d(0, 0, 0);
297+
transform: translate3d(0, 0, 0);
298+
top: 0;
299+
}
300+
.vertical.carousel .carousel-inner > .active,
301+
.vertical.carousel .carousel-inner > .next.left,
302+
.vertical.carousel .carousel-inner .prev.right {
303+
top: 0;
304+
}
305+
.vertical.carousel .carousel-inner > .next,
306+
.vertical.carousel .carousel-inner > .active.right {
307+
top: 100%;
308+
left: 0;
309+
}
310+
.vertical.carousel .carousel-inner > .prev,
311+
.vertical.carousel .carousel-inner > .active.left {
312+
top: -100%;
313+
left: 0;
314+
}

0 commit comments

Comments
 (0)