simple-payments.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. .jetpack-simple-payments-wrapper {
  2. margin-bottom: 1.5em;
  3. }
  4. /* Higher specificity in order to reset paragraph style */
  5. body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p {
  6. margin: 0 0 1.5em;
  7. padding: 0;
  8. }
  9. .jetpack-simple-payments-product {
  10. display: flex;
  11. flex-direction: column;
  12. }
  13. .jetpack-simple-payments-product-image {
  14. flex: 0 0 30%;
  15. margin-bottom: 1.5em;
  16. }
  17. .jetpack-simple-payments-image {
  18. box-sizing: border-box;
  19. min-width: 70px;
  20. padding-top: 100%;
  21. position: relative;
  22. }
  23. /* Higher specificity in order to trump theme's style */
  24. body .jetpack-simple-payments-wrapper .jetpack-simple-payments-product-image .jetpack-simple-payments-image img.size-full {
  25. border: 0;
  26. border-radius: 0;
  27. height: auto;
  28. left: 50%;
  29. margin: 0;
  30. max-height: 100%;
  31. max-width: 100%;
  32. padding: 0;
  33. position: absolute;
  34. top: 50%;
  35. transform: translate(-50%, -50%);
  36. width: auto;
  37. }
  38. .jetpack-simple-payments-title p,
  39. .jetpack-simple-payments-price p {
  40. font-weight: bold;
  41. }
  42. .jetpack-simple-payments-purchase-box {
  43. align-items: flex-start;
  44. display: flex;
  45. }
  46. .jetpack-simple-payments-items {
  47. flex: 0 0 auto;
  48. margin-right: 10px;
  49. }
  50. input[type="number"].jetpack-simple-payments-items-number {
  51. font-size: 16px;
  52. line-height: 1;
  53. max-width: 60px;
  54. padding: 4px 8px;
  55. }
  56. .jetpack-simple-payments-button iframe {
  57. margin: 0;
  58. }
  59. .jetpack-simple-payments-purchase-message {
  60. background-color: rgba(255, 255, 255, 0.7);
  61. border: 2px solid #fff;
  62. border-radius: 2px;
  63. box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
  64. display: none;
  65. margin-bottom: 1.5em;
  66. min-height: 48px;
  67. padding: 1em;
  68. position: relative;
  69. }
  70. .jetpack-simple-payments-purchase-message:before {
  71. font-family: dashicons !important;
  72. font-size: 48px !important;
  73. line-height: 1 !important;
  74. position: absolute;
  75. speak: none;
  76. top: 50%;
  77. left: 0;
  78. transform: translateY(-50%);
  79. -webkit-font-smoothing: antialiased;
  80. -moz-osx-font-smoothing: grayscale;
  81. }
  82. .jetpack-simple-payments-purchase-message.show {
  83. display: block;
  84. }
  85. .jetpack-simple-payments-purchase-message.success:before {
  86. color: #4ab866;
  87. content: "\f147";
  88. }
  89. .jetpack-simple-payments-purchase-message.error:before {
  90. color: #d94f4f;
  91. content: "\f335";
  92. }
  93. /* Higher specificity in order to reset */
  94. body .jetpack-simple-payments-wrapper .jetpack-simple-payments-purchase-message p {
  95. color: #222;
  96. margin: 0 0 0.5em;
  97. padding: 0 0 0 40px;
  98. }
  99. body .jetpack-simple-payments-wrapper .jetpack-simple-payments-purchase-message p:last-child {
  100. margin: 0;
  101. }
  102. @media screen and (min-width: 400px) {
  103. .jetpack-simple-payments-product {
  104. flex-direction: row;
  105. }
  106. .jetpack-simple-payments-product-image + .jetpack-simple-payments-details {
  107. flex-basis: 70%;
  108. padding-left: 1em;
  109. }
  110. }