cd2_catton_cms 1.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (306) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +37 -0
  3. data/app/assets/config/c_manifest.js +2 -0
  4. data/app/assets/images/c/drag_handle.gif +0 -0
  5. data/app/assets/images/c/login_background.jpg +0 -0
  6. data/app/assets/images/c/main_application/hero.jpg +0 -0
  7. data/app/assets/images/c/main_application/search.png +0 -0
  8. data/app/assets/images/c/placeholder_product_image.png +0 -0
  9. data/app/assets/images/c/select_arrow_down_blk.png +0 -0
  10. data/app/assets/images/c/small_icon.png +0 -0
  11. data/app/assets/images/c/vendor/chosen-sprite.png +0 -0
  12. data/app/assets/javascripts/c/application.js +59 -0
  13. data/app/assets/javascripts/c/change_tag.js +49 -0
  14. data/app/assets/javascripts/c/chosen.js +2 -0
  15. data/app/assets/javascripts/c/confirm_delete.js +55 -0
  16. data/app/assets/javascripts/c/draggable_tree.js +223 -0
  17. data/app/assets/javascripts/c/dropzone_init.js +98 -0
  18. data/app/assets/javascripts/c/fake_table.js +87 -0
  19. data/app/assets/javascripts/c/master_form2/collection.js +180 -0
  20. data/app/assets/javascripts/c/master_form2/eu_cookie.js +1 -0
  21. data/app/assets/javascripts/c/master_form2/jrecord.js +116 -0
  22. data/app/assets/javascripts/c/master_form2/master_form.coffee +4 -0
  23. data/app/assets/javascripts/c/split_buttons.js.erb +15 -0
  24. data/app/assets/javascripts/c/things_to_be_done.js +138 -0
  25. data/app/assets/javascripts/c/unloadevent.js +35 -0
  26. data/app/assets/stylesheets/c/_core.sass +237 -0
  27. data/app/assets/stylesheets/c/_engine.sass +4 -0
  28. data/app/assets/stylesheets/c/_variables.sass +32 -0
  29. data/app/assets/stylesheets/c/_vendor.sass +6 -0
  30. data/app/assets/stylesheets/c/application/checkout/_cart.sass +85 -0
  31. data/app/assets/stylesheets/c/application/checkout/_checkout.sass +87 -0
  32. data/app/assets/stylesheets/c/application/elements/buttons.sass +34 -0
  33. data/app/assets/stylesheets/c/application/elements/forms.sass +135 -0
  34. data/app/assets/stylesheets/c/application/elements/shadows.sass +23 -0
  35. data/app/assets/stylesheets/c/application/partials/_breadcrumbs.sass +10 -0
  36. data/app/assets/stylesheets/c/application/partials/_categories_sidebars/_1.sass +53 -0
  37. data/app/assets/stylesheets/c/application/partials/_categories_sidebars/_2.sass +77 -0
  38. data/app/assets/stylesheets/c/application/partials/_footer.sass +43 -0
  39. data/app/assets/stylesheets/c/application/partials/_header.sass +317 -0
  40. data/app/assets/stylesheets/c/engine/_draggable_trees.sass +68 -0
  41. data/app/assets/stylesheets/c/engine/_form_pages.sass +153 -0
  42. data/app/assets/stylesheets/c/engine/_header_bar.sass +29 -0
  43. data/app/assets/stylesheets/c/engine/_index_header.sass +17 -0
  44. data/app/assets/stylesheets/c/engine/_layout.sass +15 -0
  45. data/app/assets/stylesheets/c/engine/_login.sass +38 -0
  46. data/app/assets/stylesheets/c/engine/_navbar.sass +19 -0
  47. data/app/assets/stylesheets/c/engine/_pagination.sass +16 -0
  48. data/app/assets/stylesheets/c/engine/_settings.sass +5 -0
  49. data/app/assets/stylesheets/c/engine/_sidebar.sass +20 -0
  50. data/app/assets/stylesheets/c/engine/_tables.sass +76 -0
  51. data/app/assets/stylesheets/c/engine/flash_messages.sass +2 -0
  52. data/app/assets/stylesheets/c/print_application.sass +167 -0
  53. data/app/assets/stylesheets/c/vendor/_flex_mixins.scss +394 -0
  54. data/app/assets/stylesheets/c/vendor/_normalize.sass +340 -0
  55. data/app/controllers/c/admin/blogs_controller.rb +57 -0
  56. data/app/controllers/c/admin/devise/passwords_controller.rb +5 -0
  57. data/app/controllers/c/admin/devise/sessions_controller.rb +5 -0
  58. data/app/controllers/c/admin/documents_controller.rb +50 -0
  59. data/app/controllers/c/admin/enquiries_controller.rb +22 -0
  60. data/app/controllers/c/admin/images_controller.rb +21 -0
  61. data/app/controllers/c/admin/locations_controller.rb +63 -0
  62. data/app/controllers/c/admin/menu_items_controller.rb +49 -0
  63. data/app/controllers/c/admin/pages_controller.rb +94 -0
  64. data/app/controllers/c/admin/projects_controller.rb +55 -0
  65. data/app/controllers/c/admin/redirects_controller.rb +55 -0
  66. data/app/controllers/c/admin/roles_controller.rb +49 -0
  67. data/app/controllers/c/admin/slides_controller.rb +50 -0
  68. data/app/controllers/c/admin/slideshows_controller.rb +34 -0
  69. data/app/controllers/c/admin/team_members_controller.rb +61 -0
  70. data/app/controllers/c/admin/testimonials_controller.rb +43 -0
  71. data/app/controllers/c/admin/users_controller.rb +51 -0
  72. data/app/controllers/c/admin_controller.rb +43 -0
  73. data/app/controllers/c/application_controller.rb +15 -0
  74. data/app/controllers/c/errors_controller.rb +12 -0
  75. data/app/controllers/c/front/devise/passwords_controller.rb +6 -0
  76. data/app/controllers/c/front/devise/registrations_controller.rb +32 -0
  77. data/app/controllers/c/front/devise/sessions_controller.rb +27 -0
  78. data/app/controllers/c/front/mailchimp_controller.rb +32 -0
  79. data/app/controllers/c/front_controller.rb +7 -0
  80. data/app/controllers/c/front_end/blogs_controller.rb +21 -0
  81. data/app/controllers/c/front_end/enquiries_controller.rb +32 -0
  82. data/app/controllers/c/front_end/pages_controller.rb +19 -0
  83. data/app/controllers/c/main_application_controller.rb +22 -0
  84. data/app/helpers/c/application_helper.rb +51 -0
  85. data/app/helpers/c/blogs_helper.rb +113 -0
  86. data/app/helpers/c/c_form_builder.rb +43 -0
  87. data/app/helpers/c/link_to_helper.rb +25 -0
  88. data/app/helpers/c/navigation_helper.rb +28 -0
  89. data/app/helpers/c/pages_helper.rb +27 -0
  90. data/app/helpers/c/storefront_helper.rb +63 -0
  91. data/app/mailers/c/application_mailer.rb +7 -0
  92. data/app/mailers/c/enquiries_mailer.rb +10 -0
  93. data/app/models/c/ability.rb +21 -0
  94. data/app/models/c/application_record.rb +6 -0
  95. data/app/models/c/author_record.rb +13 -0
  96. data/app/models/c/blog.rb +43 -0
  97. data/app/models/c/document.rb +17 -0
  98. data/app/models/c/enquiry.rb +95 -0
  99. data/app/models/c/image.rb +11 -0
  100. data/app/models/c/location.rb +18 -0
  101. data/app/models/c/menu_item.rb +35 -0
  102. data/app/models/c/non_delete.rb +10 -0
  103. data/app/models/c/page.rb +48 -0
  104. data/app/models/c/page_info.rb +16 -0
  105. data/app/models/c/permission.rb +9 -0
  106. data/app/models/c/permission_subject.rb +12 -0
  107. data/app/models/c/project.rb +20 -0
  108. data/app/models/c/redirect.rb +33 -0
  109. data/app/models/c/role.rb +18 -0
  110. data/app/models/c/slide.rb +16 -0
  111. data/app/models/c/slideshow.rb +23 -0
  112. data/app/models/c/team_member.rb +33 -0
  113. data/app/models/c/testimonial.rb +42 -0
  114. data/app/models/c/user.rb +42 -0
  115. data/app/models/c/user_role.rb +7 -0
  116. data/app/models/c/weight.rb +10 -0
  117. data/app/models/concerns/c/authorable.rb +18 -0
  118. data/app/models/concerns/c/documentable.rb +18 -0
  119. data/app/models/concerns/c/imageable.rb +49 -0
  120. data/app/models/concerns/c/non_deletable.rb +30 -0
  121. data/app/models/concerns/c/orderable.rb +30 -0
  122. data/app/models/concerns/c/previewable.rb +20 -0
  123. data/app/models/concerns/c/site_page.rb +89 -0
  124. data/app/uploaders/c/file_uploader.rb +9 -0
  125. data/app/uploaders/c/image_uploader.rb +39 -0
  126. data/app/views/c/admin/_background_jobs_dropdown.html.haml +18 -0
  127. data/app/views/c/admin/_bread_crumbs.html.haml +7 -0
  128. data/app/views/c/admin/_ebay_categories.html.haml +20 -0
  129. data/app/views/c/admin/_flash_messages.html.haml +5 -0
  130. data/app/views/c/admin/_header_bar.html.haml +18 -0
  131. data/app/views/c/admin/_index_table.html.haml +113 -0
  132. data/app/views/c/admin/_index_table_data.html.haml +17 -0
  133. data/app/views/c/admin/_navigation_bar.html.haml +1 -0
  134. data/app/views/c/admin/_preview_image.html.haml +2 -0
  135. data/app/views/c/admin/_preview_upload.html.haml +18 -0
  136. data/app/views/c/admin/_seo.html.haml +11 -0
  137. data/app/views/c/admin/_side_menu.html.haml +26 -0
  138. data/app/views/c/admin/_uploaded_images_new.html.haml +13 -0
  139. data/app/views/c/admin/blogs/_form.html.haml +58 -0
  140. data/app/views/c/admin/blogs/index.html.haml +9 -0
  141. data/app/views/c/admin/confirm_destroy.html.haml +6 -0
  142. data/app/views/c/admin/confirm_mass_destroy.html.haml +10 -0
  143. data/app/views/c/admin/documents/_form.html.haml +8 -0
  144. data/app/views/c/admin/documents/index.html.haml +9 -0
  145. data/app/views/c/admin/edit.html.haml +15 -0
  146. data/app/views/c/admin/enquiries/index.html.haml +14 -0
  147. data/app/views/c/admin/locations/_form.html.haml +58 -0
  148. data/app/views/c/admin/locations/index.html.haml +9 -0
  149. data/app/views/c/admin/menu_items/_form.html.haml +44 -0
  150. data/app/views/c/admin/menu_items/_menu_item_list_item.html.haml +10 -0
  151. data/app/views/c/admin/menu_items/index.html.haml +10 -0
  152. data/app/views/c/admin/new.html.haml +8 -0
  153. data/app/views/c/admin/pages/_form.html.haml +93 -0
  154. data/app/views/c/admin/pages/_page_list_item.html.haml +10 -0
  155. data/app/views/c/admin/pages/dashboard.html.erb +0 -0
  156. data/app/views/c/admin/pages/index.html.haml +11 -0
  157. data/app/views/c/admin/projects/_form.html.haml +46 -0
  158. data/app/views/c/admin/projects/index.html.haml +9 -0
  159. data/app/views/c/admin/quick_edit.js.erb +6 -0
  160. data/app/views/c/admin/redirects/_form.html.haml +14 -0
  161. data/app/views/c/admin/redirects/index.html.haml +9 -0
  162. data/app/views/c/admin/reload_images.js.erb +2 -0
  163. data/app/views/c/admin/roles/_form.html.haml +42 -0
  164. data/app/views/c/admin/roles/index.html.haml +17 -0
  165. data/app/views/c/admin/set_preview_image.js.erb +1 -0
  166. data/app/views/c/admin/show.html.haml +1 -0
  167. data/app/views/c/admin/slides/_form.html.haml +19 -0
  168. data/app/views/c/admin/slideshows/_form.html.haml +25 -0
  169. data/app/views/c/admin/slideshows/index.html.haml +8 -0
  170. data/app/views/c/admin/team_members/_form.html.haml +20 -0
  171. data/app/views/c/admin/team_members/index.html.haml +10 -0
  172. data/app/views/c/admin/testimonials/_form.html.haml +13 -0
  173. data/app/views/c/admin/testimonials/index.html.haml +8 -0
  174. data/app/views/c/admin/users/_form.html.haml +17 -0
  175. data/app/views/c/admin/users/index.html.haml +12 -0
  176. data/app/views/c/enquiries_mailer/new_enquiry.html.haml +14 -0
  177. data/app/views/c/enquiries_mailer/new_enquiry.text.haml +9 -0
  178. data/app/views/c/errors/404.html.haml +5 -0
  179. data/app/views/c/errors/500.html.haml +5 -0
  180. data/app/views/c/front/application/_category_item.html.haml +2 -0
  181. data/app/views/c/front/application/_menu_item.html.haml +4 -0
  182. data/app/views/c/front/application/_sales_highlight.html.haml +1 -0
  183. data/app/views/c/front/application/_slide.html.haml +6 -0
  184. data/app/views/c/front/blogs/_archive_filter_month.html.haml +2 -0
  185. data/app/views/c/front/blogs/_archive_filter_year.html.haml +1 -0
  186. data/app/views/c/front/blogs/_menu_item.html.haml +2 -0
  187. data/app/views/c/front_end/enquiries/new.html.haml +23 -0
  188. data/app/views/c/front_end/enquiries/thanks.html.haml +5 -0
  189. data/app/views/c/front_end/pages/_sales_highlight.html.haml +7 -0
  190. data/app/views/c/front_end/pages/about.html.haml +8 -0
  191. data/app/views/c/front_end/pages/home.html.haml +19 -0
  192. data/app/views/c/front_end/pages/search.html.haml +16 -0
  193. data/app/views/c/front_end/pages/show.html.haml +7 -0
  194. data/app/views/c/front_end/pages/sitemap.xml.builder +25 -0
  195. data/app/views/c/mailchimp/_signup_newsletter.html.haml +4 -0
  196. data/app/views/c/main_application/_application_bar.html.haml +22 -0
  197. data/app/views/c/main_application/_breadcrumbs.html.haml +7 -0
  198. data/app/views/c/main_application/_contact_info.html.haml +5 -0
  199. data/app/views/c/main_application/_footer.html.haml +49 -0
  200. data/app/views/c/main_application/_front_head_tags.html.haml +3 -0
  201. data/app/views/c/main_application/_header.html.haml +55 -0
  202. data/app/views/c/main_application/_site_search.html.haml +3 -0
  203. data/app/views/c/main_application/_yield.html.haml +5 -0
  204. data/app/views/devise/confirmations/new.html.erb +16 -0
  205. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  206. data/app/views/devise/mailer/password_change.html.erb +3 -0
  207. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  208. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  209. data/app/views/devise/passwords/edit.html.haml +26 -0
  210. data/app/views/devise/passwords/new.html.haml +14 -0
  211. data/app/views/devise/registrations/edit.html.haml +40 -0
  212. data/app/views/devise/registrations/new.html.haml +24 -0
  213. data/app/views/devise/sessions/new.html.haml +20 -0
  214. data/app/views/devise/shared/_links.html.erb +25 -0
  215. data/app/views/devise/unlocks/new.html.erb +16 -0
  216. data/app/views/layouts/c/application.html.haml +18 -0
  217. data/app/views/layouts/c/cms_login_layout.html.haml +18 -0
  218. data/app/views/layouts/c/mailer.html.erb +245 -0
  219. data/app/views/layouts/c/mailer.text.erb +3 -0
  220. data/app/views/layouts/c/main_application.html.haml +13 -0
  221. data/config/environment.rb +0 -0
  222. data/config/initializers/carrierwave.rb +18 -0
  223. data/config/initializers/devise.rb +283 -0
  224. data/config/initializers/rack_profiler.rb +8 -0
  225. data/config/locales/devise.en.yml +62 -0
  226. data/config/locales/en.yml +17 -0
  227. data/config/routes.rb +150 -0
  228. data/db/migrate/20160819000000_migrate_schema.rb +273 -0
  229. data/db/seed_data/countries.txt +227 -0
  230. data/lib/c/engine.rb +38 -0
  231. data/lib/c/version.rb +4 -0
  232. data/lib/cd2_catton_cms.rb +51 -0
  233. data/lib/tasks/c_tasks.rake +28 -0
  234. data/spec/dummy/Gemfile +4 -0
  235. data/spec/dummy/Gemfile.lock +20 -0
  236. data/spec/dummy/Rakefile +6 -0
  237. data/spec/dummy/app/assets/config/manifest.js +5 -0
  238. data/spec/dummy/app/assets/images/placeholder.png +0 -0
  239. data/spec/dummy/app/assets/javascripts/application.js +26 -0
  240. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  241. data/spec/dummy/app/assets/javascripts/pages.coffee +3 -0
  242. data/spec/dummy/app/assets/stylesheets/application.sass +13 -0
  243. data/spec/dummy/app/assets/stylesheets/c/application.sass +2 -0
  244. data/spec/dummy/app/controllers/application_controller.rb +10 -0
  245. data/spec/dummy/app/controllers/blogs_controller.rb +11 -0
  246. data/spec/dummy/app/controllers/pages_controller.rb +13 -0
  247. data/spec/dummy/app/models/application_record.rb +4 -0
  248. data/spec/dummy/app/models/page.rb +3 -0
  249. data/spec/dummy/bin/bundle +4 -0
  250. data/spec/dummy/bin/rails +5 -0
  251. data/spec/dummy/bin/rake +5 -0
  252. data/spec/dummy/bin/setup +35 -0
  253. data/spec/dummy/bin/update +30 -0
  254. data/spec/dummy/config/application.rb +17 -0
  255. data/spec/dummy/config/boot.rb +6 -0
  256. data/spec/dummy/config/cable.yml +9 -0
  257. data/spec/dummy/config/database.travis.yml +3 -0
  258. data/spec/dummy/config/database.yml +85 -0
  259. data/spec/dummy/config/environment.rb +6 -0
  260. data/spec/dummy/config/environments/development.rb +61 -0
  261. data/spec/dummy/config/environments/production.rb +87 -0
  262. data/spec/dummy/config/environments/test.rb +43 -0
  263. data/spec/dummy/config/initializers/application_controller_renderer.rb +7 -0
  264. data/spec/dummy/config/initializers/assets.rb +21 -0
  265. data/spec/dummy/config/initializers/backtrace_silencers.rb +8 -0
  266. data/spec/dummy/config/initializers/carrierwave.rb +15 -0
  267. data/spec/dummy/config/initializers/commercity.rb +4 -0
  268. data/spec/dummy/config/initializers/cookies_serializer.rb +6 -0
  269. data/spec/dummy/config/initializers/filter_parameter_logging.rb +5 -0
  270. data/spec/dummy/config/initializers/inflections.rb +17 -0
  271. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  272. data/spec/dummy/config/initializers/new_framework_defaults.rb +25 -0
  273. data/spec/dummy/config/initializers/session_store.rb +4 -0
  274. data/spec/dummy/config/initializers/wrap_parameters.rb +15 -0
  275. data/spec/dummy/config/locales/en.yml +23 -0
  276. data/spec/dummy/config/puma.rb +48 -0
  277. data/spec/dummy/config/routes.rb +4 -0
  278. data/spec/dummy/config/secrets.yml +22 -0
  279. data/spec/dummy/config/sidekiq.yml +6 -0
  280. data/spec/dummy/config/spring.rb +7 -0
  281. data/spec/dummy/config.ru +5 -0
  282. data/spec/dummy/db/schema.rb +1110 -0
  283. data/spec/dummy/lib/tasks/reprocess_images.rake +12 -0
  284. data/spec/dummy/lib/tasks/reset_all.rake +44 -0
  285. data/spec/dummy/lib/tasks/seeds/seed_blogs.rake +8 -0
  286. data/spec/dummy/lib/tasks/seeds/seed_pages.rake +24 -0
  287. data/spec/dummy/public/404.html +67 -0
  288. data/spec/dummy/public/422.html +67 -0
  289. data/spec/dummy/public/500.html +66 -0
  290. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  291. data/spec/dummy/public/apple-touch-icon.png +0 -0
  292. data/spec/dummy/public/favicon.ico +0 -0
  293. data/spec/dummy/seed/highlight1.png +0 -0
  294. data/spec/dummy/seed/highlight2.png +0 -0
  295. data/spec/dummy/seed/images/1/main.jpg +0 -0
  296. data/spec/dummy/seed/images/1/thumb.JPG +0 -0
  297. data/spec/dummy/seed/images/1/thumb2.jpg +0 -0
  298. data/spec/dummy/seed/images/2/main.jpeg +0 -0
  299. data/spec/dummy/seed/images/2/thumb.JPG +0 -0
  300. data/spec/dummy/seed/images/2/thumb2.JPG +0 -0
  301. data/spec/dummy/spec/models/redirect_spec.rb +57 -0
  302. data/spec/dummy/spec/support/factory_girl.rb +8 -0
  303. data/spec/dummy/spec/support/seed/images/product_image.png +0 -0
  304. data/spec/rails_helper.rb +49 -0
  305. data/spec/spec_helper.rb +52 -0
  306. metadata +734 -0
