Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | None | 0 0
  1. <script>
  2.  
  3. $( document ).ready(function() {
  4.  
  5. var w = window.innerWidth;
  6. if (w < 630) {
  7.  
  8. $( '.builder_verify_button .btn-success ' ).remove();
  9.  
  10. $( '.next-btn' ).after( '<div id="builder_verify_button" class="builder_verify_button" style="display:none"><button type="button" class="btn btn-success" onclick="popup_confirm()">Finish</button></div>' );
  11.  
  12. $( '.steps_body' ).after('<div id="total_price" class="total_price">$0.00</div>');
  13. }
  14.  
  15. var image_resize = $('.option_image_pane').width();
  16. $('div#option_image').css('max-height', image_resize);
  17.  
  18. });
  19. </script>
  20.  
  21. <style>
  22.  
  23. @media (max-width: 630px) {
  24.  
  25.  
  26. .step_title {
  27. font-size: 18px !important;
  28. }
  29.  
  30. #option_image {
  31. height: auto !important;
  32. }
  33.  
  34. #step_container {
  35. font-size: small !important;
  36. }
  37.  
  38. .shappify_product_builder .total_price {
  39. margin-top: 10px !important;
  40. margin-left: auto !important;
  41. margin-right: auto !important;
  42. display: block !important;
  43. width: 50px !important;
  44. }
  45.  
  46. .verify_pane .total_price {
  47. padding-top: 5px !important;
  48. }
  49.  
  50. #navigation_buttons button {
  51. padding: 10px 18px !important;
  52. }
  53.  
  54. #builder_verify_button {
  55. margin-top: 0px !important;
  56. margin-left: 0px !important;
  57. }
  58.  
  59. .option_image_pane {
  60. height: auto !important;
  61. min-height: 250px !important;
  62. padding-bottom: 10px !important;
  63. }
  64.  
  65. .shappify_product_builder .option_image_pane, .steps_body {
  66. width: 100% !important;
  67. }
  68.  
  69. .step_header {
  70. width:100% !important;
  71. }
  72.  
  73. .shappify_product_builder .option_image_pane {
  74. border: 1px solid #ddd !important;
  75. }
  76.  
  77. .shappify_product_builder {
  78. width: 80% !important;
  79. }
  80.  
  81. .option_value, .option_id {
  82. width: 90% !important;
  83. margin-left: auto !important;
  84. margin-right: auto !important;
  85. display: block !important;
  86. }
  87.  
  88. .option_value select {
  89. width: 100% !important;
  90. }
  91.  
  92. .choices {
  93. width:100% !important;
  94. margin:0px !important;
  95. height: auto !important;
  96. padding: 0px !important;
  97. border-left: 0px !important;
  98. border-right: 0px !important;
  99. font-size: 12px !important;
  100. }
  101.  
  102. .choices.selected {
  103. border-color: lightgrey !important;
  104. border-left: 0px !important;
  105. border-right: 0px !important;
  106. background-color: #DDD !important;
  107. }
  108.  
  109. .option_image {
  110. width: 20% !important;
  111. max-width: 325px !important;
  112. }
  113.  
  114. .shappify_product_builder .choices img {
  115. float: left !important;
  116. margin: 0px !important;
  117. width: 25% !important;
  118. height: auto !important;
  119. }
  120.  
  121. .steps_body, .option_choices {
  122. padding: 0px !important;
  123. margin:0px !important;
  124. }
  125.  
  126. .step_details {
  127. height: 350px !important;
  128. }
  129.  
  130.  
  131. .step_container {
  132. text-align: center !important;
  133. }
  134.  
  135. .steps_body {
  136. height: 425px !important;;
  137. }
  138.  
  139. .option_image_pane {
  140. margin-top:30px !important;
  141. }
  142.  
  143. .step_header {
  144. display: none !important;
  145. font-size: 20px !important;
  146. padding: 0px !important;
  147. }
  148.  
  149. .current {
  150. display: block !important;
  151. }
  152.  
  153. .shappify_product_builder .total_price {
  154. font-size: 26px !important;
  155. }
  156. }
  157.  
  158. @media (max-width: 768px) {
  159. .tooltip {
  160. display: none !important;
  161. }
  162.  
  163.  
  164. .shappify_product_builder {
  165. max-width: 1060px !important;
  166. margin-left: auto !important;
  167. margin-right: auto !important;
  168. color:black !important;
  169. }
  170.  
  171.  
  172. .navigation_buttons {
  173. display: block !important;
  174. }
  175.  
  176. .shappify_product_builder .choices img {
  177. margin: 5px 0px 5px 5px !important;
  178. }
  179.  
  180. .description {
  181. margin: 10px !important;
  182. }
  183.  
  184. .shappify_product_builder .option_image .spritespin-stage {
  185. margin-left: auto !important;
  186. margin-right: auto !important;
  187. position: inherit !important;
  188. }
  189.  
  190. #builder_addtocart_button {
  191. clear:both !important;
  192. padding-top:5px !important;
  193. }
  194.  
  195. div#add_qty {
  196. padding-top: 5px !important;
  197. }
  198. input#qty {
  199. margin-top: -5px !important;
  200. }
  201. }
  202.  
  203. .step_info_facebox {
  204. width: auto !important;
  205. }
  206.  
  207. #facebox {
  208. top: 0 !important;
  209. left: 0 !important;
  210. width: 100% !important;\
  211. }
  212.  
  213. .step_info_facebox .step_info_description {
  214. width: auto !important;
  215. }
  216.  
  217. #facebox .popup {
  218. position: relative;
  219. border: 15px solid rgba(0,0,0,0) !important;
  220. -webkit-box-shadow: 0 0 0 !important;
  221. -moz-box-shadow: 0 0 0 !important;
  222. box-shadow: 0 0 0 !important;
  223. }
  224.  
  225. div#image_preview img {
  226. height: auto !important;
  227. }
  228.  
  229. #facebox .content {
  230. width: 100% !important;
  231. box-sizing: border-box !important;
  232. }
  233.  
  234. div#image_preview {
  235. max-width: 325px !important;
  236. margin-left: auto;
  237. margin-right: auto;
  238. }
  239.  
  240. .steps {
  241. width: 84% !important;
  242. margin-left: auto !important;
  243. margin-right: auto !important;
  244. }
  245.  
  246. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement