jekyll-theme-pirati 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (587) hide show
  1. checksums.yaml +4 -4
  2. data/_data/elections.yml +7 -0
  3. data/_data/menu.yml +3 -3
  4. data/_includes/candidate_badge.html +3 -7
  5. data/_includes/contacts/basic_contacts.html +30 -50
  6. data/_includes/contacts/residance.html +1 -1
  7. data/_includes/footer.html +3 -3
  8. data/_includes/head.html +6 -8
  9. data/_includes/header.html +1 -1
  10. data/_includes/headline-image.html +16 -0
  11. data/_includes/js/main.html +7 -13
  12. data/_includes/js/webpack.html +13 -0
  13. data/_includes/people/{list_2col.html → list-2col.html} +2 -2
  14. data/_includes/people/{list_group.html → list-group.html} +1 -1
  15. data/_includes/people/{profile_badge.html → profile-badge.html} +5 -4
  16. data/_includes/right-bar/bar_garant.html +1 -1
  17. data/_includes/right-bar/bar_people.html +1 -1
  18. data/_includes/right-bar/bar_person_contact.html +8 -8
  19. data/_includes/right-bar/bar_program.html +7 -5
  20. data/_layouts/contacts.html +47 -51
  21. data/_layouts/komunalni-volby.html +1 -1
  22. data/_layouts/page.html +9 -9
  23. data/_layouts/person.html +5 -0
  24. data/_layouts/post.html +30 -38
  25. data/_layouts/team.html +2 -2
  26. data/_sass/_base.scss +2 -1
  27. data/_sass/_fonts.scss +42 -0
  28. data/_sass/_settings.scss +6 -5
  29. data/_sass/components/BlogPosting.scss +6 -4
  30. data/_sass/components/contact-bar.scss +2 -2
  31. data/_sass/components/content-block.scss +11 -0
  32. data/_sass/components/footer.scss +5 -0
  33. data/_sass/components/header-bar.scss +2 -2
  34. data/_sass/components/headline-image.scss +44 -0
  35. data/_sass/components/metadata-block.scss +29 -0
  36. data/_sass/components/program.scss +4 -2
  37. data/_sass/components/tag.scss +10 -11
  38. data/_sass/components/top-bar.scss +236 -236
  39. data/_sass/components/typography.scss +43 -0
  40. data/_sass/components/widget-accordion.scss +12 -7
  41. data/_sass/foundation-sites/LICENSE +22 -0
  42. data/_sass/foundation-sites/README.md +44 -0
  43. data/_sass/foundation-sites/assets/foundation-flex.scss +3 -0
  44. data/_sass/foundation-sites/assets/foundation-rtl.scss +5 -0
  45. data/_sass/foundation-sites/assets/foundation.scss +3 -0
  46. data/_sass/foundation-sites/code-of-conduct.md +43 -0
  47. data/_sass/foundation-sites/customizer/complete.json +46 -0
  48. data/_sass/foundation-sites/customizer/config.yml +218 -0
  49. data/_sass/foundation-sites/customizer/essential.json +11 -0
  50. data/_sass/foundation-sites/customizer/index.html +169 -0
  51. data/_sass/foundation-sites/dist/foundation-flex.css +4028 -0
  52. data/_sass/foundation-sites/dist/foundation-flex.min.css +2 -0
  53. data/_sass/foundation-sites/dist/foundation-rtl.css +3583 -0
  54. data/_sass/foundation-sites/dist/foundation-rtl.min.css +2 -0
  55. data/_sass/foundation-sites/dist/foundation.css +3578 -0
  56. data/_sass/foundation-sites/dist/foundation.js +9069 -0
  57. data/_sass/foundation-sites/dist/foundation.min.css +2 -0
  58. data/_sass/foundation-sites/dist/foundation.min.js +4 -0
  59. data/_sass/foundation-sites/dist/plugins/foundation.abide.js +600 -0
  60. data/_sass/foundation-sites/dist/plugins/foundation.accordion.js +262 -0
  61. data/_sass/foundation-sites/dist/plugins/foundation.accordionMenu.js +307 -0
  62. data/_sass/foundation-sites/dist/plugins/foundation.core.js +386 -0
  63. data/_sass/foundation-sites/dist/plugins/foundation.drilldown.js +409 -0
  64. data/_sass/foundation-sites/dist/plugins/foundation.dropdown.js +447 -0
  65. data/_sass/foundation-sites/dist/plugins/foundation.dropdownMenu.js +447 -0
  66. data/_sass/foundation-sites/dist/plugins/foundation.equalizer.js +364 -0
  67. data/_sass/foundation-sites/dist/plugins/foundation.interchange.js +227 -0
  68. data/_sass/foundation-sites/dist/plugins/foundation.magellan.js +257 -0
  69. data/_sass/foundation-sites/dist/plugins/foundation.offcanvas.js +438 -0
  70. data/_sass/foundation-sites/dist/plugins/foundation.orbit.js +484 -0
  71. data/_sass/foundation-sites/dist/plugins/foundation.responsiveMenu.js +171 -0
  72. data/_sass/foundation-sites/dist/plugins/foundation.responsiveToggle.js +142 -0
  73. data/_sass/foundation-sites/dist/plugins/foundation.reveal.js +623 -0
  74. data/_sass/foundation-sites/dist/plugins/foundation.slider.js +648 -0
  75. data/_sass/foundation-sites/dist/plugins/foundation.sticky.js +495 -0
  76. data/_sass/foundation-sites/dist/plugins/foundation.tabs.js +348 -0
  77. data/_sass/foundation-sites/dist/plugins/foundation.toggler.js +166 -0
  78. data/_sass/foundation-sites/dist/plugins/foundation.tooltip.js +468 -0
  79. data/_sass/foundation-sites/dist/plugins/foundation.util.box.js +196 -0
  80. data/_sass/foundation-sites/dist/plugins/foundation.util.keyboard.js +123 -0
  81. data/_sass/foundation-sites/dist/plugins/foundation.util.mediaQuery.js +216 -0
  82. data/_sass/foundation-sites/dist/plugins/foundation.util.motion.js +97 -0
  83. data/_sass/foundation-sites/dist/plugins/foundation.util.nest.js +69 -0
  84. data/_sass/foundation-sites/dist/plugins/foundation.util.timerAndImageLoader.js +84 -0
  85. data/_sass/foundation-sites/dist/plugins/foundation.util.touch.js +352 -0
  86. data/_sass/foundation-sites/dist/plugins/foundation.util.triggers.js +243 -0
  87. data/_sass/foundation-sites/docslink.sh +3 -0
  88. data/_sass/foundation-sites/js/foundation.abide.js +543 -0
  89. data/_sass/foundation-sites/js/foundation.accordion.js +237 -0
  90. data/_sass/foundation-sites/js/foundation.accordionMenu.js +274 -0
  91. data/_sass/foundation-sites/js/foundation.core.js +378 -0
  92. data/_sass/foundation-sites/js/foundation.drilldown.js +369 -0
  93. data/_sass/foundation-sites/js/foundation.dropdown.js +409 -0
  94. data/_sass/foundation-sites/js/foundation.dropdownMenu.js +404 -0
  95. data/_sass/foundation-sites/js/foundation.equalizer.js +306 -0
  96. data/_sass/foundation-sites/js/foundation.interchange.js +198 -0
  97. data/_sass/foundation-sites/js/foundation.magellan.js +223 -0
  98. data/_sass/foundation-sites/js/foundation.offcanvas.js +398 -0
  99. data/_sass/foundation-sites/js/foundation.orbit.js +446 -0
  100. data/_sass/foundation-sites/js/foundation.responsiveMenu.js +148 -0
  101. data/_sass/foundation-sites/js/foundation.responsiveToggle.js +119 -0
  102. data/_sass/foundation-sites/js/foundation.reveal.js +576 -0
  103. data/_sass/foundation-sites/js/foundation.slider.js +597 -0
  104. data/_sass/foundation-sites/js/foundation.sticky.js +450 -0
  105. data/_sass/foundation-sites/js/foundation.tabs.js +333 -0
  106. data/_sass/foundation-sites/js/foundation.toggler.js +144 -0
  107. data/_sass/foundation-sites/js/foundation.tooltip.js +444 -0
  108. data/_sass/foundation-sites/js/foundation.util.box.js +195 -0
  109. data/_sass/foundation-sites/js/foundation.util.keyboard.js +115 -0
  110. data/_sass/foundation-sites/js/foundation.util.mediaQuery.js +214 -0
  111. data/_sass/foundation-sites/js/foundation.util.motion.js +99 -0
  112. data/_sass/foundation-sites/js/foundation.util.nest.js +76 -0
  113. data/_sass/foundation-sites/js/foundation.util.timerAndImageLoader.js +86 -0
  114. data/_sass/foundation-sites/js/foundation.util.touch.js +352 -0
  115. data/_sass/foundation-sites/js/foundation.util.triggers.js +239 -0
  116. data/_sass/foundation-sites/node_modules/jquery/AUTHORS.txt +278 -0
  117. data/_sass/foundation-sites/node_modules/jquery/LICENSE.txt +36 -0
  118. data/_sass/foundation-sites/node_modules/jquery/README.md +65 -0
  119. data/_sass/foundation-sites/node_modules/jquery/bower.json +14 -0
  120. data/_sass/foundation-sites/node_modules/jquery/dist/jquery.js +9814 -0
  121. data/_sass/foundation-sites/node_modules/jquery/dist/jquery.min.js +4 -0
  122. data/_sass/foundation-sites/node_modules/jquery/dist/jquery.min.map +1 -0
  123. data/_sass/foundation-sites/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
  124. data/_sass/foundation-sites/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
  125. data/_sass/foundation-sites/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  126. data/_sass/foundation-sites/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  127. data/_sass/foundation-sites/node_modules/jquery/package.json +112 -0
  128. data/_sass/foundation-sites/node_modules/jquery/src/ajax.js +845 -0
  129. data/_sass/foundation-sites/node_modules/jquery/src/ajax/jsonp.js +100 -0
  130. data/_sass/foundation-sites/node_modules/jquery/src/ajax/load.js +83 -0
  131. data/_sass/foundation-sites/node_modules/jquery/src/ajax/parseJSON.js +13 -0
  132. data/_sass/foundation-sites/node_modules/jquery/src/ajax/parseXML.js +27 -0
  133. data/_sass/foundation-sites/node_modules/jquery/src/ajax/script.js +68 -0
  134. data/_sass/foundation-sites/node_modules/jquery/src/ajax/var/location.js +3 -0
  135. data/_sass/foundation-sites/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  136. data/_sass/foundation-sites/node_modules/jquery/src/ajax/var/rquery.js +3 -0
  137. data/_sass/foundation-sites/node_modules/jquery/src/ajax/xhr.js +167 -0
  138. data/_sass/foundation-sites/node_modules/jquery/src/attributes.js +11 -0
  139. data/_sass/foundation-sites/node_modules/jquery/src/attributes/attr.js +142 -0
  140. data/_sass/foundation-sites/node_modules/jquery/src/attributes/classes.js +177 -0
  141. data/_sass/foundation-sites/node_modules/jquery/src/attributes/prop.js +125 -0
  142. data/_sass/foundation-sites/node_modules/jquery/src/attributes/support.js +36 -0
  143. data/_sass/foundation-sites/node_modules/jquery/src/attributes/val.js +177 -0
  144. data/_sass/foundation-sites/node_modules/jquery/src/callbacks.js +232 -0
  145. data/_sass/foundation-sites/node_modules/jquery/src/core.js +494 -0
  146. data/_sass/foundation-sites/node_modules/jquery/src/core/access.js +65 -0
  147. data/_sass/foundation-sites/node_modules/jquery/src/core/init.js +134 -0
  148. data/_sass/foundation-sites/node_modules/jquery/src/core/parseHTML.js +41 -0
  149. data/_sass/foundation-sites/node_modules/jquery/src/core/ready.js +103 -0
  150. data/_sass/foundation-sites/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
  151. data/_sass/foundation-sites/node_modules/jquery/src/css.js +502 -0
  152. data/_sass/foundation-sites/node_modules/jquery/src/css/addGetHookIf.js +24 -0
  153. data/_sass/foundation-sites/node_modules/jquery/src/css/adjustCSS.js +65 -0
  154. data/_sass/foundation-sites/node_modules/jquery/src/css/curCSS.js +60 -0
  155. data/_sass/foundation-sites/node_modules/jquery/src/css/defaultDisplay.js +72 -0
  156. data/_sass/foundation-sites/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
  157. data/_sass/foundation-sites/node_modules/jquery/src/css/showHide.js +48 -0
  158. data/_sass/foundation-sites/node_modules/jquery/src/css/support.js +121 -0
  159. data/_sass/foundation-sites/node_modules/jquery/src/css/var/cssExpand.js +3 -0
  160. data/_sass/foundation-sites/node_modules/jquery/src/css/var/getStyles.js +15 -0
  161. data/_sass/foundation-sites/node_modules/jquery/src/css/var/isHidden.js +16 -0
  162. data/_sass/foundation-sites/node_modules/jquery/src/css/var/rmargin.js +3 -0
  163. data/_sass/foundation-sites/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
  164. data/_sass/foundation-sites/node_modules/jquery/src/css/var/swap.js +24 -0
  165. data/_sass/foundation-sites/node_modules/jquery/src/data.js +187 -0
  166. data/_sass/foundation-sites/node_modules/jquery/src/data/Data.js +200 -0
  167. data/_sass/foundation-sites/node_modules/jquery/src/data/var/acceptData.js +18 -0
  168. data/_sass/foundation-sites/node_modules/jquery/src/data/var/dataPriv.js +5 -0
  169. data/_sass/foundation-sites/node_modules/jquery/src/data/var/dataUser.js +5 -0
  170. data/_sass/foundation-sites/node_modules/jquery/src/deferred.js +158 -0
  171. data/_sass/foundation-sites/node_modules/jquery/src/deprecated.js +32 -0
  172. data/_sass/foundation-sites/node_modules/jquery/src/dimensions.js +54 -0
  173. data/_sass/foundation-sites/node_modules/jquery/src/effects.js +629 -0
  174. data/_sass/foundation-sites/node_modules/jquery/src/effects/Tween.js +121 -0
  175. data/_sass/foundation-sites/node_modules/jquery/src/effects/animatedSelector.js +13 -0
  176. data/_sass/foundation-sites/node_modules/jquery/src/event.js +711 -0
  177. data/_sass/foundation-sites/node_modules/jquery/src/event/ajax.js +20 -0
  178. data/_sass/foundation-sites/node_modules/jquery/src/event/alias.js +27 -0
  179. data/_sass/foundation-sites/node_modules/jquery/src/event/focusin.js +53 -0
  180. data/_sass/foundation-sites/node_modules/jquery/src/event/support.js +9 -0
  181. data/_sass/foundation-sites/node_modules/jquery/src/event/trigger.js +183 -0
  182. data/_sass/foundation-sites/node_modules/jquery/src/exports/amd.js +24 -0
  183. data/_sass/foundation-sites/node_modules/jquery/src/exports/global.js +26 -0
  184. data/_sass/foundation-sites/node_modules/jquery/src/intro.js +44 -0
  185. data/_sass/foundation-sites/node_modules/jquery/src/jquery.js +37 -0
  186. data/_sass/foundation-sites/node_modules/jquery/src/manipulation.js +481 -0
  187. data/_sass/foundation-sites/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
  188. data/_sass/foundation-sites/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
  189. data/_sass/foundation-sites/node_modules/jquery/src/manipulation/getAll.js +21 -0
  190. data/_sass/foundation-sites/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
  191. data/_sass/foundation-sites/node_modules/jquery/src/manipulation/support.js +33 -0
  192. data/_sass/foundation-sites/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
  193. data/_sass/foundation-sites/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
  194. data/_sass/foundation-sites/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
  195. data/_sass/foundation-sites/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
  196. data/_sass/foundation-sites/node_modules/jquery/src/offset.js +218 -0
  197. data/_sass/foundation-sites/node_modules/jquery/src/outro.js +2 -0
  198. data/_sass/foundation-sites/node_modules/jquery/src/queue.js +143 -0
  199. data/_sass/foundation-sites/node_modules/jquery/src/queue/delay.js +22 -0
  200. data/_sass/foundation-sites/node_modules/jquery/src/selector-native.js +211 -0
  201. data/_sass/foundation-sites/node_modules/jquery/src/selector-sizzle.js +14 -0
  202. data/_sass/foundation-sites/node_modules/jquery/src/selector.js +1 -0
  203. data/_sass/foundation-sites/node_modules/jquery/src/serialize.js +125 -0
  204. data/_sass/foundation-sites/node_modules/jquery/src/traversing.js +175 -0
  205. data/_sass/foundation-sites/node_modules/jquery/src/traversing/findFilter.js +100 -0
  206. data/_sass/foundation-sites/node_modules/jquery/src/traversing/var/dir.js +20 -0
  207. data/_sass/foundation-sites/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
  208. data/_sass/foundation-sites/node_modules/jquery/src/traversing/var/siblings.js +15 -0
  209. data/_sass/foundation-sites/node_modules/jquery/src/var/arr.js +3 -0
  210. data/_sass/foundation-sites/node_modules/jquery/src/var/class2type.js +5 -0
  211. data/_sass/foundation-sites/node_modules/jquery/src/var/concat.js +5 -0
  212. data/_sass/foundation-sites/node_modules/jquery/src/var/document.js +3 -0
  213. data/_sass/foundation-sites/node_modules/jquery/src/var/documentElement.js +5 -0
  214. data/_sass/foundation-sites/node_modules/jquery/src/var/hasOwn.js +5 -0
  215. data/_sass/foundation-sites/node_modules/jquery/src/var/indexOf.js +5 -0
  216. data/_sass/foundation-sites/node_modules/jquery/src/var/pnum.js +3 -0
  217. data/_sass/foundation-sites/node_modules/jquery/src/var/push.js +5 -0
  218. data/_sass/foundation-sites/node_modules/jquery/src/var/rcssNum.js +7 -0
  219. data/_sass/foundation-sites/node_modules/jquery/src/var/rnotwhite.js +3 -0
  220. data/_sass/foundation-sites/node_modules/jquery/src/var/slice.js +5 -0
  221. data/_sass/foundation-sites/node_modules/jquery/src/var/support.js +5 -0
  222. data/_sass/foundation-sites/node_modules/jquery/src/var/toString.js +5 -0
  223. data/_sass/foundation-sites/node_modules/jquery/src/wrap.js +79 -0
  224. data/_sass/foundation-sites/package.json +148 -0
  225. data/_sass/foundation-sites/scss/_global.scss +638 -0
  226. data/_sass/foundation-sites/scss/components/_accordion-menu.scss +32 -0
  227. data/_sass/foundation-sites/scss/components/_accordion.scss +129 -0
  228. data/_sass/foundation-sites/scss/components/_badge.scss +55 -0
  229. data/_sass/foundation-sites/scss/components/_breadcrumbs.scss +95 -0
  230. data/_sass/foundation-sites/scss/components/_button-group.scss +195 -0
  231. data/_sass/foundation-sites/scss/components/_button.scss +265 -0
  232. data/_sass/foundation-sites/scss/components/_callout.scss +105 -0
  233. data/_sass/foundation-sites/scss/components/_close-button.scss +61 -0
  234. data/_sass/foundation-sites/scss/components/_drilldown.scss +79 -0
  235. data/_sass/foundation-sites/scss/components/_dropdown-menu.scss +221 -0
  236. data/_sass/foundation-sites/scss/components/_dropdown.scss +65 -0
  237. data/_sass/foundation-sites/scss/components/_flex-video.scss +63 -0
  238. data/_sass/foundation-sites/scss/components/_flex.scss +28 -0
  239. data/_sass/foundation-sites/scss/components/_float.scss +27 -0
  240. data/_sass/foundation-sites/scss/components/_label.scss +56 -0
  241. data/_sass/foundation-sites/scss/components/_media-object.scss +115 -0
  242. data/_sass/foundation-sites/scss/components/_menu-icon.scss +9 -0
  243. data/_sass/foundation-sites/scss/components/_menu.scss +314 -0
  244. data/_sass/foundation-sites/scss/components/_off-canvas.scss +177 -0
  245. data/_sass/foundation-sites/scss/components/_orbit.scss +193 -0
  246. data/_sass/foundation-sites/scss/components/_pagination.scss +162 -0
  247. data/_sass/foundation-sites/scss/components/_progress-bar.scss +64 -0
  248. data/_sass/foundation-sites/scss/components/_reveal.scss +172 -0
  249. data/_sass/foundation-sites/scss/components/_slider.scss +133 -0
  250. data/_sass/foundation-sites/scss/components/_sticky.scss +38 -0
  251. data/_sass/foundation-sites/scss/components/_switch.scss +232 -0
  252. data/_sass/foundation-sites/scss/components/_table.scss +234 -0
  253. data/_sass/foundation-sites/scss/components/_tabs.scss +165 -0
  254. data/_sass/foundation-sites/scss/components/_thumbnail.scss +54 -0
  255. data/_sass/foundation-sites/scss/components/_title-bar.scss +89 -0
  256. data/_sass/foundation-sites/scss/components/_tooltip.scss +104 -0
  257. data/_sass/foundation-sites/scss/components/_top-bar.scss +168 -0
  258. data/_sass/foundation-sites/scss/components/_visibility.scss +132 -0
  259. data/_sass/foundation-sites/scss/forms/_checkbox.scss +40 -0
  260. data/_sass/foundation-sites/scss/forms/_error.scss +84 -0
  261. data/_sass/foundation-sites/scss/forms/_fieldset.scss +54 -0
  262. data/_sass/foundation-sites/scss/forms/_forms.scss +34 -0
  263. data/_sass/foundation-sites/scss/forms/_help-text.scss +30 -0
  264. data/_sass/foundation-sites/scss/forms/_input-group.scss +128 -0
  265. data/_sass/foundation-sites/scss/forms/_label.scss +48 -0
  266. data/_sass/foundation-sites/scss/forms/_meter.scss +109 -0
  267. data/_sass/foundation-sites/scss/forms/_progress.scss +85 -0
  268. data/_sass/foundation-sites/scss/forms/_range.scss +144 -0
  269. data/_sass/foundation-sites/scss/forms/_select.scss +67 -0
  270. data/_sass/foundation-sites/scss/forms/_text.scss +163 -0
  271. data/_sass/foundation-sites/scss/foundation.scss +102 -0
  272. data/_sass/foundation-sites/scss/grid/_classes.scss +151 -0
  273. data/_sass/foundation-sites/scss/grid/_column.scss +126 -0
  274. data/_sass/foundation-sites/scss/grid/_flex-grid.scss +274 -0
  275. data/_sass/foundation-sites/scss/grid/_grid.scss +60 -0
  276. data/_sass/foundation-sites/scss/grid/_gutter.scss +34 -0
  277. data/_sass/foundation-sites/scss/grid/_layout.scss +51 -0
  278. data/_sass/foundation-sites/scss/grid/_position.scss +73 -0
  279. data/_sass/foundation-sites/scss/grid/_row.scss +95 -0
  280. data/_sass/foundation-sites/scss/grid/_size.scss +24 -0
  281. data/_sass/foundation-sites/scss/settings/_settings.scss +567 -0
  282. data/_sass/foundation-sites/scss/typography/_alignment.scss +22 -0
  283. data/_sass/foundation-sites/scss/typography/_base.scss +443 -0
  284. data/_sass/foundation-sites/scss/typography/_helpers.scss +77 -0
  285. data/_sass/foundation-sites/scss/typography/_print.scss +77 -0
  286. data/_sass/foundation-sites/scss/typography/_typography.scss +28 -0
  287. data/_sass/foundation-sites/scss/util/_breakpoint.scss +275 -0
  288. data/_sass/foundation-sites/scss/util/_color.scss +60 -0
  289. data/_sass/foundation-sites/scss/util/_flex.scss +68 -0
  290. data/_sass/foundation-sites/scss/util/_mixins.scss +235 -0
  291. data/_sass/foundation-sites/scss/util/_selector.scss +40 -0
  292. data/_sass/foundation-sites/scss/util/_unit.scss +90 -0
  293. data/_sass/foundation-sites/scss/util/_util.scss +11 -0
  294. data/_sass/foundation-sites/scss/util/_value.scss +107 -0
  295. data/_sass/foundation-sites/vendor/fastclick/LICENSE +22 -0
  296. data/_sass/foundation-sites/vendor/fastclick/README.md +140 -0
  297. data/_sass/foundation-sites/vendor/jquery-placeholder/jquery.placeholder.js +192 -0
  298. data/_sass/foundation-sites/vendor/jquery.autocomplete/content/styles.css +9 -0
  299. data/_sass/foundation-sites/vendor/jquery.autocomplete/devbridge-autocomplete.jquery.json +28 -0
  300. data/_sass/foundation-sites/vendor/jquery.autocomplete/dist/jquery.autocomplete.js +823 -0
  301. data/_sass/foundation-sites/vendor/jquery.autocomplete/dist/jquery.autocomplete.min.js +29 -0
  302. data/_sass/foundation-sites/vendor/jquery.autocomplete/dist/license.txt +21 -0
  303. data/_sass/foundation-sites/vendor/jquery.autocomplete/index.htm +48 -0
  304. data/_sass/foundation-sites/vendor/jquery.autocomplete/license.txt +21 -0
  305. data/_sass/foundation-sites/vendor/jquery.autocomplete/readme.md +165 -0
  306. data/_sass/foundation-sites/vendor/jquery.autocomplete/scripts/countries.js +266 -0
  307. data/_sass/foundation-sites/vendor/jquery.autocomplete/scripts/demo.js +68 -0
  308. data/_sass/foundation-sites/vendor/jquery.autocomplete/scripts/jquery-1.8.2.min.js +2 -0
  309. data/_sass/foundation-sites/vendor/jquery.autocomplete/scripts/jquery.mockjax.js +564 -0
  310. data/_sass/foundation-sites/vendor/jquery.autocomplete/src/jquery.autocomplete.d.ts +40 -0
  311. data/_sass/foundation-sites/vendor/jquery.autocomplete/src/jquery.autocomplete.js +823 -0
  312. data/_sass/foundation-sites/vendor/jquery.cookie/jquery.cookie.js +117 -0
  313. data/_sass/foundation-sites/vendor/jquery/AUTHORS.txt +278 -0
  314. data/_sass/foundation-sites/vendor/jquery/LICENSE.txt +36 -0
  315. data/_sass/foundation-sites/vendor/jquery/README.md +65 -0
  316. data/_sass/foundation-sites/vendor/jquery/dist/jquery.js +9842 -0
  317. data/_sass/foundation-sites/vendor/jquery/dist/jquery.min.js +4 -0
  318. data/_sass/foundation-sites/vendor/jquery/dist/jquery.min.map +1 -0
  319. data/_sass/foundation-sites/vendor/jquery/dist/jquery.slim.js +7877 -0
  320. data/_sass/foundation-sites/vendor/jquery/dist/jquery.slim.min.js +4 -0
  321. data/_sass/foundation-sites/vendor/jquery/dist/jquery.slim.min.map +1 -0
  322. data/_sass/foundation-sites/vendor/jquery/sizzle/LICENSE.txt +36 -0
  323. data/_sass/foundation-sites/vendor/jquery/sizzle/dist/sizzle.js +2143 -0
  324. data/_sass/foundation-sites/vendor/jquery/sizzle/dist/sizzle.min.js +3 -0
  325. data/_sass/foundation-sites/vendor/jquery/sizzle/dist/sizzle.min.map +1 -0
  326. data/_sass/foundation-sites/vendor/jquery/src/ajax.js +845 -0
  327. data/_sass/foundation-sites/vendor/jquery/src/ajax/jsonp.js +100 -0
  328. data/_sass/foundation-sites/vendor/jquery/src/ajax/load.js +83 -0
  329. data/_sass/foundation-sites/vendor/jquery/src/ajax/parseJSON.js +13 -0
  330. data/_sass/foundation-sites/vendor/jquery/src/ajax/parseXML.js +27 -0
  331. data/_sass/foundation-sites/vendor/jquery/src/ajax/script.js +68 -0
  332. data/_sass/foundation-sites/vendor/jquery/src/ajax/var/location.js +3 -0
  333. data/_sass/foundation-sites/vendor/jquery/src/ajax/var/nonce.js +5 -0
  334. data/_sass/foundation-sites/vendor/jquery/src/ajax/var/rquery.js +3 -0
  335. data/_sass/foundation-sites/vendor/jquery/src/ajax/xhr.js +167 -0
  336. data/_sass/foundation-sites/vendor/jquery/src/attributes.js +11 -0
  337. data/_sass/foundation-sites/vendor/jquery/src/attributes/attr.js +142 -0
  338. data/_sass/foundation-sites/vendor/jquery/src/attributes/classes.js +177 -0
  339. data/_sass/foundation-sites/vendor/jquery/src/attributes/prop.js +125 -0
  340. data/_sass/foundation-sites/vendor/jquery/src/attributes/support.js +36 -0
  341. data/_sass/foundation-sites/vendor/jquery/src/attributes/val.js +177 -0
  342. data/_sass/foundation-sites/vendor/jquery/src/callbacks.js +232 -0
  343. data/_sass/foundation-sites/vendor/jquery/src/core.js +494 -0
  344. data/_sass/foundation-sites/vendor/jquery/src/core/DOMEval.js +14 -0
  345. data/_sass/foundation-sites/vendor/jquery/src/core/access.js +65 -0
  346. data/_sass/foundation-sites/vendor/jquery/src/core/init.js +134 -0
  347. data/_sass/foundation-sites/vendor/jquery/src/core/parseHTML.js +41 -0
  348. data/_sass/foundation-sites/vendor/jquery/src/core/ready.js +103 -0
  349. data/_sass/foundation-sites/vendor/jquery/src/core/support.js +18 -0
  350. data/_sass/foundation-sites/vendor/jquery/src/core/var/rsingleTag.js +5 -0
  351. data/_sass/foundation-sites/vendor/jquery/src/css.js +515 -0
  352. data/_sass/foundation-sites/vendor/jquery/src/css/addGetHookIf.js +24 -0
  353. data/_sass/foundation-sites/vendor/jquery/src/css/adjustCSS.js +65 -0
  354. data/_sass/foundation-sites/vendor/jquery/src/css/curCSS.js +60 -0
  355. data/_sass/foundation-sites/vendor/jquery/src/css/defaultDisplay.js +72 -0
  356. data/_sass/foundation-sites/vendor/jquery/src/css/hiddenVisibleSelectors.js +18 -0
  357. data/_sass/foundation-sites/vendor/jquery/src/css/showHide.js +48 -0
  358. data/_sass/foundation-sites/vendor/jquery/src/css/support.js +121 -0
  359. data/_sass/foundation-sites/vendor/jquery/src/css/var/cssExpand.js +3 -0
  360. data/_sass/foundation-sites/vendor/jquery/src/css/var/getStyles.js +15 -0
  361. data/_sass/foundation-sites/vendor/jquery/src/css/var/isHidden.js +16 -0
  362. data/_sass/foundation-sites/vendor/jquery/src/css/var/rmargin.js +3 -0
  363. data/_sass/foundation-sites/vendor/jquery/src/css/var/rnumnonpx.js +5 -0
  364. data/_sass/foundation-sites/vendor/jquery/src/css/var/swap.js +24 -0
  365. data/_sass/foundation-sites/vendor/jquery/src/data.js +187 -0
  366. data/_sass/foundation-sites/vendor/jquery/src/data/Data.js +200 -0
  367. data/_sass/foundation-sites/vendor/jquery/src/data/accepts.js +20 -0
  368. data/_sass/foundation-sites/vendor/jquery/src/data/support.js +23 -0
  369. data/_sass/foundation-sites/vendor/jquery/src/data/var/acceptData.js +18 -0
  370. data/_sass/foundation-sites/vendor/jquery/src/data/var/dataPriv.js +5 -0
  371. data/_sass/foundation-sites/vendor/jquery/src/data/var/dataUser.js +5 -0
  372. data/_sass/foundation-sites/vendor/jquery/src/deferred.js +158 -0
  373. data/_sass/foundation-sites/vendor/jquery/src/deferred/exceptionHook.js +19 -0
  374. data/_sass/foundation-sites/vendor/jquery/src/deprecated.js +32 -0
  375. data/_sass/foundation-sites/vendor/jquery/src/dimensions.js +54 -0
  376. data/_sass/foundation-sites/vendor/jquery/src/effects.js +629 -0
  377. data/_sass/foundation-sites/vendor/jquery/src/effects/Tween.js +121 -0
  378. data/_sass/foundation-sites/vendor/jquery/src/effects/animatedSelector.js +13 -0
  379. data/_sass/foundation-sites/vendor/jquery/src/effects/support.js +58 -0
  380. data/_sass/foundation-sites/vendor/jquery/src/event.js +710 -0
  381. data/_sass/foundation-sites/vendor/jquery/src/event/ajax.js +20 -0
  382. data/_sass/foundation-sites/vendor/jquery/src/event/alias.js +27 -0
  383. data/_sass/foundation-sites/vendor/jquery/src/event/focusin.js +53 -0
  384. data/_sass/foundation-sites/vendor/jquery/src/event/support.js +9 -0
  385. data/_sass/foundation-sites/vendor/jquery/src/event/trigger.js +199 -0
  386. data/_sass/foundation-sites/vendor/jquery/src/exports/amd.js +24 -0
  387. data/_sass/foundation-sites/vendor/jquery/src/exports/global.js +26 -0
  388. data/_sass/foundation-sites/vendor/jquery/src/intro.js +44 -0
  389. data/_sass/foundation-sites/vendor/jquery/src/jquery.js +37 -0
  390. data/_sass/foundation-sites/vendor/jquery/src/manipulation.js +481 -0
  391. data/_sass/foundation-sites/vendor/jquery/src/manipulation/_evalUrl.js +20 -0
  392. data/_sass/foundation-sites/vendor/jquery/src/manipulation/buildFragment.js +102 -0
  393. data/_sass/foundation-sites/vendor/jquery/src/manipulation/createSafeFragment.js +20 -0
  394. data/_sass/foundation-sites/vendor/jquery/src/manipulation/getAll.js +21 -0
  395. data/_sass/foundation-sites/vendor/jquery/src/manipulation/setGlobalEval.js +20 -0
  396. data/_sass/foundation-sites/vendor/jquery/src/manipulation/support.js +33 -0
  397. data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/nodeNames.js +5 -0
  398. data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/rcheckableType.js +3 -0
  399. data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
  400. data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/rscriptType.js +3 -0
  401. data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/rtagName.js +3 -0
  402. data/_sass/foundation-sites/vendor/jquery/src/manipulation/wrapMap.js +27 -0
  403. data/_sass/foundation-sites/vendor/jquery/src/offset.js +218 -0
  404. data/_sass/foundation-sites/vendor/jquery/src/outro.js +2 -0
  405. data/_sass/foundation-sites/vendor/jquery/src/queue.js +143 -0
  406. data/_sass/foundation-sites/vendor/jquery/src/queue/delay.js +22 -0
  407. data/_sass/foundation-sites/vendor/jquery/src/selector-native.js +211 -0
  408. data/_sass/foundation-sites/vendor/jquery/src/selector-sizzle.js +14 -0
  409. data/_sass/foundation-sites/vendor/jquery/src/selector.js +1 -0
  410. data/_sass/foundation-sites/vendor/jquery/src/serialize.js +125 -0
  411. data/_sass/foundation-sites/vendor/jquery/src/support.js +63 -0
  412. data/_sass/foundation-sites/vendor/jquery/src/traversing.js +175 -0
  413. data/_sass/foundation-sites/vendor/jquery/src/traversing/findFilter.js +100 -0
  414. data/_sass/foundation-sites/vendor/jquery/src/traversing/var/dir.js +20 -0
  415. data/_sass/foundation-sites/vendor/jquery/src/traversing/var/rneedsContext.js +6 -0
  416. data/_sass/foundation-sites/vendor/jquery/src/traversing/var/siblings.js +15 -0
  417. data/_sass/foundation-sites/vendor/jquery/src/var/arr.js +3 -0
  418. data/_sass/foundation-sites/vendor/jquery/src/var/class2type.js +5 -0
  419. data/_sass/foundation-sites/vendor/jquery/src/var/concat.js +5 -0
  420. data/_sass/foundation-sites/vendor/jquery/src/var/deletedIds.js +3 -0
  421. data/_sass/foundation-sites/vendor/jquery/src/var/document.js +3 -0
  422. data/_sass/foundation-sites/vendor/jquery/src/var/documentElement.js +5 -0
  423. data/_sass/foundation-sites/vendor/jquery/src/var/hasOwn.js +5 -0
  424. data/_sass/foundation-sites/vendor/jquery/src/var/indexOf.js +5 -0
  425. data/_sass/foundation-sites/vendor/jquery/src/var/pnum.js +3 -0
  426. data/_sass/foundation-sites/vendor/jquery/src/var/push.js +5 -0
  427. data/_sass/foundation-sites/vendor/jquery/src/var/rcssNum.js +7 -0
  428. data/_sass/foundation-sites/vendor/jquery/src/var/rnotwhite.js +3 -0
  429. data/_sass/foundation-sites/vendor/jquery/src/var/slice.js +5 -0
  430. data/_sass/foundation-sites/vendor/jquery/src/var/support.js +5 -0
  431. data/_sass/foundation-sites/vendor/jquery/src/var/toString.js +5 -0
  432. data/_sass/foundation-sites/vendor/jquery/src/wrap.js +79 -0
  433. data/_sass/foundation-sites/vendor/lodash/LICENSE.txt +22 -0
  434. data/_sass/foundation-sites/vendor/lodash/dist/lodash.compat.js +7158 -0
  435. data/_sass/foundation-sites/vendor/lodash/dist/lodash.compat.min.js +92 -0
  436. data/_sass/foundation-sites/vendor/lodash/dist/lodash.js +6786 -0
  437. data/_sass/foundation-sites/vendor/lodash/dist/lodash.min.js +87 -0
  438. data/_sass/foundation-sites/vendor/lodash/dist/lodash.underscore.js +4979 -0
  439. data/_sass/foundation-sites/vendor/lodash/dist/lodash.underscore.min.js +39 -0
  440. data/_sass/foundation-sites/vendor/modernizr/feature-detects/a-download.js +8 -0
  441. data/_sass/foundation-sites/vendor/modernizr/feature-detects/audio-audiodata-api.js +4 -0
  442. data/_sass/foundation-sites/vendor/modernizr/feature-detects/audio-webaudio-api.js +4 -0
  443. data/_sass/foundation-sites/vendor/modernizr/feature-detects/battery-api.js +8 -0
  444. data/_sass/foundation-sites/vendor/modernizr/feature-detects/battery-level.js +11 -0
  445. data/_sass/foundation-sites/vendor/modernizr/feature-detects/blob-constructor.js +10 -0
  446. data/_sass/foundation-sites/vendor/modernizr/feature-detects/canvas-todataurl-type.js +28 -0
  447. data/_sass/foundation-sites/vendor/modernizr/feature-detects/contenteditable.js +9 -0
  448. data/_sass/foundation-sites/vendor/modernizr/feature-detects/contentsecuritypolicy.js +10 -0
  449. data/_sass/foundation-sites/vendor/modernizr/feature-detects/contextmenu.js +11 -0
  450. data/_sass/foundation-sites/vendor/modernizr/feature-detects/cookies.js +15 -0
  451. data/_sass/foundation-sites/vendor/modernizr/feature-detects/cors.js +3 -0
  452. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-backgroundposition-shorthand.js +19 -0
  453. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-backgroundposition-xy.js +15 -0
  454. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-backgroundrepeat.js +31 -0
  455. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-backgroundsizecover.js +10 -0
  456. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-boxsizing.js +9 -0
  457. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-calc.js +12 -0
  458. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-cubicbezierrange.js +8 -0
  459. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-displayrunin.js +18 -0
  460. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-displaytable.js +27 -0
  461. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-filters.js +7 -0
  462. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-hyphens.js +205 -0
  463. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-lastchild.js +11 -0
  464. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-mask.js +12 -0
  465. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-mediaqueries.js +3 -0
  466. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-objectfit.js +6 -0
  467. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-overflow-scrolling.js +9 -0
  468. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-pointerevents.js +25 -0
  469. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-positionsticky.js +13 -0
  470. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-regions.js +55 -0
  471. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js +19 -0
  472. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-resize.js +8 -0
  473. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-scrollbars.js +19 -0
  474. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-shapes.js +4 -0
  475. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-subpixelfont.js +23 -0
  476. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-supports.js +6 -0
  477. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-userselect.js +10 -0
  478. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-vhunit.js +14 -0
  479. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-vmaxunit.js +14 -0
  480. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-vminunit.js +14 -0
  481. data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-vwunit.js +14 -0
  482. data/_sass/foundation-sites/vendor/modernizr/feature-detects/custom-protocol-handler.js +10 -0
  483. data/_sass/foundation-sites/vendor/modernizr/feature-detects/dart.js +6 -0
  484. data/_sass/foundation-sites/vendor/modernizr/feature-detects/dataview-api.js +4 -0
  485. data/_sass/foundation-sites/vendor/modernizr/feature-detects/dom-classlist.js +4 -0
  486. data/_sass/foundation-sites/vendor/modernizr/feature-detects/dom-createElement-attrs.js +11 -0
  487. data/_sass/foundation-sites/vendor/modernizr/feature-detects/dom-dataset.js +9 -0
  488. data/_sass/foundation-sites/vendor/modernizr/feature-detects/dom-microdata.js +4 -0
  489. data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-datalist.js +12 -0
  490. data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-details.js +25 -0
  491. data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-output.js +4 -0
  492. data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-progress-meter.js +11 -0
  493. data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-ruby.js +53 -0
  494. data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-time.js +4 -0
  495. data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-track.js +11 -0
  496. data/_sass/foundation-sites/vendor/modernizr/feature-detects/emoji.js +11 -0
  497. data/_sass/foundation-sites/vendor/modernizr/feature-detects/es5-strictmode.js +7 -0
  498. data/_sass/foundation-sites/vendor/modernizr/feature-detects/event-deviceorientation-motion.js +11 -0
  499. data/_sass/foundation-sites/vendor/modernizr/feature-detects/exif-orientation.js +32 -0
  500. data/_sass/foundation-sites/vendor/modernizr/feature-detects/file-api.js +12 -0
  501. data/_sass/foundation-sites/vendor/modernizr/feature-detects/file-filesystem.js +9 -0
  502. data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-fileinput.js +13 -0
  503. data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-formattribute.js +29 -0
  504. data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-inputnumber-l10n.js +32 -0
  505. data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-placeholder.js +10 -0
  506. data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-speechinput.js +19 -0
  507. data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-validation.js +62 -0
  508. data/_sass/foundation-sites/vendor/modernizr/feature-detects/fullscreen-api.js +10 -0
  509. data/_sass/foundation-sites/vendor/modernizr/feature-detects/gamepad.js +12 -0
  510. data/_sass/foundation-sites/vendor/modernizr/feature-detects/getusermedia.js +5 -0
  511. data/_sass/foundation-sites/vendor/modernizr/feature-detects/ie8compat.js +12 -0
  512. data/_sass/foundation-sites/vendor/modernizr/feature-detects/iframe-sandbox.js +5 -0
  513. data/_sass/foundation-sites/vendor/modernizr/feature-detects/iframe-seamless.js +5 -0
  514. data/_sass/foundation-sites/vendor/modernizr/feature-detects/iframe-srcdoc.js +5 -0
  515. data/_sass/foundation-sites/vendor/modernizr/feature-detects/img-apng.js +26 -0
  516. data/_sass/foundation-sites/vendor/modernizr/feature-detects/img-webp.js +20 -0
  517. data/_sass/foundation-sites/vendor/modernizr/feature-detects/json.js +7 -0
  518. data/_sass/foundation-sites/vendor/modernizr/feature-detects/lists-reversed.js +6 -0
  519. data/_sass/foundation-sites/vendor/modernizr/feature-detects/mathml.js +23 -0
  520. data/_sass/foundation-sites/vendor/modernizr/feature-detects/network-connection.js +22 -0
  521. data/_sass/foundation-sites/vendor/modernizr/feature-detects/network-eventsource.js +5 -0
  522. data/_sass/foundation-sites/vendor/modernizr/feature-detects/network-xhr2.js +13 -0
  523. data/_sass/foundation-sites/vendor/modernizr/feature-detects/notification.js +10 -0
  524. data/_sass/foundation-sites/vendor/modernizr/feature-detects/performance.js +5 -0
  525. data/_sass/foundation-sites/vendor/modernizr/feature-detects/pointerlock-api.js +4 -0
  526. data/_sass/foundation-sites/vendor/modernizr/feature-detects/quota-management-api.js +11 -0
  527. data/_sass/foundation-sites/vendor/modernizr/feature-detects/requestanimationframe.js +7 -0
  528. data/_sass/foundation-sites/vendor/modernizr/feature-detects/script-async.js +3 -0
  529. data/_sass/foundation-sites/vendor/modernizr/feature-detects/script-defer.js +3 -0
  530. data/_sass/foundation-sites/vendor/modernizr/feature-detects/style-scoped.js +6 -0
  531. data/_sass/foundation-sites/vendor/modernizr/feature-detects/svg-filters.js +13 -0
  532. data/_sass/foundation-sites/vendor/modernizr/feature-detects/unicode.js +32 -0
  533. data/_sass/foundation-sites/vendor/modernizr/feature-detects/url-data-uri.js +26 -0
  534. data/_sass/foundation-sites/vendor/modernizr/feature-detects/userdata.js +7 -0
  535. data/_sass/foundation-sites/vendor/modernizr/feature-detects/vibration.js +4 -0
  536. data/_sass/foundation-sites/vendor/modernizr/feature-detects/web-intents.js +6 -0
  537. data/_sass/foundation-sites/vendor/modernizr/feature-detects/webgl-extensions.js +42 -0
  538. data/_sass/foundation-sites/vendor/modernizr/feature-detects/websockets-binary.js +20 -0
  539. data/_sass/foundation-sites/vendor/modernizr/feature-detects/window-framed.js +8 -0
  540. data/_sass/foundation-sites/vendor/modernizr/feature-detects/workers-blobworkers.js +66 -0
  541. data/_sass/foundation-sites/vendor/modernizr/feature-detects/workers-dataworkers.js +34 -0
  542. data/_sass/foundation-sites/vendor/modernizr/feature-detects/workers-sharedworkers.js +3 -0
  543. data/_sass/foundation-sites/vendor/modernizr/grunt.js +69 -0
  544. data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.ai +292 -1
  545. data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.eps +0 -0
  546. data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.pdf +292 -1
  547. data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.png +0 -0
  548. data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.svg +35 -0
  549. data/_sass/foundation-sites/vendor/modernizr/modernizr.js +1406 -0
  550. data/_sass/foundation-sites/vendor/modernizr/readme.md +28 -0
  551. data/_sass/objects/media.scss +7 -2
  552. data/_sass/objects/section.scss +5 -5
  553. data/assets/css/main.scss +7 -1
  554. data/assets/fonts/BebasNeue-Thin.ttf +0 -0
  555. data/assets/fonts/BebasNeue-Thin.woff +0 -0
  556. data/assets/fonts/BebasNeueBold.ttf +0 -0
  557. data/assets/fonts/BebasNeueBold.woff +0 -0
  558. data/assets/fonts/BebasNeueBook.ttf +0 -0
  559. data/assets/fonts/BebasNeueBook.woff +0 -0
  560. data/assets/fonts/BebasNeueLight.ttf +0 -0
  561. data/assets/fonts/BebasNeueLight.woff +0 -0
  562. data/assets/fonts/BebasNeueRegular.ttf +0 -0
  563. data/assets/fonts/BebasNeueRegular.woff +0 -0
  564. data/assets/fonts/demo.html +311 -0
  565. data/assets/fonts/stylesheet.css +40 -0
  566. data/assets/img/people/unknown-pirate.svg +3 -0
  567. data/assets/js/0.main.98ff15822eba72edef32.js +51 -0
  568. data/assets/js/0.main.98ff15822eba72edef32.js.map +1 -0
  569. data/assets/js/main.98ff15822eba72edef32.css +3 -0
  570. data/assets/js/main.98ff15822eba72edef32.css.map +1 -0
  571. data/assets/js/main.98ff15822eba72edef32.js +1 -0
  572. data/assets/js/main.98ff15822eba72edef32.js.map +1 -0
  573. data/jekyll-theme-pirati.gemspec +26 -0
  574. metadata +549 -20
  575. data/_sass/components/BasicPage.scss +0 -469
  576. data/assets/fonts/bebasneue_regular-webfont.eot +0 -0
  577. data/assets/fonts/bebasneue_regular-webfont.svg +0 -3906
  578. data/assets/fonts/bebasneue_regular-webfont.ttf +0 -0
  579. data/assets/fonts/bebasneue_regular-webfont.woff +0 -0
  580. data/assets/fonts/bebasneue_regular-webfont.woff2 +0 -0
  581. data/assets/js/apps.js +0 -8
  582. data/assets/js/apps/scroll-top/ScrollTop.vue +0 -83
  583. data/assets/js/apps/scroll-top/index.js +0 -9
  584. data/assets/js/apps/site-search/SiteSearch.vue +0 -85
  585. data/assets/js/apps/site-search/SiteSearchItemTemplate.vue +0 -29
  586. data/assets/js/apps/site-search/index.js +0 -14
  587. data/assets/js/index.js +0 -52