@@ -0,0 +1,237 @@
1
+ //-- GENERAL ELEMENT STYLES --//
2
+ *
3
+ box-sizing: border-box!important
4
+
5
+ body
6
+ font-family: $font
7
+ -webkit-font-smoothing: antialiased
8
+ font-size: .875rem
9
+ color: #2D3138
10
+
11
+ img
12
+ max-width: 100%
13
+
14
+ a
15
+ color: $primary_color
16
+ text-decoration: none
17
+ &:hover
18
+ text-decoration: underline
19
+
20
+ table
21
+ border-spacing: 0
22
+ width: 100%
23
+
24
+ .hidden
25
+ display: none
26
+
27
+ [data-url]
28
+ cursor: pointer
29
+
30
+ //--BREAKPOINTS--//
31
+
32
+ $s: 400px
33
+ $m: 600px
34
+ $l: 900px
35
+ $xl: 1008px
36
+ $xxl: 1280px
37
+
38
+ $breakpoints_map: ( s: $s, m: $m, l: $l, xl: $xl, xxl: $xxl )
39
+
40
+ .page
41
+ background: white
42
+
43
+ //-- Used to center content horizontally in the document --//
44
+ .wrap
45
+ margin: 0 auto
46
+ max-width: $site_width
47
+ &--padded
48
+ padding: 24px
49
+ &__narrow
50
+ max-width: 900px
51
+ &-ultra
52
+ max-width: 500px
53
+ &-padded
54
+ padding: 0 16px
55
+
56
+ .row
57
+ padding: 16px
58
+ &--colored
59
+ background-color: $primary_color
60
+ &-dark
61
+ background-color: #1b1b1b
62
+ a
63
+ color: white
64
+ &--sides
65
+ padding: 0 16px
66
+
67
+ .logo
68
+ max-height: $logo_height
69
+ max-width: $logo_width
70
+ width: 100%
71
+ height: 100%
72
+ background-image: image_url('c/logo--dark.svg')
73
+ &--light
74
+ background-image: image_url('c/logo--light.svg')
75
+ background-position: 0 50%
76
+ background-repeat: no-repeat
77
+ background-size: contain
78
+ &--no-container
79
+ height: $logo_height
80
+ width: $logo_width
81
+ margin: 0 auto
82
+
83
+ //-- Grid System --//
84
+ .gs
85
+ +flexbox
86
+ +flex-wrap(wrap)
87
+ &--centered
88
+ +align-items(center)
89
+ &--m
90
+ @media (min-width: $m)
91
+ +flexbox
92
+ &--l
93
+ @media (min-width: $l)
94
+ +flexbox
95
+ &--xl
96
+ @media (min-width: $xl)
97
+ +flexbox
98
+ &--xxl
99
+ @media (min-width: $xxl)
100
+ +flexbox
101
+ &--nowrap
102
+ +flex-wrap(nowrap)
103
+ .g-gutter
104
+ padding-left: 16px
105
+ &--narrow
106
+ padding-left: 10px
107
+ &--xxl
108
+ @media (min-width: $xxl)
109
+ padding-left: 8px
110
+ &--m
111
+ @media (min-width: $m)
112
+ padding-left: 16px
113
+ &--l
114
+ @media (min-width: $l)
115
+ padding-left: 16px
116
+ &--xl
117
+ @media (min-width: $xl)
118
+ padding-left: 16px
119
+ &--xxl
120
+ @media (min-width: $xxl)
121
+ padding-left: 16px
122
+
123
+ .g-gutter--bottom
124
+ padding-bottom: 16px
125
+ &--narrow
126
+ padding-bottom: 10px
127
+ &--m
128
+ @media (min-width: $m)
129
+ padding-bottom: 16px
130
+ &--l
131
+ @media (min-width: $l)
132
+ padding-bottom: 16px
133
+
134
+ .g-gutter--top
135
+ padding-top: 16px
136
+ &--narrow
137
+ padding-top: 10px
138
+ &--m
139
+ @media (min-width: $m)
140
+ padding-top: 16px
141
+ &--l
142
+ @media (min-width: $l)
143
+ padding-top: 16px
144
+
145
+ .g-gutter--right
146
+ padding-right: 16px
147
+ &--narrow
148
+ padding-right: 10px
149
+ &--m
150
+ @media (min-width: $m)
151
+ padding-right: 16px
152
+ &--l
153
+ @media (min-width: $l)
154
+ padding-right: 16px
155
+
156
+ .g-full
157
+ +flex-basis(100%)
158
+
159
+ .g-half
160
+ +flex-basis(50%)
161
+
162
+ @for $i from 1 through 4
163
+ .g-#{$i}
164
+ +flex(#{$i})
165
+
166
+ @for $i from 1 through 12
167
+ @media (min-width: $m)
168
+ .g-#{$i}--m
169
+ +flex(#{$i})
170
+
171
+ //-- Creates all classes for flex + media queries for each breakpoint --//
172
+ //-- REVIEW probably a bad idea as a lot of lines of css added --//
173
+ // @each $name, $value in $breakpoints_map
174
+ // @for $i from 1 through 12
175
+ // .g-#{$i}--#{$name}
176
+ // @media (min-width: $value)
177
+ // +flex(#{$i})
178
+
179
+ /////////////// REVIEW is this the best way of doing this?? Could create loops
180
+
181
+ .m_only
182
+ display: none
183
+ @media (min-width: $m)
184
+ display: block
185
+
186
+ //-- General Rules --//
187
+ .align
188
+ &-right
189
+ text-align: right
190
+ &-left
191
+ text-align: left
192
+ &-center
193
+ text-align: center
194
+
195
+ .clear
196
+ clear: both
197
+
198
+ .no-wrap
199
+ white-space: nowrap
200
+
201
+
202
+
203
+ ///////////GENERAL PAGE STUFF ---- WHERE SHOULD THIS GO EY??
204
+ .devise-form-page
205
+ background-color: white
206
+ padding: 50px 16px
207
+
208
+ .app-bar
209
+ padding: 0 20px
210
+ background-color: #3D3D3D
211
+ a
212
+ display: inline-block
213
+ color: white
214
+ font-size: 12px
215
+ font-weight: 600
216
+ padding: 6px
217
+
218
+ legend
219
+ position: relative
220
+ top: 16px
221
+ font-size: 12px
222
+ color: #666
223
+ background-color: transparent
224
+
225
+ .checkbox-hidden
226
+ display: none
227
+ input[type='checkbox']:checked + &
228
+ display: block
229
+
230
+ .checkbox-span-label
231
+ margin-left: 6px
232
+ font-size: 12px
233
+ margin-bottom: 0
234
+
235
+ @import application/elements/buttons
236
+ @import application/elements/shadows
237
+ @import application/elements/forms
@@ -0,0 +1,4 @@
1
+ @import vendor
2
+ @import core
3
+ @import engine/layout
4
+
@@ -0,0 +1,32 @@
1
+ // This is a reference file - override it in your app
2
+
3
+ @import url('https://fonts.googleapis.com/css?family=Lato:400,400i,700,900')
4
+
5
+ $font: 'Lato', -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"
6
+
7
+ $error: #d02f2f
8
+
9
+ $primary_color: #8CC63F
10
+ $dark_primary_color: darken($primary_color, 10%)
11
+ $light_primary_color: lighten($primary_color, 10%)
12
+
13
+ $primary_text_color: #2D3138
14
+ $secondary_text_color: #757575
15
+
16
+ $accent_color: #50bcca
17
+ $divider_color: #BDBDBD
18
+
19
+ $site_width: 1300px
20
+
21
+ $logo_height: 100px
22
+ $logo_width: 250px
23
+
24
+ $header_background: white
25
+
26
+ $card_box_shadow: 0 2px 4px rgba(0,0,0,0.1)
27
+
28
+ @mixin user-select($value)
29
+ -webkit-user-select: $value
30
+ -moz-user-select: $value
31
+ -ms-user-select: $value
32
+ user-select: $value
@@ -0,0 +1,6 @@
1
+ @import vendor/normalize
2
+ @import vendor/flex_mixins
3
+ @import font-awesome
4
+ @import tabs
5
+ @import select2
6
+ @import sweetalert
@@ -0,0 +1,85 @@
1
+ .cart
2
+ padding: 40px
3
+ background-color: white
4
+ h1
5
+ margin-top: 0
6
+ font-size: 1.5rem
7
+
8
+ .cart-items
9
+ width: 100%
10
+ text-align: center
11
+ border-spacing: 0
12
+ margin: 20px 0
13
+ @media (max-width: 700px)
14
+ display: block
15
+ text-align: left
16
+ tbody
17
+ display: block
18
+
19
+ .cart-items__heading
20
+ padding: 20px 0
21
+ font-weight: normal
22
+ border-top: 1px solid rgba(black, 0.25)
23
+ border-bottom: 1px solid rgba(black, 0.25)
24
+ @media (max-width: 700px)
25
+ display: none
26
+ &--align-left
27
+ text-align: left
28
+ &--align-right
29
+ text-align: right
30
+
31
+ .cart-items__row
32
+ @media (max-width: 700px)
33
+ display: block
34
+ + .cart-items__row
35
+ margin-top: 10px
36
+
37
+ .cart-items__cell
38
+ padding: 10px 0
39
+ border-bottom: 1px solid rgba(black, 0.1)
40
+ img
41
+ max-width: 120px
42
+ input[type="number"]
43
+ width: 50px
44
+ border: 1px solid rgba(black, 0.1)
45
+ margin-bottom: 0
46
+ display: inline-block
47
+ b
48
+ font-size: 1.4rem
49
+ i
50
+ color: red
51
+ margin-right: 15px
52
+ font-size: 1rem
53
+ @media (max-width: 700px)
54
+ display: inline-block
55
+ border-bottom: 0
56
+ h3
57
+ font-size: 1rem
58
+ &--align-left
59
+ text-align: left
60
+ &--align-right
61
+ text-align: right
62
+ @media (max-width: 700px)
63
+ width: 100%
64
+ border-bottom: 1px solid rgba(black, 0.1)
65
+ &--last
66
+ padding: 10px 0 20px
67
+ border-bottom: 0
68
+ @media (max-width: 700px)
69
+
70
+ .cart__order-summary
71
+ width: 100%
72
+ table
73
+ max-width: 320px
74
+ margin-left: auto
75
+
76
+ .order-summary__cell
77
+ span
78
+ font-size: 1rem
79
+ b
80
+ font-size: 1.4rem
81
+ &--first
82
+ padding-right: 15px
83
+
84
+ .cart__actions
85
+ padding-top: 20px
@@ -0,0 +1,87 @@
1
+ .checkout
2
+ background-color: white
3
+ h3
4
+ margin: 0 0 28px
5
+ font-size: 1.4rem
6
+
7
+ .checkout__header
8
+ background-color: $primary_color
9
+ padding-top: 20px
10
+
11
+ .checkout__header-inner
12
+ height: 100px
13
+
14
+ .checkout__breadcrumb
15
+ color: #666
16
+ margin-bottom: 24px
17
+ font-size: 12px
18
+
19
+ .checkout__content
20
+ padding: 50px 28px
21
+ position: relative
22
+ z-index: 1
23
+
24
+ .checkout__summary-td
25
+ padding: 0 0 8px
26
+ img
27
+ max-width: 70px
28
+ margin-right: 10px
29
+ border: 1px solid #ddd
30
+ border-radius: 5px
31
+ overflow: hidden
32
+ display: block
33
+ &--label
34
+ color: #777
35
+ &-large
36
+ font-size: 16px
37
+ &--bold
38
+ font-size: 18px
39
+ font-weight: 600
40
+
41
+ .checkout__content--splitter
42
+ height: 1px
43
+ width: 100%
44
+ background-color: #ddd
45
+ margin: 16px 0
46
+
47
+ .checkout__anon
48
+ border-top: 1px solid #ddd
49
+ margin-top: 20px
50
+ padding-top: 20px
51
+ @media (min-width: $m)
52
+ padding: 0 0 0 25px
53
+ margin: 0 0 0 25px
54
+ border-top: none
55
+ border-left: 1px solid #ddd
56
+
57
+ .checkout__summary
58
+ position: relative
59
+ height: 100%
60
+ margin: 25px 0 0 0
61
+ padding: 0
62
+ box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.12)
63
+ @media (min-width: $m)
64
+ margin: 0 0 0 25px
65
+ padding: 0 0 0 25px
66
+ box-shadow: -1px 0 1px rgba(0, 0, 0, 0.12)
67
+ &:after
68
+ content: ""
69
+ display: block
70
+ width: 300%
71
+ position: absolute
72
+ top: 0
73
+ left: 0
74
+ bottom: 0
75
+ background: #fafafa
76
+ box-shadow: 0 -1px 0 #e1e1e1 inset
77
+ background-position: left top
78
+
79
+
80
+ .checkout__content-summary
81
+ background-color: #fafafa
82
+ box-shadow: 0 0px 1px rgba(0, 0, 0, 0.6)
83
+ border-radius: 4px
84
+ padding: 16px
85
+ margin-bottom: 32px
86
+ h4
87
+ margin-top: 0
@@ -0,0 +1,34 @@
1
+
2
+ .btn
3
+ border-radius: 4px
4
+ font-size: 0.9rem
5
+ line-height: 1.25rem
6
+ padding: 9px 28px
7
+ outline: none
8
+ background-color: $primary_color
9
+ border: 1px solid $primary_color
10
+ color: white
11
+ -webkit-transition: .2s
12
+ transition: .2s
13
+ display: inline-block
14
+ text-align: center
15
+ margin-bottom: 4px
16
+ &--secondary
17
+ background-color: white
18
+ border: 1px solid $primary_color
19
+ color: $primary_color
20
+ &--simple
21
+ border: 0
22
+ border-radius: 0
23
+ &--small
24
+ padding: 3px 12px
25
+ font-size: 0.8rem
26
+ &--success
27
+ color: white
28
+ background-color: #39b54a
29
+ &--system
30
+ background-color: black
31
+ border: 1px solid black
32
+ &--split-second
33
+ border-radius: 0 4px 4px 0
34
+ padding: 9px
@@ -0,0 +1,135 @@
1
+
2
+ input[type="text"],
3
+ input[type="password"],
4
+ input[type="date"],
5
+ input[type="datetime"],
6
+ input[type="datetime-local"],
7
+ input[type="month"],
8
+ input[type="week"],
9
+ input[type="email"],
10
+ input[type="number"],
11
+ input[type="search"],
12
+ input[type="tel"],
13
+ input[type="time"],
14
+ input[type="url"],
15
+ textarea
16
+ line-height: 28px
17
+ padding: 8px 12px
18
+ -webkit-transition: border-color 0.1s, box-shadow 0.1s
19
+ transition: border-color 0.1s, box-shadow 0.1s
20
+ resize: vertical
21
+ background: white
22
+ cursor: pointer
23
+ width: 100%
24
+ max-width: 540px
25
+ display: block
26
+ height: 40px
27
+ margin: 0
28
+ border: 1px solid #e0e0e0
29
+ position: relative
30
+ -webkit-appearance: none
31
+ -moz-appearance: none
32
+ border-radius: 4px
33
+ &:focus
34
+ outline: none
35
+ border: 1px solid #666
36
+ &.error
37
+ border: 1px solid $error
38
+
39
+ select,
40
+ .select2-container--default .select2-selection--multiple,
41
+ .select2-container--default .select2-selection--single
42
+ color: #0d0d0d
43
+ height: 40px
44
+ background-color: white
45
+ font-family: inherit
46
+ line-height: 125%
47
+ border-radius: 6px
48
+ padding: 0 12px
49
+ position: relative
50
+ background-position: right 8px center
51
+ background-repeat: no-repeat
52
+ background-size: 20px
53
+ cursor: pointer
54
+ background-image: image_url('c/select_arrow_down_blk.png')
55
+ -webkit-appearance: none
56
+ -moz-appearance: none
57
+ width: 100%
58
+ outline: none
59
+ border: 1px solid #e0e0e0
60
+
61
+ .select2-container--default .select2-selection--multiple .select2-selection__choice
62
+ margin-top: 8px
63
+
64
+ .select2-search--inline
65
+ height: 26px
66
+ input
67
+ height: 26px!important
68
+
69
+ .field
70
+ margin-bottom: 10px
71
+ &__help
72
+ margin-top: -10px
73
+ font-size: 12px
74
+ color: #787878
75
+ padding-left: 4px
76
+ font-style: italic
77
+ &__destroy-nested
78
+ line-height: 40px
79
+ padding: 0 10px
80
+ &__with-post-checkbox
81
+ label
82
+ font-size: 12px
83
+ float: left
84
+ margin-right: 6px
85
+ margin-bottom: 0
86
+ input[type="checkbox"]
87
+ position: relative
88
+ bottom: 2px
89
+ &--inner-label
90
+ position: relative
91
+ label
92
+ position: absolute
93
+ z-index: 10
94
+ top: 3px
95
+ left: 13px
96
+ font-size: 11px
97
+ color: #666
98
+ &.g-gutter--narrow--xxl
99
+ label
100
+ left: 21px
101
+
102
+ input[type="text"],
103
+ input[type="password"],
104
+ input[type="date"],
105
+ input[type="datetime"],
106
+ input[type="datetime-local"],
107
+ input[type="month"],
108
+ input[type="week"],
109
+ input[type="email"],
110
+ input[type="number"],
111
+ input[type="search"],
112
+ input[type="tel"],
113
+ input[type="time"],
114
+ input[type="url"]
115
+ padding-top: 18px
116
+ height: 44px
117
+ .select2-container--default .select2-selection--multiple, .select2-container--default .select2-selection--single
118
+ padding: 12px 35px 2px 6px
119
+ height: 44px
120
+ select
121
+ padding: 12px 35px 2px 13px
122
+ height: 44px
123
+
124
+ .field__error
125
+ font-size: 12px
126
+ color: $error
127
+
128
+ label
129
+ display: block
130
+ margin-bottom: 2.5px
131
+ &.error
132
+ color: $error
133
+
134
+ .select2-container
135
+ width: 100%!important
@@ -0,0 +1,23 @@
1
+ .shadow-1dp
2
+ box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1), 0 3px 1px -2px rgba(0, 0, 0, 0.06), 0 0 5px 0 rgba(0, 0, 0, 0.1)
3
+
4
+ .shadow-2dp
5
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)
6
+
7
+ .shadow-3dp
8
+ box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 3px -2px rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12)
9
+
10
+ .shadow-4dp
11
+ box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.14)
12
+
13
+ .shadow-6dp
14
+ box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.2), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.14)
15
+
16
+ .shadow-8dp
17
+ box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.2), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.14)
18
+
19
+ .shadow-16dp
20
+ box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.2), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.14)
21
+
22
+ .shadow-24dp
23
+ box-shadow: 0 9px 46px 8px rgba(0, 0, 0, 0.2), 0 11px 15px -7px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.14)
@@ -0,0 +1,10 @@
1
+ #breadcrumbs_container
2
+ #breadcrumbs_inner
3
+ margin: 0 auto
4
+ max-width: $site_width
5
+ background: $dark_primary_color
6
+ padding: 10px 20px
7
+ a
8
+ color: white
9
+ span, i
10
+ color: rgba(white, 0.7)
@@ -0,0 +1,53 @@
1
+ // .categories__menu
2
+
3
+ .categories-menu__section
4
+ line-height: 1.5rem
5
+ input[type="checkbox"]
6
+ display: none
7
+ label:after
8
+ content: "-"
9
+ display: block
10
+ cursor: pointer
11
+ font-size: 1.2rem
12
+ input[type="checkbox"]:checked ~ label:after
13
+ content: "+"
14
+ input[type="checkbox"]:checked ~ .categories-menu__list
15
+ display: none
16
+ h4, h2
17
+ border-bottom: 2px solid grey
18
+ padding-bottom: 3px
19
+ font-size: 1rem
20
+ h2
21
+ font-size: 1.3rem
22
+
23
+ .categories-menu__expand
24
+ float: right
25
+ color: lighten($primary_text_color, 10%)
26
+ font-weight: bold
27
+
28
+ .categories-menu__list
29
+ ul
30
+ list-style: none
31
+ padding-top: 0
32
+ padding-left: 0
33
+ li
34
+ font-size: 0.85rem
35
+ a
36
+ text-decoration: none
37
+ color: $accent_color
38
+ &.sidebar_more_link
39
+ color: $primary_color
40
+ font-size: 0.8rem
41
+ font-style: italic
42
+
43
+ img
44
+ width: 100%
45
+ margin: 0
46
+ display: block
47
+
48
+ &--sub
49
+ padding-left: 10px
50
+ li
51
+ font-size: 0.85rem
52
+ a
53
+ display: block