foundation-rails 5.5.3.2 → 6.6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +2 -2
- data/.ruby-version +1 -1
- data/.travis.yml +17 -4
- data/Appraisals +19 -0
- data/Gemfile +5 -2
- data/Gemfile.lock +210 -0
- data/LICENSE.txt +1 -1
- data/README.md +64 -28
- data/Rakefile +30 -0
- data/app/views/foundation/rails/styleguide/show.html.erb +10 -13
- data/bower.json +3 -2
- data/foundation-rails.gemspec +12 -7
- data/gemfiles/rails_4.1.gemfile +10 -0
- data/gemfiles/rails_4.1.gemfile.lock +181 -0
- data/gemfiles/rails_4.2.gemfile +10 -0
- data/gemfiles/rails_4.2.gemfile.lock +181 -0
- data/gemfiles/rails_5.0.gemfile +10 -0
- data/gemfiles/rails_5.0.gemfile.lock +196 -0
- data/gemfiles/rails_5.1.gemfile +10 -0
- data/gemfiles/rails_5.1.gemfile.lock +196 -0
- data/gemfiles/rails_5.2.gemfile +10 -0
- data/gemfiles/rails_5.2.gemfile.lock +196 -0
- data/lib/foundation/rails/engine.rb +2 -3
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/foundation-rails.rb +1 -0
- data/lib/generators/foundation/install_generator.rb +39 -27
- data/lib/generators/foundation/templates/_settings.scss +895 -0
- data/lib/generators/foundation/templates/application.html.erb +1 -2
- data/lib/generators/foundation/templates/application.html.haml +2 -4
- data/lib/generators/foundation/templates/application.html.slim +1 -3
- data/lib/generators/foundation/templates/browserslist +4 -0
- data/lib/generators/foundation/templates/foundation_and_overrides.scss +56 -0
- data/spec/features/generator_spec.rb +1 -1
- data/spec/support/helpers.rb +8 -2
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/vendor/assets/js/foundation.cjs.js +12529 -0
- data/vendor/assets/js/foundation.cjs.js.map +1 -0
- data/vendor/assets/js/foundation.es6.js +11006 -0
- data/vendor/assets/js/foundation.es6.js.map +1 -0
- data/vendor/assets/js/foundation.esm.js +12490 -0
- data/vendor/assets/js/foundation.esm.js.map +1 -0
- data/vendor/assets/js/foundation.js +13897 -0
- data/vendor/assets/js/foundation.js.map +1 -0
- data/vendor/assets/js/foundation.min.js +2 -0
- data/vendor/assets/js/foundation.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.abide.js +1142 -0
- data/vendor/assets/js/plugins/foundation.abide.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.abide.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.accordion.js +661 -0
- data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.accordion.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.accordionMenu.js +616 -0
- data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.core.js +1180 -0
- data/vendor/assets/js/plugins/foundation.core.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.core.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.drilldown.js +968 -0
- data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.drilldown.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.dropdown.js +1328 -0
- data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.dropdown.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js +799 -0
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.equalizer.js +614 -0
- data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.equalizer.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.interchange.js +796 -0
- data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.interchange.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.magellan.js +850 -0
- data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.magellan.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.offcanvas.js +1318 -0
- data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.orbit.js +886 -0
- data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.orbit.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +585 -0
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js +413 -0
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js +394 -0
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.reveal.js +1275 -0
- data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.reveal.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.slider.js +1346 -0
- data/vendor/assets/js/plugins/foundation.slider.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.slider.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.smoothScroll.js +359 -0
- data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.sticky.js +1105 -0
- data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.sticky.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.tabs.js +792 -0
- data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.tabs.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.toggler.js +704 -0
- data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.toggler.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.tooltip.js +1333 -0
- data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.tooltip.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.box.js +354 -0
- data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.box.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js +218 -0
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.keyboard.js +341 -0
- data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +509 -0
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.motion.js +274 -0
- data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.motion.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.nest.js +240 -0
- data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.nest.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.timer.js +226 -0
- data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.timer.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.touch.js +365 -0
- data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.touch.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.triggers.js +470 -0
- data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -0
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js +2 -0
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -0
- data/vendor/assets/scss/_global.scss +244 -0
- data/vendor/assets/scss/components/_accordion-menu.scss +174 -0
- data/vendor/assets/scss/components/_accordion.scss +164 -0
- data/vendor/assets/scss/components/_badge.scss +63 -0
- data/vendor/assets/scss/components/_breadcrumbs.scss +119 -0
- data/vendor/assets/scss/components/_button-group.scss +304 -0
- data/vendor/assets/scss/components/_button.scss +428 -0
- data/vendor/assets/scss/components/_callout.scss +108 -0
- data/vendor/assets/scss/components/_card.scss +129 -0
- data/vendor/assets/scss/components/_close-button.scss +127 -0
- data/vendor/assets/scss/components/_drilldown.scss +140 -0
- data/vendor/assets/scss/components/_dropdown-menu.scss +279 -0
- data/vendor/assets/scss/components/_dropdown.scss +82 -0
- data/vendor/assets/scss/components/_flex-video.scss +1 -0
- data/vendor/assets/scss/components/_flex.scss +119 -0
- data/vendor/assets/scss/components/_float.scss +27 -0
- data/vendor/assets/scss/components/_label.scss +64 -0
- data/vendor/assets/scss/components/_media-object.scss +114 -0
- data/vendor/assets/scss/components/_menu-icon.scss +9 -0
- data/vendor/assets/scss/components/_menu.scss +495 -0
- data/vendor/assets/scss/components/_off-canvas.scss +511 -0
- data/vendor/assets/scss/components/_orbit.scss +197 -0
- data/vendor/assets/scss/components/_pagination.scss +201 -0
- data/vendor/assets/scss/components/_progress-bar.scss +63 -0
- data/vendor/assets/scss/components/_responsive-embed.scss +57 -0
- data/vendor/assets/scss/components/_reveal.scss +185 -0
- data/vendor/assets/scss/components/_slider.scss +137 -0
- data/vendor/assets/scss/components/_sticky.scss +39 -0
- data/vendor/assets/scss/components/_switch.scss +261 -0
- data/vendor/assets/scss/components/_table.scss +328 -0
- data/vendor/assets/scss/components/_tabs.scss +193 -0
- data/vendor/assets/scss/components/_thumbnail.scss +67 -0
- data/vendor/assets/scss/components/_title-bar.scss +84 -0
- data/vendor/assets/scss/components/_tooltip.scss +160 -0
- data/vendor/assets/scss/components/_top-bar.scss +175 -0
- data/vendor/assets/scss/components/_visibility.scss +135 -0
- data/vendor/assets/scss/forms/_checkbox.scss +41 -0
- data/vendor/assets/scss/forms/_error.scss +89 -0
- data/vendor/assets/scss/forms/_fieldset.scss +53 -0
- data/vendor/assets/scss/forms/_forms.scss +34 -0
- data/vendor/assets/scss/forms/_help-text.scss +30 -0
- data/vendor/assets/scss/forms/_input-group.scss +142 -0
- data/vendor/assets/scss/forms/_label.scss +50 -0
- data/vendor/assets/scss/forms/_meter.scss +116 -0
- data/vendor/assets/scss/forms/_progress.scss +94 -0
- data/vendor/assets/scss/forms/_range.scss +149 -0
- data/vendor/assets/scss/forms/_select.scss +90 -0
- data/vendor/assets/scss/forms/_text.scss +179 -0
- data/vendor/assets/scss/foundation.scss +155 -0
- data/vendor/assets/scss/grid/_classes.scss +189 -0
- data/vendor/assets/scss/grid/_column.scss +78 -0
- data/vendor/assets/scss/grid/_flex-grid.scss +260 -0
- data/vendor/assets/scss/grid/_grid.scss +48 -0
- data/vendor/assets/scss/grid/_gutter.scss +67 -0
- data/vendor/assets/scss/grid/_layout.scss +76 -0
- data/vendor/assets/scss/grid/_position.scss +100 -0
- data/vendor/assets/scss/grid/_row.scss +99 -0
- data/vendor/assets/scss/grid/_size.scss +24 -0
- data/vendor/assets/scss/motion-ui/_classes.scss +109 -0
- data/vendor/assets/scss/motion-ui/_settings.scss +62 -0
- data/vendor/assets/scss/motion-ui/effects/_fade.scss +29 -0
- data/vendor/assets/scss/motion-ui/effects/_hinge.scss +66 -0
- data/vendor/assets/scss/motion-ui/effects/_shake.scss +15 -0
- data/vendor/assets/scss/motion-ui/effects/_slide.scss +42 -0
- data/vendor/assets/scss/motion-ui/effects/_spin.scss +29 -0
- data/vendor/assets/scss/motion-ui/effects/_wiggle.scss +13 -0
- data/vendor/assets/scss/motion-ui/effects/_zoom.scss +15 -0
- data/vendor/assets/scss/motion-ui/motion-ui.scss +31 -0
- data/vendor/assets/scss/motion-ui/transitions/_fade.scss +30 -0
- data/vendor/assets/scss/motion-ui/transitions/_hinge.scss +44 -0
- data/vendor/assets/scss/motion-ui/transitions/_slide.scss +43 -0
- data/vendor/assets/scss/motion-ui/transitions/_spin.scss +40 -0
- data/vendor/assets/scss/motion-ui/transitions/_zoom.scss +41 -0
- data/vendor/assets/scss/motion-ui/util/_animation.scss +7 -0
- data/vendor/assets/scss/motion-ui/util/_args.scss +15 -0
- data/vendor/assets/scss/motion-ui/util/_function.scss +94 -0
- data/vendor/assets/scss/motion-ui/util/_keyframe.scss +136 -0
- data/vendor/assets/scss/motion-ui/util/_selector.scss +23 -0
- data/vendor/assets/scss/motion-ui/util/_series.scss +57 -0
- data/vendor/assets/scss/motion-ui/util/_string.scss +36 -0
- data/vendor/assets/scss/motion-ui/util/_transition.scss +45 -0
- data/vendor/assets/scss/motion-ui/util/_unit.scss +7 -0
- data/vendor/assets/scss/prototype/_arrow.scss +36 -0
- data/vendor/assets/scss/prototype/_border-box.scss +35 -0
- data/vendor/assets/scss/prototype/_border-none.scss +35 -0
- data/vendor/assets/scss/prototype/_bordered.scss +54 -0
- data/vendor/assets/scss/prototype/_box.scss +23 -0
- data/vendor/assets/scss/prototype/_display.scss +50 -0
- data/vendor/assets/scss/prototype/_font-styling.scss +95 -0
- data/vendor/assets/scss/prototype/_list-style-type.scss +95 -0
- data/vendor/assets/scss/prototype/_overflow.scss +72 -0
- data/vendor/assets/scss/prototype/_position.scss +114 -0
- data/vendor/assets/scss/prototype/_prototype.scss +87 -0
- data/vendor/assets/scss/prototype/_relation.scss +157 -0
- data/vendor/assets/scss/prototype/_rotate.scss +31 -0
- data/vendor/assets/scss/prototype/_rounded.scss +61 -0
- data/vendor/assets/scss/prototype/_separator.scss +96 -0
- data/vendor/assets/scss/prototype/_shadow.scss +43 -0
- data/vendor/assets/scss/prototype/_sizing.scss +73 -0
- data/vendor/assets/scss/prototype/_spacing.scss +179 -0
- data/vendor/assets/scss/prototype/_text-decoration.scss +48 -0
- data/vendor/assets/scss/prototype/_text-transformation.scss +48 -0
- data/vendor/assets/scss/prototype/_text-utilities.scss +88 -0
- data/vendor/assets/scss/settings/_settings.scss +895 -0
- data/vendor/assets/scss/typography/_alignment.scss +22 -0
- data/vendor/assets/scss/typography/_base.scss +474 -0
- data/vendor/assets/scss/typography/_helpers.scss +180 -0
- data/vendor/assets/scss/typography/_print.scss +96 -0
- data/vendor/assets/scss/typography/_typography.scss +26 -0
- data/vendor/assets/scss/util/_breakpoint.scss +435 -0
- data/vendor/assets/scss/util/_color.scss +139 -0
- data/vendor/assets/scss/util/_direction.scss +31 -0
- data/vendor/assets/scss/util/_flex.scss +90 -0
- data/vendor/assets/scss/util/_math.scss +147 -0
- data/vendor/assets/scss/util/_mixins.scss +373 -0
- data/vendor/assets/scss/util/_selector.scss +41 -0
- data/vendor/assets/scss/util/_typography.scss +26 -0
- data/vendor/assets/scss/util/_unit.scss +152 -0
- data/vendor/assets/scss/util/_util.scss +14 -0
- data/vendor/assets/scss/util/_value.scss +200 -0
- data/vendor/assets/scss/vendor/normalize.scss +281 -0
- data/vendor/assets/scss/xy-grid/_cell.scss +272 -0
- data/vendor/assets/scss/xy-grid/_classes.scss +493 -0
- data/vendor/assets/scss/xy-grid/_collapse.scss +75 -0
- data/vendor/assets/scss/xy-grid/_frame.scss +86 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +37 -0
- data/vendor/assets/scss/xy-grid/_gutters.scss +45 -0
- data/vendor/assets/scss/xy-grid/_layout.scss +36 -0
- data/vendor/assets/scss/xy-grid/_position.scss +55 -0
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +51 -0
- metadata +342 -83
- data/update-gem.sh +0 -20
- data/vendor/assets/javascripts/foundation/foundation.abide.js +0 -426
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +0 -125
- data/vendor/assets/javascripts/foundation/foundation.alert.js +0 -43
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +0 -586
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +0 -468
- data/vendor/assets/javascripts/foundation/foundation.equalizer.js +0 -104
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +0 -360
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +0 -935
- data/vendor/assets/javascripts/foundation/foundation.js +0 -732
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +0 -214
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +0 -225
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +0 -476
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +0 -522
- data/vendor/assets/javascripts/foundation/foundation.slider.js +0 -296
- data/vendor/assets/javascripts/foundation/foundation.tab.js +0 -247
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +0 -348
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +0 -458
- data/vendor/assets/javascripts/foundation.js +0 -17
- data/vendor/assets/javascripts/vendor/modernizr.js +0 -1406
- data/vendor/assets/stylesheets/foundation/_functions.scss +0 -156
- data/vendor/assets/stylesheets/foundation/_settings.scss +0 -1489
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +0 -161
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +0 -133
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +0 -208
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +0 -261
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +0 -260
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +0 -269
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +0 -607
- data/vendor/assets/stylesheets/foundation/components/_global.scss +0 -566
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +0 -292
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +0 -460
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -58
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +0 -220
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +0 -60
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -106
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -34
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +0 -606
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +0 -388
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +0 -163
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +0 -107
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +0 -85
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +0 -177
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +0 -212
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +0 -120
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -203
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +0 -125
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +0 -241
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +0 -135
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +0 -142
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +0 -745
- data/vendor/assets/stylesheets/foundation/components/_type.scss +0 -525
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +0 -425
- data/vendor/assets/stylesheets/foundation.scss +0 -42
- data/vendor/assets/stylesheets/normalize.scss +0 -424
@@ -1,214 +0,0 @@
|
|
1
|
-
;(function ($, window, document, undefined) {
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
Foundation.libs['magellan-expedition'] = {
|
5
|
-
name : 'magellan-expedition',
|
6
|
-
|
7
|
-
version : '5.5.3',
|
8
|
-
|
9
|
-
settings : {
|
10
|
-
active_class : 'active',
|
11
|
-
threshold : 0, // pixels from the top of the expedition for it to become fixes
|
12
|
-
destination_threshold : 20, // pixels from the top of destination for it to be considered active
|
13
|
-
throttle_delay : 30, // calculation throttling to increase framerate
|
14
|
-
fixed_top : 0, // top distance in pixels assigend to the fixed element on scroll
|
15
|
-
offset_by_height : true, // whether to offset the destination by the expedition height. Usually you want this to be true, unless your expedition is on the side.
|
16
|
-
duration : 700, // animation duration time
|
17
|
-
easing : 'swing' // animation easing
|
18
|
-
},
|
19
|
-
|
20
|
-
init : function (scope, method, options) {
|
21
|
-
Foundation.inherit(this, 'throttle');
|
22
|
-
this.bindings(method, options);
|
23
|
-
},
|
24
|
-
|
25
|
-
events : function () {
|
26
|
-
var self = this,
|
27
|
-
S = self.S,
|
28
|
-
settings = self.settings;
|
29
|
-
|
30
|
-
// initialize expedition offset
|
31
|
-
self.set_expedition_position();
|
32
|
-
|
33
|
-
S(self.scope)
|
34
|
-
.off('.magellan')
|
35
|
-
.on('click.fndtn.magellan', '[' + self.add_namespace('data-magellan-arrival') + '] a[href*=#]', function (e) {
|
36
|
-
var sameHost = ((this.hostname === location.hostname) || !this.hostname),
|
37
|
-
samePath = self.filterPathname(location.pathname) === self.filterPathname(this.pathname),
|
38
|
-
testHash = this.hash.replace(/(:|\.|\/)/g, '\\$1'),
|
39
|
-
anchor = this;
|
40
|
-
|
41
|
-
if (sameHost && samePath && testHash) {
|
42
|
-
e.preventDefault();
|
43
|
-
var expedition = $(this).closest('[' + self.attr_name() + ']'),
|
44
|
-
settings = expedition.data('magellan-expedition-init'),
|
45
|
-
hash = this.hash.split('#').join(''),
|
46
|
-
target = $('a[name="' + hash + '"]');
|
47
|
-
|
48
|
-
if (target.length === 0) {
|
49
|
-
target = $('#' + hash);
|
50
|
-
|
51
|
-
}
|
52
|
-
|
53
|
-
// Account for expedition height if fixed position
|
54
|
-
var scroll_top = target.offset().top - settings.destination_threshold + 1;
|
55
|
-
if (settings.offset_by_height) {
|
56
|
-
scroll_top = scroll_top - expedition.outerHeight();
|
57
|
-
}
|
58
|
-
$('html, body').stop().animate({
|
59
|
-
'scrollTop' : scroll_top
|
60
|
-
}, settings.duration, settings.easing, function () {
|
61
|
-
if (history.pushState) {
|
62
|
-
history.pushState(null, null, anchor.pathname + anchor.search + '#' + hash);
|
63
|
-
} else {
|
64
|
-
location.hash = anchor.pathname + anchor.search + '#' + hash;
|
65
|
-
}
|
66
|
-
});
|
67
|
-
}
|
68
|
-
})
|
69
|
-
.on('scroll.fndtn.magellan', self.throttle(this.check_for_arrivals.bind(this), settings.throttle_delay));
|
70
|
-
},
|
71
|
-
|
72
|
-
check_for_arrivals : function () {
|
73
|
-
var self = this;
|
74
|
-
self.update_arrivals();
|
75
|
-
self.update_expedition_positions();
|
76
|
-
},
|
77
|
-
|
78
|
-
set_expedition_position : function () {
|
79
|
-
var self = this;
|
80
|
-
$('[' + this.attr_name() + '=fixed]', self.scope).each(function (idx, el) {
|
81
|
-
var expedition = $(this),
|
82
|
-
settings = expedition.data('magellan-expedition-init'),
|
83
|
-
styles = expedition.attr('styles'), // save styles
|
84
|
-
top_offset, fixed_top;
|
85
|
-
|
86
|
-
expedition.attr('style', '');
|
87
|
-
top_offset = expedition.offset().top + settings.threshold;
|
88
|
-
|
89
|
-
//set fixed-top by attribute
|
90
|
-
fixed_top = parseInt(expedition.data('magellan-fixed-top'));
|
91
|
-
if (!isNaN(fixed_top)) {
|
92
|
-
self.settings.fixed_top = fixed_top;
|
93
|
-
}
|
94
|
-
|
95
|
-
expedition.data(self.data_attr('magellan-top-offset'), top_offset);
|
96
|
-
expedition.attr('style', styles);
|
97
|
-
});
|
98
|
-
},
|
99
|
-
|
100
|
-
update_expedition_positions : function () {
|
101
|
-
var self = this,
|
102
|
-
window_top_offset = $(window).scrollTop();
|
103
|
-
|
104
|
-
$('[' + this.attr_name() + '=fixed]', self.scope).each(function () {
|
105
|
-
var expedition = $(this),
|
106
|
-
settings = expedition.data('magellan-expedition-init'),
|
107
|
-
styles = expedition.attr('style'), // save styles
|
108
|
-
top_offset = expedition.data('magellan-top-offset');
|
109
|
-
|
110
|
-
//scroll to the top distance
|
111
|
-
if (window_top_offset + self.settings.fixed_top >= top_offset) {
|
112
|
-
// Placeholder allows height calculations to be consistent even when
|
113
|
-
// appearing to switch between fixed/non-fixed placement
|
114
|
-
var placeholder = expedition.prev('[' + self.add_namespace('data-magellan-expedition-clone') + ']');
|
115
|
-
if (placeholder.length === 0) {
|
116
|
-
placeholder = expedition.clone();
|
117
|
-
placeholder.removeAttr(self.attr_name());
|
118
|
-
placeholder.attr(self.add_namespace('data-magellan-expedition-clone'), '');
|
119
|
-
expedition.before(placeholder);
|
120
|
-
}
|
121
|
-
expedition.css({position :'fixed', top : settings.fixed_top}).addClass('fixed');
|
122
|
-
} else {
|
123
|
-
expedition.prev('[' + self.add_namespace('data-magellan-expedition-clone') + ']').remove();
|
124
|
-
expedition.attr('style', styles).css('position', '').css('top', '').removeClass('fixed');
|
125
|
-
}
|
126
|
-
});
|
127
|
-
},
|
128
|
-
|
129
|
-
update_arrivals : function () {
|
130
|
-
var self = this,
|
131
|
-
window_top_offset = $(window).scrollTop();
|
132
|
-
|
133
|
-
$('[' + this.attr_name() + ']', self.scope).each(function () {
|
134
|
-
var expedition = $(this),
|
135
|
-
settings = expedition.data(self.attr_name(true) + '-init'),
|
136
|
-
offsets = self.offsets(expedition, window_top_offset),
|
137
|
-
arrivals = expedition.find('[' + self.add_namespace('data-magellan-arrival') + ']'),
|
138
|
-
active_item = false;
|
139
|
-
offsets.each(function (idx, item) {
|
140
|
-
if (item.viewport_offset >= item.top_offset) {
|
141
|
-
var arrivals = expedition.find('[' + self.add_namespace('data-magellan-arrival') + ']');
|
142
|
-
arrivals.not(item.arrival).removeClass(settings.active_class);
|
143
|
-
item.arrival.addClass(settings.active_class);
|
144
|
-
active_item = true;
|
145
|
-
return true;
|
146
|
-
}
|
147
|
-
});
|
148
|
-
|
149
|
-
if (!active_item) {
|
150
|
-
arrivals.removeClass(settings.active_class);
|
151
|
-
}
|
152
|
-
});
|
153
|
-
},
|
154
|
-
|
155
|
-
offsets : function (expedition, window_offset) {
|
156
|
-
var self = this,
|
157
|
-
settings = expedition.data(self.attr_name(true) + '-init'),
|
158
|
-
viewport_offset = window_offset;
|
159
|
-
|
160
|
-
return expedition.find('[' + self.add_namespace('data-magellan-arrival') + ']').map(function (idx, el) {
|
161
|
-
var name = $(this).data(self.data_attr('magellan-arrival')),
|
162
|
-
dest = $('[' + self.add_namespace('data-magellan-destination') + '=' + name + ']');
|
163
|
-
if (dest.length > 0) {
|
164
|
-
var top_offset = dest.offset().top - settings.destination_threshold;
|
165
|
-
if (settings.offset_by_height) {
|
166
|
-
top_offset = top_offset - expedition.outerHeight();
|
167
|
-
}
|
168
|
-
top_offset = Math.floor(top_offset);
|
169
|
-
return {
|
170
|
-
destination : dest,
|
171
|
-
arrival : $(this),
|
172
|
-
top_offset : top_offset,
|
173
|
-
viewport_offset : viewport_offset
|
174
|
-
}
|
175
|
-
}
|
176
|
-
}).sort(function (a, b) {
|
177
|
-
if (a.top_offset < b.top_offset) {
|
178
|
-
return -1;
|
179
|
-
}
|
180
|
-
if (a.top_offset > b.top_offset) {
|
181
|
-
return 1;
|
182
|
-
}
|
183
|
-
return 0;
|
184
|
-
});
|
185
|
-
},
|
186
|
-
|
187
|
-
data_attr : function (str) {
|
188
|
-
if (this.namespace.length > 0) {
|
189
|
-
return this.namespace + '-' + str;
|
190
|
-
}
|
191
|
-
|
192
|
-
return str;
|
193
|
-
},
|
194
|
-
|
195
|
-
off : function () {
|
196
|
-
this.S(this.scope).off('.magellan');
|
197
|
-
this.S(window).off('.magellan');
|
198
|
-
},
|
199
|
-
|
200
|
-
filterPathname : function (pathname) {
|
201
|
-
pathname = pathname || '';
|
202
|
-
return pathname
|
203
|
-
.replace(/^\//,'')
|
204
|
-
.replace(/(?:index|default).[a-zA-Z]{3,4}$/,'')
|
205
|
-
.replace(/\/$/,'');
|
206
|
-
},
|
207
|
-
|
208
|
-
reflow : function () {
|
209
|
-
var self = this;
|
210
|
-
// remove placeholder expeditions used for height calculation purposes
|
211
|
-
$('[' + self.add_namespace('data-magellan-expedition-clone') + ']', self.scope).remove();
|
212
|
-
}
|
213
|
-
};
|
214
|
-
}(jQuery, window, window.document));
|
@@ -1,225 +0,0 @@
|
|
1
|
-
;(function ($, window, document, undefined) {
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
Foundation.libs.offcanvas = {
|
5
|
-
name : 'offcanvas',
|
6
|
-
|
7
|
-
version : '5.5.3',
|
8
|
-
|
9
|
-
settings : {
|
10
|
-
open_method : 'move',
|
11
|
-
close_on_click : false
|
12
|
-
},
|
13
|
-
|
14
|
-
init : function (scope, method, options) {
|
15
|
-
this.bindings(method, options);
|
16
|
-
},
|
17
|
-
|
18
|
-
events : function () {
|
19
|
-
var self = this,
|
20
|
-
S = self.S,
|
21
|
-
move_class = '',
|
22
|
-
right_postfix = '',
|
23
|
-
left_postfix = '',
|
24
|
-
top_postfix = '',
|
25
|
-
bottom_postfix = '';
|
26
|
-
|
27
|
-
if (this.settings.open_method === 'move') {
|
28
|
-
move_class = 'move-';
|
29
|
-
right_postfix = 'right';
|
30
|
-
left_postfix = 'left';
|
31
|
-
top_postfix = 'top';
|
32
|
-
bottom_postfix = 'bottom';
|
33
|
-
} else if (this.settings.open_method === 'overlap_single') {
|
34
|
-
move_class = 'offcanvas-overlap-';
|
35
|
-
right_postfix = 'right';
|
36
|
-
left_postfix = 'left';
|
37
|
-
top_postfix = 'top';
|
38
|
-
bottom_postfix = 'bottom';
|
39
|
-
} else if (this.settings.open_method === 'overlap') {
|
40
|
-
move_class = 'offcanvas-overlap';
|
41
|
-
}
|
42
|
-
|
43
|
-
S(this.scope).off('.offcanvas')
|
44
|
-
.on('click.fndtn.offcanvas', '.left-off-canvas-toggle', function (e) {
|
45
|
-
self.click_toggle_class(e, move_class + right_postfix);
|
46
|
-
if (self.settings.open_method !== 'overlap') {
|
47
|
-
S('.left-submenu').removeClass(move_class + right_postfix);
|
48
|
-
}
|
49
|
-
$('.left-off-canvas-toggle').attr('aria-expanded', 'true');
|
50
|
-
})
|
51
|
-
.on('click.fndtn.offcanvas', '.left-off-canvas-menu a', function (e) {
|
52
|
-
var settings = self.get_settings(e);
|
53
|
-
var parent = S(this).parent();
|
54
|
-
|
55
|
-
if (settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')) {
|
56
|
-
self.hide.call(self, move_class + right_postfix, self.get_wrapper(e));
|
57
|
-
parent.parent().removeClass(move_class + right_postfix);
|
58
|
-
} else if (S(this).parent().hasClass('has-submenu')) {
|
59
|
-
e.preventDefault();
|
60
|
-
S(this).siblings('.left-submenu').toggleClass(move_class + right_postfix);
|
61
|
-
} else if (parent.hasClass('back')) {
|
62
|
-
e.preventDefault();
|
63
|
-
parent.parent().removeClass(move_class + right_postfix);
|
64
|
-
}
|
65
|
-
$('.left-off-canvas-toggle').attr('aria-expanded', 'true');
|
66
|
-
})
|
67
|
-
//end of left canvas
|
68
|
-
.on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) {
|
69
|
-
self.click_toggle_class(e, move_class + left_postfix);
|
70
|
-
if (self.settings.open_method !== 'overlap') {
|
71
|
-
S('.right-submenu').removeClass(move_class + left_postfix);
|
72
|
-
}
|
73
|
-
$('.right-off-canvas-toggle').attr('aria-expanded', 'true');
|
74
|
-
})
|
75
|
-
.on('click.fndtn.offcanvas', '.right-off-canvas-menu a', function (e) {
|
76
|
-
var settings = self.get_settings(e);
|
77
|
-
var parent = S(this).parent();
|
78
|
-
|
79
|
-
if (settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')) {
|
80
|
-
self.hide.call(self, move_class + left_postfix, self.get_wrapper(e));
|
81
|
-
parent.parent().removeClass(move_class + left_postfix);
|
82
|
-
} else if (S(this).parent().hasClass('has-submenu')) {
|
83
|
-
e.preventDefault();
|
84
|
-
S(this).siblings('.right-submenu').toggleClass(move_class + left_postfix);
|
85
|
-
} else if (parent.hasClass('back')) {
|
86
|
-
e.preventDefault();
|
87
|
-
parent.parent().removeClass(move_class + left_postfix);
|
88
|
-
}
|
89
|
-
$('.right-off-canvas-toggle').attr('aria-expanded', 'true');
|
90
|
-
})
|
91
|
-
//end of right canvas
|
92
|
-
.on('click.fndtn.offcanvas', '.top-off-canvas-toggle', function (e) {
|
93
|
-
self.click_toggle_class(e, move_class + bottom_postfix);
|
94
|
-
if (self.settings.open_method !== 'overlap') {
|
95
|
-
S('.top-submenu').removeClass(move_class + bottom_postfix);
|
96
|
-
}
|
97
|
-
$('.top-off-canvas-toggle').attr('aria-expanded', 'true');
|
98
|
-
})
|
99
|
-
.on('click.fndtn.offcanvas', '.top-off-canvas-menu a', function (e) {
|
100
|
-
var settings = self.get_settings(e);
|
101
|
-
var parent = S(this).parent();
|
102
|
-
|
103
|
-
if (settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')) {
|
104
|
-
self.hide.call(self, move_class + bottom_postfix, self.get_wrapper(e));
|
105
|
-
parent.parent().removeClass(move_class + bottom_postfix);
|
106
|
-
} else if (S(this).parent().hasClass('has-submenu')) {
|
107
|
-
e.preventDefault();
|
108
|
-
S(this).siblings('.top-submenu').toggleClass(move_class + bottom_postfix);
|
109
|
-
} else if (parent.hasClass('back')) {
|
110
|
-
e.preventDefault();
|
111
|
-
parent.parent().removeClass(move_class + bottom_postfix);
|
112
|
-
}
|
113
|
-
$('.top-off-canvas-toggle').attr('aria-expanded', 'true');
|
114
|
-
})
|
115
|
-
//end of top canvas
|
116
|
-
.on('click.fndtn.offcanvas', '.bottom-off-canvas-toggle', function (e) {
|
117
|
-
self.click_toggle_class(e, move_class + top_postfix);
|
118
|
-
if (self.settings.open_method !== 'overlap') {
|
119
|
-
S('.bottom-submenu').removeClass(move_class + top_postfix);
|
120
|
-
}
|
121
|
-
$('.bottom-off-canvas-toggle').attr('aria-expanded', 'true');
|
122
|
-
})
|
123
|
-
.on('click.fndtn.offcanvas', '.bottom-off-canvas-menu a', function (e) {
|
124
|
-
var settings = self.get_settings(e);
|
125
|
-
var parent = S(this).parent();
|
126
|
-
|
127
|
-
if (settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')) {
|
128
|
-
self.hide.call(self, move_class + top_postfix, self.get_wrapper(e));
|
129
|
-
parent.parent().removeClass(move_class + top_postfix);
|
130
|
-
} else if (S(this).parent().hasClass('has-submenu')) {
|
131
|
-
e.preventDefault();
|
132
|
-
S(this).siblings('.bottom-submenu').toggleClass(move_class + top_postfix);
|
133
|
-
} else if (parent.hasClass('back')) {
|
134
|
-
e.preventDefault();
|
135
|
-
parent.parent().removeClass(move_class + top_postfix);
|
136
|
-
}
|
137
|
-
$('.bottom-off-canvas-toggle').attr('aria-expanded', 'true');
|
138
|
-
})
|
139
|
-
//end of bottom
|
140
|
-
.on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
|
141
|
-
self.click_remove_class(e, move_class + left_postfix);
|
142
|
-
S('.right-submenu').removeClass(move_class + left_postfix);
|
143
|
-
if (right_postfix) {
|
144
|
-
self.click_remove_class(e, move_class + right_postfix);
|
145
|
-
S('.left-submenu').removeClass(move_class + left_postfix);
|
146
|
-
}
|
147
|
-
$('.right-off-canvas-toggle').attr('aria-expanded', 'true');
|
148
|
-
})
|
149
|
-
.on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
|
150
|
-
self.click_remove_class(e, move_class + left_postfix);
|
151
|
-
$('.left-off-canvas-toggle').attr('aria-expanded', 'false');
|
152
|
-
if (right_postfix) {
|
153
|
-
self.click_remove_class(e, move_class + right_postfix);
|
154
|
-
$('.right-off-canvas-toggle').attr('aria-expanded', 'false');
|
155
|
-
}
|
156
|
-
})
|
157
|
-
.on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
|
158
|
-
self.click_remove_class(e, move_class + top_postfix);
|
159
|
-
S('.bottom-submenu').removeClass(move_class + top_postfix);
|
160
|
-
if (bottom_postfix) {
|
161
|
-
self.click_remove_class(e, move_class + bottom_postfix);
|
162
|
-
S('.top-submenu').removeClass(move_class + top_postfix);
|
163
|
-
}
|
164
|
-
$('.bottom-off-canvas-toggle').attr('aria-expanded', 'true');
|
165
|
-
})
|
166
|
-
.on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
|
167
|
-
self.click_remove_class(e, move_class + top_postfix);
|
168
|
-
$('.top-off-canvas-toggle').attr('aria-expanded', 'false');
|
169
|
-
if (bottom_postfix) {
|
170
|
-
self.click_remove_class(e, move_class + bottom_postfix);
|
171
|
-
$('.bottom-off-canvas-toggle').attr('aria-expanded', 'false');
|
172
|
-
}
|
173
|
-
});
|
174
|
-
},
|
175
|
-
|
176
|
-
toggle : function (class_name, $off_canvas) {
|
177
|
-
$off_canvas = $off_canvas || this.get_wrapper();
|
178
|
-
if ($off_canvas.is('.' + class_name)) {
|
179
|
-
this.hide(class_name, $off_canvas);
|
180
|
-
} else {
|
181
|
-
this.show(class_name, $off_canvas);
|
182
|
-
}
|
183
|
-
},
|
184
|
-
|
185
|
-
show : function (class_name, $off_canvas) {
|
186
|
-
$off_canvas = $off_canvas || this.get_wrapper();
|
187
|
-
$off_canvas.trigger('open.fndtn.offcanvas');
|
188
|
-
$off_canvas.addClass(class_name);
|
189
|
-
},
|
190
|
-
|
191
|
-
hide : function (class_name, $off_canvas) {
|
192
|
-
$off_canvas = $off_canvas || this.get_wrapper();
|
193
|
-
$off_canvas.trigger('close.fndtn.offcanvas');
|
194
|
-
$off_canvas.removeClass(class_name);
|
195
|
-
},
|
196
|
-
|
197
|
-
click_toggle_class : function (e, class_name) {
|
198
|
-
e.preventDefault();
|
199
|
-
var $off_canvas = this.get_wrapper(e);
|
200
|
-
this.toggle(class_name, $off_canvas);
|
201
|
-
},
|
202
|
-
|
203
|
-
click_remove_class : function (e, class_name) {
|
204
|
-
e.preventDefault();
|
205
|
-
var $off_canvas = this.get_wrapper(e);
|
206
|
-
this.hide(class_name, $off_canvas);
|
207
|
-
},
|
208
|
-
|
209
|
-
get_settings : function (e) {
|
210
|
-
var offcanvas = this.S(e.target).closest('[' + this.attr_name() + ']');
|
211
|
-
return offcanvas.data(this.attr_name(true) + '-init') || this.settings;
|
212
|
-
},
|
213
|
-
|
214
|
-
get_wrapper : function (e) {
|
215
|
-
var $off_canvas = this.S(e ? e.target : this.scope).closest('.off-canvas-wrap');
|
216
|
-
|
217
|
-
if ($off_canvas.length === 0) {
|
218
|
-
$off_canvas = this.S('.off-canvas-wrap');
|
219
|
-
}
|
220
|
-
return $off_canvas;
|
221
|
-
},
|
222
|
-
|
223
|
-
reflow : function () {}
|
224
|
-
};
|
225
|
-
}(jQuery, window, window.document));
|