File tree Expand file tree Collapse file tree 5 files changed +38
-24
lines changed
Expand file tree Collapse file tree 5 files changed +38
-24
lines changed Original file line number Diff line number Diff line change 2323 box-sizing : border-box;
2424 border : 2px solid # 000 ;
2525 background-color : # FFF ;
26- font-weight : 500 ;
2726 font-size : 14px ;
27+ font-weight : 500 ;
2828 color : var (--app-primary-color );
29+ margin : 0 ;
2930 padding : 8px 44px ;
3031 text-align : center;
3132 text-decoration : none;
3233 text-transform : uppercase;
3334 border-radius : 0 ;
35+ outline : none;
3436 -webkit-appearance : none;
3537 }
3638
39+ shop-button > * : focus {
40+ background-color : # c5cad3 ;
41+ }
42+
3743 shop-button > * : active {
3844 background-color : # 000 ;
3945 color : # FFF ;
4046 }
4147
48+ @media (max-width : 767px ) {
49+
50+ /* Responsive buttons are used in shop-detail, shop-cart and shop-checkout */
51+ shop-button [responsive ] {
52+ @apply (--layout-fixed-bottom);
53+ height : 64px ;
54+ z-index : 1 ;
55+ }
56+
57+ shop-button [responsive ] > * {
58+ background-color : var (--app-accent-color );
59+ border : none;
60+ color : white;
61+ padding : 20px ;
62+ width : 100% ;
63+ height : 100% ;
64+ font-size : 15px ;
65+ }
66+
67+ shop-button [responsive ] > * : focus {
68+ background-color : var (--app-accent-color );
69+ }
70+
71+ }
72+
4273 </ style >
4374 </ template >
4475</ dom-module >
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ <h1>Your Cart</h1>
6666 </ div >
6767 < div class ="checkout-box ">
6868 Total: < span class ="subtotal "> [[_formatTotal(total)]]</ span >
69- < shop-button class =" action-btn " >
69+ < shop-button responsive >
7070 < a href ="/checkout "> Checkout</ a >
7171 </ shop-button >
7272 </ div >
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ <h2>Order Summary</h2>
370370 < div class ="flex "> Total</ div >
371371 < div > [[_formatPrice(total)]]</ div >
372372 </ div >
373- < shop-button class =" action-btn " id ="submitBox ">
373+ < shop-button responsive id ="submitBox ">
374374 < input type ="button " on-tap ="_submit " value ="Place Order ">
375375 </ shop-button >
376376 </ section >
@@ -382,7 +382,7 @@ <h2>Order Summary</h2>
382382 < header state ="success ">
383383 < h1 > Thanks for your purchase!</ h1 >
384384 < p > [[response.successMessage]]</ p >
385- < shop-button class =" action-btn " >
385+ < shop-button responsive >
386386 < a href ="/ "> Finish</ a >
387387 </ shop-button >
388388 </ header >
@@ -391,7 +391,7 @@ <h1>Thanks for your purchase!</h1>
391391 < header state ="error ">
392392 < h1 > We couldn´t process your order</ h1 >
393393 < p id ="errorMessage "> [[response.errorMessage]]</ p >
394- < shop-button class =" action-btn " >
394+ < shop-button responsive >
395395 < a href ="/checkout "> Try again</ a >
396396 </ shop-button >
397397 </ header >
Original file line number Diff line number Diff line change 3434 font-size : 12px ;
3535 }
3636
37- header > . action-btn {
37+ header > kart-button [ responsive ] {
3838 margin-top : 20px ;
3939 }
4040
4444 font-size : 1.1em ;
4545 }
4646
47- /* Action Buttons are used in shop-detail, shop-cart and shop-checkout */
48- .action-btn {
49- @apply (--layout-fixed-bottom);
50- height : 64px ;
51- z-index : 1 ;
52- }
53-
54- .action-btn > * {
55- background-color : var (--app-accent-color );
56- border : none;
57- color : white;
58- padding : 20px ;
59- width : 100% ;
60- height : 100% ;
61- font-size : 15px ;
62- }
63-
6447 }
6548
6649 </ style >
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ <h1>[[item.title]]</h1>
190190 < h4 > Description</ h4 >
191191 < p id ="desc "> </ p >
192192 </ div >
193- < shop-button class =" action-btn " >
193+ < shop-button responsive >
194194 < button on-tap ="_addToCart " aria-label ="Add this item to cart "> Add to Cart</ button >
195195 </ shop-button >
196196 </ div >
You can’t perform that action at this time.
0 commit comments