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,96 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
/// If `true`, all elements will have transparent backgrounds when printed, to save on ink.
|
6
|
+
/// @type Boolean
|
7
|
+
/// @group global
|
8
|
+
$print-transparent-backgrounds: true !default;
|
9
|
+
|
10
|
+
/// If `true`, displays next to all links their "href" when printed.
|
11
|
+
/// @type Boolean
|
12
|
+
/// @group global
|
13
|
+
$print-hrefs: true !default;
|
14
|
+
|
15
|
+
// sass-lint:disable-all
|
16
|
+
|
17
|
+
@mixin foundation-print-styles {
|
18
|
+
.show-for-print { display: none !important; }
|
19
|
+
|
20
|
+
@media print {
|
21
|
+
* {
|
22
|
+
// Ensure a "black-on-white" print by removing backgrounds,
|
23
|
+
// using black text everywhere and forcing the browser to economize ink.
|
24
|
+
@if $print-transparent-backgrounds {
|
25
|
+
background: transparent !important;
|
26
|
+
color: black !important; // Black prints faster: h5bp.com/s
|
27
|
+
color-adjust: economy;
|
28
|
+
}
|
29
|
+
// Otherwise, prevent any economy by the browser.
|
30
|
+
@else {
|
31
|
+
color-adjust: exact;
|
32
|
+
}
|
33
|
+
|
34
|
+
box-shadow: none !important;
|
35
|
+
text-shadow: none !important;
|
36
|
+
}
|
37
|
+
|
38
|
+
.show-for-print { display: block !important; }
|
39
|
+
.hide-for-print { display: none !important; }
|
40
|
+
|
41
|
+
table.show-for-print { display: table !important; }
|
42
|
+
thead.show-for-print { display: table-header-group !important; }
|
43
|
+
tbody.show-for-print { display: table-row-group !important; }
|
44
|
+
tr.show-for-print { display: table-row !important; }
|
45
|
+
td.show-for-print { display: table-cell !important; }
|
46
|
+
th.show-for-print { display: table-cell !important; }
|
47
|
+
|
48
|
+
// Display the URL of a link after the text
|
49
|
+
a,
|
50
|
+
a:visited { text-decoration: underline;}
|
51
|
+
@if $print-hrefs {
|
52
|
+
a[href]:after { content: ' (' attr(href) ')'; }
|
53
|
+
}
|
54
|
+
|
55
|
+
// Don't display the URL for images or JavaScript/internal links
|
56
|
+
.ir a:after,
|
57
|
+
a[href^='javascript:']:after,
|
58
|
+
a[href^='#']:after { content: ''; }
|
59
|
+
|
60
|
+
// Display what an abbreviation stands for after the text
|
61
|
+
abbr[title]:after { content: ' (' attr(title) ')'; }
|
62
|
+
|
63
|
+
// Prevent page breaks in the middle of a blockquote or preformatted text block
|
64
|
+
pre,
|
65
|
+
blockquote {
|
66
|
+
border: 1px solid $dark-gray;
|
67
|
+
page-break-inside: avoid;
|
68
|
+
}
|
69
|
+
|
70
|
+
// h5bp.com/t
|
71
|
+
thead { display: table-header-group; }
|
72
|
+
|
73
|
+
tr,
|
74
|
+
img { page-break-inside: avoid; }
|
75
|
+
|
76
|
+
img { max-width: 100% !important; }
|
77
|
+
|
78
|
+
@page { margin: 0.5cm; }
|
79
|
+
|
80
|
+
p,
|
81
|
+
h2,
|
82
|
+
h3 {
|
83
|
+
orphans: 3;
|
84
|
+
widows: 3;
|
85
|
+
}
|
86
|
+
|
87
|
+
// Avoid page breaks after a heading
|
88
|
+
h2,
|
89
|
+
h3 { page-break-after: avoid; }
|
90
|
+
|
91
|
+
// Helper to re-allow page breaks in the middle of certain elements (e.g. pre, blockquote, tr)
|
92
|
+
.print-break-inside {
|
93
|
+
page-break-inside: auto;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group typography
|
7
|
+
////
|
8
|
+
|
9
|
+
// Base typography styles (tags only)
|
10
|
+
@import 'base';
|
11
|
+
|
12
|
+
// Typography helper classes (classes only)
|
13
|
+
@import 'helpers';
|
14
|
+
|
15
|
+
// Text alignment classes
|
16
|
+
@import 'alignment';
|
17
|
+
|
18
|
+
// Print styles
|
19
|
+
@import 'print';
|
20
|
+
|
21
|
+
@mixin foundation-typography {
|
22
|
+
@include foundation-typography-base;
|
23
|
+
@include foundation-typography-helpers;
|
24
|
+
@include foundation-text-alignment;
|
25
|
+
@include foundation-print-styles;
|
26
|
+
}
|
@@ -0,0 +1,435 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group breakpoints
|
7
|
+
////
|
8
|
+
|
9
|
+
/// A list of named breakpoints. You can use these with the `breakpoint()` mixin to quickly create media queries.
|
10
|
+
/// @type Map
|
11
|
+
$breakpoints: (
|
12
|
+
small: 0,
|
13
|
+
medium: 640px,
|
14
|
+
large: 1024px,
|
15
|
+
xlarge: 1200px,
|
16
|
+
xxlarge: 1440px,
|
17
|
+
) !default;
|
18
|
+
|
19
|
+
/// A list of named HiDPI breakpoints. You can use these with the `breakpoint()` mixin to quickly create media queries for resolutions.
|
20
|
+
/// Values must represent the device pixels / web pixels ration and be unitless or in DPPX.
|
21
|
+
/// @type Map
|
22
|
+
$breakpoints-hidpi: (
|
23
|
+
hidpi-1: 1,
|
24
|
+
hidpi-1-5: 1.5,
|
25
|
+
hidpi-2: 2,
|
26
|
+
retina: 2,
|
27
|
+
hidpi-3: 3
|
28
|
+
) !default;
|
29
|
+
|
30
|
+
/// The largest named breakpoint in which to include print as a media type
|
31
|
+
/// @type Keyword
|
32
|
+
$print-breakpoint: large !default;
|
33
|
+
|
34
|
+
$-zf-zero-breakpoint: small !default;
|
35
|
+
|
36
|
+
$-zf-breakpoints-keys: map-to-list($breakpoints, 'keys');
|
37
|
+
|
38
|
+
@if nth(map-values($breakpoints), 1) != 0 {
|
39
|
+
@error 'The first key in the $breakpoints map must have a value of "0".';
|
40
|
+
}
|
41
|
+
@else {
|
42
|
+
$-zf-zero-breakpoint: nth(map-keys($breakpoints), 1);
|
43
|
+
}
|
44
|
+
|
45
|
+
/// All of the names in this list will be output as classes in your CSS, like `.small-12`, `.medium-6`, and so on. Each value in this list must also be in the `$breakpoints` map.
|
46
|
+
/// @type List
|
47
|
+
$breakpoint-classes: (small medium large) !default;
|
48
|
+
|
49
|
+
/// Generates a media query string matching the input value. Refer to the documentation for the `breakpoint()` mixin to see what the possible inputs are.
|
50
|
+
///
|
51
|
+
/// @param {Keyword|Number} $val [small] - Breakpoint name, or px, rem, or em value to process.
|
52
|
+
@function breakpoint($val: $-zf-zero-breakpoint) {
|
53
|
+
// Web standard Pixels per inch. (1ddpx / $std-web-dpi) = 1dpi
|
54
|
+
// See https://www.w3.org/TR/css-values-3/#absolute-lengths
|
55
|
+
$std-web-dpi: 96;
|
56
|
+
|
57
|
+
// Size or keyword
|
58
|
+
$bp: nth($val, 1);
|
59
|
+
// Value of the following breakpoint
|
60
|
+
$bp-next: null;
|
61
|
+
// Value for max-width media queries
|
62
|
+
$bp-min: null;
|
63
|
+
// Value for min-width media queries
|
64
|
+
$bp-max: null;
|
65
|
+
// Direction of media query (up, down, or only)
|
66
|
+
$dir: if(length($val) > 1, nth($val, 2), up);
|
67
|
+
// If named, name of the breakpoint
|
68
|
+
$name: null;
|
69
|
+
// If the breakpoint is a HiDPI breakpoint
|
70
|
+
$hidpi: false;
|
71
|
+
|
72
|
+
// Orientation media queries have a unique syntax
|
73
|
+
@if $bp == 'landscape' or $bp == 'portrait' {
|
74
|
+
@return '(orientation: #{$bp})';
|
75
|
+
}
|
76
|
+
|
77
|
+
// If a breakpoint name is given, get its value from the $breakpoints/$breakpoints-hidpi map.
|
78
|
+
@if type-of($bp) == 'string' {
|
79
|
+
@if map-has-key($breakpoints, $bp) {
|
80
|
+
$name: $bp;
|
81
|
+
$bp: map-get($breakpoints, $name);
|
82
|
+
$bp-next: -zf-map-next($breakpoints, $name);
|
83
|
+
}
|
84
|
+
@else if map-has-key($breakpoints-hidpi, $bp) {
|
85
|
+
$name: $bp;
|
86
|
+
$bp: map-get($breakpoints-hidpi, $name);
|
87
|
+
$bp-next: -zf-map-next-number($breakpoints-hidpi, $bp);
|
88
|
+
$hidpi: true;
|
89
|
+
}
|
90
|
+
@else {
|
91
|
+
$bp: 0;
|
92
|
+
@warn 'breakpoint(): "#{$val}" is not defined in your `$breakpoints` or `$breakpoints-hidpi` setting.';
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
@if not $name and $dir == 'only' {
|
97
|
+
@warn 'breakpoint(): Only named media queries can have an `only` range.';
|
98
|
+
@return null;
|
99
|
+
}
|
100
|
+
|
101
|
+
// Only 'only' and 'up' have a min limit.
|
102
|
+
@if $dir == 'only' or $dir == 'up' {
|
103
|
+
$bp-min: if($hidpi, strip-unit($bp), -zf-bp-to-em($bp));
|
104
|
+
}
|
105
|
+
// Only 'only' and 'down' have a max limit.
|
106
|
+
@if $dir == 'only' or $dir == 'down' {
|
107
|
+
// If the breakpoint is a value, use it as max limit.
|
108
|
+
@if not $name {
|
109
|
+
$bp-max: if($hidpi, strip-unit($bp), -zf-bp-to-em($bp));
|
110
|
+
}
|
111
|
+
// If the breakpoint is named, the max limit is the following breakpoint - 1px.
|
112
|
+
@else if $bp-next {
|
113
|
+
// Max value is 0.2px under the next breakpoint (0.02 / 16 = 0.00125).
|
114
|
+
// Use a precision under 1px to support browser zoom, but not to low to avoid rounding.
|
115
|
+
// See https://github.com/foundation/foundation-sites/issues/11313
|
116
|
+
$bp-max: if($hidpi, $bp-next - (1/$std-web-dpi), -zf-bp-to-em($bp-next) - 0.00125);
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
// Generate the media query string from min and max limits.
|
121
|
+
@if $hidpi {
|
122
|
+
// Generate values in DPI instead of DPPX for an IE9-11/Opera mini compatibility.
|
123
|
+
// See https://caniuse.com/#feat=css-media-resolution
|
124
|
+
$bp-min-dpi: if($bp-min, $bp-min * $std-web-dpi * 1dpi, $bp-min);
|
125
|
+
$bp-max-dpi: if($bp-max, $bp-max * $std-web-dpi * 1dpi, $bp-max);
|
126
|
+
@return zf-str-join(
|
127
|
+
-zf-bp-join($bp-min, $bp-max, '-webkit-min-device-pixel-ratio', '-webkit-max-device-pixel-ratio'),
|
128
|
+
-zf-bp-join($bp-min-dpi, $bp-max-dpi, 'min-resolution', 'max-resolution'),
|
129
|
+
', ');
|
130
|
+
}
|
131
|
+
@else {
|
132
|
+
@return -zf-bp-join($bp-min, $bp-max);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
/// Wraps a media query around the content you put inside the mixin. This mixin accepts a number of values:
|
137
|
+
/// - If a string is passed, the mixin will look for it in the `$breakpoints` and `$breakpoints-hidpi` maps, and use a media query there.
|
138
|
+
/// - If a pixel value is passed, it will be converted to an em value using `$global-font-size` as the base.
|
139
|
+
/// - If a rem value is passed, the unit will be changed to em.
|
140
|
+
/// - If an em value is passed, the value will be used as-is.
|
141
|
+
///
|
142
|
+
/// If multiple values are passed, the mixin will generate a media query for each of them as described above.
|
143
|
+
/// Since the content is duplicated for each breakpoint, this mixin should only be used with properties that
|
144
|
+
/// change across breakpoints.
|
145
|
+
///
|
146
|
+
/// @param {Keyword|Number} $values... - Breakpoint name or px/rem/em value to process.
|
147
|
+
///
|
148
|
+
/// @output If the breakpoint is "0px and larger", outputs the content as-is. Otherwise, outputs the content wrapped in a media query.
|
149
|
+
@mixin breakpoint($values...) {
|
150
|
+
@for $i from 1 through length($values) {
|
151
|
+
$value: nth($values, $i);
|
152
|
+
$str: breakpoint($value);
|
153
|
+
$bp: index($-zf-breakpoints-keys, nth($value, 1));
|
154
|
+
$pbp: index($-zf-breakpoints-keys, $print-breakpoint);
|
155
|
+
// Direction of media query (up, down, or only)
|
156
|
+
$dir: if(length($value) > 1, nth($value, 2), up);
|
157
|
+
|
158
|
+
$old-zf-size: null;
|
159
|
+
|
160
|
+
// Make breakpoint size available as a variable
|
161
|
+
@if global-variable-exists(-zf-size) {
|
162
|
+
$old-zf-size: $-zf-size;
|
163
|
+
}
|
164
|
+
$-zf-size: nth($value, 1) !global; // get the first value to account for `only` and `down` keywords
|
165
|
+
|
166
|
+
// If $str is still an empty string, no media query is needed
|
167
|
+
@if $str == '' {
|
168
|
+
@content;
|
169
|
+
}
|
170
|
+
|
171
|
+
// Otherwise, wrap the content in a media query
|
172
|
+
@else {
|
173
|
+
// For named breakpoints less than or equal to $print-breakpoint, add print to the media types
|
174
|
+
// generate print if the breakpoint affects the print-breakpoint (or smaller).
|
175
|
+
// This means the current condition only needs to be extended so 'down' always generates print.
|
176
|
+
@if $bp != null and ($bp <= $pbp or $dir == down) {
|
177
|
+
@media print, screen and #{$str} {
|
178
|
+
@content;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
@else {
|
182
|
+
@media screen and #{$str} {
|
183
|
+
@content;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
$-zf-size: $old-zf-size !global;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
/// Converts the breakpoints map to a URL-encoded string, like this: `key1=value1&key2=value2`. The value is then dropped into the CSS for a special `<meta>` tag, which is read by the Foundation JavaScript. This is how we transfer values from Sass to JavaScript, so they can be defined in one place.
|
193
|
+
/// @access private
|
194
|
+
///
|
195
|
+
/// @param {Map} $map - Map to convert.
|
196
|
+
///
|
197
|
+
/// @returns {String} A string containing the map's contents.
|
198
|
+
@function -zf-bp-serialize($map) {
|
199
|
+
$str: '';
|
200
|
+
@each $key, $value in $map {
|
201
|
+
$str: $str + $key + '=' + -zf-bp-to-em($value) + '&';
|
202
|
+
}
|
203
|
+
$str: str-slice($str, 1, -2);
|
204
|
+
|
205
|
+
@return $str;
|
206
|
+
}
|
207
|
+
|
208
|
+
/// Find the next key in a map.
|
209
|
+
/// @access private
|
210
|
+
///
|
211
|
+
/// @param {Map} $map - Map to traverse.
|
212
|
+
/// @param {Mixed} $key - Key to use as a starting point.
|
213
|
+
///
|
214
|
+
/// @returns {Mixed} The value for the key after `$key`, if `$key` was found. If `$key` was not found, or `$key` was the last value in the map, returns `null`.
|
215
|
+
@function -zf-map-next($map, $key) {
|
216
|
+
|
217
|
+
// Store the keys of the map as a list
|
218
|
+
$values: map-keys($map);
|
219
|
+
|
220
|
+
$i: 0;
|
221
|
+
|
222
|
+
// If the Key Exists, Get the index of the key within the map and add 1 to it for the next breakpoint in the map
|
223
|
+
@if (map-has-key($map, $key)) {
|
224
|
+
$i: index($values, $key) + 1;
|
225
|
+
}
|
226
|
+
|
227
|
+
// If the key doesn't exist, or it's the last key in the map, return null
|
228
|
+
@if ($i > length($map) or $i == 0) {
|
229
|
+
@return null;
|
230
|
+
}
|
231
|
+
// Otherwise, return the value
|
232
|
+
@else {
|
233
|
+
@return map-get($map, nth($values, $i));
|
234
|
+
}
|
235
|
+
|
236
|
+
}
|
237
|
+
|
238
|
+
/// Find the next number in a map.
|
239
|
+
/// @access private
|
240
|
+
///
|
241
|
+
/// @param {Map} $map - Map to traverse.
|
242
|
+
/// @param {Mixed} $number - Number to use as a starting point.
|
243
|
+
///
|
244
|
+
/// @returns {Mixed} The number following `$number`, if `$number` was found. If `$number` was not found, or `$number` was the biggest number in the map, returns `null`.
|
245
|
+
@function -zf-map-next-number($map, $number) {
|
246
|
+
|
247
|
+
$next_number: null;
|
248
|
+
|
249
|
+
@each $k, $v in $map {
|
250
|
+
@if type-of($v) == 'number' and $v > $number and ($next_number == null or $v < $next_number) {
|
251
|
+
$next_number: $v;
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
@return $next_number;
|
256
|
+
}
|
257
|
+
|
258
|
+
/// Return a list of our named breakpoints less than $key. Useful for dealing with
|
259
|
+
/// responsive gutters for the grid.
|
260
|
+
/// @access private
|
261
|
+
///
|
262
|
+
/// @param {String} $key - Key to use as last breakpoint.
|
263
|
+
///
|
264
|
+
/// @returns {Array} The list of breakpoints up to and. If $key is auto, returns breakpoints above the zero
|
265
|
+
@function -zf-breakpoints-less-than($key) {
|
266
|
+
$list: ();
|
267
|
+
$found_key: false;
|
268
|
+
|
269
|
+
@each $name in $-zf-breakpoints-keys {
|
270
|
+
@if ($name == $key) {
|
271
|
+
$found_key: true;
|
272
|
+
}
|
273
|
+
@if not $found_key {
|
274
|
+
$list: append($list, $name);
|
275
|
+
}
|
276
|
+
}
|
277
|
+
@return $list;
|
278
|
+
}
|
279
|
+
|
280
|
+
/// Return a list of our named breakpoints less than $key. Useful for dealing with
|
281
|
+
/// responsive gutters for the grid.
|
282
|
+
/// @access private
|
283
|
+
///
|
284
|
+
/// @param {String} $breakpoint - a named or non-named breakpoint.
|
285
|
+
///
|
286
|
+
/// @returns {Array} The list of breakpoints up to and. If $key is auto, returns breakpoints above the zero
|
287
|
+
@function -zf-closest-named-breakpoint($breakpoint) {
|
288
|
+
$last: $-zf-zero-breakpoint;
|
289
|
+
$found: false;
|
290
|
+
|
291
|
+
$value: unitless-calc($breakpoint, 1px);
|
292
|
+
@each $key, $val in $breakpoints {
|
293
|
+
@if not $found {
|
294
|
+
@if unitless-calc($val) > $value {
|
295
|
+
$found: true;
|
296
|
+
} @else {
|
297
|
+
$last: $key;
|
298
|
+
}
|
299
|
+
}
|
300
|
+
}
|
301
|
+
|
302
|
+
@return $last;
|
303
|
+
}
|
304
|
+
|
305
|
+
/// Get a value for a breakpoint from a responsive config map or single value.
|
306
|
+
/// - If the config is a single value, return it regardless of `$value`.
|
307
|
+
/// - If the config is a map and has the key `$value`, the exact breakpoint value is returned.
|
308
|
+
/// - If the config is a map and does *not* have the breakpoint, the value matching the next lowest breakpoint in the config map is returned.
|
309
|
+
/// @access private
|
310
|
+
///
|
311
|
+
/// @param {Number|Map} $map - Responsive config map or single value.
|
312
|
+
/// @param {Keyword} $value - Breakpoint name to use.
|
313
|
+
///
|
314
|
+
/// @return {Mixed} The corresponding breakpoint value.
|
315
|
+
@function -zf-get-bp-val($map, $value) {
|
316
|
+
// If the given map is a single value, return it
|
317
|
+
@if type-of($map) == 'number' {
|
318
|
+
@return $map;
|
319
|
+
}
|
320
|
+
|
321
|
+
|
322
|
+
// Check if the breakpoint name exists globally
|
323
|
+
@if not map-has-key($breakpoints, $value) {
|
324
|
+
@if type-of($value) == 'number' {
|
325
|
+
$value: -zf-closest-named-breakpoint($value);
|
326
|
+
} @else {
|
327
|
+
@return null;
|
328
|
+
}
|
329
|
+
}
|
330
|
+
// Check if the breakpoint name exists in the local config map
|
331
|
+
@else if map-has-key($map, $value) {
|
332
|
+
// If it does, just return the value
|
333
|
+
@return map-get($map, $value);
|
334
|
+
}
|
335
|
+
// Otherwise, find the next lowest breakpoint and return that value
|
336
|
+
@else {
|
337
|
+
$anchor: null;
|
338
|
+
$found: false;
|
339
|
+
|
340
|
+
@each $key, $val in $breakpoints {
|
341
|
+
@if not $found {
|
342
|
+
@if map-has-key($map, $key) {
|
343
|
+
$anchor: $key;
|
344
|
+
}
|
345
|
+
@if $key == $value {
|
346
|
+
$found: true;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
@return map-get($map, $anchor);
|
352
|
+
}
|
353
|
+
}
|
354
|
+
|
355
|
+
/// Return the best breakpoint to use according to the calling context. It returns in order:
|
356
|
+
/// 1. the given `$value` argument if it is not null.
|
357
|
+
/// 2. the global breakpoint context `$-zf-size` if it is not null (like if called inside then `breakpoint()` mixin)
|
358
|
+
/// 3. the given `$default` argument.
|
359
|
+
/// @access private
|
360
|
+
///
|
361
|
+
/// @param {Keyword} $value [null] - Breakpoint to use in priority if non-null.
|
362
|
+
/// @param {Keyword} $default [null] - Breakpoint to use by default if no other value can be used.
|
363
|
+
///
|
364
|
+
/// @return {Keyword} The resolved breakpoint.
|
365
|
+
@function -zf-current-breakpoint($value: null, $default: null) {
|
366
|
+
@if ($value != null) {
|
367
|
+
@return $value;
|
368
|
+
}
|
369
|
+
@else if (variable-exists(-zf-size) and type-of($-zf-size) != 'number') and $-zf-size != null {
|
370
|
+
@return $-zf-size;
|
371
|
+
}
|
372
|
+
@else {
|
373
|
+
@return $default;
|
374
|
+
}
|
375
|
+
}
|
376
|
+
|
377
|
+
/// Return media query string from the given min and/or max limits.
|
378
|
+
/// If a limit is equal to `null` or `0`, it is ignored.
|
379
|
+
/// @access private
|
380
|
+
///
|
381
|
+
/// @param {Number} $min [0] - Min media query limit.
|
382
|
+
/// @param {Number} $max [0] - Max media query limit.
|
383
|
+
/// @param {String} $min-name ['min-width'] - Name of the min media query limit.
|
384
|
+
/// @param {String} $delimiter ['max-width'] - Name of the max media query limit.
|
385
|
+
///
|
386
|
+
/// @returns {String} Media Query string.
|
387
|
+
@function -zf-bp-join(
|
388
|
+
$min: 0,
|
389
|
+
$max: 0,
|
390
|
+
$min-name: 'min-width',
|
391
|
+
$max-name: 'max-width'
|
392
|
+
) {
|
393
|
+
@return zf-str-join(
|
394
|
+
if($min and $min > 0, '(#{$min-name}: #{$min})', null),
|
395
|
+
if($max and $max > 0, '(#{$max-name}: #{$max})', null),
|
396
|
+
' and ');
|
397
|
+
}
|
398
|
+
|
399
|
+
$small-up: '';
|
400
|
+
$small-only: '';
|
401
|
+
|
402
|
+
@if map-has-key($breakpoints, small) {
|
403
|
+
$small-up: screen;
|
404
|
+
$small-only: unquote('screen and #{breakpoint(small only)}');
|
405
|
+
}
|
406
|
+
|
407
|
+
$medium-up: '';
|
408
|
+
$medium-only: '';
|
409
|
+
|
410
|
+
@if map-has-key($breakpoints, medium) {
|
411
|
+
$medium-up: unquote('screen and #{breakpoint(medium)}');
|
412
|
+
$medium-only: unquote('screen and #{breakpoint(medium only)}');
|
413
|
+
}
|
414
|
+
|
415
|
+
$large-up: '';
|
416
|
+
$large-only: '';
|
417
|
+
|
418
|
+
@if map-has-key($breakpoints, large) {
|
419
|
+
$large-up: unquote('screen and #{breakpoint(large)}');
|
420
|
+
$large-only: unquote('screen and #{breakpoint(large only)}');
|
421
|
+
}
|
422
|
+
|
423
|
+
$xlarge-up: '';
|
424
|
+
$xlarge-only: '';
|
425
|
+
|
426
|
+
@if map-has-key($breakpoints, xlarge) {
|
427
|
+
$xlarge-up: unquote('screen and #{breakpoint(xlarge)}');
|
428
|
+
$xlarge-only: unquote('screen and #{breakpoint(xlarge only)}');
|
429
|
+
}
|
430
|
+
|
431
|
+
$xxlarge-up: '';
|
432
|
+
|
433
|
+
@if map-has-key($breakpoints, xxlarge) {
|
434
|
+
$xxlarge-up: unquote('screen and #{breakpoint(xxlarge)}');
|
435
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'math';
|
6
|
+
|
7
|
+
$contrast-warnings: true !default;
|
8
|
+
|
9
|
+
////
|
10
|
+
/// @group functions
|
11
|
+
////
|
12
|
+
|
13
|
+
/// Checks the luminance of `$color`.
|
14
|
+
///
|
15
|
+
/// @param {Color} $color - Color to check the luminance of.
|
16
|
+
///
|
17
|
+
/// @returns {Number} The luminance of `$color`.
|
18
|
+
@function color-luminance($color) {
|
19
|
+
// Adapted from: https://github.com/LeaVerou/contrast-ratio/blob/gh-pages/color.js
|
20
|
+
// Formula: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
21
|
+
$rgba: red($color), green($color), blue($color);
|
22
|
+
$rgba2: ();
|
23
|
+
|
24
|
+
@for $i from 1 through 3 {
|
25
|
+
$rgb: nth($rgba, $i);
|
26
|
+
$rgb: $rgb / 255;
|
27
|
+
|
28
|
+
$rgb: if($rgb < 0.03928, $rgb / 12.92, pow(($rgb + 0.055) / 1.055, 2.4));
|
29
|
+
|
30
|
+
$rgba2: append($rgba2, $rgb);
|
31
|
+
}
|
32
|
+
|
33
|
+
@return 0.2126 * nth($rgba2, 1) + 0.7152 * nth($rgba2, 2) + 0.0722 * nth($rgba2, 3);
|
34
|
+
}
|
35
|
+
|
36
|
+
/// Checks the contrast ratio of two colors.
|
37
|
+
///
|
38
|
+
/// @param {Color} $color1 - First color to compare.
|
39
|
+
/// @param {Color} $color2 - Second color to compare.
|
40
|
+
///
|
41
|
+
/// @returns {Number} The contrast ratio of the compared colors.
|
42
|
+
@function color-contrast($color1, $color2) {
|
43
|
+
// Adapted from: https://github.com/LeaVerou/contrast-ratio/blob/gh-pages/color.js
|
44
|
+
// Formula: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef
|
45
|
+
$luminance1: color-luminance($color1) + 0.05;
|
46
|
+
$luminance2: color-luminance($color2) + 0.05;
|
47
|
+
$ratio: $luminance1 / $luminance2;
|
48
|
+
|
49
|
+
@if $luminance2 > $luminance1 {
|
50
|
+
$ratio: 1 / $ratio;
|
51
|
+
}
|
52
|
+
|
53
|
+
$ratio: round($ratio * 10) / 10;
|
54
|
+
|
55
|
+
@return $ratio;
|
56
|
+
}
|
57
|
+
|
58
|
+
/// Checks the luminance of `$base`, and returns the color from `$colors` (list of colors) that has the most contrast.
|
59
|
+
///
|
60
|
+
/// @param {Color} $base - Color to check luminance.
|
61
|
+
/// @param {List} $colors [($white, $black)] - Colors to compare.
|
62
|
+
/// @param {Number} $tolerance [$global-color-pick-contrast-tolerance] - Contrast tolerance.
|
63
|
+
///
|
64
|
+
/// @returns {Color} the color from `$colors` (list of colors) that has the most contrast.
|
65
|
+
@function color-pick-contrast($base, $colors: ($white, $black), $tolerance: $global-color-pick-contrast-tolerance) {
|
66
|
+
$contrast: color-contrast($base, nth($colors, 1));
|
67
|
+
$best: nth($colors, 1);
|
68
|
+
|
69
|
+
@for $i from 2 through length($colors) {
|
70
|
+
$current-contrast: color-contrast($base, nth($colors, $i));
|
71
|
+
@if ($current-contrast - $contrast > $tolerance) {
|
72
|
+
$contrast: color-contrast($base, nth($colors, $i));
|
73
|
+
$best: nth($colors, $i);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
@if ($contrast-warnings and $contrast < 3) {
|
78
|
+
@warn "Contrast ratio of #{$best} on #{$base} is pretty bad, just #{$contrast}";
|
79
|
+
}
|
80
|
+
|
81
|
+
@return $best;
|
82
|
+
}
|
83
|
+
|
84
|
+
/// Scales a color to be darker if it's light, or lighter if it's dark. Use this function to tint a color appropriate to its lightness.
|
85
|
+
///
|
86
|
+
/// @param {Color} $color - Color to scale.
|
87
|
+
/// @param {Percentage} $scale [5%] - Amount to scale up or down.
|
88
|
+
/// @param {Percentage} $threshold [40%] - Threshold of lightness to check against.
|
89
|
+
///
|
90
|
+
/// @returns {Color} A scaled color.
|
91
|
+
@function smart-scale($color, $scale: 5%, $threshold: 40%) {
|
92
|
+
@if lightness($color) > $threshold {
|
93
|
+
$scale: -$scale;
|
94
|
+
}
|
95
|
+
@return scale-color($color, $lightness: $scale);
|
96
|
+
}
|
97
|
+
|
98
|
+
/// Get color from foundation-palette
|
99
|
+
///
|
100
|
+
/// @param {key} color key from foundation-palette
|
101
|
+
///
|
102
|
+
/// @returns {Color} color from foundation-palette
|
103
|
+
@function get-color($key) {
|
104
|
+
@if map-has-key($foundation-palette, $key) {
|
105
|
+
@return map-get($foundation-palette, $key);
|
106
|
+
}
|
107
|
+
@else {
|
108
|
+
@error 'given $key is not available in $foundation-palette';
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
/// Transfers the colors in the `$foundation-palette` map into variables, such as `$primary-color` and `$secondary-color`. Call this mixin below the Global section of your settings file to properly migrate your codebase.
|
113
|
+
@mixin add-foundation-colors() {
|
114
|
+
@if map-has-key($foundation-palette, primary) {
|
115
|
+
$primary-color: map-get($foundation-palette, primary) !global;
|
116
|
+
} @else {
|
117
|
+
$primary-color: #1779ba !global;
|
118
|
+
}
|
119
|
+
@if map-has-key($foundation-palette, secondary) {
|
120
|
+
$secondary-color: map-get($foundation-palette, secondary) !global;
|
121
|
+
} @else {
|
122
|
+
$secondary-color: #767676 !global;
|
123
|
+
}
|
124
|
+
@if map-has-key($foundation-palette, success) {
|
125
|
+
$success-color: map-get($foundation-palette, success) !global;
|
126
|
+
} @else {
|
127
|
+
$success-color: #3adb76 !global;
|
128
|
+
}
|
129
|
+
@if map-has-key($foundation-palette, warning) {
|
130
|
+
$warning-color: map-get($foundation-palette, warning) !global;
|
131
|
+
} @else {
|
132
|
+
$warning-color: #ffae00 !global;
|
133
|
+
}
|
134
|
+
@if map-has-key($foundation-palette, alert) {
|
135
|
+
$alert-color: map-get($foundation-palette, alert) !global;
|
136
|
+
} @else {
|
137
|
+
$alert-color: #cc4b37 !global;
|
138
|
+
}
|
139
|
+
}
|