File tree 5 files changed +38
-24
lines changed
5 files changed +38
-24
lines changed Original file line number Diff line number Diff line change 23
23
box-sizing : border-box;
24
24
border : 2px solid # 000 ;
25
25
background-color : # FFF ;
26
- font-weight : 500 ;
27
26
font-size : 14px ;
27
+ font-weight : 500 ;
28
28
color : var (--app-primary-color );
29
+ margin : 0 ;
29
30
padding : 8px 44px ;
30
31
text-align : center;
31
32
text-decoration : none;
32
33
text-transform : uppercase;
33
34
border-radius : 0 ;
35
+ outline : none;
34
36
-webkit-appearance : none;
35
37
}
36
38
39
+ shop-button > * : focus {
40
+ background-color : # c5cad3 ;
41
+ }
42
+
37
43
shop-button > * : active {
38
44
background-color : # 000 ;
39
45
color : # FFF ;
40
46
}
41
47
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
+
42
73
</ style >
43
74
</ template >
44
75
</ dom-module >
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ <h1>Your Cart</h1>
66
66
</ div >
67
67
< div class ="checkout-box ">
68
68
Total: < span class ="subtotal "> [[_formatTotal(total)]]</ span >
69
- < shop-button class =" action-btn " >
69
+ < shop-button responsive >
70
70
< a href ="/checkout "> Checkout</ a >
71
71
</ shop-button >
72
72
</ div >
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ <h2>Order Summary</h2>
382
382
< div class ="flex "> Total</ div >
383
383
< div > [[_formatPrice(total)]]</ div >
384
384
</ div >
385
- < shop-button class =" action-btn " id ="submitBox ">
385
+ < shop-button responsive id ="submitBox ">
386
386
< input type ="button " on-tap ="_submit " value ="Place Order ">
387
387
</ shop-button >
388
388
</ section >
@@ -394,7 +394,7 @@ <h2>Order Summary</h2>
394
394
< header state ="success ">
395
395
< h1 > Thanks for your purchase!</ h1 >
396
396
< p > [[response.successMessage]]</ p >
397
- < shop-button class =" action-btn " >
397
+ < shop-button responsive >
398
398
< a href ="/ "> Finish</ a >
399
399
</ shop-button >
400
400
</ header >
@@ -403,7 +403,7 @@ <h1>Thanks for your purchase!</h1>
403
403
< header state ="error ">
404
404
< h1 > We couldn´t process your order</ h1 >
405
405
< p id ="errorMessage "> [[response.errorMessage]]</ p >
406
- < shop-button class =" action-btn " >
406
+ < shop-button responsive >
407
407
< a href ="/checkout "> Try again</ a >
408
408
</ shop-button >
409
409
</ header >
Original file line number Diff line number Diff line change 34
34
font-size : 12px ;
35
35
}
36
36
37
- header > . action-btn {
37
+ header > kart-button [ responsive ] {
38
38
margin-top : 20px ;
39
39
}
40
40
44
44
font-size : 1.1em ;
45
45
}
46
46
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
-
64
47
}
65
48
66
49
</ style >
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ <h1>[[item.title]]</h1>
190
190
< h4 > Description</ h4 >
191
191
< p id ="desc "> </ p >
192
192
</ div >
193
- < shop-button class =" action-btn " >
193
+ < shop-button responsive >
194
194
< button on-tap ="_addToCart " aria-label ="Add this item to cart "> Add to Cart</ button >
195
195
</ shop-button >
196
196
</ div >
You can’t perform that action at this time.
0 commit comments