locomotivecms_wagon 1.4.0 → 1.5.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (352) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -0
  3. data/Gemfile +6 -2
  4. data/README.md +7 -1
  5. data/bin/wagon +3 -0
  6. data/generators/blank/Gemfile.tt +1 -3
  7. data/generators/blank/config/site.yml.tt +3 -3
  8. data/generators/bootstrap/config/site.yml.tt +3 -3
  9. data/generators/bootstrap3/Gemfile.tt +1 -3
  10. data/generators/bootstrap3/app/views/pages/index.liquid +21 -63
  11. data/generators/bootstrap3/app/views/pages/index.liquid.haml +15 -57
  12. data/generators/bootstrap3/config/deploy.yml +15 -15
  13. data/generators/bootstrap3/config/site.yml.tt +2 -2
  14. data/generators/bootstrap3/icon.png +0 -0
  15. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.eot +0 -0
  16. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.svg +201 -200
  17. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.ttf +0 -0
  18. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.woff +0 -0
  19. data/generators/{bootstrap2/app/content_types → bootstrap3/public/images}/.empty_directory +0 -0
  20. data/generators/bootstrap3/public/javascripts/bootstrap/affix.js +137 -0
  21. data/generators/bootstrap3/public/javascripts/bootstrap/alert.js +88 -0
  22. data/generators/bootstrap3/public/javascripts/bootstrap/button.js +107 -0
  23. data/generators/bootstrap3/public/javascripts/bootstrap/carousel.js +205 -0
  24. data/generators/bootstrap3/public/javascripts/bootstrap/collapse.js +170 -0
  25. data/generators/bootstrap3/public/javascripts/bootstrap/dropdown.js +147 -0
  26. data/generators/bootstrap3/public/javascripts/bootstrap/modal.js +243 -0
  27. data/generators/bootstrap3/public/javascripts/bootstrap/popover.js +110 -0
  28. data/generators/bootstrap3/public/javascripts/bootstrap/scrollspy.js +153 -0
  29. data/generators/bootstrap3/public/javascripts/bootstrap/tab.js +125 -0
  30. data/generators/bootstrap3/public/javascripts/bootstrap/tooltip.js +399 -0
  31. data/generators/bootstrap3/public/javascripts/bootstrap/transition.js +48 -0
  32. data/generators/bootstrap3/public/javascripts/bootstrap.min.js +12 -6
  33. data/generators/bootstrap3/public/stylesheets/application.css +1 -0
  34. data/generators/bootstrap3/public/stylesheets/application.css.scss +8 -0
  35. data/generators/bootstrap3/public/stylesheets/bootstrap/_alerts.scss +67 -0
  36. data/generators/bootstrap3/public/stylesheets/bootstrap/_badges.scss +55 -0
  37. data/generators/bootstrap3/public/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
  38. data/generators/bootstrap3/public/stylesheets/bootstrap/_button-groups.scss +226 -0
  39. data/generators/bootstrap3/public/stylesheets/bootstrap/_buttons.scss +159 -0
  40. data/generators/bootstrap3/public/stylesheets/bootstrap/_carousel.scss +232 -0
  41. data/generators/bootstrap3/public/stylesheets/bootstrap/_close.scss +35 -0
  42. data/generators/bootstrap3/public/stylesheets/bootstrap/_code.scss +63 -0
  43. data/generators/bootstrap3/public/stylesheets/bootstrap/_component-animations.scss +29 -0
  44. data/generators/bootstrap3/public/stylesheets/bootstrap/_dropdowns.scss +213 -0
  45. data/generators/bootstrap3/public/stylesheets/bootstrap/_forms.scss +436 -0
  46. data/generators/bootstrap3/public/stylesheets/bootstrap/_glyphicons.scss +233 -0
  47. data/generators/bootstrap3/public/stylesheets/bootstrap/_grid.scss +84 -0
  48. data/generators/bootstrap3/public/stylesheets/bootstrap/_input-groups.scss +162 -0
  49. data/generators/bootstrap3/public/stylesheets/bootstrap/_jumbotron.scss +44 -0
  50. data/generators/bootstrap3/public/stylesheets/bootstrap/_labels.scss +64 -0
  51. data/generators/bootstrap3/public/stylesheets/bootstrap/_list-group.scss +110 -0
  52. data/generators/bootstrap3/public/stylesheets/bootstrap/_media.scss +56 -0
  53. data/generators/bootstrap3/public/stylesheets/bootstrap/_mixins.scss +947 -0
  54. data/generators/bootstrap3/public/stylesheets/bootstrap/_modals.scss +139 -0
  55. data/generators/bootstrap3/public/stylesheets/bootstrap/_navbar.scss +620 -0
  56. data/generators/bootstrap3/public/stylesheets/bootstrap/_navs.scss +242 -0
  57. data/generators/bootstrap3/public/stylesheets/bootstrap/_normalize.scss +423 -0
  58. data/generators/bootstrap3/public/stylesheets/bootstrap/_pager.scss +55 -0
  59. data/generators/bootstrap3/public/stylesheets/bootstrap/_pagination.scss +88 -0
  60. data/generators/bootstrap3/public/stylesheets/bootstrap/_panels.scss +241 -0
  61. data/generators/bootstrap3/public/stylesheets/bootstrap/_popovers.scss +133 -0
  62. data/generators/bootstrap3/public/stylesheets/bootstrap/_print.scss +101 -0
  63. data/generators/bootstrap3/public/stylesheets/bootstrap/_progress-bars.scss +80 -0
  64. data/generators/bootstrap3/public/stylesheets/bootstrap/_responsive-utilities.scss +74 -0
  65. data/generators/bootstrap3/public/stylesheets/bootstrap/_scaffolding.scss +134 -0
  66. data/generators/bootstrap3/public/stylesheets/bootstrap/_tables.scss +233 -0
  67. data/generators/bootstrap3/public/stylesheets/bootstrap/_theme.scss +247 -0
  68. data/generators/bootstrap3/public/stylesheets/bootstrap/_thumbnails.scss +38 -0
  69. data/generators/bootstrap3/public/stylesheets/bootstrap/_tooltip.scss +95 -0
  70. data/generators/bootstrap3/public/stylesheets/bootstrap/_type.scss +284 -0
  71. data/generators/bootstrap3/public/stylesheets/bootstrap/_utilities.scss +56 -0
  72. data/generators/bootstrap3/public/stylesheets/bootstrap/_variables.scss +833 -0
  73. data/generators/bootstrap3/public/stylesheets/bootstrap/_wells.scss +29 -0
  74. data/generators/bootstrap3/public/stylesheets/bootstrap/bootstrap.css.scss +49 -0
  75. data/generators/bootstrap3/public/stylesheets/bootstrap.css +2035 -3056
  76. data/generators/bootstrap3/public/stylesheets/bootstrap.css.scss +49 -0
  77. data/generators/cloned/Gemfile.tt +1 -3
  78. data/generators/content_type/app/content_types/%slug%.yml.tt +57 -0
  79. data/generators/content_type/data/{%name%.yml.tt → %slug%.yml.tt} +2 -2
  80. data/generators/{bootstrap2 → foundation5}/Gemfile.tt +1 -3
  81. data/generators/{bootstrap2/data → foundation5/app/content_types}/.empty_directory +0 -0
  82. data/generators/{foundation → foundation5}/app/views/pages/404.liquid +1 -4
  83. data/generators/{foundation → foundation5}/app/views/pages/404.liquid.haml +1 -1
  84. data/generators/foundation5/app/views/pages/index.liquid +196 -0
  85. data/generators/foundation5/app/views/pages/index.liquid.haml +157 -0
  86. data/generators/foundation5/config/deploy.yml +15 -0
  87. data/generators/{bootstrap2 → foundation5}/config/site.yml.tt +3 -4
  88. data/generators/{bootstrap2 → foundation5}/config/translations.yml +0 -0
  89. data/generators/{bootstrap2 → foundation5}/config.ru +0 -0
  90. data/generators/{bootstrap2/public/samples → foundation5/data}/.empty_directory +0 -0
  91. data/generators/foundation5/favicon.ico +0 -0
  92. data/generators/foundation5/icon.png +0 -0
  93. data/generators/{foundation/app/content_types → foundation5/public/fonts}/.empty_directory +0 -0
  94. data/generators/{foundation/data → foundation5/public/images}/.empty_directory +0 -0
  95. data/generators/foundation5/public/javascripts/foundation/foundation.abide.js +299 -0
  96. data/generators/foundation5/public/javascripts/foundation/foundation.accordion.js +59 -0
  97. data/generators/foundation5/public/javascripts/foundation/foundation.alert.js +43 -0
  98. data/generators/foundation5/public/javascripts/foundation/foundation.clearing.js +534 -0
  99. data/generators/foundation5/public/javascripts/foundation/foundation.dropdown.js +311 -0
  100. data/generators/foundation5/public/javascripts/foundation/foundation.equalizer.js +74 -0
  101. data/generators/foundation5/public/javascripts/foundation/foundation.interchange.js +331 -0
  102. data/generators/foundation5/public/javascripts/foundation/foundation.joyride.js +843 -0
  103. data/generators/foundation5/public/javascripts/foundation/foundation.js +611 -0
  104. data/generators/foundation5/public/javascripts/foundation/foundation.magellan.js +178 -0
  105. data/generators/foundation5/public/javascripts/foundation/foundation.offcanvas.js +108 -0
  106. data/generators/foundation5/public/javascripts/foundation/foundation.orbit.js +610 -0
  107. data/generators/foundation5/public/javascripts/foundation/foundation.reveal.js +437 -0
  108. data/generators/foundation5/public/javascripts/foundation/foundation.slider.js +199 -0
  109. data/generators/foundation5/public/javascripts/foundation/foundation.tab.js +167 -0
  110. data/generators/foundation5/public/javascripts/foundation/foundation.tooltip.js +298 -0
  111. data/generators/foundation5/public/javascripts/foundation/foundation.topbar.js +425 -0
  112. data/generators/foundation5/public/javascripts/foundation.js +4161 -0
  113. data/generators/foundation5/public/javascripts/foundation.min.js +10 -0
  114. data/generators/{foundation → foundation5}/public/javascripts/vendor/custom.modernizr.js +0 -0
  115. data/generators/foundation5/public/javascripts/vendor/custom.modernizr.min.js +1 -0
  116. data/generators/foundation5/public/javascripts/vendor/fastclick.js +9 -0
  117. data/generators/foundation5/public/javascripts/vendor/fastclick.min.js +11 -0
  118. data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.js +645 -0
  119. data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.min.js +1 -0
  120. data/generators/foundation5/public/javascripts/vendor/jquery.cookie.js +8 -0
  121. data/generators/foundation5/public/javascripts/vendor/jquery.cookie.min.js +8 -0
  122. data/generators/foundation5/public/javascripts/vendor/jquery.js +26 -0
  123. data/generators/foundation5/public/javascripts/vendor/jquery.min.js +27 -0
  124. data/generators/foundation5/public/javascripts/vendor/modernizr.js +8 -0
  125. data/generators/foundation5/public/javascripts/vendor/modernizr.min.js +1 -0
  126. data/generators/foundation5/public/javascripts/vendor/placeholder.js +2 -0
  127. data/generators/foundation5/public/javascripts/vendor/placeholder.min.js +1 -0
  128. data/generators/{foundation/public/fonts → foundation5/public/samples}/.empty_directory +0 -0
  129. data/generators/foundation5/public/stylesheets/application.css +2 -0
  130. data/generators/foundation5/public/stylesheets/application.css.scss +3 -0
  131. data/generators/foundation5/public/stylesheets/foundation/_functions.scss +101 -0
  132. data/generators/foundation5/public/stylesheets/foundation/_settings.scss +1296 -0
  133. data/generators/foundation5/public/stylesheets/foundation/components/_accordion.scss +53 -0
  134. data/generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss +126 -0
  135. data/generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss +132 -0
  136. data/generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss +127 -0
  137. data/generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss +108 -0
  138. data/generators/foundation5/public/stylesheets/foundation/components/_buttons.scss +222 -0
  139. data/generators/foundation5/public/stylesheets/foundation/components/_clearing.scss +247 -0
  140. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss +129 -0
  141. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss +248 -0
  142. data/generators/foundation5/public/stylesheets/foundation/components/_flex-video.scss +51 -0
  143. data/generators/foundation5/public/stylesheets/foundation/components/_forms.scss +498 -0
  144. data/generators/foundation5/public/stylesheets/foundation/components/_global.scss +434 -0
  145. data/generators/foundation5/public/stylesheets/foundation/components/_grid.scss +260 -0
  146. data/generators/foundation5/public/stylesheets/foundation/components/_inline-lists.scss +57 -0
  147. data/generators/foundation5/public/stylesheets/foundation/components/_joyride.scss +220 -0
  148. data/generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss +61 -0
  149. data/generators/foundation5/public/stylesheets/foundation/components/_labels.scss +104 -0
  150. data/generators/foundation5/public/stylesheets/foundation/components/_magellan.scss +34 -0
  151. data/generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss +356 -0
  152. data/generators/foundation5/public/stylesheets/foundation/components/_orbit.scss +423 -0
  153. data/generators/foundation5/public/stylesheets/foundation/components/_pagination.scss +150 -0
  154. data/generators/foundation5/public/stylesheets/foundation/components/_panels.scss +90 -0
  155. data/generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss +150 -0
  156. data/generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss +79 -0
  157. data/generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss +148 -0
  158. data/generators/foundation5/public/stylesheets/foundation/components/_reveal-new.scss +0 -0
  159. data/generators/foundation5/public/stylesheets/foundation/components/_reveal.scss +216 -0
  160. data/generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss +115 -0
  161. data/generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss +191 -0
  162. data/generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss +125 -0
  163. data/generators/foundation5/public/stylesheets/foundation/components/_switch.scss +294 -0
  164. data/generators/foundation5/public/stylesheets/foundation/components/_tables.scss +129 -0
  165. data/generators/foundation5/public/stylesheets/foundation/components/_tabs.scss +109 -0
  166. data/generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss +68 -0
  167. data/generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss +140 -0
  168. data/generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss +659 -0
  169. data/generators/foundation5/public/stylesheets/foundation/components/_type.scss +513 -0
  170. data/generators/foundation5/public/stylesheets/foundation/components/_visibility.scss +408 -0
  171. data/generators/foundation5/public/stylesheets/foundation.css +5398 -0
  172. data/generators/foundation5/public/stylesheets/foundation.css.scss +45 -0
  173. data/generators/foundation5/public/stylesheets/normalize.css +425 -0
  174. data/generators/foundation5/public/stylesheets/normalize.css.scss +425 -0
  175. data/generators/{foundation → line_case}/Gemfile.tt +1 -3
  176. data/generators/line_case/app/content_types/categories.yml +56 -0
  177. data/generators/line_case/app/content_types/emails.yml +35 -0
  178. data/generators/line_case/app/content_types/projects.yml +58 -0
  179. data/generators/{bootstrap2 → line_case}/app/views/pages/404.liquid.haml +3 -2
  180. data/generators/line_case/app/views/pages/email-registered.liquid.haml +13 -0
  181. data/generators/line_case/app/views/pages/index.liquid.haml +110 -0
  182. data/generators/line_case/app/views/pages/projects/content_type_template.liquid.haml +32 -0
  183. data/generators/line_case/app/views/snippets/newsletter_form.liquid.haml +14 -0
  184. data/generators/line_case/app/views/snippets/projects.liquid.haml +17 -0
  185. data/generators/line_case/app/views/snippets/social_links.liquid.haml +19 -0
  186. data/generators/line_case/config/deploy.yml +15 -0
  187. data/generators/{foundation → line_case}/config/site.yml.tt +3 -3
  188. data/generators/{foundation → line_case}/config/translations.yml +0 -0
  189. data/generators/{foundation → line_case}/config.ru +0 -0
  190. data/generators/line_case/data/categories.yml +8 -0
  191. data/generators/line_case/data/emails.yml +2 -0
  192. data/generators/line_case/data/projects.yml +39 -0
  193. data/generators/line_case/icon.png +0 -0
  194. data/generators/line_case/public/images/banner-header.png +0 -0
  195. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.abide.js +0 -0
  196. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.alerts.js +0 -0
  197. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.clearing.js +0 -0
  198. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.cookie.js +0 -0
  199. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.dropdown.js +0 -0
  200. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.forms.js +0 -0
  201. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.interchange.js +0 -0
  202. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.joyride.js +0 -0
  203. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.js +0 -0
  204. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.magellan.js +0 -0
  205. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.orbit.js +0 -0
  206. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.placeholder.js +0 -0
  207. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.reveal.js +0 -0
  208. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.section.js +0 -0
  209. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.tooltips.js +0 -0
  210. data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.topbar.js +0 -0
  211. data/generators/{foundation → line_case}/public/javascripts/foundation.min.js +0 -0
  212. data/generators/line_case/public/javascripts/vendor/custom.modernizr.js +4 -0
  213. data/generators/{foundation → line_case}/public/javascripts/vendor/jquery.js +0 -0
  214. data/generators/{foundation → line_case}/public/javascripts/vendor/zepto.js +0 -0
  215. data/generators/line_case/public/samples/projects/sample.jpeg +0 -0
  216. data/generators/line_case/public/samples/projects/sample2.jpeg +0 -0
  217. data/generators/line_case/public/samples/projects/sample3.jpeg +0 -0
  218. data/generators/line_case/public/samples/projects/sample4.jpeg +0 -0
  219. data/generators/line_case/public/samples/projects/sample5.jpeg +0 -0
  220. data/generators/line_case/public/samples/projects/sample6.jpeg +0 -0
  221. data/generators/line_case/public/samples/projects/sample7.jpeg +0 -0
  222. data/generators/line_case/public/samples/projects/sample8.jpeg +0 -0
  223. data/generators/line_case/public/stylesheets/_variables.css.sass +20 -0
  224. data/generators/line_case/public/stylesheets/foundation/_variables.scss +1290 -0
  225. data/generators/line_case/public/stylesheets/foundation/components/_alert-boxes.scss +107 -0
  226. data/generators/line_case/public/stylesheets/foundation/components/_block-grid.scss +71 -0
  227. data/generators/line_case/public/stylesheets/foundation/components/_breadcrumbs.scss +124 -0
  228. data/generators/line_case/public/stylesheets/foundation/components/_button-groups.scss +89 -0
  229. data/generators/line_case/public/stylesheets/foundation/components/_buttons.scss +230 -0
  230. data/generators/line_case/public/stylesheets/foundation/components/_clearing.scss +227 -0
  231. data/generators/line_case/public/stylesheets/foundation/components/_custom-forms.scss +278 -0
  232. data/generators/line_case/public/stylesheets/foundation/components/_dropdown-buttons.scss +115 -0
  233. data/generators/line_case/public/stylesheets/foundation/components/_dropdown.scss +151 -0
  234. data/generators/line_case/public/stylesheets/foundation/components/_flex-video.scss +46 -0
  235. data/generators/line_case/public/stylesheets/foundation/components/_forms.scss +411 -0
  236. data/generators/line_case/public/stylesheets/foundation/components/_global.scss +366 -0
  237. data/generators/line_case/public/stylesheets/foundation/components/_grid-5.scss +214 -0
  238. data/generators/line_case/public/stylesheets/foundation/components/_grid.scss +188 -0
  239. data/generators/line_case/public/stylesheets/foundation/components/_inline-lists.scss +53 -0
  240. data/generators/line_case/public/stylesheets/foundation/components/_joyride.scss +217 -0
  241. data/generators/line_case/public/stylesheets/foundation/components/_keystrokes.scss +57 -0
  242. data/generators/line_case/public/stylesheets/foundation/components/_labels.scss +85 -0
  243. data/generators/line_case/public/stylesheets/foundation/components/_magellan.scss +23 -0
  244. data/generators/line_case/public/stylesheets/foundation/components/_orbit.scss +340 -0
  245. data/generators/line_case/public/stylesheets/foundation/components/_pagination.scss +140 -0
  246. data/generators/line_case/public/stylesheets/foundation/components/_panels.scss +83 -0
  247. data/generators/line_case/public/stylesheets/foundation/components/_pricing-tables.scss +131 -0
  248. data/generators/line_case/public/stylesheets/foundation/components/_progress-bars.scss +71 -0
  249. data/generators/line_case/public/stylesheets/foundation/components/_reveal.scss +136 -0
  250. data/generators/line_case/public/stylesheets/foundation/components/_section.scss +391 -0
  251. data/generators/line_case/public/stylesheets/foundation/components/_side-nav.scss +69 -0
  252. data/generators/line_case/public/stylesheets/foundation/components/_split-buttons.scss +167 -0
  253. data/generators/line_case/public/stylesheets/foundation/components/_sub-nav.scss +84 -0
  254. data/generators/line_case/public/stylesheets/foundation/components/_switch.scss +266 -0
  255. data/generators/line_case/public/stylesheets/foundation/components/_tables.scss +84 -0
  256. data/generators/line_case/public/stylesheets/foundation/components/_thumbs.scss +53 -0
  257. data/generators/line_case/public/stylesheets/foundation/components/_tooltips.scss +117 -0
  258. data/generators/line_case/public/stylesheets/foundation/components/_top-bar.scss +576 -0
  259. data/generators/line_case/public/stylesheets/foundation/components/_type.scss +435 -0
  260. data/generators/line_case/public/stylesheets/foundation/components/_visibility.scss +322 -0
  261. data/generators/line_case/public/stylesheets/foundation.css.scss +43 -0
  262. data/generators/{foundation → line_case}/public/stylesheets/foundation.min.css +0 -0
  263. data/generators/{foundation/public/stylesheets/normalize.css → line_case/public/stylesheets/normalize.css.scss} +5 -5
  264. data/generators/line_case/public/stylesheets/pages.css.sass +163 -0
  265. data/generators/page/template.liquid.haml.tt +8 -5
  266. data/generators/page/template.liquid.tt +6 -2
  267. data/lib/locomotive/wagon/cli.rb +139 -43
  268. data/lib/locomotive/wagon/generators/content_type.rb +26 -10
  269. data/lib/locomotive/wagon/generators/page.rb +41 -25
  270. data/lib/locomotive/wagon/generators/site/base.rb +53 -0
  271. data/lib/locomotive/wagon/generators/site/blank.rb +9 -2
  272. data/lib/locomotive/wagon/generators/site/bootstrap2.rb +8 -2
  273. data/lib/locomotive/wagon/generators/site/bootstrap3.rb +20 -2
  274. data/lib/locomotive/wagon/generators/site/cloned.rb +4 -0
  275. data/lib/locomotive/wagon/generators/site/{foundation.rb → foundation4.rb} +10 -4
  276. data/lib/locomotive/wagon/generators/site/foundation5.rb +48 -0
  277. data/lib/locomotive/wagon/generators/site/line_case.rb +20 -0
  278. data/lib/locomotive/wagon/generators/site/unzip.rb +10 -2
  279. data/lib/locomotive/wagon/generators/site.rb +48 -2
  280. data/lib/locomotive/wagon/generators/snippet.rb +2 -1
  281. data/lib/locomotive/wagon/liquid/drops/content_types.rb +9 -3
  282. data/lib/locomotive/wagon/liquid/drops/page.rb +9 -1
  283. data/lib/locomotive/wagon/liquid/scopeable.rb +1 -1
  284. data/lib/locomotive/wagon/liquid/tags/fetch_page.rb +41 -0
  285. data/lib/locomotive/wagon/liquid/tags/model_form.rb +67 -0
  286. data/lib/locomotive/wagon/liquid/tags/path_helper.rb +2 -2
  287. data/lib/locomotive/wagon/liquid/tags/with_scope.rb +1 -1
  288. data/lib/locomotive/wagon/listen.rb +18 -10
  289. data/lib/locomotive/wagon/logger.rb +4 -0
  290. data/lib/locomotive/wagon/misc/core_ext.rb +8 -0
  291. data/lib/locomotive/wagon/misc/deployment_connection.rb +120 -0
  292. data/lib/locomotive/wagon/misc/hosting_api.rb +115 -0
  293. data/lib/locomotive/wagon/misc/httparty.rb +2 -0
  294. data/lib/locomotive/wagon/misc/livereload.rb +43 -0
  295. data/lib/locomotive/wagon/misc/mounter.rb +1 -1
  296. data/lib/locomotive/wagon/misc/tcp_port.rb +42 -0
  297. data/lib/locomotive/wagon/misc/thor.rb +15 -0
  298. data/lib/locomotive/wagon/server/entry_submission.rb +69 -38
  299. data/lib/locomotive/wagon/server/middleware.rb +4 -2
  300. data/lib/locomotive/wagon/server/page.rb +2 -2
  301. data/lib/locomotive/wagon/server.rb +11 -7
  302. data/lib/locomotive/wagon/version.rb +1 -1
  303. data/lib/locomotive/wagon.rb +141 -30
  304. data/locomotivecms_wagon.gemspec +7 -6
  305. data/spec/fixtures/default/app/content_types/bands.yml +3 -1
  306. data/spec/fixtures/default/app/views/pages/all.liquid.haml +3 -0
  307. data/spec/fixtures/default/app/views/pages/events.liquid.haml +21 -0
  308. data/spec/fixtures/default/app/views/pages/filtered.liquid.haml +11 -1
  309. data/spec/fixtures/default/app/views/pages/index.liquid.haml +1 -1
  310. data/spec/fixtures/default/data/bands.yml +3 -0
  311. data/spec/integration/server/basic_spec.rb +1 -0
  312. data/spec/integration/server/contact_form_spec.rb +1 -1
  313. data/spec/integration/server/liquid_spec.rb +8 -1
  314. data/spec/integration/server/new_contact_form_spec.rb +67 -0
  315. data/spec/integration/server/with_scope_spec.rb +10 -0
  316. data/spec/spec_helper.rb +3 -0
  317. metadata +339 -144
  318. data/generators/bootstrap2/app/views/pages/404.liquid +0 -13
  319. data/generators/bootstrap2/app/views/pages/index.liquid +0 -98
  320. data/generators/bootstrap2/app/views/pages/index.liquid.haml +0 -80
  321. data/generators/bootstrap2/app/views/snippets/footer.liquid +0 -3
  322. data/generators/bootstrap2/app/views/snippets/footer.liquid.haml +0 -2
  323. data/generators/bootstrap2/config/deploy.yml +0 -15
  324. data/generators/bootstrap2/public/fonts/FontAwesome.otf +0 -0
  325. data/generators/bootstrap2/public/fonts/fontawesome-webfont.eot +0 -0
  326. data/generators/bootstrap2/public/fonts/fontawesome-webfont.svg +0 -399
  327. data/generators/bootstrap2/public/fonts/fontawesome-webfont.ttf +0 -0
  328. data/generators/bootstrap2/public/fonts/fontawesome-webfont.woff +0 -0
  329. data/generators/bootstrap2/public/javascripts/bootstrap.js +0 -2280
  330. data/generators/bootstrap2/public/javascripts/bootstrap.min.js +0 -6
  331. data/generators/bootstrap2/public/stylesheets/application.css.scss +0 -39
  332. data/generators/bootstrap2/public/stylesheets/bootstrap-responsive.css +0 -1109
  333. data/generators/bootstrap2/public/stylesheets/bootstrap-responsive.min.css +0 -9
  334. data/generators/bootstrap2/public/stylesheets/bootstrap.css +0 -5568
  335. data/generators/bootstrap2/public/stylesheets/bootstrap.min.css +0 -9
  336. data/generators/bootstrap2/public/stylesheets/fonts/awesome.css.scss +0 -3
  337. data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.css +0 -1203
  338. data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.min.css +0 -384
  339. data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.css +0 -1470
  340. data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.min.css +0 -403
  341. data/generators/bootstrap3/public/javascripts/bootstrap.js +0 -1999
  342. data/generators/bootstrap3/public/stylesheets/bootstrap-theme.css +0 -384
  343. data/generators/bootstrap3/public/stylesheets/bootstrap-theme.min.css +0 -1
  344. data/generators/bootstrap3/public/stylesheets/bootstrap.min.css +0 -9
  345. data/generators/content_type/app/content_types/%name%.yml.tt +0 -58
  346. data/generators/foundation/app/views/pages/index.liquid +0 -150
  347. data/generators/foundation/app/views/pages/index.liquid.haml +0 -125
  348. data/generators/foundation/app/views/snippets/footer.liquid +0 -16
  349. data/generators/foundation/app/views/snippets/footer.liquid.haml +0 -22
  350. data/generators/foundation/config/deploy.yml +0 -15
  351. data/generators/foundation/public/samples/.empty_directory +0 -1
  352. data/generators/foundation/public/stylesheets/foundation.css +0 -4727
