Advertisement
ikai2

display Shopify Payments

Sep 11th, 2022 (edited)
1,276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.75 KB | Source Code | 0 0
  1. <style>
  2. .pf-icon {
  3. width: 3.125em;
  4. }
  5. @media (max-width:767px) {
  6. .pf-icon {
  7. width: 2.125em;
  8. }
  9. .pf-icons {
  10. gap: 5px;
  11. }
  12. }
  13. .visuallyhidden {
  14. border: 0;
  15. clip: rect(0 0 0 0);
  16. height: 1px;
  17. margin: -1px;
  18. overflow: hidden;
  19. padding: 0;
  20. position: absolute;
  21. width: 1px;
  22. white-space: nowrap;
  23. }
  24. .payment-icons {
  25. list-style: none;
  26. display: flex;
  27. justify-content: center;
  28. margin: 0 !important;
  29. padding: 0 !important;
  30. }
  31. </style>
  32. {%- unless shop.enabled_payment_types == empty -%}
  33. <span class="visuallyhidden">Supported payment methods</span>
  34. <ul class="payment-icons pf-icons">
  35. {%- for type in shop.enabled_payment_types -%}
  36. <li>
  37. {{ type | payment_type_svg_tag: class: 'pf-icon icon--full-color' }}
  38. </li>
  39. {%- endfor -%}
  40. </ul>
  41. {%- endunless -%}
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement