tienda 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +35 -0
  4. data/app/assets/images/tienda/chosen-sprite.png +0 -0
  5. data/app/assets/images/tienda/chosen-sprite@2x.png +0 -0
  6. data/app/assets/images/tienda/document.svg +1 -0
  7. data/app/assets/images/tienda/icons/bag.svg +1 -0
  8. data/app/assets/images/tienda/icons/balance.svg +1 -0
  9. data/app/assets/images/tienda/icons/box.svg +1 -0
  10. data/app/assets/images/tienda/icons/building.svg +1 -0
  11. data/app/assets/images/tienda/icons/chart.svg +1 -0
  12. data/app/assets/images/tienda/icons/chat.svg +1 -0
  13. data/app/assets/images/tienda/icons/checkbox.svg +1 -0
  14. data/app/assets/images/tienda/icons/checkbox2.svg +1 -0
  15. data/app/assets/images/tienda/icons/cloud.svg +1 -0
  16. data/app/assets/images/tienda/icons/cone.svg +1 -0
  17. data/app/assets/images/tienda/icons/credit_card.svg +1 -0
  18. data/app/assets/images/tienda/icons/currency.svg +1 -0
  19. data/app/assets/images/tienda/icons/edit.svg +14 -0
  20. data/app/assets/images/tienda/icons/flowchart.svg +1 -0
  21. data/app/assets/images/tienda/icons/gift.svg +1 -0
  22. data/app/assets/images/tienda/icons/globe.svg +1 -0
  23. data/app/assets/images/tienda/icons/id.svg +1 -0
  24. data/app/assets/images/tienda/icons/id2.svg +1 -0
  25. data/app/assets/images/tienda/icons/locked.svg +1 -0
  26. data/app/assets/images/tienda/icons/report.svg +1 -0
  27. data/app/assets/images/tienda/icons/search.svg +1 -0
  28. data/app/assets/images/tienda/icons/support.svg +1 -0
  29. data/app/assets/images/tienda/icons/tags.svg +1 -0
  30. data/app/assets/images/tienda/icons/toolbox.svg +1 -0
  31. data/app/assets/images/tienda/icons/unlocked.svg +1 -0
  32. data/app/assets/images/tienda/icons/wallet.svg +1 -0
  33. data/app/assets/images/tienda/logo.svg +47 -0
  34. data/app/assets/images/tienda/move.svg +1 -0
  35. data/app/assets/images/tienda/shoppe.svg +25 -0
  36. data/app/assets/images/tienda/square.svg +9 -0
  37. data/app/assets/images/tienda/statuses/accepted.svg +14 -0
  38. data/app/assets/images/tienda/statuses/paid.svg +16 -0
  39. data/app/assets/images/tienda/statuses/received.svg +15 -0
  40. data/app/assets/images/tienda/statuses/rejected.svg +14 -0
  41. data/app/assets/images/tienda/statuses/shipped.svg +14 -0
  42. data/app/assets/images/tienda/table-tear-off.png +0 -0
  43. data/app/assets/javascripts/tienda/application.coffee +119 -0
  44. data/app/assets/javascripts/tienda/chosen.jquery.js +1166 -0
  45. data/app/assets/javascripts/tienda/jquery_ui.js +6 -0
  46. data/app/assets/javascripts/tienda/mousetrap.js +9 -0
  47. data/app/assets/javascripts/tienda/order_form.coffee +47 -0
  48. data/app/assets/stylesheets/tienda/application.scss +585 -0
  49. data/app/assets/stylesheets/tienda/chosen.scss +424 -0
  50. data/app/assets/stylesheets/tienda/dialog.scss +25 -0
  51. data/app/assets/stylesheets/tienda/elements.scss +79 -0
  52. data/app/assets/stylesheets/tienda/printable.scss +67 -0
  53. data/app/assets/stylesheets/tienda/reset.scss +93 -0
  54. data/app/assets/stylesheets/tienda/sub.scss +106 -0
  55. data/app/assets/stylesheets/tienda/variables.scss +1 -0
  56. data/app/controllers/tienda/application_controller.rb +46 -0
  57. data/app/controllers/tienda/attachments_controller.rb +14 -0
  58. data/app/controllers/tienda/countries_controller.rb +47 -0
  59. data/app/controllers/tienda/dashboard_controller.rb +9 -0
  60. data/app/controllers/tienda/delivery_service_prices_controller.rb +45 -0
  61. data/app/controllers/tienda/delivery_services_controller.rb +47 -0
  62. data/app/controllers/tienda/orders_controller.rb +90 -0
  63. data/app/controllers/tienda/payments_controller.rb +33 -0
  64. data/app/controllers/tienda/product_categories_controller.rb +47 -0
  65. data/app/controllers/tienda/products_controller.rb +58 -0
  66. data/app/controllers/tienda/sessions_controller.rb +34 -0
  67. data/app/controllers/tienda/settings_controller.rb +16 -0
  68. data/app/controllers/tienda/stock_level_adjustments_controller.rb +40 -0
  69. data/app/controllers/tienda/tax_rates_controller.rb +49 -0
  70. data/app/controllers/tienda/users_controller.rb +53 -0
  71. data/app/controllers/tienda/variants_controller.rb +50 -0
  72. data/app/helpers/tienda/application_helper.rb +60 -0
  73. data/app/mailers/tienda/order_mailer.rb +25 -0
  74. data/app/mailers/tienda/user_mailer.rb +10 -0
  75. data/app/models/tienda/country.rb +27 -0
  76. data/app/models/tienda/delivery_service.rb +33 -0
  77. data/app/models/tienda/delivery_service_price.rb +31 -0
  78. data/app/models/tienda/order/actions.rb +98 -0
  79. data/app/models/tienda/order/billing.rb +105 -0
  80. data/app/models/tienda/order/delivery.rb +229 -0
  81. data/app/models/tienda/order/states.rb +69 -0
  82. data/app/models/tienda/order.rb +93 -0
  83. data/app/models/tienda/order_item.rb +239 -0
  84. data/app/models/tienda/payment.rb +80 -0
  85. data/app/models/tienda/product/product_attributes.rb +20 -0
  86. data/app/models/tienda/product/variants.rb +51 -0
  87. data/app/models/tienda/product.rb +169 -0
  88. data/app/models/tienda/product_attribute.rb +66 -0
  89. data/app/models/tienda/product_category.rb +23 -0
  90. data/app/models/tienda/setting.rb +68 -0
  91. data/app/models/tienda/stock_level_adjustment.rb +19 -0
  92. data/app/models/tienda/tax_rate.rb +46 -0
  93. data/app/models/tienda/user.rb +49 -0
  94. data/app/validators/permalink_validator.rb +7 -0
  95. data/app/views/layouts/tienda/application.html.haml +34 -0
  96. data/app/views/layouts/tienda/printable.html.haml +11 -0
  97. data/app/views/layouts/tienda/sub.html.haml +10 -0
  98. data/app/views/tienda/countries/_form.html.haml +35 -0
  99. data/app/views/tienda/countries/edit.html.haml +6 -0
  100. data/app/views/tienda/countries/index.html.haml +25 -0
  101. data/app/views/tienda/countries/new.html.haml +7 -0
  102. data/app/views/tienda/delivery_service_prices/_form.html.haml +44 -0
  103. data/app/views/tienda/delivery_service_prices/edit.html.haml +6 -0
  104. data/app/views/tienda/delivery_service_prices/index.html.haml +23 -0
  105. data/app/views/tienda/delivery_service_prices/new.html.haml +6 -0
  106. data/app/views/tienda/delivery_services/_form.html.haml +38 -0
  107. data/app/views/tienda/delivery_services/edit.html.haml +9 -0
  108. data/app/views/tienda/delivery_services/index.html.haml +27 -0
  109. data/app/views/tienda/delivery_services/new.html.haml +6 -0
  110. data/app/views/tienda/order_mailer/accepted.text.erb +12 -0
  111. data/app/views/tienda/order_mailer/received.text.erb +12 -0
  112. data/app/views/tienda/order_mailer/rejected.text.erb +10 -0
  113. data/app/views/tienda/order_mailer/shipped.text.erb +16 -0
  114. data/app/views/tienda/orders/_form.html.haml +55 -0
  115. data/app/views/tienda/orders/_order_details.html.haml +57 -0
  116. data/app/views/tienda/orders/_order_items.html.haml +38 -0
  117. data/app/views/tienda/orders/_order_items_form.html.haml +61 -0
  118. data/app/views/tienda/orders/_payments_form.html.haml +15 -0
  119. data/app/views/tienda/orders/_payments_table.html.haml +37 -0
  120. data/app/views/tienda/orders/_search_form.html.haml +24 -0
  121. data/app/views/tienda/orders/_status_bar.html.haml +35 -0
  122. data/app/views/tienda/orders/despatch_note.html.haml +45 -0
  123. data/app/views/tienda/orders/edit.html.haml +21 -0
  124. data/app/views/tienda/orders/index.html.haml +39 -0
  125. data/app/views/tienda/orders/new.html.haml +14 -0
  126. data/app/views/tienda/orders/show.html.haml +25 -0
  127. data/app/views/tienda/payments/refund.html.haml +13 -0
  128. data/app/views/tienda/product_categories/_form.html.haml +26 -0
  129. data/app/views/tienda/product_categories/edit.html.haml +6 -0
  130. data/app/views/tienda/product_categories/index.html.haml +19 -0
  131. data/app/views/tienda/product_categories/new.html.haml +6 -0
  132. data/app/views/tienda/products/_form.html.haml +118 -0
  133. data/app/views/tienda/products/_table.html.haml +42 -0
  134. data/app/views/tienda/products/edit.html.haml +8 -0
  135. data/app/views/tienda/products/import.html.haml +63 -0
  136. data/app/views/tienda/products/index.html.haml +9 -0
  137. data/app/views/tienda/products/new.html.haml +7 -0
  138. data/app/views/tienda/sessions/new.html.haml +12 -0
  139. data/app/views/tienda/sessions/reset.html.haml +12 -0
  140. data/app/views/tienda/settings/edit.html.haml +19 -0
  141. data/app/views/tienda/shared/error.html.haml +6 -0
  142. data/app/views/tienda/stock_level_adjustments/index.html.haml +40 -0
  143. data/app/views/tienda/tax_rates/form.html.haml +28 -0
  144. data/app/views/tienda/tax_rates/index.html.haml +17 -0
  145. data/app/views/tienda/user_mailer/new_password.text.erb +9 -0
  146. data/app/views/tienda/users/_form.html.haml +27 -0
  147. data/app/views/tienda/users/edit.html.haml +5 -0
  148. data/app/views/tienda/users/index.html.haml +17 -0
  149. data/app/views/tienda/users/new.html.haml +7 -0
  150. data/app/views/tienda/variants/form.html.haml +66 -0
  151. data/app/views/tienda/variants/index.html.haml +33 -0
  152. data/config/locales/en.yml +650 -0
  153. data/config/locales/pl.yml +650 -0
  154. data/config/locales/pt-BR.yml +643 -0
  155. data/config/routes.rb +42 -0
  156. data/db/countries.txt +252 -0
  157. data/db/migrate/20150124094549_create_tienda_initial_schema.rb +184 -0
  158. data/db/seeds.rb +128 -0
  159. data/db/seeds_data/poe400.jpg +0 -0
  160. data/db/seeds_data/snom-870-blk.jpg +0 -0
  161. data/db/seeds_data/snom-870-grey.jpg +0 -0
  162. data/db/seeds_data/snom-mm2.jpg +0 -0
  163. data/db/seeds_data/spa303.jpg +0 -0
  164. data/db/seeds_data/t18p.jpg +0 -0
  165. data/db/seeds_data/t20p.jpg +0 -0
  166. data/db/seeds_data/t22p.jpg +0 -0
  167. data/db/seeds_data/t26p.jpg +0 -0
  168. data/db/seeds_data/t41pn.jpg +0 -0
  169. data/db/seeds_data/t46gn.jpg +0 -0
  170. data/db/seeds_data/w52p.jpg +0 -0
  171. data/db/seeds_data/yhs32.jpg +0 -0
  172. data/lib/tasks/tienda.rake +29 -0
  173. data/lib/tienda/associated_countries.rb +20 -0
  174. data/lib/tienda/country_importer.rb +14 -0
  175. data/lib/tienda/default_navigation.rb +20 -0
  176. data/lib/tienda/engine.rb +48 -0
  177. data/lib/tienda/error.rb +21 -0
  178. data/lib/tienda/errors/inappropriate_delivery_service.rb +6 -0
  179. data/lib/tienda/errors/insufficient_stock_to_fulfil.rb +15 -0
  180. data/lib/tienda/errors/invalid_configuration.rb +6 -0
  181. data/lib/tienda/errors/not_enough_stock.rb +15 -0
  182. data/lib/tienda/errors/payment_declined.rb +6 -0
  183. data/lib/tienda/errors/refund_failed.rb +6 -0
  184. data/lib/tienda/errors/unorderable_item.rb +6 -0
  185. data/lib/tienda/navigation_manager.rb +81 -0
  186. data/lib/tienda/orderable_item.rb +39 -0
  187. data/lib/tienda/settings.rb +26 -0
  188. data/lib/tienda/settings_loader.rb +16 -0
  189. data/lib/tienda/setup_generator.rb +10 -0
  190. data/lib/tienda/version.rb +3 -0
  191. data/lib/tienda/view_helpers.rb +16 -0
  192. data/lib/tienda.rb +59 -0
  193. metadata +604 -0