@@ -0,0 +1,167 @@
1
+ //
2
+ // Split Button Variables
3
+ //
4
+ $include-html-button-classes: $include-html-classes !default;
5
+
6
+ // We use these to control different shared styles for Split Buttons
7
+ $split-button-function-factor: 15% !default;
8
+ $split-button-pip-color: #fff !default;
9
+ $split-button-pip-color-alt: #333 !default;
10
+ $split-button-active-bg-tint: rgba(0,0,0,0.1) !default;
11
+
12
+ // We use these to control tiny split buttons
13
+ $split-button-padding-tny: $button-tny * 9 !default;
14
+ $split-button-span-width-tny: $button-tny * 6.5 !default;
15
+ $split-button-pip-size-tny: $button-tny !default;
16
+ $split-button-pip-top-tny: $button-tny * 2 !default;
17
+ $split-button-pip-default-float-tny: em-calc(-5) !default;
18
+
19
+ // We use these to control small split buttons
20
+ $split-button-padding-sml: $button-sml * 7 !default;
21
+ $split-button-span-width-sml: $button-sml * 5 !default;
22
+ $split-button-pip-size-sml: $button-sml !default;
23
+ $split-button-pip-top-sml: $button-sml * 1.5 !default;
24
+ $split-button-pip-default-float-sml: em-calc(-9) !default;
25
+
26
+ // We use these to control medium split buttons
27
+ $split-button-padding-med: $button-med * 6.4 !default;
28
+ $split-button-span-width-med: $button-med * 4 !default;
29
+ $split-button-pip-size-med: $button-med - em-calc(3) !default;
30
+ $split-button-pip-top-med: $button-med * 1.5 !default;
31
+ $split-button-pip-default-float-med: em-calc(-9) !default;
32
+
33
+ // We use these to control large split buttons
34
+ $split-button-padding-lrg: $button-lrg * 6 !default;
35
+ $split-button-span-width-lrg: $button-lrg * 3.75 !default;
36
+ $split-button-pip-size-lrg: $button-lrg - em-calc(6) !default;
37
+ $split-button-pip-top-lrg: $button-lrg + em-calc(5) !default;
38
+ $split-button-pip-default-float-lrg: em-calc(-9) !default;
39
+
40
+
41
+ //
42
+ // Split Button Mixin
43
+ //
44
+
45
+ // We use this mixin to create split buttons that build upon the button mixins
46
+ @mixin split-button($padding:medium, $pip-color:$split-button-pip-color, $span-border:$primary-color, $base-style:true) {
47
+
48
+ // With this, we can control whether or not the base styles come through.
49
+ @if $base-style {
50
+ position: relative;
51
+
52
+ // Styling for the split arrow clickable area
53
+ span {
54
+ display: block;
55
+ height: 100%;
56
+ position: absolute;
57
+ #{$opposite-direction}: 0;
58
+ top: 0;
59
+ border-#{$default-float}: solid 1px;
60
+
61
+ // Building the triangle pip indicator
62
+ &:before {
63
+ position: absolute;
64
+ content: "";
65
+ width: 0;
66
+ height: 0;
67
+ display: block;
68
+ border-style: inset;
69
+
70
+ #{$default-float}: 50%;
71
+ }
72
+
73
+ &:active { background-color: $split-button-active-bg-tint; }
74
+ }
75
+ }
76
+
77
+ // Control the border color for the span area of the split button
78
+ @if $span-border {
79
+ span {
80
+ border-#{$default-float}-color: darken($span-border, $split-button-function-factor);
81
+ }
82
+ }
83
+
84
+ // Style of the button and clickable area for tiny sizes
85
+ @if $padding == tiny {
86
+ padding-#{$opposite-direction}: $split-button-padding-tny;
87
+
88
+ span { width: $split-button-span-width-tny;
89
+ &:before {
90
+ border-top-style: solid;
91
+ border-width: $split-button-pip-size-tny;
92
+ top: $split-button-pip-top-tny;
93
+ margin-#{$default-float}: $split-button-pip-default-float-tny;
94
+ }
95
+ }
96
+ }
97
+
98
+ // Style of the button and clickable area for small sizes
99
+ @else if $padding == small {
100
+ padding-#{$opposite-direction}: $split-button-padding-sml;
101
+
102
+ span { width: $split-button-span-width-sml;
103
+ &:before {
104
+ border-top-style: solid;
105
+ border-width: $split-button-pip-size-sml;
106
+ top: $split-button-pip-top-sml;
107
+ margin-#{$default-float}: $split-button-pip-default-float-sml;
108
+ }
109
+ }
110
+ }
111
+
112
+ // Style of the button and clickable area for default (medium) sizes
113
+ @else if $padding == medium {
114
+ padding-#{$opposite-direction}: $split-button-padding-med;
115
+
116
+ span { width: $split-button-span-width-med;
117
+ &:before {
118
+ border-top-style: solid;
119
+ border-width: $split-button-pip-size-med;
120
+ top: $split-button-pip-top-med;
121
+ margin-#{$default-float}: $split-button-pip-default-float-med;
122
+ }
123
+ }
124
+ }
125
+
126
+ // Style of the button and clickable area for large sizes
127
+ @else if $padding == large {
128
+ padding-#{$opposite-direction}: $split-button-padding-lrg;
129
+
130
+ span { width: $split-button-span-width-lrg;
131
+ &:before {
132
+ border-top-style: solid;
133
+ border-width: $split-button-pip-size-lrg;
134
+ top: $split-button-pip-top-lrg;
135
+ margin-#{$default-float}: $split-button-pip-default-float-lrg;
136
+ }
137
+ }
138
+ }
139
+
140
+ // Control the color of the triangle pip
141
+ @if $pip-color {
142
+ span:before { border-color: $pip-color transparent transparent transparent; }
143
+ }
144
+ }
145
+
146
+
147
+ @if $include-html-button-classes != false {
148
+
149
+ /* Split Buttons */
150
+ .split.button { @include split-button;
151
+
152
+ &.secondary { @include split-button(false, $split-button-pip-color, $secondary-color, false); }
153
+ &.alert { @include split-button(false, false, $alert-color, false); }
154
+ &.success { @include split-button(false, false, $success-color, false); }
155
+
156
+ &.tiny { @include split-button(tiny, false, false, false); }
157
+ &.small { @include split-button(small, false, false, false); }
158
+ &.large { @include split-button(large, false, false, false); }
159
+ &.expand { padding-left: 2em; }
160
+
161
+ &.secondary { @include split-button(false, $split-button-pip-color-alt, false, false); }
162
+
163
+ &.radius span { @include side-radius($opposite-direction, $global-radius); }
164
+ &.round span { @include side-radius($opposite-direction, 1000px); }
165
+ }
166
+
167
+ }
@@ -0,0 +1,84 @@
1
+ //
2
+ // Sub Nav Variables
3
+ //
4
+ $include-html-nav-classes: $include-html-classes !default;
5
+
6
+ // We use these to control margin and padding
7
+ $sub-nav-list-margin: em-calc(-4 0 18) !default;
8
+ $sub-nav-list-padding-top: em-calc(4) !default;
9
+
10
+ // We use this to control the definition
11
+ $sub-nav-font-size: em-calc(14) !default;
12
+ $sub-nav-font-color: #999 !default;
13
+ $sub-nav-font-weight: normal !default;
14
+ $sub-nav-text-decoration: none !default;
15
+ $sub-nav-border-radius: 1000px !default;
16
+
17
+ // We use these to control the active item styles
18
+ $sub-nav-active-font-weight: bold !default;
19
+ $sub-nav-active-bg: $primary-color !default;
20
+ $sub-nav-active-color: #fff !default;
21
+ $sub-nav-active-padding: em-calc(3 9) !default;
22
+ $sub-nav-active-cursor: default !default;
23
+
24
+ $sub-nav-item-divider: "" !default;
25
+ $sub-nav-item-divider-margin: emCalc(12) !default;
26
+
27
+ //
28
+ // Sub Nav Mixins
29
+ //
30
+
31
+ @mixin sub-nav($font-color:$sub-nav-font-color, $font-size:$sub-nav-font-size, $active-bg:$sub-nav-active-bg) {
32
+ display: block;
33
+ width: auto;
34
+ overflow: hidden;
35
+ margin: $sub-nav-list-margin;
36
+ padding-top: $sub-nav-list-padding-top;
37
+ margin-#{$opposite-direction}: 0;
38
+ margin-#{$default-float}: em-calc(-9);
39
+
40
+ dt,
41
+ dd,
42
+ li {
43
+ float: $default-float;
44
+ display: inline;
45
+ margin-#{$default-float}: em-calc(9);
46
+ margin-bottom: em-calc(10);
47
+ font-weight: $sub-nav-font-weight;
48
+ font-size: $font-size;
49
+
50
+ a {
51
+ color: $font-color;
52
+ text-decoration: $sub-nav-text-decoration; }
53
+
54
+ &.active a {
55
+ @include radius($sub-nav-border-radius);
56
+ font-weight: $sub-nav-active-font-weight;
57
+ background: $active-bg;
58
+ padding: $sub-nav-active-padding;
59
+ cursor: $sub-nav-active-cursor;
60
+ color: $sub-nav-active-color;
61
+ }
62
+ @if $sub-nav-item-divider != "" {
63
+ margin-#{$default-float}: 0;
64
+
65
+ &:before {
66
+ content: "#{$sub-nav-item-divider}";
67
+ margin: 0 $sub-nav-item-divider-margin;
68
+ }
69
+
70
+ &:first-child:before {
71
+ content: "";
72
+ margin: 0;
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+
79
+ @if $include-html-nav-classes != false {
80
+
81
+ /* Side Nav */
82
+ .sub-nav { @include sub-nav; }
83
+
84
+ }
@@ -0,0 +1,266 @@
1
+ //
2
+ // Switch Variables
3
+ //
4
+ $include-html-form-classes: $include-html-classes !default;
5
+
6
+ // Controlling border styles and background colors for the switch container
7
+ $switch-border-color: darken(#fff, 20%) !default;
8
+ $switch-border-style: solid !default;
9
+ $switch-border-width: 1px !default;
10
+ $switch-bg: #fff !default;
11
+
12
+ // We use these to control the switch heights for our default classes
13
+ $switch-height-tny: 22px !default;
14
+ $switch-height-sml: 28px !default;
15
+ $switch-height-med: 36px !default;
16
+ $switch-height-lrg: 44px !default;
17
+ $switch-bottom-margin: em-calc(20) !default;
18
+
19
+ // We use these to control default font sizes for our classes.
20
+ $switch-font-size-tny: 11px !default;
21
+ $switch-font-size-sml: 12px !default;
22
+ $switch-font-size-med: 14px !default;
23
+ $switch-font-size-lrg: 17px !default;
24
+ $switch-label-side-padding: 6px !default;
25
+
26
+ // We use these to style the switch-paddle
27
+ $switch-paddle-bg: #fff !default;
28
+ $switch-paddle-fade-to-color: darken($switch-paddle-bg, 10%) !default;
29
+ $switch-paddle-border-color: darken($switch-paddle-bg, 35%) !default;
30
+ $switch-paddle-border-width: 1px !default;
31
+ $switch-paddle-border-style: solid !default;
32
+ $switch-paddle-transition-speed: .1s !default;
33
+ $switch-paddle-transition-ease: ease-out !default;
34
+ $switch-positive-color: lighten($success-color, 50%) !default;
35
+ $switch-negative-color: #f5f5f5 !default;
36
+
37
+ // Outline Style for tabbing through switches
38
+ $switch-label-outline: 1px dotted #888 !default;
39
+
40
+
41
+ //
42
+ // Switch Mixins
43
+ //
44
+
45
+ // We use this mixin to create the base styles for our switch element.
46
+ @mixin switch-base($transition-speed:$switch-paddle-transition-speed, $transition-ease:$switch-paddle-transition-ease) {
47
+
48
+ // Default position and structure for switch container.
49
+ position: relative;
50
+ padding: 0;
51
+ display: block;
52
+ overflow: hidden;
53
+ border-style: $switch-border-style;
54
+ border-width: $switch-border-width;
55
+ margin-bottom: $switch-bottom-margin;
56
+
57
+ // Default label styles for type and transition
58
+ label {
59
+ position: relative;
60
+ #{$default-float}: 0;
61
+ z-index: 2;
62
+ float: $default-float;
63
+ width: 50%;
64
+ height: 100%;
65
+ margin: 0;
66
+ font-weight: bold;
67
+ text-align: $default-float;
68
+
69
+ // Transition for the switch label to follow paddle
70
+ @include single-transition(all, $transition-speed, $transition-ease);
71
+ }
72
+
73
+ // So that we don't need to recreate the form with any JS, we use the
74
+ // existing radio button, but we cleverly position and hide it.
75
+ input {
76
+ position: absolute;
77
+ z-index: 3;
78
+ opacity: 0;
79
+ width: 100%;
80
+ height: 100%;
81
+ -moz-appearance: none;
82
+
83
+ // Hover and focus styles for the paddle
84
+ &:hover,
85
+ &:focus {
86
+ cursor: $cursor-pointer-value;
87
+ }
88
+ }
89
+
90
+ // The toggle area for radio switches. We call is a paddle.
91
+ span:last-child {
92
+ position: absolute;
93
+ top: -1px;
94
+ #{$default-float}: -1px;
95
+ z-index: 1;
96
+ display: block;
97
+ padding: 0;
98
+ border-width: $switch-paddle-border-width;
99
+ border-style: $switch-paddle-border-style;
100
+
101
+ // Transition for the switch paddle
102
+ @include single-transition(all, $transition-speed, $transition-ease);
103
+ }
104
+
105
+ // When a label isn't :checked, we hide it as it slides away.
106
+ input:not(:checked) + label { opacity: 0; }
107
+
108
+ // Controlling the position of the labels as they are toggled.
109
+ input:checked { display: none !important; }
110
+ input { #{$default-float}: 0; display: block !important; }
111
+
112
+ // Left Label alignment and position changes, including fixes for while inside a custom form
113
+ input:first-of-type + label,
114
+ input:first-of-type + span + label { #{$default-float}: -50%; }
115
+ input:first-of-type:checked + label,
116
+ input:first-of-type:checked + span + label { #{$default-float}: 0%; }
117
+
118
+ // Right Label alignment and position changes, including fixes for while inside a custom form
119
+ input:last-of-type + label,
120
+ input:last-of-type + span + label {#{$opposite-direction}: -50%; #{$default-float}: auto; text-align: $opposite-direction; }
121
+ input:last-of-type:checked + label,
122
+ input:last-of-type:checked + span + label { #{$opposite-direction}: 0%; #{$default-float}: auto; }
123
+
124
+ // Hiding custom form spans since we auto-create them
125
+ span.custom { display: none !important; }
126
+
127
+ // Bugfix for older Webkit, including mobile Webkit. Adapted from:
128
+ // http://css-tricks.com/webkit-sibling-bug/
129
+ @media only screen and (-webkit-min-device-pixel-ratio:0) and (max-device-width:480px) {
130
+ @if $experimental { -webkit-animation: webkitSiblingBugfix infinite 1s; }
131
+ }
132
+
133
+ @media only screen and (-webkit-min-device-pixel-ratio:1.5) {
134
+ @if $experimental { -webkit-animation: none 0; }
135
+ }
136
+
137
+ form.custom & .hidden-field {
138
+ margin-left: auto;
139
+ position: absolute;
140
+ visibility: visible;
141
+ }
142
+ }
143
+
144
+ // We use this mixin to create the size styles for switches.
145
+ @mixin switch-size($height:$switch-height-med, $font-size:$switch-font-size-med, $line-height:2.3em) {
146
+
147
+ height: em-calc($height);
148
+
149
+ label {
150
+ padding: em-calc(0 $switch-label-side-padding);
151
+ line-height: $line-height;
152
+ font-size: em-calc($font-size);
153
+ }
154
+
155
+ input {
156
+ // Move the paddle to the right position
157
+ &:first-of-type:checked ~ span:last-child {
158
+ #{$default-float}: 100%;
159
+ margin-#{$default-float}: em-calc(-$height + 1px);
160
+ }
161
+ }
162
+
163
+ span:last-child {
164
+ width: em-calc($height);
165
+ height: em-calc($height);
166
+ }
167
+
168
+ }
169
+
170
+ // We use this mixin to add color and other fanciness to the switches.
171
+ @mixin switch-style($paddle-bg:$switch-paddle-bg, $positive-color:$switch-positive-color, $negative-color:$switch-negative-color, $radius:false, $base-style:true) {
172
+
173
+ @if $base-style {
174
+ background: $switch-bg;
175
+ border-color: $switch-border-color;
176
+
177
+ span:last-child {
178
+ border-color: darken($paddle-bg, 30%);
179
+ background: $paddle-bg;
180
+ @if $experimental {
181
+ background: -moz-linear-gradient(top, $paddle-bg 0%, darken($paddle-bg, 5%) 100%);
182
+ background: -webkit-linear-gradient(top, $paddle-bg 0%, darken($paddle-bg, 5%) 100%);
183
+ }
184
+ background: linear-gradient(to bottom, $paddle-bg 0%, darken($paddle-bg, 5%) 100%);
185
+
186
+ // Building the alternating colored sides of the switch
187
+ @if $experimental {
188
+ -webkit-box-shadow: 2px 0 10px 0 rgba(0,0,0,0.07),
189
+ 1000px 0 0 1000px $positive-color,
190
+ -2px 0 10px 0 rgba(0,0,0,0.07),
191
+ -1000px 0 0 1000px $negative-color;
192
+ }
193
+ box-shadow: 2px 0 10px 0 rgba(0,0,0,0.07),
194
+ 1000px 0 0 980px $positive-color,
195
+ -2px 0 10px 0 rgba(0,0,0,0.07),
196
+ -1000px 0 0 1000px $negative-color;
197
+ }
198
+
199
+ &:hover,
200
+ &:focus {
201
+ span:last-child {
202
+ background: $paddle-bg;
203
+ @if $experimental {
204
+ background: -moz-linear-gradient(top, $paddle-bg 0%, darken($paddle-bg, 10%) 100%);
205
+ background: -webkit-linear-gradient(top, $paddle-bg 0%, darken($paddle-bg, 10%) 100%);
206
+ }
207
+ background: linear-gradient(to bottom, $paddle-bg 0%, darken($paddle-bg, 10%) 100%);
208
+ }
209
+ }
210
+
211
+ &:active { background: transparent; }
212
+ }
213
+
214
+ // Setting up the radius for switches
215
+ @if $radius == true {
216
+ @include radius(4px);
217
+ span:last-child { @include radius(3px); }
218
+ }
219
+ @else if $radius {
220
+ @include radius($radius);
221
+ span:last-child { @include radius($radius - 1px); }
222
+ }
223
+
224
+ }
225
+
226
+ // We use this to quickly create switches with a single mixin
227
+ @mixin switch($transition-speed:$switch-paddle-transition-speed, $transition-ease:$switch-paddle-transition-ease, $height:$switch-height-med, $font-size:$switch-font-size-med, $line-height:2.3em, $paddle-bg:$switch-paddle-bg, $positive-color:$switch-positive-color, $negative-color:$switch-negative-color, $radius:false, $base-style:true) {
228
+ @include switch-base($transition-speed, $transition-ease);
229
+ @include switch-size($height, $font-size, $line-height);
230
+ @include switch-style($paddle-bg, $positive-color, $negative-color, $radius, $base-style);
231
+ }
232
+
233
+ @if $include-html-form-classes != false {
234
+
235
+ /* Foundation Switches */
236
+ @media only screen {
237
+
238
+ // Containing element for the radio switch
239
+ div.switch {
240
+ @include switch;
241
+
242
+ // Large radio switches
243
+ &.large { @include switch-size($switch-height-lrg, $switch-font-size-lrg); }
244
+
245
+ // Small radio switches
246
+ &.small { @include switch-size($switch-height-sml, $switch-font-size-sml, 2.1em); }
247
+
248
+ // Tiny radio switches
249
+ &.tiny { @include switch-size($switch-height-tny, $switch-font-size-tny, 1.9em); }
250
+
251
+ // Add a radius to the switch
252
+ &.radius { @include radius(4px);
253
+ span:last-child{ @include radius(3px); }
254
+ }
255
+
256
+ // Make the switch completely round, like a pill
257
+ &.round { @include radius(1000px);
258
+ span:last-child { @include radius(999px); }
259
+ label { padding: em-calc(0 $switch-label-side-padding + 3); }
260
+ }
261
+
262
+ }
263
+
264
+ @if $experimental { @-webkit-keyframes webkitSiblingBugfix { from { position: relative; } to { position: relative; } } }
265
+ }
266
+ }
@@ -0,0 +1,84 @@
1
+ //
2
+ // Table Variables
3
+ //
4
+ $include-html-table-classes: $include-html-classes !default;
5
+
6
+ // These control the background color for the table and even rows
7
+ $table-bg: #fff !default;
8
+ $table-even-row-bg: #f9f9f9 !default;
9
+
10
+ // These control the table cell border style
11
+ $table-border-style: solid !default;
12
+ $table-border-size: 1px !default;
13
+ $table-border-color: #ddd !default;
14
+
15
+ // These control the table head styles
16
+ $table-head-bg: #f5f5f5 !default;
17
+ $table-head-font-size: em-calc(14) !default;
18
+ $table-head-font-color: #222 !default;
19
+ $table-head-font-weight: bold !default;
20
+ $table-head-padding: em-calc(8 10 10) !default;
21
+
22
+ // These control the row padding and font styles
23
+ $table-row-padding: em-calc(9 10) !default;
24
+ $table-row-font-size: em-calc(14) !default;
25
+ $table-row-font-color: #222 !default;
26
+ $table-line-height: em-calc(18) !default;
27
+
28
+ // These are for controlling the display and margin of tables
29
+ $table-display: table-cell !default;
30
+ $table-margin-bottom: em-calc(20) !default;
31
+
32
+
33
+ //
34
+ // Table Mixin
35
+ //
36
+ @mixin table {
37
+ background: $table-bg;
38
+ margin-bottom: $table-margin-bottom;
39
+ border: $table-border-style $table-border-size $table-border-color;
40
+
41
+ thead,
42
+ tfoot {
43
+ background: $table-head-bg;
44
+ font-weight: $table-head-font-weight;
45
+
46
+ tr {
47
+ th,
48
+ td {
49
+ padding: $table-head-padding;
50
+ font-size: $table-head-font-size;
51
+ color: $table-head-font-color;
52
+ text-align: $default-float;
53
+ }
54
+ }
55
+ }
56
+
57
+ tr {
58
+ th,
59
+ td {
60
+ padding: $table-row-padding;
61
+ font-size: $table-row-font-size;
62
+ color: $table-row-font-color;
63
+ }
64
+
65
+ &.even,
66
+ &.alt,
67
+ &:nth-of-type(even) { background: $table-even-row-bg; }
68
+ }
69
+
70
+ thead tr th,
71
+ tfoot tr th,
72
+ tbody tr td,
73
+ tr td,
74
+ tfoot tr td { display: $table-display; line-height: $table-line-height; }
75
+ }
76
+
77
+ @if $include-html-table-classes {
78
+
79
+ /* Tables */
80
+ table {
81
+ @include table;
82
+ }
83
+
84
+ }
@@ -0,0 +1,53 @@
1
+ //
2
+ // Image Thumbnail Variables
3
+ //
4
+ $include-html-media-classes: $include-html-classes !default;
5
+
6
+ // We use these to control border styles
7
+ $thumb-border-style: solid !default;
8
+ $thumb-border-width: 4px !default;
9
+ $thumb-border-color: #fff !default;
10
+ $thumb-box-shadow: 0 0 0 1px rgba(#000,.2) !default;
11
+ $thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5) !default;
12
+
13
+ // Radius and transition speed for thumbs
14
+ $thumb-radius: $global-radius !default;
15
+ $thumb-transition-speed: 200ms !default;
16
+
17
+ //
18
+ // Image Thumbnail Mixins
19
+ //
20
+
21
+ // We use this to create image thumbnail styles.
22
+ @mixin thumb($border-width:$thumb-border-width, $box-shadow:$thumb-box-shadow, $box-shadow-hover:$thumb-box-shadow-hover) {
23
+ line-height: 0;
24
+ display: inline-block;
25
+ border: $thumb-border-style $border-width $thumb-border-color;
26
+ @if $experimental {
27
+ -webkit-box-shadow: $box-shadow;
28
+ }
29
+ box-shadow: $box-shadow;
30
+
31
+ &:hover,
32
+ &:focus {
33
+ @if $experimental {
34
+ -webkit-box-shadow: $box-shadow-hover;
35
+ }
36
+ box-shadow: $box-shadow-hover;
37
+ }
38
+ }
39
+
40
+
41
+ // If html classes are turned on we'll include these classes.
42
+ @if $include-html-media-classes != false {
43
+
44
+ /* Image Thumbnails */
45
+ .th {
46
+ @include thumb;
47
+ @include single-transition(all,$thumb-transition-speed,ease-out);
48
+
49
+ &.radius { @include radius($thumb-radius); }
50
+ }
51
+ a.th { display: inline-block; max-width:100%; }
52
+
53
+ }