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
@@ -0,0 +1,201 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group pagination
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Font size of pagination items.
|
10
|
+
/// @type Number
|
11
|
+
$pagination-font-size: rem-calc(14) !default;
|
12
|
+
|
13
|
+
/// Default bottom margin of the pagination object.
|
14
|
+
/// @type Number
|
15
|
+
$pagination-margin-bottom: $global-margin !default;
|
16
|
+
|
17
|
+
/// Text color of pagination items.
|
18
|
+
/// @type Color
|
19
|
+
$pagination-item-color: $black !default;
|
20
|
+
|
21
|
+
/// Padding inside of pagination items.
|
22
|
+
/// @type Number
|
23
|
+
$pagination-item-padding: rem-calc(3 10) !default;
|
24
|
+
|
25
|
+
/// Right margin to separate pagination items.
|
26
|
+
/// @type Number
|
27
|
+
$pagination-item-spacing: rem-calc(1) !default;
|
28
|
+
|
29
|
+
/// Default radius for pagination items.
|
30
|
+
/// @type Number
|
31
|
+
$pagination-radius: $global-radius !default;
|
32
|
+
|
33
|
+
/// Background color of pagination items on hover.
|
34
|
+
/// @type Color
|
35
|
+
$pagination-item-background-hover: $light-gray !default;
|
36
|
+
|
37
|
+
/// Background color of pagination item for the current page.
|
38
|
+
/// @type Color
|
39
|
+
$pagination-item-background-current: $primary-color !default;
|
40
|
+
|
41
|
+
/// Text color of the pagination item for the current page.
|
42
|
+
/// @type Color
|
43
|
+
$pagination-item-color-current: $white !default;
|
44
|
+
|
45
|
+
/// Text color of a disabled pagination item.
|
46
|
+
/// @type Color
|
47
|
+
$pagination-item-color-disabled: $medium-gray !default;
|
48
|
+
|
49
|
+
/// Color of the ellipsis in a pagination menu.
|
50
|
+
/// @type Color
|
51
|
+
$pagination-ellipsis-color: $black !default;
|
52
|
+
|
53
|
+
/// If `false`, don't display page number links on mobile, only next/previous links
|
54
|
+
/// and optionally current page number.
|
55
|
+
/// @type Boolean
|
56
|
+
$pagination-mobile-items: false !default;
|
57
|
+
|
58
|
+
/// If `true`, display the current page number on mobile even if `$pagination-mobile-items` is set to `false`.
|
59
|
+
/// This parameter will only override the visibility setting of the current item for `$pagination-mobile-items: false;`,
|
60
|
+
/// it will not affect the current page number visibility when `$pagination-mobile-items` is set to `true`.
|
61
|
+
/// @type Boolean
|
62
|
+
$pagination-mobile-current-item: false !default;
|
63
|
+
|
64
|
+
/// If `true`, arrows are added to the next and previous links of pagination.
|
65
|
+
/// @type Boolean
|
66
|
+
$pagination-arrows: true !default;
|
67
|
+
|
68
|
+
/// Content for the previous arrow when `$pagination-arrows` is `true`
|
69
|
+
/// @type String
|
70
|
+
$pagination-arrow-previous: '\00AB' !default;
|
71
|
+
|
72
|
+
/// Content for the next arrow when `$pagination-arrows` is `true`
|
73
|
+
/// @type String
|
74
|
+
$pagination-arrow-next: '\00BB' !default;
|
75
|
+
|
76
|
+
/// Adds styles for a pagination container. Apply this to a `<ul>`.
|
77
|
+
@mixin pagination-container (
|
78
|
+
$margin-bottom: $pagination-margin-bottom,
|
79
|
+
$font-size: $pagination-font-size,
|
80
|
+
$spacing: $pagination-item-spacing,
|
81
|
+
$radius: $pagination-radius,
|
82
|
+
$color: $pagination-item-color,
|
83
|
+
$padding: $pagination-item-padding,
|
84
|
+
$background-hover: $pagination-item-background-hover
|
85
|
+
) {
|
86
|
+
@include clearfix;
|
87
|
+
margin-#{$global-left}: 0;
|
88
|
+
margin-bottom: $margin-bottom;
|
89
|
+
|
90
|
+
// List item
|
91
|
+
li {
|
92
|
+
margin-#{$global-right}: $spacing;
|
93
|
+
border-radius: $radius;
|
94
|
+
font-size: $font-size;
|
95
|
+
|
96
|
+
@if $pagination-mobile-items {
|
97
|
+
display: inline-block;
|
98
|
+
}
|
99
|
+
@else {
|
100
|
+
display: none;
|
101
|
+
|
102
|
+
&:last-child,
|
103
|
+
&:first-child {
|
104
|
+
display: inline-block;
|
105
|
+
}
|
106
|
+
|
107
|
+
@if $pagination-mobile-current-item {
|
108
|
+
&.current {
|
109
|
+
display: inline-block;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
@include breakpoint(medium) {
|
114
|
+
display: inline-block;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
// Page links
|
120
|
+
a,
|
121
|
+
button {
|
122
|
+
display: block;
|
123
|
+
padding: $padding;
|
124
|
+
border-radius: $radius;
|
125
|
+
color: $color;
|
126
|
+
|
127
|
+
&:hover {
|
128
|
+
background: $background-hover;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
/// Adds styles for the current pagination item. Apply this to an `<a>`.
|
134
|
+
@mixin pagination-item-current (
|
135
|
+
$padding: $pagination-item-padding,
|
136
|
+
$background-current: $pagination-item-background-current,
|
137
|
+
$color-current: $pagination-item-color-current
|
138
|
+
) {
|
139
|
+
padding: $padding;
|
140
|
+
background: $background-current;
|
141
|
+
color: $color-current;
|
142
|
+
cursor: default;
|
143
|
+
}
|
144
|
+
|
145
|
+
/// Adds styles for a disabled pagination item. Apply this to an `<a>`.
|
146
|
+
@mixin pagination-item-disabled (
|
147
|
+
$padding: $pagination-item-padding,
|
148
|
+
$color: $pagination-item-color-disabled
|
149
|
+
) {
|
150
|
+
padding: $padding;
|
151
|
+
color: $color;
|
152
|
+
cursor: not-allowed;
|
153
|
+
|
154
|
+
&:hover {
|
155
|
+
background: transparent;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
/// Adds styles for an ellipsis for use in a pagination list.
|
160
|
+
@mixin pagination-ellipsis (
|
161
|
+
$padding: $pagination-item-padding,
|
162
|
+
$color: $pagination-ellipsis-color
|
163
|
+
) {
|
164
|
+
padding: $padding;
|
165
|
+
content: '\2026';
|
166
|
+
color: $color;
|
167
|
+
}
|
168
|
+
|
169
|
+
@mixin foundation-pagination {
|
170
|
+
.pagination {
|
171
|
+
@include pagination-container;
|
172
|
+
|
173
|
+
.current {
|
174
|
+
@include pagination-item-current;
|
175
|
+
}
|
176
|
+
|
177
|
+
.disabled {
|
178
|
+
@include pagination-item-disabled;
|
179
|
+
}
|
180
|
+
|
181
|
+
.ellipsis::after {
|
182
|
+
@include pagination-ellipsis;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
|
186
|
+
@if $pagination-arrows {
|
187
|
+
.pagination-previous a::before,
|
188
|
+
.pagination-previous.disabled::before {
|
189
|
+
display: inline-block;
|
190
|
+
margin-#{$global-right}: 0.5rem;
|
191
|
+
content: $pagination-arrow-previous;
|
192
|
+
}
|
193
|
+
|
194
|
+
.pagination-next a::after,
|
195
|
+
.pagination-next.disabled::after {
|
196
|
+
display: inline-block;
|
197
|
+
margin-#{$global-left}: 0.5rem;
|
198
|
+
content: $pagination-arrow-next;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
/// Adds styles for a progress bar container.
|
6
|
+
@mixin progress-container {
|
7
|
+
height: $progress-height;
|
8
|
+
margin-bottom: $progress-margin-bottom;
|
9
|
+
border-radius: $progress-radius;
|
10
|
+
background-color: $progress-background;
|
11
|
+
}
|
12
|
+
|
13
|
+
/// Adds styles for the inner meter of a progress bar.
|
14
|
+
@mixin progress-meter {
|
15
|
+
position: relative;
|
16
|
+
display: block;
|
17
|
+
width: 0%;
|
18
|
+
height: 100%;
|
19
|
+
background-color: $progress-meter-background;
|
20
|
+
|
21
|
+
@if has-value($progress-radius) {
|
22
|
+
border-radius: $global-radius;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
/// Adds styles for text in the progress meter.
|
27
|
+
@mixin progress-meter-text {
|
28
|
+
@include absolute-center;
|
29
|
+
margin: 0;
|
30
|
+
font-size: 0.75rem;
|
31
|
+
font-weight: bold;
|
32
|
+
color: $white;
|
33
|
+
white-space: nowrap;
|
34
|
+
|
35
|
+
@if has-value($progress-radius) {
|
36
|
+
border-radius: $progress-radius;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
@mixin foundation-progress-bar {
|
41
|
+
// Progress bar
|
42
|
+
.progress {
|
43
|
+
@include progress-container;
|
44
|
+
|
45
|
+
@each $name, $color in $foundation-palette {
|
46
|
+
&.#{$name} {
|
47
|
+
.progress-meter {
|
48
|
+
background-color: $color;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// Inner meter
|
55
|
+
.progress-meter {
|
56
|
+
@include progress-meter;
|
57
|
+
}
|
58
|
+
|
59
|
+
// Inner meter text
|
60
|
+
.progress-meter-text {
|
61
|
+
@include progress-meter-text;
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group responsive-embed
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Margin below a responsive embed container.
|
10
|
+
/// @type Number
|
11
|
+
$responsive-embed-margin-bottom: rem-calc(16) !default;
|
12
|
+
|
13
|
+
/// Aspect ratios used to determine padding-bottom of responsive embed containers.
|
14
|
+
/// @type Map
|
15
|
+
$responsive-embed-ratios: (
|
16
|
+
default: 4 by 3,
|
17
|
+
widescreen: 16 by 9,
|
18
|
+
) !default;
|
19
|
+
|
20
|
+
/// Creates a responsive embed container.
|
21
|
+
/// @param {String|List} $ratio [default] - Ratio of the container. Can be a key from the `$responsive-embed-ratios` map or a list formatted as `x by y`.
|
22
|
+
@mixin responsive-embed($ratio: default) {
|
23
|
+
@if type-of($ratio) == 'string' {
|
24
|
+
$ratio: map-get($responsive-embed-ratios, $ratio);
|
25
|
+
}
|
26
|
+
position: relative;
|
27
|
+
height: 0;
|
28
|
+
margin-bottom: $responsive-embed-margin-bottom;
|
29
|
+
padding-bottom: ratio-to-percentage($ratio);
|
30
|
+
overflow: hidden;
|
31
|
+
|
32
|
+
iframe,
|
33
|
+
object,
|
34
|
+
embed,
|
35
|
+
video {
|
36
|
+
position: absolute;
|
37
|
+
top: 0;
|
38
|
+
#{$global-left}: 0;
|
39
|
+
width: 100%;
|
40
|
+
height: 100%;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin foundation-responsive-embed {
|
45
|
+
.responsive-embed,
|
46
|
+
.flex-video {
|
47
|
+
@include responsive-embed($ratio: default);
|
48
|
+
|
49
|
+
$ratios: map-remove($responsive-embed-ratios,default);
|
50
|
+
|
51
|
+
@each $name, $ratio in $ratios {
|
52
|
+
&.#{$name} {
|
53
|
+
padding-bottom: ratio-to-percentage($ratio);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
@@ -0,0 +1,185 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group reveal
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default background color of a modal.
|
10
|
+
/// @type Color
|
11
|
+
$reveal-background: $white !default;
|
12
|
+
|
13
|
+
/// Default width of a modal, with no class applied.
|
14
|
+
/// @type Number
|
15
|
+
$reveal-width: 600px !default;
|
16
|
+
|
17
|
+
/// Default maximum width of a modal.
|
18
|
+
/// @type Number
|
19
|
+
$reveal-max-width: $global-width !default;
|
20
|
+
|
21
|
+
/// Default padding inside a modal.
|
22
|
+
/// @type Number
|
23
|
+
$reveal-padding: $global-padding !default;
|
24
|
+
|
25
|
+
/// Default border around a modal.
|
26
|
+
/// @type Number
|
27
|
+
$reveal-border: 1px solid $medium-gray !default;
|
28
|
+
|
29
|
+
/// Default radius for modal.
|
30
|
+
/// @type Number
|
31
|
+
$reveal-radius: $global-radius !default;
|
32
|
+
|
33
|
+
/// z-index for modals. The overlay uses this value, while the modal itself uses this value plus one.
|
34
|
+
/// @type Number
|
35
|
+
$reveal-zindex: 1005 !default;
|
36
|
+
|
37
|
+
/// Background color of modal overlays.
|
38
|
+
/// @type Color
|
39
|
+
$reveal-overlay-background: rgba($black, 0.45) !default;
|
40
|
+
|
41
|
+
|
42
|
+
// Placeholder selector for medium-and-up modals
|
43
|
+
// Prevents duplicate CSS when defining multiple Reveal sizes
|
44
|
+
// This should be in the same breakpoint then `@mixin reveal-modal-width`
|
45
|
+
@include breakpoint(medium) {
|
46
|
+
%reveal-centered {
|
47
|
+
right: auto;
|
48
|
+
left: auto;
|
49
|
+
margin: 0 auto;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
/// Adds styles for a modal overlay.
|
55
|
+
/// @param {Color} $background [$reveal-overlay-background] - Background color of the overlay.
|
56
|
+
@mixin reveal-overlay($background: $reveal-overlay-background) {
|
57
|
+
position: fixed;
|
58
|
+
top: 0;
|
59
|
+
right: 0;
|
60
|
+
bottom: 0;
|
61
|
+
left: 0;
|
62
|
+
z-index: $reveal-zindex;
|
63
|
+
|
64
|
+
display: none;
|
65
|
+
background-color: $background;
|
66
|
+
overflow-y: auto;
|
67
|
+
}
|
68
|
+
|
69
|
+
/// Adds base styles for a modal.
|
70
|
+
@mixin reveal-modal-base {
|
71
|
+
@include disable-mouse-outline;
|
72
|
+
z-index: $reveal-zindex + 1;
|
73
|
+
// Workaround android browser z-index bug
|
74
|
+
backface-visibility: hidden;
|
75
|
+
|
76
|
+
display: none;
|
77
|
+
padding: $reveal-padding;
|
78
|
+
|
79
|
+
border: $reveal-border;
|
80
|
+
border-radius: $reveal-radius;
|
81
|
+
background-color: $reveal-background;
|
82
|
+
|
83
|
+
@include breakpoint(medium) {
|
84
|
+
min-height: 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
// Make sure rows don't have a min-width on them
|
88
|
+
.column {
|
89
|
+
min-width: 0;
|
90
|
+
}
|
91
|
+
|
92
|
+
// Strip margins from the last item in the modal
|
93
|
+
> :last-child {
|
94
|
+
margin-bottom: 0;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
/// Adjusts the width of a modal.
|
99
|
+
/// @param {Number} $width - Width of the modal. Generally a percentage.
|
100
|
+
/// @param {Number} $max-width [$reveal-max-width] - Maximum width of the modal.
|
101
|
+
@mixin reveal-modal-width(
|
102
|
+
$width: $reveal-width,
|
103
|
+
$max-width: $reveal-max-width
|
104
|
+
) {
|
105
|
+
// Extends must be made outside of breakpoints for compatibility with newer Sass versions (libsass v3.5)
|
106
|
+
@extend %reveal-centered;
|
107
|
+
@include breakpoint(medium) {
|
108
|
+
width: $width;
|
109
|
+
max-width: $max-width;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
/// Creates a full-screen modal, which stretches the full width and height of the window.
|
114
|
+
@mixin reveal-modal-fullscreen {
|
115
|
+
top: 0;
|
116
|
+
right: 0;
|
117
|
+
bottom: 0;
|
118
|
+
left: 0;
|
119
|
+
|
120
|
+
width: 100%;
|
121
|
+
max-width: none;
|
122
|
+
height: 100%;
|
123
|
+
min-height: 100%;
|
124
|
+
margin-left: 0;
|
125
|
+
|
126
|
+
border: 0;
|
127
|
+
border-radius: 0;
|
128
|
+
}
|
129
|
+
|
130
|
+
@mixin foundation-reveal {
|
131
|
+
|
132
|
+
/// Disables the scroll when Reveal is shown to prevent the background from shifting
|
133
|
+
html.is-reveal-open {
|
134
|
+
position: fixed;
|
135
|
+
width: 100%;
|
136
|
+
overflow-y: hidden;
|
137
|
+
|
138
|
+
&.zf-has-scroll {
|
139
|
+
overflow-y: scroll;
|
140
|
+
}
|
141
|
+
|
142
|
+
body { // sass-lint:disable-line no-qualifying-elements
|
143
|
+
overflow-y: hidden;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
// Overlay
|
148
|
+
.reveal-overlay {
|
149
|
+
@include reveal-overlay;
|
150
|
+
}
|
151
|
+
|
152
|
+
// Modal container
|
153
|
+
.reveal {
|
154
|
+
@include reveal-modal-base;
|
155
|
+
@include reveal-modal-width($reveal-width);
|
156
|
+
position: relative;
|
157
|
+
top: 100px;
|
158
|
+
margin-right: auto;
|
159
|
+
margin-left: auto;
|
160
|
+
overflow-y: auto;
|
161
|
+
|
162
|
+
// Remove padding
|
163
|
+
&.collapse {
|
164
|
+
padding: 0;
|
165
|
+
}
|
166
|
+
|
167
|
+
// Sizing classes
|
168
|
+
&.tiny { @include reveal-modal-width(30%); }
|
169
|
+
&.small { @include reveal-modal-width(50%); }
|
170
|
+
&.large { @include reveal-modal-width(90%); }
|
171
|
+
|
172
|
+
// Full-screen mode
|
173
|
+
&.full {
|
174
|
+
@include reveal-modal-fullscreen;
|
175
|
+
}
|
176
|
+
|
177
|
+
@include breakpoint($-zf-zero-breakpoint only) {
|
178
|
+
@include reveal-modal-fullscreen;
|
179
|
+
}
|
180
|
+
|
181
|
+
&.without-overlay {
|
182
|
+
position: fixed;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
// [TODO] Check how plugin confirms disabled or vertical status
|
6
|
+
// [TODO] Check if transition: all; is necessary
|
7
|
+
|
8
|
+
////
|
9
|
+
/// @group slider
|
10
|
+
////
|
11
|
+
|
12
|
+
/// Default slider width of a vertical slider. (Doesn't apply to the native slider.)
|
13
|
+
/// @type Number
|
14
|
+
$slider-width-vertical: 0.5rem !default;
|
15
|
+
|
16
|
+
/// Transition properties to apply to the slider handle and fill. (Doesn't apply to the native slider.)
|
17
|
+
/// @type Transition
|
18
|
+
$slider-transition: all 0.2s ease-in-out !default;
|
19
|
+
|
20
|
+
/// Adds the general styles for sliders.
|
21
|
+
@mixin slider-container {
|
22
|
+
position: relative;
|
23
|
+
height: $slider-height;
|
24
|
+
margin-top: 1.25rem;
|
25
|
+
margin-bottom: 2.25rem;
|
26
|
+
|
27
|
+
background-color: $slider-background;
|
28
|
+
cursor: pointer;
|
29
|
+
user-select: none;
|
30
|
+
touch-action: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
/// Adds the general styles for active fill for sliders.
|
34
|
+
@mixin slider-fill {
|
35
|
+
position: absolute;
|
36
|
+
top: 0;
|
37
|
+
left: 0;
|
38
|
+
|
39
|
+
display: inline-block;
|
40
|
+
max-width: 100%;
|
41
|
+
height: $slider-height;
|
42
|
+
|
43
|
+
background-color: $slider-fill-background;
|
44
|
+
transition: $slider-transition;
|
45
|
+
|
46
|
+
&.is-dragging {
|
47
|
+
transition: all 0s linear;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
/// Adds the general styles for the slider handles.
|
52
|
+
@mixin slider-handle {
|
53
|
+
@include disable-mouse-outline;
|
54
|
+
@include vertical-center;
|
55
|
+
left: 0;
|
56
|
+
z-index: 1;
|
57
|
+
|
58
|
+
display: inline-block;
|
59
|
+
width: $slider-handle-width;
|
60
|
+
height: $slider-handle-height;
|
61
|
+
|
62
|
+
border-radius: $slider-radius;
|
63
|
+
background-color: $slider-handle-background;
|
64
|
+
transition: $slider-transition;
|
65
|
+
touch-action: manipulation;
|
66
|
+
|
67
|
+
&:hover {
|
68
|
+
background-color: scale-color($slider-handle-background, $lightness: -15%);
|
69
|
+
}
|
70
|
+
|
71
|
+
&.is-dragging {
|
72
|
+
transition: all 0s linear;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
@mixin slider-disabled {
|
77
|
+
opacity: $slider-opacity-disabled;
|
78
|
+
cursor: not-allowed;
|
79
|
+
}
|
80
|
+
|
81
|
+
@mixin slider-vertical {
|
82
|
+
display: inline-block;
|
83
|
+
width: $slider-width-vertical;
|
84
|
+
height: 12.5rem;
|
85
|
+
margin: 0 1.25rem;
|
86
|
+
transform: scale(1, -1);
|
87
|
+
|
88
|
+
.slider-fill {
|
89
|
+
top: 0;
|
90
|
+
width: $slider-width-vertical;
|
91
|
+
max-height: 100%;
|
92
|
+
}
|
93
|
+
|
94
|
+
.slider-handle {
|
95
|
+
position: absolute;
|
96
|
+
top: 0;
|
97
|
+
left: 50%;
|
98
|
+
width: $slider-handle-height;
|
99
|
+
height: $slider-handle-width;
|
100
|
+
transform: translateX(-50%);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
@mixin foundation-slider {
|
105
|
+
// Container
|
106
|
+
.slider {
|
107
|
+
@include slider-container;
|
108
|
+
}
|
109
|
+
|
110
|
+
// Fill area
|
111
|
+
.slider-fill {
|
112
|
+
@include slider-fill;
|
113
|
+
}
|
114
|
+
|
115
|
+
// Draggable handle
|
116
|
+
.slider-handle {
|
117
|
+
@include slider-handle;
|
118
|
+
}
|
119
|
+
|
120
|
+
// Disabled state
|
121
|
+
.slider.disabled,
|
122
|
+
.slider[disabled] {
|
123
|
+
@include slider-disabled;
|
124
|
+
}
|
125
|
+
|
126
|
+
// Vertical slider
|
127
|
+
.slider.vertical {
|
128
|
+
@include slider-vertical;
|
129
|
+
}
|
130
|
+
|
131
|
+
// RTL support
|
132
|
+
@if $global-text-direction == rtl {
|
133
|
+
.slider:not(.vertical) {
|
134
|
+
transform: scale(-1, 1);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@mixin foundation-sticky {
|
6
|
+
.sticky-container {
|
7
|
+
position: relative;
|
8
|
+
}
|
9
|
+
|
10
|
+
.sticky {
|
11
|
+
position: relative;
|
12
|
+
z-index: 0;
|
13
|
+
transform: translate3d(0, 0, 0);
|
14
|
+
}
|
15
|
+
|
16
|
+
.sticky.is-stuck {
|
17
|
+
position: fixed;
|
18
|
+
z-index: 5;
|
19
|
+
width: 100%;
|
20
|
+
|
21
|
+
&.is-at-top {
|
22
|
+
top: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
&.is-at-bottom {
|
26
|
+
bottom: 0;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.sticky.is-anchored {
|
31
|
+
position: relative;
|
32
|
+
right: auto;
|
33
|
+
left: auto;
|
34
|
+
|
35
|
+
&.is-at-bottom {
|
36
|
+
bottom: 0;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|