@@ -0,0 +1,424 @@
1
+ /* @group Base */
2
+ .chosen-container {
3
+ position: relative;
4
+ display: inline-block;
5
+ vertical-align: middle;
6
+ font-size: 13px;
7
+ zoom: 1;
8
+ *display: inline;
9
+ -webkit-user-select: none;
10
+ -moz-user-select: none;
11
+ user-select: none;
12
+ }
13
+ .chosen-container .chosen-drop {
14
+ position: absolute;
15
+ top: 100%;
16
+ left: -9999px;
17
+ z-index: 1010;
18
+ -webkit-box-sizing: border-box;
19
+ -moz-box-sizing: border-box;
20
+ box-sizing: border-box;
21
+ width: 100%;
22
+ border: 1px solid #aaa;
23
+ border-top: 0;
24
+ background: #fff;
25
+ box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
26
+ }
27
+ .chosen-container.chosen-with-drop .chosen-drop {
28
+ left: 0;
29
+ }
30
+ .chosen-container a {
31
+ cursor: pointer;
32
+ }
33
+
34
+ /* @end */
35
+ /* @group Single Chosen */
36
+ .chosen-container-single .chosen-single {
37
+ position: relative;
38
+ display: block;
39
+ overflow: hidden;
40
+ padding: 0 0 0 8px;
41
+ height: 23px;
42
+ border: 1px solid #aaa;
43
+ border-radius: 5px;
44
+ background-color: #fff;
45
+ background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
46
+ background: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
47
+ background: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
48
+ background: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
49
+ background: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
50
+ background-clip: padding-box;
51
+ box-shadow: 0 0 3px white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
52
+ color: #444;
53
+ text-decoration: none;
54
+ white-space: nowrap;
55
+ line-height: 24px;
56
+ }
57
+ .chosen-container-single .chosen-default {
58
+ color: #999;
59
+ }
60
+ .chosen-container-single .chosen-single span {
61
+ display: block;
62
+ overflow: hidden;
63
+ margin-right: 26px;
64
+ text-overflow: ellipsis;
65
+ white-space: nowrap;
66
+ }
67
+ .chosen-container-single .chosen-single-with-deselect span {
68
+ margin-right: 38px;
69
+ }
70
+ .chosen-container-single .chosen-single abbr {
71
+ position: absolute;
72
+ top: 6px;
73
+ right: 26px;
74
+ display: block;
75
+ width: 12px;
76
+ height: 12px;
77
+ background: image-url('tienda/chosen-sprite.png') -42px 1px no-repeat;
78
+ font-size: 1px;
79
+ }
80
+ .chosen-container-single .chosen-single abbr:hover {
81
+ background-position: -42px -10px;
82
+ }
83
+ .chosen-container-single.chosen-disabled .chosen-single abbr:hover {
84
+ background-position: -42px -10px;
85
+ }
86
+ .chosen-container-single .chosen-single div {
87
+ position: absolute;
88
+ top: 0;
89
+ right: 0;
90
+ display: block;
91
+ width: 18px;
92
+ height: 100%;
93
+ }
94
+ .chosen-container-single .chosen-single div b {
95
+ display: block;
96
+ width: 100%;
97
+ height: 100%;
98
+ background: image-url('tienda/chosen-sprite.png') no-repeat 0px 2px;
99
+ }
100
+ .chosen-container-single .chosen-search {
101
+ position: relative;
102
+ z-index: 1010;
103
+ margin: 0;
104
+ padding: 3px 4px;
105
+ white-space: nowrap;
106
+ }
107
+ .chosen-container-single .chosen-search input[type="text"] {
108
+ -webkit-box-sizing: border-box;
109
+ -moz-box-sizing: border-box;
110
+ box-sizing: border-box;
111
+ margin: 1px 0;
112
+ padding: 4px 20px 4px 5px;
113
+ width: 100%;
114
+ height: auto;
115
+ outline: 0;
116
+ border: 1px solid #ccc;
117
+ background: white image-url('tienda/chosen-sprite.png') no-repeat 100% -20px;
118
+ background: image-url('tienda/chosen-sprite.png') no-repeat 100% -20px, -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
119
+ background: image-url('tienda/chosen-sprite.png') no-repeat 100% -20px, -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
120
+ background: image-url('tienda/chosen-sprite.png') no-repeat 100% -20px, -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
121
+ background: image-url('tienda/chosen-sprite.png') no-repeat 100% -20px, -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
122
+ background: image-url('tienda/chosen-sprite.png') no-repeat 100% -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
123
+ font-size: 1em;
124
+ font-family: sans-serif;
125
+ line-height: normal;
126
+ border-radius: 0;
127
+ }
128
+ .chosen-container-single .chosen-drop {
129
+ margin-top: -1px;
130
+ border-radius: 0 0 4px 4px;
131
+ background-clip: padding-box;
132
+ }
133
+ .chosen-container-single.chosen-container-single-nosearch .chosen-search {
134
+ position: absolute;
135
+ left: -9999px;
136
+ }
137
+
138
+ /* @end */
139
+ /* @group Results */
140
+ .chosen-container .chosen-results {
141
+ position: relative;
142
+ overflow-x: hidden;
143
+ overflow-y: auto;
144
+ margin: 0 4px 4px 0;
145
+ padding: 0 0 0 4px;
146
+ max-height: 240px;
147
+ -webkit-overflow-scrolling: touch;
148
+ }
149
+ .chosen-container .chosen-results li {
150
+ display: none;
151
+ margin: 0;
152
+ padding: 5px 6px;
153
+ list-style: none;
154
+ line-height: 15px;
155
+ }
156
+ .chosen-container .chosen-results li.active-result {
157
+ display: list-item;
158
+ cursor: pointer;
159
+ }
160
+ .chosen-container .chosen-results li.disabled-result {
161
+ display: list-item;
162
+ color: #ccc;
163
+ cursor: default;
164
+ }
165
+ .chosen-container .chosen-results li.highlighted {
166
+ background-color: #3875d7;
167
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
168
+ background-image: -webkit-linear-gradient(#3875d7 20%, #2a62bc 90%);
169
+ background-image: -moz-linear-gradient(#3875d7 20%, #2a62bc 90%);
170
+ background-image: -o-linear-gradient(#3875d7 20%, #2a62bc 90%);
171
+ background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
172
+ color: #fff;
173
+ }
174
+ .chosen-container .chosen-results li.no-results {
175
+ display: list-item;
176
+ background: #f4f4f4;
177
+ }
178
+ .chosen-container .chosen-results li.group-result {
179
+ display: list-item;
180
+ font-weight: bold;
181
+ cursor: default;
182
+ }
183
+ .chosen-container .chosen-results li.group-option {
184
+ padding-left: 15px;
185
+ }
186
+ .chosen-container .chosen-results li em {
187
+ font-style: normal;
188
+ text-decoration: underline;
189
+ }
190
+
191
+ /* @end */
192
+ /* @group Multi Chosen */
193
+ .chosen-container-multi .chosen-choices {
194
+ position: relative;
195
+ overflow: hidden;
196
+ -webkit-box-sizing: border-box;
197
+ -moz-box-sizing: border-box;
198
+ box-sizing: border-box;
199
+ margin: 0;
200
+ padding: 5px;
201
+ width: 100%;
202
+ height: auto !important;
203
+ height: 1%;
204
+ border: 1px solid #ccc;
205
+ background-color: #fff;
206
+ cursor: text;
207
+ }
208
+ .chosen-container-multi .chosen-choices li {
209
+ float: left;
210
+ list-style: none;
211
+ }
212
+ .chosen-container-multi .chosen-choices li.search-field {
213
+ margin: 0;
214
+ padding: 0;
215
+ white-space: nowrap;
216
+ }
217
+ .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
218
+ margin: 1px 0;
219
+ padding: 5px;
220
+ height: 15px;
221
+ outline: 0;
222
+ border: 0 !important;
223
+ background: transparent !important;
224
+ box-shadow: none;
225
+ color: #666;
226
+ font-size: 100%;
227
+ font-family: sans-serif;
228
+ line-height: normal;
229
+ border-radius: 0;
230
+ }
231
+ .chosen-container-multi .chosen-choices li.search-field .default {
232
+ color: #999;
233
+ }
234
+ .chosen-container-multi .chosen-choices li.search-choice {
235
+ position: relative;
236
+ margin: 3px 0 3px 5px;
237
+ padding: 3px 20px 3px 5px;
238
+ border: 1px solid #ccc;
239
+ border-radius: 3px;
240
+ background-color: #e4e4e4;
241
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
242
+ background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
243
+ background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
244
+ background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
245
+ background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
246
+ background-clip: padding-box;
247
+ box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
248
+ color: #333;
249
+ line-height: 13px;
250
+ cursor: default;
251
+ }
252
+ .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
253
+ position: absolute;
254
+ top: 4px;
255
+ right: 3px;
256
+ display: block;
257
+ width: 12px;
258
+ height: 12px;
259
+ background: image-url('tienda/chosen-sprite.png') -42px 1px no-repeat;
260
+ font-size: 1px;
261
+ }
262
+ .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
263
+ background-position: -42px -10px;
264
+ }
265
+ .chosen-container-multi .chosen-choices li.search-choice-disabled {
266
+ padding-right: 5px;
267
+ border: 1px solid #ccc;
268
+ background-color: #e4e4e4;
269
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
270
+ background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
271
+ background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
272
+ background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
273
+ background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
274
+ color: #666;
275
+ }
276
+ .chosen-container-multi .chosen-choices li.search-choice-focus {
277
+ background: #d4d4d4;
278
+ }
279
+ .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
280
+ background-position: -42px -10px;
281
+ }
282
+ .chosen-container-multi .chosen-results {
283
+ margin: 0;
284
+ padding: 0;
285
+ }
286
+ .chosen-container-multi .chosen-drop .result-selected {
287
+ display: list-item;
288
+ color: #ccc;
289
+ cursor: default;
290
+ }
291
+
292
+ /* @end */
293
+ /* @group Active */
294
+ .chosen-container-active .chosen-single {
295
+ border: 1px solid #9AC835;
296
+ //box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
297
+ }
298
+ .chosen-container-active.chosen-with-drop .chosen-single {
299
+ border: 1px solid #ccc;
300
+ -moz-border-radius-bottomright: 0;
301
+ border-bottom-right-radius: 0;
302
+ -moz-border-radius-bottomleft: 0;
303
+ border-bottom-left-radius: 0;
304
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
305
+ background-image: -webkit-linear-gradient(#eeeeee 20%, #ffffff 80%);
306
+ background-image: -moz-linear-gradient(#eeeeee 20%, #ffffff 80%);
307
+ background-image: -o-linear-gradient(#eeeeee 20%, #ffffff 80%);
308
+ background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);
309
+ box-shadow: 0 1px 0 #fff inset;
310
+ }
311
+ .chosen-container-active.chosen-with-drop .chosen-single div {
312
+ border-left: none;
313
+ background: transparent;
314
+ }
315
+ .chosen-container-active.chosen-with-drop .chosen-single div b {
316
+ background-position: -18px 2px;
317
+ }
318
+ .chosen-container-active .chosen-choices {
319
+ border: 1px solid #9AC835;
320
+ }
321
+ .chosen-container-active .chosen-choices li.search-field input[type="text"] {
322
+ color: #111 !important;
323
+ }
324
+
325
+ /* @end */
326
+ /* @group Disabled Support */
327
+ .chosen-disabled {
328
+ opacity: 0.5 !important;
329
+ cursor: default;
330
+ }
331
+ .chosen-disabled .chosen-single {
332
+ cursor: default;
333
+ }
334
+ .chosen-disabled .chosen-choices .search-choice .search-choice-close {
335
+ cursor: default;
336
+ }
337
+
338
+ /* @end */
339
+ /* @group Right to Left */
340
+ .chosen-rtl {
341
+ text-align: right;
342
+ }
343
+ .chosen-rtl .chosen-single {
344
+ overflow: visible;
345
+ padding: 0 8px 0 0;
346
+ }
347
+ .chosen-rtl .chosen-single span {
348
+ margin-right: 0;
349
+ margin-left: 26px;
350
+ direction: rtl;
351
+ }
352
+ .chosen-rtl .chosen-single-with-deselect span {
353
+ margin-left: 38px;
354
+ }
355
+ .chosen-rtl .chosen-single div {
356
+ right: auto;
357
+ left: 3px;
358
+ }
359
+ .chosen-rtl .chosen-single abbr {
360
+ right: auto;
361
+ left: 26px;
362
+ }
363
+ .chosen-rtl .chosen-choices li {
364
+ float: right;
365
+ }
366
+ .chosen-rtl .chosen-choices li.search-field input[type="text"] {
367
+ direction: rtl;
368
+ }
369
+ .chosen-rtl .chosen-choices li.search-choice {
370
+ margin: 3px 5px 3px 0;
371
+ padding: 3px 5px 3px 19px;
372
+ }
373
+ .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
374
+ right: auto;
375
+ left: 4px;
376
+ }
377
+ .chosen-rtl.chosen-container-single-nosearch .chosen-search,
378
+ .chosen-rtl .chosen-drop {
379
+ left: 9999px;
380
+ }
381
+ .chosen-rtl.chosen-container-single .chosen-results {
382
+ margin: 0 0 4px 4px;
383
+ padding: 0 4px 0 0;
384
+ }
385
+ .chosen-rtl .chosen-results li.group-option {
386
+ padding-right: 15px;
387
+ padding-left: 0;
388
+ }
389
+ .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
390
+ border-right: none;
391
+ }
392
+ .chosen-rtl .chosen-search input[type="text"] {
393
+ padding: 4px 5px 4px 20px;
394
+ background: white image-url('tienda/chosen-sprite.png') no-repeat -30px -20px;
395
+ background: image-url('tienda/chosen-sprite.png') no-repeat -30px -20px, -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
396
+ background: image-url('tienda/chosen-sprite.png') no-repeat -30px -20px, -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
397
+ background: image-url('tienda/chosen-sprite.png') no-repeat -30px -20px, -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
398
+ background: image-url('tienda/chosen-sprite.png') no-repeat -30px -20px, -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
399
+ background: image-url('tienda/chosen-sprite.png') no-repeat -30px -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
400
+ direction: rtl;
401
+ }
402
+ .chosen-rtl.chosen-container-single .chosen-single div b {
403
+ background-position: 6px 2px;
404
+ }
405
+ .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
406
+ background-position: -12px 2px;
407
+ }
408
+
409
+ /* @end */
410
+ /* @group Retina compatibility */
411
+ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
412
+ .chosen-rtl .chosen-search input[type="text"],
413
+ .chosen-container-single .chosen-single abbr,
414
+ .chosen-container-single .chosen-single div b,
415
+ .chosen-container-single .chosen-search input[type="text"],
416
+ .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
417
+ .chosen-container .chosen-results-scroll-down span,
418
+ .chosen-container .chosen-results-scroll-up span {
419
+ background-image: image-url('tienda/chosen-sprite@2x.png') !important;
420
+ background-size: 52px 37px !important;
421
+ background-repeat: no-repeat !important;
422
+ }
423
+ }
424
+ /* @end */
@@ -0,0 +1,25 @@
1
+ div.niftyDialog {
2
+ h2 {
3
+ background:#fff;
4
+ border:0;
5
+ padding:0;
6
+ font-size:1.3em;
7
+ border-bottom:1px solid #000;
8
+ padding-bottom:4px;
9
+ margin-bottom:10px;
10
+ color:#111;
11
+ }
12
+ padding:15px;
13
+ nav.pagination { margin:0; margin-top:15px;}
14
+ p.intro { line-height:1.5; color:#666; margin:6px 0;}
15
+
16
+ form.refundForm {
17
+ overflow:hidden;
18
+ margin:10px;
19
+ p.intro { margin-bottom:25px;}
20
+ .moneyInput { float:left; }
21
+ .moneyInput .currency { font-size:1.4em;}
22
+ .moneyInput input { font-size:1.4em}
23
+ p.submit { float:right;}
24
+ }
25
+ }
@@ -0,0 +1,79 @@
1
+ @import 'variables';
2
+
3
+ //
4
+ // Buttons styles
5
+ //
6
+ .button {
7
+ border:0;
8
+ padding:0;
9
+ background:none;
10
+ text-decoration:none;
11
+ font-size:12px;
12
+ font-weight:500 !important;
13
+ text-transform:uppercase;
14
+ font-family:$font;
15
+ color:#fff !important;
16
+ padding:8px 20px;
17
+ border-radius:30px;
18
+ background-color:#40454D;
19
+ display:inline-block;
20
+ &:active {
21
+ background:#535963;
22
+ }
23
+
24
+ &.green {
25
+ background-color:#96BF48;
26
+ border-color:#96BF48;
27
+ border-bottom-color:#86a350;
28
+ &:active { background-color:#A8D750}
29
+ }
30
+
31
+ &.loading {
32
+ background-image:url(/images/spinners/button-green.gif);
33
+ background-repeat:no-repeat;
34
+ background-position:50% 50%;
35
+ color:transparent !important;
36
+ }
37
+
38
+ &.purple {
39
+ background-color:#C17391;
40
+ border-color:#C17391;
41
+ border-bottom-color:#a7667f;
42
+ &:active { background:#DC83A6}
43
+ }
44
+
45
+ &.orange {
46
+ background-color:#c8541b;
47
+ border-color:#c8541b;
48
+ border-bottom-color:#974117;
49
+ &:active { background:#e75d19}
50
+ }
51
+
52
+ &.grey {
53
+ background-color:#777;
54
+ border-color:#777;
55
+ border-bottom-color:#777;
56
+ &:active { background:#888}
57
+ }
58
+
59
+ &.white {
60
+ background-color:#fff;
61
+ color:#333 !important;
62
+ }
63
+
64
+ &.white-green {
65
+ background-color:#fff;
66
+ color:#96BF48 !important;
67
+ }
68
+
69
+
70
+ &.button-mini {
71
+ font-size:11px;
72
+ padding:4px 10px;
73
+ box-shadow:none;
74
+ font-weight:normal;
75
+ text-shadow:none;
76
+ text-transform:none;
77
+ }
78
+
79
+ }
@@ -0,0 +1,67 @@
1
+ /*
2
+ *= require tienda/reset
3
+ */
4
+ html { font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; color:#000; font-size:12px;background:#efefef;}
5
+ #content {
6
+ background:#fff;
7
+ margin:5%;
8
+ outline:1px solid #ccc;
9
+ padding:35px;
10
+ }
11
+
12
+ div.despatchNote {
13
+ header {
14
+ float:left;
15
+ h1 {
16
+ font-size:1.8em;
17
+ font-weight:300;
18
+ }
19
+ h2 { margin-top:5px; font-size:2.3em; font-weight:500; }
20
+ width:40%;
21
+ }
22
+
23
+ .address {
24
+ border:1px solid #000;
25
+ padding:25px;
26
+ margin-left:45%;
27
+ line-height:1.5;
28
+ font-size:1.3em;
29
+ p.name { font-size:1.2em; font-weight:500;}
30
+ }
31
+ table.details {
32
+ width:100%;
33
+ margin:25px 0;
34
+ td, th {
35
+ border:1px solid #000;
36
+ padding:10px;
37
+ text-align:center;
38
+ }
39
+ th { background:#efefef;}
40
+ }
41
+
42
+ table.items {
43
+ width:100%;
44
+ margin:25px 0;
45
+ td, th {
46
+ border:1px solid #000;
47
+ padding:10px;
48
+ text-align:center;
49
+ &.check { width:5%;}
50
+ }
51
+ th { background:#efefef;}
52
+ }
53
+
54
+ p.footer {
55
+ font-size:1.2em;
56
+ border:1px solid #000;
57
+ padding:15px;
58
+ text-align:center;
59
+ }
60
+ }
61
+
62
+
63
+ @media print {
64
+ html { background:none;}
65
+ body {margin:5%;}
66
+ #content { margin:0; padding:0; outline:0;}
67
+ }
@@ -0,0 +1,93 @@
1
+ html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, time, mark, audio, video {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+ outline: 0;
6
+ font-size: 100%;
7
+ letter-spacing:0;
8
+ vertical-align: baseline;
9
+ background: transparent;
10
+ }
11
+
12
+ article, aside, figure, footer, header, hgroup, nav, section {display: block;}
13
+
14
+ img,object,embed {max-width: 100%;}
15
+ ul {list-style: none;}
16
+ blockquote, q {quotes: none;}
17
+ b,strong { font-weight:bold;}
18
+ blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}
19
+
20
+ a {margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent;}
21
+
22
+ del {text-decoration: line-through;}
23
+
24
+ abbr[title], dfn[title] {border-bottom: 1px dotted #000; cursor: help;}
25
+
26
+ /* tables still need cellspacing="0" in the markup */
27
+ table {border-collapse: collapse; border-spacing: 0;}
28
+ th {font-weight: bold; vertical-align: bottom;}
29
+ td {font-weight: normal; vertical-align: top;}
30
+
31
+ hr {display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0;}
32
+
33
+ input, select {vertical-align: middle;}
34
+
35
+ pre {
36
+ white-space: pre; /* CSS2 */
37
+ white-space: pre-wrap; /* CSS 2.1 */
38
+ white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
39
+ word-wrap: break-word; /* IE */
40
+ }
41
+
42
+ input[type="radio"] {vertical-align: text-bottom;}
43
+ input[type="checkbox"] {vertical-align: bottom; *vertical-align: baseline;}
44
+ .ie6 input {vertical-align: text-bottom;}
45
+
46
+ select, input, textarea {font: 99% sans-serif;}
47
+
48
+ table {font-size: inherit; font: 100%;}
49
+
50
+ /* Accessible focus treatment
51
+ people.opera.com/patrickl/experiments/keyboard/test */
52
+ a:hover, a:active {outline: none;}
53
+
54
+ small {font-size: 85%;}
55
+
56
+ strong, th {font-weight: bold;}
57
+
58
+ td, td img {vertical-align: top;}
59
+
60
+ /* Make sure sup and sub don't screw with your line-heights
61
+ gist.github.com/413930 */
62
+ sub, sup {font-size: 75%; line-height: 0; position: relative;}
63
+ sup {top: -0.5em;}
64
+ sub {bottom: -0.25em;}
65
+
66
+ /* standardize any monospaced elements */
67
+ pre, code, kbd, samp {font-family: monospace, sans-serif;}
68
+
69
+ /* hand cursor on clickable elements */
70
+ .clickable,
71
+ label,
72
+ input[type=button],
73
+ input[type=submit],
74
+ button {cursor: pointer;}
75
+
76
+ /* Webkit browsers add a 2px margin outside the chrome of form elements */
77
+ button, input, select, textarea {margin: 0;}
78
+
79
+ /* make buttons play nice in IE */
80
+ button {width: auto; overflow: visible;}
81
+
82
+ /* scale images in IE7 more attractively */
83
+ .ie7 img {-ms-interpolation-mode: bicubic;}
84
+
85
+ /* prevent BG image flicker upon hover */
86
+ .ie6 html {filter: expression(document.execCommand("BackgroundImageCache", false, true));}
87
+
88
+ /* let's clear some floats */
89
+ .clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
90
+ .clearfix:after { clear: both; }
91
+ .clearfix { zoom: 1; }
92
+
93
+ select, input, textarea { outline: none;}