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,493 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group xy-grid
|
7
|
+
////
|
8
|
+
|
9
|
+
// Margin Grid classes
|
10
|
+
@mixin xy-base-grid-classes {
|
11
|
+
|
12
|
+
// Grid Container
|
13
|
+
.grid-container {
|
14
|
+
@include xy-grid-container;
|
15
|
+
|
16
|
+
&.fluid {
|
17
|
+
@include xy-grid-container(100%);
|
18
|
+
}
|
19
|
+
|
20
|
+
&.full {
|
21
|
+
@include xy-grid-container(100%, 0);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Base grid styles
|
26
|
+
.grid-x {
|
27
|
+
@include xy-grid;
|
28
|
+
}
|
29
|
+
|
30
|
+
.cell {
|
31
|
+
@include xy-cell(full, $gutter-type: none);
|
32
|
+
|
33
|
+
&.auto {
|
34
|
+
@include xy-cell-base(auto);
|
35
|
+
}
|
36
|
+
|
37
|
+
&.shrink {
|
38
|
+
@include xy-cell-base(shrink);
|
39
|
+
}
|
40
|
+
|
41
|
+
}
|
42
|
+
.grid-x {
|
43
|
+
> .auto {
|
44
|
+
@include xy-cell-size(auto, $gutter-type: none);
|
45
|
+
}
|
46
|
+
|
47
|
+
> .shrink {
|
48
|
+
@include xy-cell-size(shrink, $gutter-type: none);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
// Auto width
|
53
|
+
@include -zf-each-breakpoint() {
|
54
|
+
// This is a bit of a hack/workaround, see these issues & PRs for the backstory:
|
55
|
+
// https://github.com/foundation/foundation-sites/issues/10244
|
56
|
+
// https://github.com/foundation/foundation-sites/pull/10222 and
|
57
|
+
// https://github.com/foundation/foundation-sites/pull/10164
|
58
|
+
.grid-x {
|
59
|
+
$str: "> .#{$-zf-size}-shrink, > .#{$-zf-size}-full";
|
60
|
+
@for $i from 1 through $grid-columns {
|
61
|
+
$str: $str + ", > .#{$-zf-size}-#{$i}"
|
62
|
+
}
|
63
|
+
#{$str} {
|
64
|
+
flex-basis: auto;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
@include -zf-each-breakpoint() {
|
70
|
+
// Responsive "auto" modifier
|
71
|
+
@if not($-zf-size == $-zf-zero-breakpoint) {
|
72
|
+
.grid-x > .#{$-zf-size}-auto {
|
73
|
+
@include xy-cell(auto, $gutter-type: none);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
%-xy-cell-base-shrink-horizontal-#{$-zf-size} {
|
78
|
+
@include xy-cell-base(shrink);
|
79
|
+
}
|
80
|
+
|
81
|
+
// Responsive "shrink" modifier
|
82
|
+
@if not($-zf-size == $-zf-zero-breakpoint) {
|
83
|
+
.grid-x > .#{$-zf-size}-shrink {
|
84
|
+
@extend %-xy-cell-base-shrink-horizontal-#{$-zf-size};
|
85
|
+
@include xy-cell-size(shrink, $gutter-type: none);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
// Responsive width modifiers
|
90
|
+
@for $i from 1 through $grid-columns {
|
91
|
+
// Sizing (percentage)
|
92
|
+
.grid-x > .#{$-zf-size}-#{$i} {
|
93
|
+
@extend %-xy-cell-base-shrink-horizontal-#{$-zf-size};
|
94
|
+
@include xy-cell-size($i, $gutter-type: none);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
// Reset width when using `.grid-margin-x` not on `.grid-x`
|
100
|
+
.grid-margin-x:not(.grid-x) > .cell {
|
101
|
+
width: auto;
|
102
|
+
}
|
103
|
+
|
104
|
+
// Reset height when using `.grid-margin-y` not on `.grid-y`
|
105
|
+
.grid-margin-y:not(.grid-y) > .cell {
|
106
|
+
height: auto;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
@mixin -xy-breakpoint-cell-classes($class-breakpoint, $gutter-breakpoint, $vertical) {
|
111
|
+
$prefix: if($class-breakpoint == $-zf-zero-breakpoint, '', '#{$class-breakpoint}-');
|
112
|
+
> .#{$prefix}auto {
|
113
|
+
@include xy-cell-size(auto, $vertical: $vertical);
|
114
|
+
}
|
115
|
+
|
116
|
+
> .#{$prefix}shrink {
|
117
|
+
@include xy-cell-size(shrink, $vertical: $vertical);
|
118
|
+
}
|
119
|
+
|
120
|
+
@for $i from 1 through $grid-columns {
|
121
|
+
// Sizing (percentage)
|
122
|
+
$classname: if($vertical, '.#{$class-breakpoint}-#{$i}', '.#{$class-breakpoint}-#{$i}');
|
123
|
+
|
124
|
+
> #{$classname} {
|
125
|
+
@include xy-cell-size($i, $vertical: $vertical);
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
// Margin Grid classes
|
131
|
+
@mixin xy-margin-grid-classes(
|
132
|
+
$gutter-position: left right,
|
133
|
+
$vertical: false,
|
134
|
+
$wrapping-selector: '.grid-margin-x'
|
135
|
+
){
|
136
|
+
#{$wrapping-selector} {
|
137
|
+
@include xy-gutters($negative: true, $gutter-position: $gutter-position);
|
138
|
+
|
139
|
+
// Base cell styles
|
140
|
+
> .cell {
|
141
|
+
@include xy-cell($vertical: $vertical, $output: (size gutters));
|
142
|
+
}
|
143
|
+
|
144
|
+
// base styles need to all be before the auto and shrink styles
|
145
|
+
@include -zf-each-breakpoint() {
|
146
|
+
@if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size) and $-zf-size != $-zf-zero-breakpoint) {
|
147
|
+
> .cell {
|
148
|
+
@include xy-cell($vertical: $vertical, $output: (size gutters));
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
@include -zf-each-breakpoint() {
|
154
|
+
|
155
|
+
// This is purely for responsive gutters - the margin grid has to go back and adjust widths (or heights)
|
156
|
+
// for all prior breakpoints.
|
157
|
+
// As their gutter is defined with their width/height, even breakpoint without a new margin must be
|
158
|
+
// generated to not having their width/height overrided by re-adjusted smaller breakpoints.
|
159
|
+
@if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size)) {
|
160
|
+
@each $bp in -zf-breakpoints-less-than($-zf-size) {
|
161
|
+
@include -xy-breakpoint-cell-classes($bp, $-zf-size, $vertical);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
@include -xy-breakpoint-cell-classes($-zf-size, $-zf-size, $vertical);
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
// Padding Grid classes
|
171
|
+
@mixin xy-padding-grid-classes {
|
172
|
+
.grid-padding-x {
|
173
|
+
|
174
|
+
// Negative margin for nested grids
|
175
|
+
.grid-padding-x {
|
176
|
+
@include xy-gutters($negative: true);
|
177
|
+
}
|
178
|
+
|
179
|
+
// Negative margin for grids within `grid-container/grid-container.fluid`
|
180
|
+
// This allows margin and padding grids to line up with eachother
|
181
|
+
.grid-container:not(.full) > & {
|
182
|
+
@include xy-gutters($negative: true);
|
183
|
+
}
|
184
|
+
|
185
|
+
// Base cell styles
|
186
|
+
> .cell {
|
187
|
+
@include xy-gutters($gutters: $grid-padding-gutters, $gutter-type: padding);
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
// Block Grid classes
|
193
|
+
@mixin xy-block-grid-classes($margin-grid: true, $padding-grid: true) {
|
194
|
+
@if $padding-grid {
|
195
|
+
@include -zf-each-breakpoint {
|
196
|
+
@for $i from 1 through $xy-block-grid-max {
|
197
|
+
.#{$-zf-size}-up-#{$i} {
|
198
|
+
@include xy-grid-layout($n: $i, $selector: '.cell', $gutter-type: padding, $output: (size));
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
@if $margin-grid {
|
205
|
+
@include -zf-each-breakpoint {
|
206
|
+
@for $i from 1 through $xy-block-grid-max {
|
207
|
+
// This is purely for responsive gutters - the margin grid has to go back and adjust widths (or heights)
|
208
|
+
// for prior breakpoints based on the responsive gutter.
|
209
|
+
@if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size)) {
|
210
|
+
@each $bp in -zf-breakpoints-less-than($-zf-size) {
|
211
|
+
@if(map-has-key($grid-margin-gutters, $bp)) {
|
212
|
+
.grid-margin-x.#{$bp}-up-#{$i} {
|
213
|
+
@include xy-grid-layout($n: $i, $selector: '.cell', $gutter-type: margin, $output: (size));
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
}
|
219
|
+
@for $i from 1 through $xy-block-grid-max {
|
220
|
+
.grid-margin-x.#{$-zf-size}-up-#{$i} {
|
221
|
+
@include xy-grid-layout($n: $i, $selector: '.cell', $gutter-type: margin, $output: (size));
|
222
|
+
}
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
// Collapse classes
|
229
|
+
@mixin xy-collapse-grid-classes($margin-grid: true, $padding-grid: true) {
|
230
|
+
@each $bp in $breakpoint-classes {
|
231
|
+
@if $margin-grid {
|
232
|
+
.#{$bp}-margin-collapse {
|
233
|
+
@include xy-grid-collapse($gutter-type: margin, $min-breakpoint: $bp);
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
@if $padding-grid {
|
238
|
+
.#{$bp}-padding-collapse {
|
239
|
+
@include xy-grid-collapse($gutter-type: padding, $min-breakpoint: $bp);
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
// Offset classes
|
246
|
+
@mixin xy-offset-cell-classes {
|
247
|
+
@include -zf-each-breakpoint {
|
248
|
+
@for $i from 1 through $grid-columns {
|
249
|
+
// Offsets
|
250
|
+
$o: $i - 1;
|
251
|
+
|
252
|
+
.#{$-zf-size}-offset-#{$o} {
|
253
|
+
@include xy-cell-offset($o, $gutters: $grid-padding-gutters, $gutter-type: padding);
|
254
|
+
}
|
255
|
+
|
256
|
+
.grid-margin-x > .#{$-zf-size}-offset-#{$o} {
|
257
|
+
@include xy-cell-offset($o);
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
// Vertical Grid classes
|
264
|
+
@mixin xy-vertical-grid-classes(
|
265
|
+
$margin-grid: true,
|
266
|
+
$padding-grid: true
|
267
|
+
) {
|
268
|
+
|
269
|
+
@include -zf-each-breakpoint() {
|
270
|
+
@if not($-zf-size == $-zf-zero-breakpoint) {
|
271
|
+
}
|
272
|
+
}
|
273
|
+
|
274
|
+
.grid-y {
|
275
|
+
@include xy-grid(vertical, false);
|
276
|
+
|
277
|
+
|
278
|
+
> .cell {
|
279
|
+
@include xy-cell-reset();
|
280
|
+
}
|
281
|
+
|
282
|
+
> .auto {
|
283
|
+
@include xy-cell-size(auto, $gutter-type: none, $vertical: true);
|
284
|
+
}
|
285
|
+
|
286
|
+
> .shrink {
|
287
|
+
@include xy-cell-size(shrink, $gutter-type: none, $vertical: true);
|
288
|
+
}
|
289
|
+
|
290
|
+
|
291
|
+
@include -zf-each-breakpoint() {
|
292
|
+
// This is a bit of a hack/workaround, see these issues and PRs for the backstory:
|
293
|
+
// https://github.com/foundation/foundation-sites/issues/10244
|
294
|
+
// https://github.com/foundation/foundation-sites/pull/10222 and
|
295
|
+
// https://github.com/foundation/foundation-sites/pull/10164
|
296
|
+
$str: "> .#{$-zf-size}-shrink, > .#{$-zf-size}-full";
|
297
|
+
@for $i from 1 through $grid-columns {
|
298
|
+
$str: $str + ", > .#{$-zf-size}-#{$i}"
|
299
|
+
}
|
300
|
+
#{$str} {
|
301
|
+
flex-basis: auto;
|
302
|
+
}
|
303
|
+
}
|
304
|
+
|
305
|
+
@include -zf-each-breakpoint() {
|
306
|
+
// Responsive "auto" modifier
|
307
|
+
@if not($-zf-size == $-zf-zero-breakpoint) {
|
308
|
+
> .#{$-zf-size}-auto {
|
309
|
+
@include xy-cell(auto, $gutter-type: none, $vertical: true);
|
310
|
+
}
|
311
|
+
}
|
312
|
+
|
313
|
+
%-xy-cell-base-shrink-vertical-#{$-zf-size} {
|
314
|
+
@include xy-cell-base(shrink);
|
315
|
+
}
|
316
|
+
|
317
|
+
// Responsive "shrink" modifier
|
318
|
+
@if not($-zf-size == $-zf-zero-breakpoint) {
|
319
|
+
> .#{$-zf-size}-shrink {
|
320
|
+
@extend %-xy-cell-base-shrink-vertical-#{$-zf-size};
|
321
|
+
@include xy-cell-size(shrink, $gutter-type: none, $vertical: true);
|
322
|
+
}
|
323
|
+
}
|
324
|
+
|
325
|
+
// Responsive width modifiers
|
326
|
+
@for $i from 1 through $grid-columns {
|
327
|
+
// Sizing (percentage)
|
328
|
+
> .#{$-zf-size}-#{$i} {
|
329
|
+
@extend %-xy-cell-base-shrink-vertical-#{$-zf-size};
|
330
|
+
@include xy-cell-size($i, $gutter-type: none, $vertical: true);
|
331
|
+
}
|
332
|
+
}
|
333
|
+
|
334
|
+
}
|
335
|
+
}
|
336
|
+
|
337
|
+
@if $padding-grid {
|
338
|
+
.grid-padding-y {
|
339
|
+
// Negative margin for nested grids
|
340
|
+
.grid-padding-y {
|
341
|
+
@include xy-gutters($negative: true, $gutter-position: top bottom);
|
342
|
+
}
|
343
|
+
|
344
|
+
// Base cell styles
|
345
|
+
> .cell {
|
346
|
+
@include xy-gutters($gutters: $grid-padding-gutters, $gutter-type: padding, $gutter-position: top bottom);
|
347
|
+
}
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
@if $margin-grid {
|
352
|
+
@include xy-margin-grid-classes(top bottom, true, '.grid-margin-y');
|
353
|
+
}
|
354
|
+
|
355
|
+
}
|
356
|
+
|
357
|
+
@mixin xy-frame-grid-classes($vertical-grid: true, $margin-grid: true) {
|
358
|
+
// Framed grid styles
|
359
|
+
.grid-frame {
|
360
|
+
@include xy-grid-frame;
|
361
|
+
}
|
362
|
+
|
363
|
+
.cell .grid-frame {
|
364
|
+
width: 100%; // Same as include with $nested, but with less css
|
365
|
+
}
|
366
|
+
|
367
|
+
.cell-block {
|
368
|
+
@include xy-cell-block();
|
369
|
+
}
|
370
|
+
|
371
|
+
.cell-block-y {
|
372
|
+
@include xy-cell-block(true);
|
373
|
+
}
|
374
|
+
|
375
|
+
|
376
|
+
.cell-block-container {
|
377
|
+
@include xy-cell-block-container();
|
378
|
+
}
|
379
|
+
|
380
|
+
|
381
|
+
@include -zf-each-breakpoint(false) {
|
382
|
+
|
383
|
+
.#{$-zf-size}-grid-frame {
|
384
|
+
@include xy-grid-frame;
|
385
|
+
}
|
386
|
+
|
387
|
+
.cell .#{$-zf-size}-grid-frame {
|
388
|
+
width: 100%; // Same as include with $nested, but with less css
|
389
|
+
}
|
390
|
+
|
391
|
+
.#{$-zf-size}-cell-block {
|
392
|
+
@include xy-cell-block();
|
393
|
+
}
|
394
|
+
|
395
|
+
.#{$-zf-size}-cell-block-container {
|
396
|
+
@include xy-cell-block-container();
|
397
|
+
}
|
398
|
+
|
399
|
+
.#{$-zf-size}-cell-block-y {
|
400
|
+
@include xy-cell-block(true);
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
@if $vertical-grid {
|
405
|
+
.grid-y {
|
406
|
+
&.grid-frame {
|
407
|
+
width: auto;
|
408
|
+
@include xy-grid-frame(true);
|
409
|
+
}
|
410
|
+
|
411
|
+
@include -zf-each-breakpoint(false) {
|
412
|
+
&.#{$-zf-size}-grid-frame {
|
413
|
+
width: auto;
|
414
|
+
@include xy-grid-frame(true);
|
415
|
+
}
|
416
|
+
|
417
|
+
}
|
418
|
+
}
|
419
|
+
.cell {
|
420
|
+
.grid-y.grid-frame {
|
421
|
+
height: 100%; // Same as include with $nested, but with less css
|
422
|
+
}
|
423
|
+
@include -zf-each-breakpoint(false) {
|
424
|
+
.grid-y.#{$-zf-size}-grid-frame {
|
425
|
+
height: 100%; // Same as include with $nested, but with less css
|
426
|
+
}
|
427
|
+
}
|
428
|
+
}
|
429
|
+
}
|
430
|
+
@if $margin-grid {
|
431
|
+
@include xy-margin-grid-classes(top bottom, true, '.grid-margin-y');
|
432
|
+
.grid-frame.grid-margin-y {
|
433
|
+
@include xy-grid-frame(true, false, $grid-margin-gutters, $include-base: false);
|
434
|
+
}
|
435
|
+
@include -zf-each-breakpoint(false) {
|
436
|
+
.grid-margin-y.#{$-zf-size}-grid-frame {
|
437
|
+
@include xy-grid-frame(true, false, $grid-margin-gutters, $-zf-size, false);
|
438
|
+
}
|
439
|
+
}
|
440
|
+
}
|
441
|
+
}
|
442
|
+
|
443
|
+
// Final classes
|
444
|
+
@mixin foundation-xy-grid-classes(
|
445
|
+
$base-grid: true,
|
446
|
+
$margin-grid: true,
|
447
|
+
$padding-grid: true,
|
448
|
+
$block-grid: true,
|
449
|
+
$collapse: true,
|
450
|
+
$offset: true,
|
451
|
+
$vertical-grid: true,
|
452
|
+
$frame-grid: true
|
453
|
+
) {
|
454
|
+
|
455
|
+
// Base grid styles
|
456
|
+
@if($base-grid) {
|
457
|
+
@include xy-base-grid-classes();
|
458
|
+
}
|
459
|
+
|
460
|
+
// Margin grid
|
461
|
+
@if($margin-grid) {
|
462
|
+
@include xy-margin-grid-classes();
|
463
|
+
}
|
464
|
+
|
465
|
+
// Padding grid
|
466
|
+
@if($padding-grid) {
|
467
|
+
@include xy-padding-grid-classes();
|
468
|
+
}
|
469
|
+
|
470
|
+
// Block grid
|
471
|
+
@if($block-grid) {
|
472
|
+
@include xy-block-grid-classes($margin-grid, $padding-grid);
|
473
|
+
}
|
474
|
+
|
475
|
+
// Collapse gutters
|
476
|
+
@if($collapse) {
|
477
|
+
@include xy-collapse-grid-classes($margin-grid, $padding-grid);
|
478
|
+
}
|
479
|
+
|
480
|
+
// Offset gutters
|
481
|
+
@if($offset) {
|
482
|
+
@include xy-offset-cell-classes();
|
483
|
+
}
|
484
|
+
|
485
|
+
// Vertical grid
|
486
|
+
@if($vertical-grid) {
|
487
|
+
@include xy-vertical-grid-classes($margin-grid, $padding-grid);
|
488
|
+
}
|
489
|
+
|
490
|
+
@if ($frame-grid) {
|
491
|
+
@include xy-frame-grid-classes($vertical-grid, $margin-grid)
|
492
|
+
}
|
493
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group xy-grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Collapses the grid a cells within it.
|
10
|
+
///
|
11
|
+
/// @param {String} $selector [.cell] - The child element to remove the gutter from.
|
12
|
+
/// @param {Keyword} $gutter-type [margin] - The type of gutter to remove.
|
13
|
+
/// @param {List} $gutter-position [right left] - The positions to remove gutters from. Accepts `top`, `bottom`, `left`, `right` in any combination.
|
14
|
+
/// @param {Keyword} $min-breakpoint [$-zf-zero-breakpoint] - Minimum breakpoint in `$breakpoint-classes` for which to collapse the gutter.
|
15
|
+
@mixin xy-grid-collapse(
|
16
|
+
$selector: '.cell',
|
17
|
+
$gutter-type: margin,
|
18
|
+
$gutter-position: right left,
|
19
|
+
$min-breakpoint: $-zf-zero-breakpoint
|
20
|
+
) {
|
21
|
+
// First, lets negate any margins on the top level
|
22
|
+
@if ($gutter-type == 'margin') {
|
23
|
+
|
24
|
+
@include breakpoint($min-breakpoint) {
|
25
|
+
@each $value in $gutter-position {
|
26
|
+
margin-#{$value}: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
> #{$selector} {
|
30
|
+
@each $value in $gutter-position {
|
31
|
+
margin-#{$value}: 0;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
$excluded-bps: -zf-breakpoints-less-than($min-breakpoint);
|
37
|
+
|
38
|
+
// Output new widths to not include gutters
|
39
|
+
@each $bp in $breakpoint-classes {
|
40
|
+
@if(sl-contain($excluded-bps, $bp)) {
|
41
|
+
@include breakpoint($min-breakpoint) {
|
42
|
+
@for $i from 1 through $grid-columns {
|
43
|
+
// Sizing (percentage)
|
44
|
+
> .#{$bp}-#{$i} {
|
45
|
+
@include xy-cell-size($i, $gutter-type: none);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
} @else {
|
50
|
+
@include breakpoint($bp) {
|
51
|
+
@for $i from 1 through $grid-columns {
|
52
|
+
// Sizing (percentage)
|
53
|
+
> .#{$bp}-#{$i} {
|
54
|
+
@include xy-cell-size($i, $gutter-type: none);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
@else {
|
62
|
+
|
63
|
+
@include breakpoint($min-breakpoint) {
|
64
|
+
@each $value in $gutter-position {
|
65
|
+
margin-#{$value}: 0;
|
66
|
+
}
|
67
|
+
|
68
|
+
> #{$selector} {
|
69
|
+
@each $value in $gutter-position {
|
70
|
+
padding-#{$value}: 0;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
/// Modifies a grid to give it "frame" behavior (no overflow, no wrap, stretch behavior)
|
2
|
+
///
|
3
|
+
/// @param {Boolean} $vertical [false] - Is grid vertical or horizontal. Should match grid.
|
4
|
+
/// @param {Boolean} $nested [false] - Is grid nested or not. If nested is true this sets the frame to 100% height, otherwise will be 100vh.
|
5
|
+
/// @param {Number|Map} $gutters [null] - Map or single value for gutters.
|
6
|
+
/// @param {String} $breakpoint [null] - The name of the breakpoint size in your gutters map to get the size from.
|
7
|
+
/// @param {Boolean} $include-base [true] - Include the base styles that don't vary per breakpoint.
|
8
|
+
@mixin xy-grid-frame(
|
9
|
+
$vertical: false,
|
10
|
+
$nested: false,
|
11
|
+
$gutters: null,
|
12
|
+
$breakpoint: null,
|
13
|
+
$include-base: true
|
14
|
+
) {
|
15
|
+
|
16
|
+
@if $include-base {
|
17
|
+
overflow: hidden;
|
18
|
+
position: relative;
|
19
|
+
flex-wrap: nowrap;
|
20
|
+
align-items: stretch;
|
21
|
+
}
|
22
|
+
|
23
|
+
@if $breakpoint == null and type-of($gutters) == 'map' {
|
24
|
+
@include -zf-each-breakpoint() {
|
25
|
+
@include xy-grid-frame($vertical, $nested, $gutters, $-zf-size, false);
|
26
|
+
}
|
27
|
+
} @else {
|
28
|
+
// Get our gutters if applicable
|
29
|
+
$gutter: -zf-get-bp-val($gutters, $breakpoint);
|
30
|
+
|
31
|
+
// If we have a gutter, add it to the width/height
|
32
|
+
@if $gutter {
|
33
|
+
@if $vertical == true {
|
34
|
+
$unit: if($nested == true, 100%, 100vh);
|
35
|
+
$gutter: rem-calc($gutter);
|
36
|
+
height: calc(#{$unit} + #{$gutter});
|
37
|
+
} @else {
|
38
|
+
$unit: if($nested == true, 100%, 100vw);
|
39
|
+
$gutter: rem-calc($gutter);
|
40
|
+
width: calc(#{$unit} + #{$gutter});
|
41
|
+
}
|
42
|
+
}
|
43
|
+
@else {
|
44
|
+
@if $vertical == true {
|
45
|
+
height: if($nested == true, 100%, 100vh);
|
46
|
+
} @else {
|
47
|
+
width: if($nested == true, 100%, 100vw);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
/// Modifies a cell to give it "block" behavior (overflow auto, inertial scrolling)
|
54
|
+
///
|
55
|
+
/// @param {Boolean} $vertical [false] - Is grid vertical or horizontal. Should match grid.
|
56
|
+
@mixin xy-cell-block(
|
57
|
+
$vertical: false
|
58
|
+
) {
|
59
|
+
$property: if($vertical == true, 'overflow-y', 'overflow-x');
|
60
|
+
|
61
|
+
@if $vertical == true {
|
62
|
+
overflow-y: auto;
|
63
|
+
max-height: 100%;
|
64
|
+
min-height: 100%;
|
65
|
+
} @else {
|
66
|
+
overflow-x: auto;
|
67
|
+
max-width: 100%;
|
68
|
+
}
|
69
|
+
|
70
|
+
-webkit-overflow-scrolling: touch;
|
71
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
72
|
+
}
|
73
|
+
|
74
|
+
/// Container for inside a grid frame containing multiple blocks. Typically used
|
75
|
+
/// as a modifier for a `.cell` to allow the cell to pass along flex sizing
|
76
|
+
/// constraints / from parents to children.
|
77
|
+
@mixin xy-cell-block-container() {
|
78
|
+
display: flex;
|
79
|
+
flex-direction: column;
|
80
|
+
max-height: 100%;
|
81
|
+
|
82
|
+
> .grid-x {
|
83
|
+
max-height: 100%;
|
84
|
+
flex-wrap: nowrap;
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group xy-grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Creates a max width container, designed to house your grid content.
|
10
|
+
///
|
11
|
+
/// @param {Number} $width [$grid-container] - a width to limit the container to.
|
12
|
+
/// @param {Number} $padding [$grid-container-padding] - paddings of the container.
|
13
|
+
@mixin xy-grid-container(
|
14
|
+
$width: $grid-container,
|
15
|
+
$padding: $grid-container-padding
|
16
|
+
) {
|
17
|
+
@include xy-gutters($gutters: $padding, $gutter-type: padding);
|
18
|
+
|
19
|
+
max-width: $width;
|
20
|
+
margin-left: auto;
|
21
|
+
margin-right: auto;
|
22
|
+
}
|
23
|
+
|
24
|
+
/// Creates a container for your flex cells.
|
25
|
+
///
|
26
|
+
/// @param {Keyword} $direction [horizontal] - Either horizontal or vertical direction of cells within.
|
27
|
+
/// @param {Boolean} $wrap [true] - If the cells within should wrap or not.
|
28
|
+
@mixin xy-grid(
|
29
|
+
$direction: horizontal,
|
30
|
+
$wrap: true
|
31
|
+
) {
|
32
|
+
$direction: if($direction == 'horizontal', row, column);
|
33
|
+
$wrap: if($wrap, wrap, nowrap);
|
34
|
+
|
35
|
+
display: flex;
|
36
|
+
flex-flow: $direction $wrap;
|
37
|
+
}
|