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,71 @@
1
+ //
2
+ // Progress Bar Variables
3
+ //
4
+ $include-html-media-classes: $include-html-classes !default;
5
+
6
+ // We use this to se the prog bar height
7
+ $progress-bar-height: em-calc(25) !default;
8
+ $progress-bar-color: transparent !default;
9
+
10
+ // We use these to control the border styles
11
+ $progress-bar-border-color: darken(#fff, 20%) !default;
12
+ $progress-bar-border-size: 1px !default;
13
+ $progress-bar-border-style: solid !default;
14
+ $progress-bar-border-radius: $global-radius !default;
15
+
16
+ // We use these to control the margin & padding
17
+ $progress-bar-pad: em-calc(2) !default;
18
+ $progress-bar-margin-bottom: em-calc(10) !default;
19
+
20
+ // We use these to set the meter colors
21
+ $progress-meter-color: $primary-color !default;
22
+ $progress-meter-secondary-color: $secondary-color !default;
23
+ $progress-meter-success-color: $success-color !default;
24
+ $progress-meter-alert-color: $alert-color !default;
25
+
26
+
27
+ //
28
+ // Progress Bar Mixins
29
+ //
30
+
31
+ // We use this to set up the progress bar container
32
+ @mixin progress-container {
33
+ background-color: $progress-bar-color;
34
+ height: $progress-bar-height;
35
+ border: $progress-bar-border-size $progress-bar-border-style $progress-bar-border-color;
36
+ padding: $progress-bar-pad;
37
+ margin-bottom: $progress-bar-margin-bottom;
38
+ }
39
+
40
+ @mixin progress-meter($bg:$progress-meter-color) {
41
+ background: $bg;
42
+ height: 100%;
43
+ display: block;
44
+ }
45
+
46
+
47
+ @if $include-html-media-classes != false {
48
+
49
+ /* Progress Bar */
50
+ .progress {
51
+ @include progress-container;
52
+
53
+ // Meter
54
+ .meter {
55
+ @include progress-meter;
56
+ }
57
+ &.secondary .meter { @include progress-meter($bg:$progress-meter-secondary-color); }
58
+ &.success .meter { @include progress-meter($bg:$progress-meter-success-color); }
59
+ &.alert .meter { @include progress-meter($bg:$progress-meter-alert-color); }
60
+
61
+ &.radius { @include radius($global-radius);
62
+ .meter { @include radius($global-radius - 1); }
63
+ }
64
+
65
+ &.round { @include radius(1000px);
66
+ .meter { @include radius(999px); }
67
+ }
68
+
69
+ }
70
+
71
+ }
@@ -0,0 +1,136 @@
1
+ //
2
+ // Reveal Variables
3
+ //
4
+
5
+ $include-html-reveal-classes: $include-html-classes !default;
6
+
7
+ // We use these to control the style of the reveal overlay.
8
+ $reveal-overlay-bg: rgba(#000, .45) !default;
9
+ $reveal-overlay-bg-old: #000 !default;
10
+
11
+ // We use these to control the style of the modal itself.
12
+ $reveal-modal-bg: #fff !default;
13
+ $reveal-position-top: 50px !default;
14
+ $reveal-default-width: 80% !default;
15
+ $reveal-modal-padding: em-calc(20) !default;
16
+ $reveal-box-shadow: 0 0 10px rgba(#000,.4) !default;
17
+
18
+ // We use these to style the reveal close button
19
+ $reveal-close-font-size: em-calc(22) !default;
20
+ $reveal-close-top: em-calc(8) !default;
21
+ $reveal-close-side: em-calc(11) !default;
22
+ $reveal-close-color: #aaa !default;
23
+ $reveal-close-weight: bold !default;
24
+
25
+ // We use these to control the modal border
26
+ $reveal-border-style: solid !default;
27
+ $reveal-border-width: 1px !default;
28
+ $reveal-border-color: #666 !default;
29
+
30
+ $reveal-modal-class: "reveal-modal" !default;
31
+ $close-reveal-modal-class: "close-reveal-modal" !default;
32
+
33
+ //
34
+ // Reveal Mixins
35
+ //
36
+
37
+ // We use this to create the reveal background overlay styles
38
+ @mixin reveal-bg {
39
+ position: fixed;
40
+ height: 100%;
41
+ width: 100%;
42
+ background: $reveal-overlay-bg-old;
43
+ background: $reveal-overlay-bg;
44
+ z-index: 98;
45
+ display: none;
46
+ top: 0;
47
+ #{$default-float}: 0;
48
+ }
49
+
50
+ // We use this mixin to create the structure of a reveal modal
51
+ @mixin reveal-modal-base($base-style:true, $width:$reveal-default-width) {
52
+ @if $base-style {
53
+ visibility: hidden;
54
+ display: none;
55
+ position: absolute;
56
+ #{$default-float}: 50%;
57
+ z-index: 99;
58
+ height: auto;
59
+
60
+ // Make sure rows don't have a min-width on them
61
+ .column,
62
+ .columns { min-width: 0; }
63
+
64
+ // Get rid of margin from first and last element inside modal
65
+ & > :first-child { margin-top: 0; }
66
+ & > :last-child { margin-bottom: 0; }
67
+ }
68
+
69
+ @if $width {
70
+ margin-#{$default-float}: -($width / 2);
71
+ width: $width;
72
+ }
73
+ }
74
+
75
+ // We use this to style the reveal modal defaults
76
+ @mixin reveal-modal-style($bg:$reveal-modal-bg, $padding:$reveal-modal-padding, $border:true, $border-style:$reveal-border-style, $border-width:$reveal-border-width, $border-color:$reveal-border-color, $box-shadow:true, $top-offset:$reveal-position-top) {
77
+
78
+ @if $bg { background-color: $bg; }
79
+ @if $padding { padding: $padding; }
80
+
81
+ @if $border { border: $border-style $border-width $border-color; }
82
+
83
+ // We can choose whether or not to include the default box-shadow.
84
+ @if $box-shadow {
85
+ @if $experimental {
86
+ -webkit-box-shadow: $reveal-box-shadow;
87
+ }
88
+ box-shadow: $reveal-box-shadow;
89
+ }
90
+
91
+ @if $top-offset { top: $top-offset; }
92
+ }
93
+
94
+ // We use this to create a close button for the reveal modal
95
+ @mixin reveal-close($color:$reveal-close-color) {
96
+ font-size: $reveal-close-font-size;
97
+ line-height: 1;
98
+ position: absolute;
99
+ top: $reveal-close-top;
100
+ #{$opposite-direction}: $reveal-close-side;
101
+ color: $color;
102
+ font-weight: $reveal-close-weight;
103
+ cursor: $cursor-pointer-value;
104
+ }
105
+
106
+ @if $include-html-reveal-classes != false {
107
+
108
+ // Reveal Modals
109
+ .reveal-modal-bg { @include reveal-bg; }
110
+
111
+ .#{$reveal-modal-class} {
112
+ @include reveal-modal-base;
113
+ @include reveal-modal-style;
114
+
115
+ .#{$close-reveal-modal-class} { @include reveal-close; }
116
+ }
117
+
118
+ // Large Screen Styles
119
+ @media #{$small} {
120
+
121
+ .#{$reveal-modal-class} {
122
+ @include reveal-modal-style(false, em-calc(30), false, $box-shadow: false, $top-offset: em-calc(100));
123
+
124
+ &.tiny { @include reveal-modal-base(false, 30%); }
125
+ &.small { @include reveal-modal-base(false, 40%); }
126
+ &.medium { @include reveal-modal-base(false, 60%); }
127
+ &.large { @include reveal-modal-base(false, 70%); }
128
+ &.xlarge { @include reveal-modal-base(false, 95%); }
129
+ }
130
+ }
131
+
132
+ // Reveal Print Styles
133
+ @media print {
134
+ .#{$reveal-modal-class} {background: #fff !important;}
135
+ }
136
+ }
@@ -0,0 +1,391 @@
1
+ //
2
+ // Section Variables
3
+ //
4
+ $include-html-section-classes: $include-html-classes !default;
5
+
6
+ // We use these to set padding and hover factor
7
+ $section-title-padding: em-calc(15) !default;
8
+ $section-content-padding: em-calc(15) !default;
9
+ $section-function-factor: 10% !default;
10
+
11
+ // These style the titles
12
+ $section-title-color: #333 !default;
13
+ $section-title-color-active: #333 !default;
14
+ $section-title-bg: #efefef !default;
15
+ $section-title-bg-active: darken($section-title-bg, $section-function-factor) !default;
16
+ $section-title-bg-active-tabs: #fff !default;
17
+ $section-title-bg-hover: darken($section-title-bg, $section-function-factor / 2) !default;
18
+
19
+ // Want to control border size, here ya go!
20
+ $section-border-size: 1px !default;
21
+ $section-border-style: solid !default;
22
+ $section-border-color: #ccc !default;
23
+
24
+ // Font controls
25
+ $section-font-size: em-calc(14) !default;
26
+
27
+ // Control the color of the background and some size options
28
+ $section-content-bg: #fff !default;
29
+ $section-vertical-nav-min-width: em-calc(200) !default;
30
+ $section-vertical-tabs-title-width: em-calc(200) !default;
31
+ $section-bottom-margin: em-calc(20) !default;
32
+
33
+ $title-selector: ".title" !default;
34
+ $content-selector: ".content" !default;
35
+ $active-region-selector: ".active" !default;
36
+
37
+ //
38
+ // Section Mixins
39
+ //
40
+
41
+ // basic styles for sections.js: positions
42
+ @mixin section-container-base($section-type: accordion) {
43
+ width: 100%;
44
+ position: relative;
45
+ display: block;
46
+ margin-bottom: $section-bottom-margin;
47
+
48
+ @if $section-type != accordion {
49
+ &:not([data-section-resized]):not([data-section-small-style]) {
50
+ visibility: hidden;
51
+ }
52
+ }
53
+
54
+ @if $section-type != tabs {
55
+ &[data-section-small-style] {
56
+ width: 100% !important; // override inline style
57
+
58
+ & > [data-section-region], & > section, & > .section {
59
+ padding: 0 !important; // override inline style
60
+ margin: 0 !important; // override inline style
61
+ & > [data-section-title], & > #{$title-selector}{
62
+ width: 100% !important; // override inline style
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ // foundation styles for sections
70
+ @mixin section-container-style($section-type: accordion) {
71
+
72
+ // Accordion container border styles
73
+ @if $section-type == accordion {
74
+ border-top: $section-border-size $section-border-style $section-border-color;
75
+ }
76
+
77
+ // Tabs container border styles
78
+ @else if $section-type == tabs {
79
+ border: none;
80
+ }
81
+
82
+ // Vertical Tabs container border styles
83
+ @else if $section-type == vertical-tabs {
84
+ border: none;
85
+ }
86
+
87
+ // Vertical Nav container border styles
88
+ @else if $section-type == vertical-nav {
89
+ border: none;
90
+ }
91
+
92
+ // Horizontal Nav container border styles
93
+ @else if $section-type == horizontal-nav {
94
+ background: $section-title-bg;
95
+ border: $section-border-size $section-border-style $section-border-color;
96
+ }
97
+ }
98
+
99
+ //basic styles for section.js: section region positions
100
+ @mixin section-base($section-type: accordion) {
101
+
102
+ & > [data-section-title], & > #{$title-selector} {
103
+ margin-bottom: 0;
104
+ a {
105
+ width: 100%;
106
+ display: inline-block;
107
+ white-space: nowrap;
108
+ }
109
+ }
110
+
111
+ & > [data-section-content], & > #{$content-selector} {
112
+ display: none;
113
+ }
114
+
115
+ &#{$active-region-selector} {
116
+ & > [data-section-content], & > #{$content-selector} { display: block; }
117
+ }
118
+
119
+ &:not(#{$active-region-selector}) {
120
+ padding: 0 !important; //override inline style
121
+ }
122
+
123
+ // Style for when Accordion
124
+ @if $section-type == accordion {
125
+ margin: 0;
126
+ & > [data-section-title], & > #{$title-selector} { width: 100%; }
127
+ }
128
+
129
+ // Styles for when tabs
130
+ @else if $section-type == tabs {
131
+
132
+ & > [data-section-title], & > #{$title-selector} {
133
+ width: auto;
134
+ position: absolute;
135
+ top: 0;
136
+ #{$default-float}: 0;
137
+ }
138
+ }
139
+
140
+ // Styles for when Vertical Tabs
141
+ @else if $section-type == vertical-tabs {
142
+
143
+ & > [data-section-title], & > #{$title-selector} {
144
+ position: absolute;
145
+ top:0;
146
+ #{$default-float}: 0;
147
+ width: $section-vertical-tabs-title-width;
148
+ }
149
+
150
+ &#{$active-region-selector} {
151
+ padding-#{$default-float}: $section-vertical-tabs-title-width;
152
+
153
+ & > [data-section-title], & > #{$title-selector} {
154
+ width: $section-vertical-tabs-title-width;
155
+ }
156
+ }
157
+ }
158
+
159
+ // Styles for when Vertical Nav
160
+ @else if $section-type == vertical-nav {
161
+
162
+ position: relative;
163
+ display: inline-block;
164
+
165
+ & > [data-section-title], & > #{$title-selector} {
166
+ position: static;
167
+ width: auto;
168
+ a { display: block; }
169
+ }
170
+
171
+ & > [data-section-content], & > #{$content-selector} {
172
+ position: absolute;
173
+ top:0;
174
+ #{$default-float}: 0;
175
+ z-index: 999;
176
+ min-width: $section-vertical-nav-min-width;
177
+ }
178
+ }
179
+
180
+ // Styles for when Horizontal Nav
181
+ @else if $section-type == horizontal-nav {
182
+
183
+ position: relative;
184
+ float: #{$default-float};
185
+
186
+ & > [data-section-title], & > #{$title-selector} {
187
+ position: static;
188
+ width: auto;
189
+ a { display: block; }
190
+ }
191
+
192
+ & > [data-section-content], & > #{$content-selector} {
193
+ width: auto;
194
+ position: absolute;
195
+ top: 0;
196
+ #{$default-float}: 0;
197
+ z-index: 999;
198
+ min-width: $section-vertical-nav-min-width;
199
+ }
200
+ }
201
+ }
202
+
203
+ //foundation styles for section regions
204
+ @mixin section-style($section-type:accordion, $title-selector: $title-selector, $content-selector: $content-selector, $title-padding:$section-title-padding, $title-color:$section-title-color, $title-font-size:$section-font-size, $title-bg:$section-title-bg, $title-bg-hover:$section-title-bg-hover, $title-bg-active:$section-title-bg-active, $title-color-active:$section-title-color-active, $content-bg:$section-content-bg, $content-padding:$section-content-padding, $section-border-size:$section-border-size, $section-border-style:$section-border-style, $section-border-color: $section-border-color) {
205
+
206
+ // Default Styles
207
+ & > #{$title-selector} {
208
+ background-color: $title-bg;
209
+ cursor: $cursor-pointer-value;
210
+ border: $section-border-style $section-border-size $section-border-color;
211
+ a {
212
+ padding: $title-padding;
213
+ color: $title-color;
214
+ font-size: $title-font-size;
215
+ background: none;
216
+ }
217
+ &:hover { background-color: $title-bg-hover; }
218
+ }
219
+
220
+ & > #{$content-selector} {
221
+ padding: $content-padding;
222
+ background-color: $content-bg;
223
+ border: $section-border-style $section-border-size $section-border-color;
224
+
225
+ &>*:last-child { margin-bottom: 0; }
226
+ &>*:first-child { padding-top: 0; }
227
+ &>*:last-child:not(.flex-video) { padding-bottom: 0; }
228
+ }
229
+
230
+ &#{$active-region-selector} {
231
+ & > #{$title-selector} {
232
+ background: $title-bg-active;
233
+ a { color: $title-color-active; }
234
+ }
235
+ }
236
+
237
+ &:not(#{$active-region-selector}) {
238
+ padding: 0 !important; //override inline style
239
+ }
240
+
241
+ // Style for when Accordion
242
+ @if $section-type == accordion {
243
+ & > #{$title-selector} { border-top: none; }
244
+ }
245
+
246
+ // Styles for when tabs
247
+ @else if $section-type == tabs {
248
+
249
+ &#{$active-region-selector} > #{$title-selector} {
250
+ border-bottom: 0;
251
+ }
252
+ }
253
+
254
+ // Styles for when Vertical Tabs
255
+ @else if $section-type == vertical-tabs {
256
+
257
+ &#{$active-region-selector} {
258
+ padding-#{$default-float}: $section-vertical-tabs-title-width - em-calc(1px);
259
+
260
+ & > #{$title-selector} {
261
+ background-color: $title-bg-active;
262
+ }
263
+ }
264
+ }
265
+ }
266
+
267
+ @mixin section-container($base-style:true, $section-type:accordion) {
268
+ @include section-container-base($section-type);
269
+ @include section-container-style($section-type);
270
+ }
271
+
272
+ @mixin section($section-type:accordion, $title-selector:$title-selector, $content-selector: $content-selector, $title-padding:$section-title-padding, $title-color:$section-title-color, $title-font-size:$section-font-size, $title-bg:$section-title-bg, $title-bg-hover:$section-title-bg-hover, $title-bg-active:$section-title-bg-active, $title-color-active:$section-title-color-active, $content-bg:$section-content-bg, $content-padding:$section-content-padding, $section-border-size:$section-border-size, $section-border-style:$section-border-style, $section-border-color: $section-border-color) {
273
+ @include section-base($section-type);
274
+ @include section-style($section-type, $title-selector, $content-selector, $title-padding, $title-color, $title-font-size, $title-bg, $title-bg-hover, $title-bg-active, $title-color-active, $content-bg, $content-padding, $section-border-size, $section-border-style, $section-border-color);
275
+ }
276
+
277
+ @if $include-html-section-classes != false {
278
+
279
+ /* Sections */
280
+
281
+ [data-section=''], [data-section='auto'], .section-container.auto,
282
+ [data-section='vertical-tabs'], .section-container.vertical-tabs,
283
+ [data-section='vertical-nav'], .section-container.vertical-nav,
284
+ [data-section='horizontal-nav'], .section-container.horizontal-nav,
285
+ [data-section='accordion'], .section-container.accordion {
286
+ @include section-container-base(accordion);
287
+ & > section, & > .section, & > [data-section-region] {
288
+ @include section-base(accordion);
289
+ }
290
+ }
291
+
292
+ .section-container.auto,
293
+ .section-container.vertical-tabs,
294
+ .section-container.vertical-nav,
295
+ .section-container.horizontal-nav,
296
+ .section-container.accordion {
297
+ @include section-container-style(accordion);
298
+ & > section, & > .section {
299
+ @include section-style(accordion);
300
+ }
301
+ }
302
+
303
+ [data-section='tabs'], .section-container.tabs {
304
+ @include section-container-base(tabs);
305
+ & > section, & > .section, & > [data-section-region] {
306
+ @include section-base(tabs);
307
+ }
308
+ }
309
+
310
+ .section-container.tabs {
311
+ @include section-container-style(tabs);
312
+ & > section, & > .section {
313
+ @include section-style(tabs, $title-bg-active: $section-title-bg-active-tabs);
314
+ }
315
+ }
316
+
317
+ @media #{$small} {
318
+
319
+ [data-section=''], [data-section='auto'], .section-container.auto {
320
+ @include section-container-base(tabs);
321
+ & > section, & > .section, & > [data-section-region] {
322
+ @include section-base(tabs);
323
+ }
324
+ }
325
+
326
+ .section-container.auto {
327
+ @include section-container-style(tabs);
328
+ & > section, & > .section {
329
+ @include section-style(tabs, $title-bg-active: $section-title-bg-active-tabs);
330
+ }
331
+ }
332
+
333
+ [data-section='vertical-tabs'], .section-container.vertical-tabs {
334
+ @include section-container-base(vertical-tabs);
335
+ & > section, & > .section, & > [data-section-region] {
336
+ @include section-base(vertical-tabs);
337
+ }
338
+ }
339
+
340
+ .section-container.vertical-tabs {
341
+ @include section-container-style(vertical-tabs);
342
+ & > section, & > .section {
343
+ @include section-style(vertical-tabs);
344
+ }
345
+ }
346
+
347
+ [data-section='vertical-nav'], .section-container.vertical-nav {
348
+ @include section-container-base(vertical-nav);
349
+ & > section, & > .section, & > [data-section-region] {
350
+ @include section-base(vertical-nav);
351
+ }
352
+ }
353
+
354
+ .section-container.vertical-nav {
355
+ @include section-container-style(vertical-nav);
356
+ & > section, & > .section {
357
+ @include section-style(vertical-nav);
358
+ }
359
+ }
360
+
361
+ [data-section='horizontal-nav'], .section-container.horizontal-nav {
362
+ @include section-container-base(horizontal-nav);
363
+ & > section, & > .section, & > [data-section-region] {
364
+ @include section-base(horizontal-nav);
365
+ }
366
+ }
367
+
368
+ .section-container.horizontal-nav {
369
+ @include section-container-style(horizontal-nav);
370
+ & > section, & > .section {
371
+ @include section-style(horizontal-nav);
372
+ }
373
+ }
374
+ }
375
+
376
+ // Change all variations to expanded accordions when no JS is detected.
377
+ .no-js {
378
+ [data-section], .section-container {
379
+ @include section-container-base(accordion);
380
+ & > section, & > .section, & > [data-section-region] {
381
+ @include section-base(accordion);
382
+ }
383
+ }
384
+ .section-container {
385
+ @include section-container-style(accordion);
386
+ & > section, & > .section {
387
+ @include section-style(accordion);
388
+ }
389
+ }
390
+ }
391
+ }
@@ -0,0 +1,69 @@
1
+ //
2
+ // Side Nav Variables
3
+ //
4
+ $include-html-nav-classes: $include-html-classes !default;
5
+
6
+ // We use this to control padding.
7
+ $side-nav-padding: em-calc(14 0) !default;
8
+
9
+ // We use these to control list styles.
10
+ $side-nav-list-type: none !default;
11
+ $side-nav-list-position: inside !default;
12
+ $side-nav-list-margin: em-calc(0 0 7 0) !default;
13
+
14
+ // We use these to control link styles.
15
+ $side-nav-link-color: $primary-color !default;
16
+ $side-nav-link-color-active: lighten(#000, 30%) !default;
17
+ $side-nav-font-size: em-calc(14) !default;
18
+ $side-nav-font-weight: bold !default;
19
+
20
+ // We use these to control border styles
21
+ $side-nav-divider-size: 1px !default;
22
+ $side-nav-divider-style: solid !default;
23
+ $side-nav-divider-color: darken(#fff, 10%) !default;
24
+
25
+
26
+ //
27
+ // Side Nav Mixins
28
+ //
29
+
30
+
31
+ // We use this to style the side-nav
32
+ @mixin side-nav($divider-color:$side-nav-divider-color, $font-size:$side-nav-font-size, $link-color:$side-nav-link-color) {
33
+ display: block;
34
+ margin: 0;
35
+ padding: $side-nav-padding;
36
+ list-style-type: $side-nav-list-type;
37
+ list-style-position: $side-nav-list-position;
38
+
39
+ li {
40
+ margin: $side-nav-list-margin;
41
+ font-size: $font-size;
42
+
43
+ a {
44
+ display: block;
45
+ color: $link-color;
46
+ }
47
+
48
+ &.active > a:first-child {
49
+ color: $side-nav-link-color-active;
50
+ font-weight: $side-nav-font-weight;
51
+ }
52
+
53
+ &.divider {
54
+ border-top: $side-nav-divider-size $side-nav-divider-style;
55
+ height: 0;
56
+ padding: 0;
57
+ list-style: none;
58
+ border-top-color: $divider-color;
59
+ }
60
+ }
61
+ }
62
+
63
+
64
+ @if $include-html-nav-classes != false {
65
+
66
+ /* Side Nav */
67
+ .side-nav { @include side-nav; }
68
+
69
+ }