@@ -0,0 +1,450 @@
1
+ 'use strict';
2
+
3
+ !function($) {
4
+
5
+ /**
6
+ * Sticky module.
7
+ * @module foundation.sticky
8
+ * @requires foundation.util.triggers
9
+ * @requires foundation.util.mediaQuery
10
+ */
11
+
12
+ class Sticky {
13
+ /**
14
+ * Creates a new instance of a sticky thing.
15
+ * @class
16
+ * @param {jQuery} element - jQuery object to make sticky.
17
+ * @param {Object} options - options object passed when creating the element programmatically.
18
+ */
19
+ constructor(element, options) {
20
+ this.$element = element;
21
+ this.options = $.extend({}, Sticky.defaults, this.$element.data(), options);
22
+
23
+ this._init();
24
+
25
+ Foundation.registerPlugin(this, 'Sticky');
26
+ }
27
+
28
+ /**
29
+ * Initializes the sticky element by adding classes, getting/setting dimensions, breakpoints and attributes
30
+ * @function
31
+ * @private
32
+ */
33
+ _init() {
34
+ var $parent = this.$element.parent('[data-sticky-container]'),
35
+ id = this.$element[0].id || Foundation.GetYoDigits(6, 'sticky'),
36
+ _this = this;
37
+
38
+ if (!$parent.length) {
39
+ this.wasWrapped = true;
40
+ }
41
+ this.$container = $parent.length ? $parent : $(this.options.container).wrapInner(this.$element);
42
+ this.$container.addClass(this.options.containerClass);
43
+
44
+ this.$element.addClass(this.options.stickyClass)
45
+ .attr({'data-resize': id});
46
+
47
+ this.scrollCount = this.options.checkEvery;
48
+ this.isStuck = false;
49
+ $(window).one('load.zf.sticky', function(){
50
+ if(_this.options.anchor !== ''){
51
+ _this.$anchor = $('#' + _this.options.anchor);
52
+ }else{
53
+ _this._parsePoints();
54
+ }
55
+
56
+ _this._setSizes(function(){
57
+ _this._calc(false);
58
+ });
59
+ _this._events(id.split('-').reverse().join('-'));
60
+ });
61
+ }
62
+
63
+ /**
64
+ * If using multiple elements as anchors, calculates the top and bottom pixel values the sticky thing should stick and unstick on.
65
+ * @function
66
+ * @private
67
+ */
68
+ _parsePoints() {
69
+ var top = this.options.topAnchor == "" ? 1 : this.options.topAnchor,
70
+ btm = this.options.btmAnchor== "" ? document.documentElement.scrollHeight : this.options.btmAnchor,
71
+ pts = [top, btm],
72
+ breaks = {};
73
+ for (var i = 0, len = pts.length; i < len && pts[i]; i++) {
74
+ var pt;
75
+ if (typeof pts[i] === 'number') {
76
+ pt = pts[i];
77
+ } else {
78
+ var place = pts[i].split(':'),
79
+ anchor = $(`#${place[0]}`);
80
+
81
+ pt = anchor.offset().top;
82
+ if (place[1] && place[1].toLowerCase() === 'bottom') {
83
+ pt += anchor[0].getBoundingClientRect().height;
84
+ }
85
+ }
86
+ breaks[i] = pt;
87
+ }
88
+
89
+
90
+ this.points = breaks;
91
+ return;
92
+ }
93
+
94
+ /**
95
+ * Adds event handlers for the scrolling element.
96
+ * @private
97
+ * @param {String} id - psuedo-random id for unique scroll event listener.
98
+ */
99
+ _events(id) {
100
+ var _this = this,
101
+ scrollListener = this.scrollListener = `scroll.zf.${id}`;
102
+ if (this.isOn) { return; }
103
+ if (this.canStick) {
104
+ this.isOn = true;
105
+ $(window).off(scrollListener)
106
+ .on(scrollListener, function(e) {
107
+ if (_this.scrollCount === 0) {
108
+ _this.scrollCount = _this.options.checkEvery;
109
+ _this._setSizes(function() {
110
+ _this._calc(false, window.pageYOffset);
111
+ });
112
+ } else {
113
+ _this.scrollCount--;
114
+ _this._calc(false, window.pageYOffset);
115
+ }
116
+ });
117
+ }
118
+
119
+ this.$element.off('resizeme.zf.trigger')
120
+ .on('resizeme.zf.trigger', function(e, el) {
121
+ _this._setSizes(function() {
122
+ _this._calc(false);
123
+ if (_this.canStick) {
124
+ if (!_this.isOn) {
125
+ _this._events(id);
126
+ }
127
+ } else if (_this.isOn) {
128
+ _this._pauseListeners(scrollListener);
129
+ }
130
+ });
131
+ });
132
+ }
133
+
134
+ /**
135
+ * Removes event handlers for scroll and change events on anchor.
136
+ * @fires Sticky#pause
137
+ * @param {String} scrollListener - unique, namespaced scroll listener attached to `window`
138
+ */
139
+ _pauseListeners(scrollListener) {
140
+ this.isOn = false;
141
+ $(window).off(scrollListener);
142
+
143
+ /**
144
+ * Fires when the plugin is paused due to resize event shrinking the view.
145
+ * @event Sticky#pause
146
+ * @private
147
+ */
148
+ this.$element.trigger('pause.zf.sticky');
149
+ }
150
+
151
+ /**
152
+ * Called on every `scroll` event and on `_init`
153
+ * fires functions based on booleans and cached values
154
+ * @param {Boolean} checkSizes - true if plugin should recalculate sizes and breakpoints.
155
+ * @param {Number} scroll - current scroll position passed from scroll event cb function. If not passed, defaults to `window.pageYOffset`.
156
+ */
157
+ _calc(checkSizes, scroll) {
158
+ if (checkSizes) { this._setSizes(); }
159
+
160
+ if (!this.canStick) {
161
+ if (this.isStuck) {
162
+ this._removeSticky(true);
163
+ }
164
+ return false;
165
+ }
166
+
167
+ if (!scroll) { scroll = window.pageYOffset; }
168
+
169
+ if (scroll >= this.topPoint) {
170
+ if (scroll <= this.bottomPoint) {
171
+ if (!this.isStuck) {
172
+ this._setSticky();
173
+ }
174
+ } else {
175
+ if (this.isStuck) {
176
+ this._removeSticky(false);
177
+ }
178
+ }
179
+ } else {
180
+ if (this.isStuck) {
181
+ this._removeSticky(true);
182
+ }
183
+ }
184
+ }
185
+
186
+ /**
187
+ * Causes the $element to become stuck.
188
+ * Adds `position: fixed;`, and helper classes.
189
+ * @fires Sticky#stuckto
190
+ * @function
191
+ * @private
192
+ */
193
+ _setSticky() {
194
+ var _this = this,
195
+ stickTo = this.options.stickTo,
196
+ mrgn = stickTo === 'top' ? 'marginTop' : 'marginBottom',
197
+ notStuckTo = stickTo === 'top' ? 'bottom' : 'top',
198
+ css = {};
199
+
200
+ css[mrgn] = `${this.options[mrgn]}em`;
201
+ css[stickTo] = 0;
202
+ css[notStuckTo] = 'auto';
203
+ css['left'] = this.$container.offset().left + parseInt(window.getComputedStyle(this.$container[0])["padding-left"], 10);
204
+ this.isStuck = true;
205
+ this.$element.removeClass(`is-anchored is-at-${notStuckTo}`)
206
+ .addClass(`is-stuck is-at-${stickTo}`)
207
+ .css(css)
208
+ /**
209
+ * Fires when the $element has become `position: fixed;`
210
+ * Namespaced to `top` or `bottom`, e.g. `sticky.zf.stuckto:top`
211
+ * @event Sticky#stuckto
212
+ */
213
+ .trigger(`sticky.zf.stuckto:${stickTo}`);
214
+ this.$element.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd", function() {
215
+ _this._setSizes();
216
+ });
217
+ }
218
+
219
+ /**
220
+ * Causes the $element to become unstuck.
221
+ * Removes `position: fixed;`, and helper classes.
222
+ * Adds other helper classes.
223
+ * @param {Boolean} isTop - tells the function if the $element should anchor to the top or bottom of its $anchor element.
224
+ * @fires Sticky#unstuckfrom
225
+ * @private
226
+ */
227
+ _removeSticky(isTop) {
228
+ var stickTo = this.options.stickTo,
229
+ stickToTop = stickTo === 'top',
230
+ css = {},
231
+ anchorPt = (this.points ? this.points[1] - this.points[0] : this.anchorHeight) - this.elemHeight,
232
+ mrgn = stickToTop ? 'marginTop' : 'marginBottom',
233
+ notStuckTo = stickToTop ? 'bottom' : 'top',
234
+ topOrBottom = isTop ? 'top' : 'bottom';
235
+
236
+ css[mrgn] = 0;
237
+
238
+ css['bottom'] = 'auto';
239
+ if(isTop) {
240
+ css['top'] = 0;
241
+ } else {
242
+ css['top'] = anchorPt;
243
+ }
244
+
245
+ css['left'] = '';
246
+ this.isStuck = false;
247
+ this.$element.removeClass(`is-stuck is-at-${stickTo}`)
248
+ .addClass(`is-anchored is-at-${topOrBottom}`)
249
+ .css(css)
250
+ /**
251
+ * Fires when the $element has become anchored.
252
+ * Namespaced to `top` or `bottom`, e.g. `sticky.zf.unstuckfrom:bottom`
253
+ * @event Sticky#unstuckfrom
254
+ */
255
+ .trigger(`sticky.zf.unstuckfrom:${topOrBottom}`);
256
+ }
257
+
258
+ /**
259
+ * Sets the $element and $container sizes for plugin.
260
+ * Calls `_setBreakPoints`.
261
+ * @param {Function} cb - optional callback function to fire on completion of `_setBreakPoints`.
262
+ * @private
263
+ */
264
+ _setSizes(cb) {
265
+ this.canStick = Foundation.MediaQuery.atLeast(this.options.stickyOn);
266
+ if (!this.canStick) { cb(); }
267
+ var _this = this,
268
+ newElemWidth = this.$container[0].getBoundingClientRect().width,
269
+ comp = window.getComputedStyle(this.$container[0]),
270
+ pdng = parseInt(comp['padding-right'], 10);
271
+
272
+ if (this.$anchor && this.$anchor.length) {
273
+ this.anchorHeight = this.$anchor[0].getBoundingClientRect().height;
274
+ } else {
275
+ this._parsePoints();
276
+ }
277
+
278
+ this.$element.css({
279
+ 'max-width': `${newElemWidth - pdng}px`
280
+ });
281
+
282
+ var newContainerHeight = this.$element[0].getBoundingClientRect().height || this.containerHeight;
283
+ if (this.$element.css("display") == "none") {
284
+ newContainerHeight = 0;
285
+ }
286
+ this.containerHeight = newContainerHeight;
287
+ this.$container.css({
288
+ height: newContainerHeight
289
+ });
290
+ this.elemHeight = newContainerHeight;
291
+
292
+ if (this.isStuck) {
293
+ this.$element.css({"left":this.$container.offset().left + parseInt(comp['padding-left'], 10)});
294
+ }
295
+
296
+ this._setBreakPoints(newContainerHeight, function() {
297
+ if (cb) { cb(); }
298
+ });
299
+ }
300
+
301
+ /**
302
+ * Sets the upper and lower breakpoints for the element to become sticky/unsticky.
303
+ * @param {Number} elemHeight - px value for sticky.$element height, calculated by `_setSizes`.
304
+ * @param {Function} cb - optional callback function to be called on completion.
305
+ * @private
306
+ */
307
+ _setBreakPoints(elemHeight, cb) {
308
+ if (!this.canStick) {
309
+ if (cb) { cb(); }
310
+ else { return false; }
311
+ }
312
+ var mTop = emCalc(this.options.marginTop),
313
+ mBtm = emCalc(this.options.marginBottom),
314
+ topPoint = this.points ? this.points[0] : this.$anchor.offset().top,
315
+ bottomPoint = this.points ? this.points[1] : topPoint + this.anchorHeight,
316
+ // topPoint = this.$anchor.offset().top || this.points[0],
317
+ // bottomPoint = topPoint + this.anchorHeight || this.points[1],
318
+ winHeight = window.innerHeight;
319
+
320
+ if (this.options.stickTo === 'top') {
321
+ topPoint -= mTop;
322
+ bottomPoint -= (elemHeight + mTop);
323
+ } else if (this.options.stickTo === 'bottom') {
324
+ topPoint -= (winHeight - (elemHeight + mBtm));
325
+ bottomPoint -= (winHeight - mBtm);
326
+ } else {
327
+ //this would be the stickTo: both option... tricky
328
+ }
329
+
330
+ this.topPoint = topPoint;
331
+ this.bottomPoint = bottomPoint;
332
+
333
+ if (cb) { cb(); }
334
+ }
335
+
336
+ /**
337
+ * Destroys the current sticky element.
338
+ * Resets the element to the top position first.
339
+ * Removes event listeners, JS-added css properties and classes, and unwraps the $element if the JS added the $container.
340
+ * @function
341
+ */
342
+ destroy() {
343
+ this._removeSticky(true);
344
+
345
+ this.$element.removeClass(`${this.options.stickyClass} is-anchored is-at-top`)
346
+ .css({
347
+ height: '',
348
+ top: '',
349
+ bottom: '',
350
+ 'max-width': ''
351
+ })
352
+ .off('resizeme.zf.trigger');
353
+ if (this.$anchor && this.$anchor.length) {
354
+ this.$anchor.off('change.zf.sticky');
355
+ }
356
+ $(window).off(this.scrollListener);
357
+
358
+ if (this.wasWrapped) {
359
+ this.$element.unwrap();
360
+ } else {
361
+ this.$container.removeClass(this.options.containerClass)
362
+ .css({
363
+ height: ''
364
+ });
365
+ }
366
+ Foundation.unregisterPlugin(this);
367
+ }
368
+ }
369
+
370
+ Sticky.defaults = {
371
+ /**
372
+ * Customizable container template. Add your own classes for styling and sizing.
373
+ * @option
374
+ * @example '&lt;div data-sticky-container class="small-6 columns"&gt;&lt;/div&gt;'
375
+ */
376
+ container: '<div data-sticky-container></div>',
377
+ /**
378
+ * Location in the view the element sticks to.
379
+ * @option
380
+ * @example 'top'
381
+ */
382
+ stickTo: 'top',
383
+ /**
384
+ * If anchored to a single element, the id of that element.
385
+ * @option
386
+ * @example 'exampleId'
387
+ */
388
+ anchor: '',
389
+ /**
390
+ * If using more than one element as anchor points, the id of the top anchor.
391
+ * @option
392
+ * @example 'exampleId:top'
393
+ */
394
+ topAnchor: '',
395
+ /**
396
+ * If using more than one element as anchor points, the id of the bottom anchor.
397
+ * @option
398
+ * @example 'exampleId:bottom'
399
+ */
400
+ btmAnchor: '',
401
+ /**
402
+ * Margin, in `em`'s to apply to the top of the element when it becomes sticky.
403
+ * @option
404
+ * @example 1
405
+ */
406
+ marginTop: 1,
407
+ /**
408
+ * Margin, in `em`'s to apply to the bottom of the element when it becomes sticky.
409
+ * @option
410
+ * @example 1
411
+ */
412
+ marginBottom: 1,
413
+ /**
414
+ * Breakpoint string that is the minimum screen size an element should become sticky.
415
+ * @option
416
+ * @example 'medium'
417
+ */
418
+ stickyOn: 'medium',
419
+ /**
420
+ * Class applied to sticky element, and removed on destruction. Foundation defaults to `sticky`.
421
+ * @option
422
+ * @example 'sticky'
423
+ */
424
+ stickyClass: 'sticky',
425
+ /**
426
+ * Class applied to sticky container. Foundation defaults to `sticky-container`.
427
+ * @option
428
+ * @example 'sticky-container'
429
+ */
430
+ containerClass: 'sticky-container',
431
+ /**
432
+ * Number of scroll events between the plugin's recalculating sticky points. Setting it to `0` will cause it to recalc every scroll event, setting it to `-1` will prevent recalc on scroll.
433
+ * @option
434
+ * @example 50
435
+ */
436
+ checkEvery: -1
437
+ };
438
+
439
+ /**
440
+ * Helper function to calculate em values
441
+ * @param Number {em} - number of em's to calculate into pixels
442
+ */
443
+ function emCalc(em) {
444
+ return parseInt(window.getComputedStyle(document.body, null).fontSize, 10) * em;
445
+ }
446
+
447
+ // Window exports
448
+ Foundation.plugin(Sticky, 'Sticky');
449
+
450
+ }(jQuery);
@@ -0,0 +1,333 @@
1
+ 'use strict';
2
+
3
+ !function($) {
4
+
5
+ /**
6
+ * Tabs module.
7
+ * @module foundation.tabs
8
+ * @requires foundation.util.keyboard
9
+ * @requires foundation.util.timerAndImageLoader if tabs contain images
10
+ */
11
+
12
+ class Tabs {
13
+ /**
14
+ * Creates a new instance of tabs.
15
+ * @class
16
+ * @fires Tabs#init
17
+ * @param {jQuery} element - jQuery object to make into tabs.
18
+ * @param {Object} options - Overrides to the default plugin settings.
19
+ */
20
+ constructor(element, options) {
21
+ this.$element = element;
22
+ this.options = $.extend({}, Tabs.defaults, this.$element.data(), options);
23
+
24
+ this._init();
25
+ Foundation.registerPlugin(this, 'Tabs');
26
+ Foundation.Keyboard.register('Tabs', {
27
+ 'ENTER': 'open',
28
+ 'SPACE': 'open',
29
+ 'ARROW_RIGHT': 'next',
30
+ 'ARROW_UP': 'previous',
31
+ 'ARROW_DOWN': 'next',
32
+ 'ARROW_LEFT': 'previous'
33
+ // 'TAB': 'next',
34
+ // 'SHIFT_TAB': 'previous'
35
+ });
36
+ }
37
+
38
+ /**
39
+ * Initializes the tabs by showing and focusing (if autoFocus=true) the preset active tab.
40
+ * @private
41
+ */
42
+ _init() {
43
+ var _this = this;
44
+
45
+ this.$tabTitles = this.$element.find(`.${this.options.linkClass}`);
46
+ this.$tabContent = $(`[data-tabs-content="${this.$element[0].id}"]`);
47
+
48
+ this.$tabTitles.each(function(){
49
+ var $elem = $(this),
50
+ $link = $elem.find('a'),
51
+ isActive = $elem.hasClass('is-active'),
52
+ hash = $link[0].hash.slice(1),
53
+ linkId = $link[0].id ? $link[0].id : `${hash}-label`,
54
+ $tabContent = $(`#${hash}`);
55
+
56
+ $elem.attr({'role': 'presentation'});
57
+
58
+ $link.attr({
59
+ 'role': 'tab',
60
+ 'aria-controls': hash,
61
+ 'aria-selected': isActive,
62
+ 'id': linkId
63
+ });
64
+
65
+ $tabContent.attr({
66
+ 'role': 'tabpanel',
67
+ 'aria-hidden': !isActive,
68
+ 'aria-labelledby': linkId
69
+ });
70
+
71
+ if(isActive && _this.options.autoFocus){
72
+ $link.focus();
73
+ }
74
+ });
75
+
76
+ if(this.options.matchHeight) {
77
+ var $images = this.$tabContent.find('img');
78
+
79
+ if ($images.length) {
80
+ Foundation.onImagesLoaded($images, this._setHeight.bind(this));
81
+ } else {
82
+ this._setHeight();
83
+ }
84
+ }
85
+
86
+ this._events();
87
+ }
88
+
89
+ /**
90
+ * Adds event handlers for items within the tabs.
91
+ * @private
92
+ */
93
+ _events() {
94
+ this._addKeyHandler();
95
+ this._addClickHandler();
96
+ this._setHeightMqHandler = null;
97
+
98
+ if (this.options.matchHeight) {
99
+ this._setHeightMqHandler = this._setHeight.bind(this);
100
+
101
+ $(window).on('changed.zf.mediaquery', this._setHeightMqHandler);
102
+ }
103
+ }
104
+
105
+ /**
106
+ * Adds click handlers for items within the tabs.
107
+ * @private
108
+ */
109
+ _addClickHandler() {
110
+ var _this = this;
111
+
112
+ this.$element
113
+ .off('click.zf.tabs')
114
+ .on('click.zf.tabs', `.${this.options.linkClass}`, function(e){
115
+ e.preventDefault();
116
+ e.stopPropagation();
117
+ if ($(this).hasClass('is-active')) {
118
+ return;
119
+ }
120
+ _this._handleTabChange($(this));
121
+ });
122
+ }
123
+
124
+ /**
125
+ * Adds keyboard event handlers for items within the tabs.
126
+ * @private
127
+ */
128
+ _addKeyHandler() {
129
+ var _this = this;
130
+ var $firstTab = _this.$element.find('li:first-of-type');
131
+ var $lastTab = _this.$element.find('li:last-of-type');
132
+
133
+ this.$tabTitles.off('keydown.zf.tabs').on('keydown.zf.tabs', function(e){
134
+ if (e.which === 9) return;
135
+
136
+
137
+ var $element = $(this),
138
+ $elements = $element.parent('ul').children('li'),
139
+ $prevElement,
140
+ $nextElement;
141
+
142
+ $elements.each(function(i) {
143
+ if ($(this).is($element)) {
144
+ if (_this.options.wrapOnKeys) {
145
+ $prevElement = i === 0 ? $elements.last() : $elements.eq(i-1);
146
+ $nextElement = i === $elements.length -1 ? $elements.first() : $elements.eq(i+1);
147
+ } else {
148
+ $prevElement = $elements.eq(Math.max(0, i-1));
149
+ $nextElement = $elements.eq(Math.min(i+1, $elements.length-1));
150
+ }
151
+ return;
152
+ }
153
+ });
154
+
155
+ // handle keyboard event with keyboard util
156
+ Foundation.Keyboard.handleKey(e, 'Tabs', {
157
+ open: function() {
158
+ $element.find('[role="tab"]').focus();
159
+ _this._handleTabChange($element);
160
+ },
161
+ previous: function() {
162
+ $prevElement.find('[role="tab"]').focus();
163
+ _this._handleTabChange($prevElement);
164
+ },
165
+ next: function() {
166
+ $nextElement.find('[role="tab"]').focus();
167
+ _this._handleTabChange($nextElement);
168
+ },
169
+ handled: function() {
170
+ e.stopPropagation();
171
+ e.preventDefault();
172
+ }
173
+ });
174
+ });
175
+ }
176
+
177
+ /**
178
+ * Opens the tab `$targetContent` defined by `$target`.
179
+ * @param {jQuery} $target - Tab to open.
180
+ * @fires Tabs#change
181
+ * @function
182
+ */
183
+ _handleTabChange($target) {
184
+ var $tabLink = $target.find('[role="tab"]'),
185
+ hash = $tabLink[0].hash,
186
+ $targetContent = this.$tabContent.find(hash),
187
+ $oldTab = this.$element.
188
+ find(`.${this.options.linkClass}.is-active`)
189
+ .removeClass('is-active')
190
+ .find('[role="tab"]')
191
+ .attr({ 'aria-selected': 'false' });
192
+
193
+ $(`#${$oldTab.attr('aria-controls')}`)
194
+ .removeClass('is-active')
195
+ .attr({ 'aria-hidden': 'true' });
196
+
197
+ $target.addClass('is-active');
198
+
199
+ $tabLink.attr({'aria-selected': 'true'});
200
+
201
+ $targetContent
202
+ .addClass('is-active')
203
+ .attr({'aria-hidden': 'false'});
204
+
205
+ /**
206
+ * Fires when the plugin has successfully changed tabs.
207
+ * @event Tabs#change
208
+ */
209
+ this.$element.trigger('change.zf.tabs', [$target]);
210
+ }
211
+
212
+ /**
213
+ * Public method for selecting a content pane to display.
214
+ * @param {jQuery | String} elem - jQuery object or string of the id of the pane to display.
215
+ * @function
216
+ */
217
+ selectTab(elem) {
218
+ var idStr;
219
+
220
+ if (typeof elem === 'object') {
221
+ idStr = elem[0].id;
222
+ } else {
223
+ idStr = elem;
224
+ }
225
+
226
+ if (idStr.indexOf('#') < 0) {
227
+ idStr = `#${idStr}`;
228
+ }
229
+
230
+ var $target = this.$tabTitles.find(`[href="${idStr}"]`).parent(`.${this.options.linkClass}`);
231
+
232
+ this._handleTabChange($target);
233
+ };
234
+ /**
235
+ * Sets the height of each panel to the height of the tallest panel.
236
+ * If enabled in options, gets called on media query change.
237
+ * If loading content via external source, can be called directly or with _reflow.
238
+ * @function
239
+ * @private
240
+ */
241
+ _setHeight() {
242
+ var max = 0;
243
+ this.$tabContent
244
+ .find(`.${this.options.panelClass}`)
245
+ .css('height', '')
246
+ .each(function() {
247
+ var panel = $(this),
248
+ isActive = panel.hasClass('is-active');
249
+
250
+ if (!isActive) {
251
+ panel.css({'visibility': 'hidden', 'display': 'block'});
252
+ }
253
+
254
+ var temp = this.getBoundingClientRect().height;
255
+
256
+ if (!isActive) {
257
+ panel.css({
258
+ 'visibility': '',
259
+ 'display': ''
260
+ });
261
+ }
262
+
263
+ max = temp > max ? temp : max;
264
+ })
265
+ .css('height', `${max}px`);
266
+ }
267
+
268
+ /**
269
+ * Destroys an instance of an tabs.
270
+ * @fires Tabs#destroyed
271
+ */
272
+ destroy() {
273
+ this.$element
274
+ .find(`.${this.options.linkClass}`)
275
+ .off('.zf.tabs').hide().end()
276
+ .find(`.${this.options.panelClass}`)
277
+ .hide();
278
+
279
+ if (this.options.matchHeight) {
280
+ if (this._setHeightMqHandler != null) {
281
+ $(window).off('changed.zf.mediaquery', this._setHeightMqHandler);
282
+ }
283
+ }
284
+
285
+ Foundation.unregisterPlugin(this);
286
+ }
287
+ }
288
+
289
+ Tabs.defaults = {
290
+ /**
291
+ * Allows the window to scroll to content of active pane on load if set to true.
292
+ * @option
293
+ * @example false
294
+ */
295
+ autoFocus: false,
296
+
297
+ /**
298
+ * Allows keyboard input to 'wrap' around the tab links.
299
+ * @option
300
+ * @example true
301
+ */
302
+ wrapOnKeys: true,
303
+
304
+ /**
305
+ * Allows the tab content panes to match heights if set to true.
306
+ * @option
307
+ * @example false
308
+ */
309
+ matchHeight: false,
310
+
311
+ /**
312
+ * Class applied to `li`'s in tab link list.
313
+ * @option
314
+ * @example 'tabs-title'
315
+ */
316
+ linkClass: 'tabs-title',
317
+
318
+ /**
319
+ * Class applied to the content containers.
320
+ * @option
321
+ * @example 'tabs-panel'
322
+ */
323
+ panelClass: 'tabs-panel'
324
+ };
325
+
326
+ function checkClass($elem){
327
+ return $elem.hasClass('is-active');
328
+ }
329
+
330
+ // Window exports
331
+ Foundation.plugin(Tabs, 'Tabs');
332
+
333
+ }(jQuery);