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,428 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group button
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Font family for button elements.
|
10
|
+
/// @type Font
|
11
|
+
$button-font-family: inherit !default;
|
12
|
+
|
13
|
+
/// Font weight for button elements.
|
14
|
+
/// Ignored if null (default)
|
15
|
+
/// @type Font-Weight
|
16
|
+
$button-font-weight: null !default;
|
17
|
+
|
18
|
+
/// Padding inside buttons.
|
19
|
+
/// @type List
|
20
|
+
$button-padding: 0.85em 1em !default;
|
21
|
+
|
22
|
+
/// Margin around buttons.
|
23
|
+
/// @type List
|
24
|
+
$button-margin: 0 0 $global-margin 0 !default;
|
25
|
+
|
26
|
+
/// Default fill for buttons. Can either be `solid` or `hollow`.
|
27
|
+
/// @type Keyword
|
28
|
+
$button-fill: solid !default;
|
29
|
+
|
30
|
+
/// Default background color for buttons.
|
31
|
+
/// @type Color
|
32
|
+
$button-background: $primary-color !default;
|
33
|
+
|
34
|
+
/// Background color on hover for buttons.
|
35
|
+
/// @type Color
|
36
|
+
$button-background-hover: scale-color($button-background, $lightness: -15%) !default;
|
37
|
+
|
38
|
+
/// Font color for buttons.
|
39
|
+
/// @type List
|
40
|
+
$button-color: $white !default;
|
41
|
+
|
42
|
+
/// Alternative font color for buttons.
|
43
|
+
/// @type List
|
44
|
+
$button-color-alt: $black !default;
|
45
|
+
|
46
|
+
/// Border radius for buttons, defaulted to global-radius.
|
47
|
+
/// @type Number
|
48
|
+
$button-radius: $global-radius !default;
|
49
|
+
|
50
|
+
/// Border for buttons, transparent by default
|
51
|
+
/// @type List
|
52
|
+
$button-border: 1px solid transparent !default;
|
53
|
+
|
54
|
+
/// Border width for hollow outline buttons
|
55
|
+
/// @type Number
|
56
|
+
$button-hollow-border-width: 1px !default;
|
57
|
+
|
58
|
+
/// Sizes for buttons.
|
59
|
+
/// @type Map
|
60
|
+
$button-sizes: (
|
61
|
+
tiny: 0.6rem,
|
62
|
+
small: 0.75rem,
|
63
|
+
default: 0.9rem,
|
64
|
+
large: 1.25rem,
|
65
|
+
) !default;
|
66
|
+
|
67
|
+
/// Coloring classes. A map of classes to output in your CSS, like `.secondary`, `.success`, and so on.
|
68
|
+
/// @type Map
|
69
|
+
$button-palette: $foundation-palette !default;
|
70
|
+
|
71
|
+
/// opacity for a disabled button.
|
72
|
+
/// @type List
|
73
|
+
$button-opacity-disabled: 0.25 !default;
|
74
|
+
|
75
|
+
/// Background color lightness on hover for buttons.
|
76
|
+
/// @type Number
|
77
|
+
$button-background-hover-lightness: -20% !default;
|
78
|
+
|
79
|
+
/// Color lightness on hover for hollow buttons.
|
80
|
+
/// @type Number
|
81
|
+
$button-hollow-hover-lightness: -50% !default;
|
82
|
+
|
83
|
+
// Internal: flip from margin-right to margin-left for defaults
|
84
|
+
@if $global-text-direction == 'rtl' {
|
85
|
+
$button-margin: 0 0 $global-margin $global-margin !default;
|
86
|
+
}
|
87
|
+
|
88
|
+
/// transitions for buttons.
|
89
|
+
/// @type List
|
90
|
+
$button-transition: background-color 0.25s ease-out, color 0.25s ease-out !default;
|
91
|
+
|
92
|
+
/// Additional responsive classes for .expanded
|
93
|
+
/// @type Boolean
|
94
|
+
$button-responsive-expanded: false !default;
|
95
|
+
|
96
|
+
// TODO: Document button-base() mixin
|
97
|
+
@mixin button-base {
|
98
|
+
@include disable-mouse-outline;
|
99
|
+
display: inline-block;
|
100
|
+
vertical-align: middle;
|
101
|
+
margin: $button-margin;
|
102
|
+
|
103
|
+
@if (type-of($button-padding) == 'map') {
|
104
|
+
@each $size, $padding in $button-padding {
|
105
|
+
@include breakpoint($size) {
|
106
|
+
padding: $padding;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
@else {
|
111
|
+
padding: $button-padding;
|
112
|
+
}
|
113
|
+
|
114
|
+
border: $button-border;
|
115
|
+
border-radius: $button-radius;
|
116
|
+
transition: $button-transition;
|
117
|
+
font-family: $button-font-family;
|
118
|
+
font-size: map-get($button-sizes, default);
|
119
|
+
font-weight: $button-font-weight;
|
120
|
+
-webkit-appearance: none; // sass-lint:disable-line no-vendor-prefixes
|
121
|
+
line-height: 1;
|
122
|
+
text-align: center;
|
123
|
+
cursor: pointer;
|
124
|
+
}
|
125
|
+
|
126
|
+
/// Expands a button to make it full-width.
|
127
|
+
/// @param {Boolean} $expand [true] - Set to `true` to enable the expand behavior. Set to `false` to reverse this behavior.
|
128
|
+
@mixin button-expand($expand: true) {
|
129
|
+
@if $expand {
|
130
|
+
display: block;
|
131
|
+
width: 100%;
|
132
|
+
margin-right: 0;
|
133
|
+
margin-left: 0;
|
134
|
+
}
|
135
|
+
@else {
|
136
|
+
display: inline-block;
|
137
|
+
width: auto;
|
138
|
+
margin: $button-margin;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
/// Sets the base styles of a hollow or clear button filling according to `$fill`.
|
143
|
+
/// See mixin `button-fill-style` for the filling styles.
|
144
|
+
/// @param {Keyword} $fill [$button-fill] - Type of filling between `hollow` and `clear`. `solid` has no effects.
|
145
|
+
@mixin button-fill(
|
146
|
+
$fill: $button-fill
|
147
|
+
) {
|
148
|
+
@if $fill == hollow {
|
149
|
+
@include button-hollow;
|
150
|
+
}
|
151
|
+
@else if $fill == clear {
|
152
|
+
@include button-clear;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
/// Sets the visual styles of a solid/hollow/clear button filling according to `$fill`.
|
157
|
+
/// See mixins `button-style`, `button-hollow-style` and `button-clear-style` for effects of visual styling parameters.
|
158
|
+
/// @param {Keyword} $fill [$button-fill] - Type of filling between `hollow` and `clear`.
|
159
|
+
/// @param {Color} $background [$button-background] - -
|
160
|
+
/// @param {Color} $background-hover [$button-background-hover] - -
|
161
|
+
/// @param {Color} $color [$button-color] - -
|
162
|
+
@mixin button-fill-style(
|
163
|
+
$fill: $button-fill,
|
164
|
+
$background: $button-background,
|
165
|
+
$background-hover: $button-background-hover,
|
166
|
+
$color: $button-color
|
167
|
+
) {
|
168
|
+
@if $fill == solid {
|
169
|
+
@include button-style($background, $background-hover, $color);
|
170
|
+
}
|
171
|
+
@else if $fill == hollow {
|
172
|
+
@include button-hollow-style($background);
|
173
|
+
}
|
174
|
+
@else if $fill == clear {
|
175
|
+
@include button-clear-style($background);
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
/// Sets the visual style of a button.
|
180
|
+
/// @param {Color} $background [$button-background] - Background color of the button.
|
181
|
+
/// @param {Color} $background-hover [$button-background-hover] - Background color of the button on hover. Set to `auto` to have the mixin automatically generate a hover color.
|
182
|
+
/// @param {Color} $color [$button-color] - Text color of the button. Set to `auto` to automatically generate a color based on the background color.
|
183
|
+
@mixin button-style(
|
184
|
+
$background: $button-background,
|
185
|
+
$background-hover: $button-background-hover,
|
186
|
+
$color: $button-color,
|
187
|
+
$background-hover-lightness: $button-background-hover-lightness
|
188
|
+
) {
|
189
|
+
@if $color == auto {
|
190
|
+
$color: color-pick-contrast($background, ($button-color, $button-color-alt));
|
191
|
+
}
|
192
|
+
|
193
|
+
@if $background-hover == auto {
|
194
|
+
$background-hover: scale-color($background, $lightness: $background-hover-lightness);
|
195
|
+
}
|
196
|
+
|
197
|
+
// Default and disabled states
|
198
|
+
&,
|
199
|
+
&.disabled, &[disabled],
|
200
|
+
&.disabled:hover, &[disabled]:hover,
|
201
|
+
&.disabled:focus, &[disabled]:focus {
|
202
|
+
background-color: $background;
|
203
|
+
color: $color;
|
204
|
+
}
|
205
|
+
|
206
|
+
&:hover, &:focus {
|
207
|
+
background-color: $background-hover;
|
208
|
+
color: $color;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
/// Sets the base styles of a hollow button.
|
213
|
+
/// See mixin `button-hollow-style` for the filling styles.
|
214
|
+
@mixin button-hollow {
|
215
|
+
&, &.disabled, &[disabled] {
|
216
|
+
&, &:hover, &:focus {
|
217
|
+
background-color: transparent;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
|
222
|
+
/// Sets the visual style of a hollow button.
|
223
|
+
/// @param {Color} $color [$button-background] - Text and border color of the button.
|
224
|
+
/// @param {Color} $hover-lightness [$button-hollow-hover-lightness] - Color lightness on hover.
|
225
|
+
/// @param {Color} $border-width [$button-hollow-border-width] - Border width of the button.
|
226
|
+
@mixin button-hollow-style(
|
227
|
+
$color: $button-background,
|
228
|
+
$hover-lightness: $button-hollow-hover-lightness,
|
229
|
+
$border-width: $button-hollow-border-width
|
230
|
+
) {
|
231
|
+
$color-hover: scale-color($color, $lightness: $hover-lightness);
|
232
|
+
|
233
|
+
// Default and disabled states
|
234
|
+
&,
|
235
|
+
&.disabled, &[disabled],
|
236
|
+
&.disabled:hover, &[disabled]:hover,
|
237
|
+
&.disabled:focus, &[disabled]:focus {
|
238
|
+
border: $border-width solid $color;
|
239
|
+
color: $color;
|
240
|
+
}
|
241
|
+
|
242
|
+
&:hover, &:focus {
|
243
|
+
border-color: $color-hover;
|
244
|
+
color: $color-hover;
|
245
|
+
}
|
246
|
+
}
|
247
|
+
|
248
|
+
/// Sets the base styles of a clear button.
|
249
|
+
/// See mixin `button-clear-style` for the filling styles.
|
250
|
+
@mixin button-clear {
|
251
|
+
&, &.disabled, &[disabled] {
|
252
|
+
&, &:hover, &:focus {
|
253
|
+
border-color: transparent;
|
254
|
+
background-color: transparent;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
/// Sets the visual style of a clear button.
|
260
|
+
/// @param {Color} $color [$button-background] - Text color of the button.
|
261
|
+
/// @param {Color} $hover-lightness [$button-hollow-hover-lightness] - Color lightness on hover.
|
262
|
+
@mixin button-clear-style(
|
263
|
+
$color: $button-background,
|
264
|
+
$hover-lightness: $button-hollow-hover-lightness
|
265
|
+
) {
|
266
|
+
$color-hover: scale-color($color, $lightness: $hover-lightness);
|
267
|
+
|
268
|
+
// Default and disabled states
|
269
|
+
&,
|
270
|
+
&.disabled, &[disabled],
|
271
|
+
&.disabled:hover, &[disabled]:hover,
|
272
|
+
&.disabled:focus, &[disabled]:focus {
|
273
|
+
color: $color;
|
274
|
+
}
|
275
|
+
|
276
|
+
&:hover, &:focus {
|
277
|
+
color: $color-hover;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
|
281
|
+
/// Adds disabled styles to a button by fading the element and reseting the cursor.
|
282
|
+
/// @param {Number} $opacity [$button-opacity-disabled] - Opacity of the disabled button.
|
283
|
+
@mixin button-disabled(
|
284
|
+
$opacity: $button-opacity-disabled
|
285
|
+
) {
|
286
|
+
opacity: $button-opacity-disabled;
|
287
|
+
cursor: not-allowed;
|
288
|
+
}
|
289
|
+
|
290
|
+
/// Adds a dropdown arrow to a button.
|
291
|
+
/// @param {Number} $size [0.4em] - Size of the arrow. We recommend using an `em` value so the triangle scales when used inside different sizes of buttons.
|
292
|
+
/// @param {Color} $color [white] - Color of the arrow.
|
293
|
+
/// @param {Number} $offset [$button-padding] - Distance between the arrow and the text of the button. Defaults to whatever the right padding of a button is.
|
294
|
+
@mixin button-dropdown(
|
295
|
+
$size: 0.4em,
|
296
|
+
$color: $white,
|
297
|
+
$offset: get-side($button-padding, right)
|
298
|
+
) {
|
299
|
+
&::after {
|
300
|
+
@include css-triangle($size, $color, down);
|
301
|
+
position: relative;
|
302
|
+
top: 0.4em; // Aligns the arrow with the text of the button
|
303
|
+
|
304
|
+
display: inline-block;
|
305
|
+
float: #{$global-right};
|
306
|
+
margin-#{$global-left}: $offset;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
|
310
|
+
/// Adds all styles for a button. For more granular control over styles, use the individual button mixins.
|
311
|
+
/// @param {Boolean} $expand [false] - Set to `true` to make the button full-width.
|
312
|
+
/// @param {Color} $background [$button-background] - Background color of the button.
|
313
|
+
/// @param {Color} $background-hover [$button-background-hover] - Background color of the button on hover. Set to `auto` to have the mixin automatically generate a hover color.
|
314
|
+
/// @param {Color} $color [$button-color] - Text color of the button. Set to `auto` to automatically generate a color based on the background color.
|
315
|
+
/// @param {Keyword} $style [solid] - Set to `hollow` to create a hollow button. The color defined in `$background` will be used as the primary color of the button.
|
316
|
+
@mixin button(
|
317
|
+
$expand: false,
|
318
|
+
$background: $button-background,
|
319
|
+
$background-hover: $button-background-hover,
|
320
|
+
$color: $button-color,
|
321
|
+
$style: $button-fill
|
322
|
+
) {
|
323
|
+
@include button-base;
|
324
|
+
@include button-fill($style);
|
325
|
+
@include button-fill-style($style, $background, $background-hover, $color);
|
326
|
+
|
327
|
+
@if $expand {
|
328
|
+
@include button-expand;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
@mixin foundation-button {
|
333
|
+
.button {
|
334
|
+
@include button($style: none);
|
335
|
+
|
336
|
+
// Sizes
|
337
|
+
@each $size, $value in map-remove($button-sizes, default) {
|
338
|
+
&.#{$size} {
|
339
|
+
font-size: $value;
|
340
|
+
}
|
341
|
+
}
|
342
|
+
|
343
|
+
&.expanded { @include button-expand; }
|
344
|
+
|
345
|
+
@if $button-responsive-expanded {
|
346
|
+
@each $size in $breakpoint-classes {
|
347
|
+
@include breakpoint(#{$size} only) {
|
348
|
+
&.#{$size}-only-expanded {
|
349
|
+
@include button-expand;
|
350
|
+
}
|
351
|
+
}
|
352
|
+
@if $size != $-zf-zero-breakpoint {
|
353
|
+
@include breakpoint(#{$size} down) {
|
354
|
+
&.#{$size}-down-expanded {
|
355
|
+
@include button-expand;
|
356
|
+
}
|
357
|
+
}
|
358
|
+
|
359
|
+
@include breakpoint(#{$size}) {
|
360
|
+
&.#{$size}-expanded {
|
361
|
+
@include button-expand;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
}
|
365
|
+
}
|
366
|
+
}
|
367
|
+
|
368
|
+
// Solid, hollow & clear styles
|
369
|
+
@each $filling in (solid hollow clear) {
|
370
|
+
$selector: if($button-fill == $filling, null, '.#{$filling}');
|
371
|
+
|
372
|
+
&#{$selector} {
|
373
|
+
@include button-fill($filling);
|
374
|
+
@include button-fill-style($filling);
|
375
|
+
|
376
|
+
@each $name, $color in $button-palette {
|
377
|
+
&.#{$name} {
|
378
|
+
@include button-fill-style($filling, $color, auto, auto);
|
379
|
+
}
|
380
|
+
}
|
381
|
+
}
|
382
|
+
}
|
383
|
+
|
384
|
+
// Disabled state
|
385
|
+
&.disabled, &[disabled] {
|
386
|
+
@include button-disabled;
|
387
|
+
}
|
388
|
+
|
389
|
+
// Dropdown arrow
|
390
|
+
&.dropdown {
|
391
|
+
@include button-dropdown;
|
392
|
+
|
393
|
+
@if $button-fill == hollow {
|
394
|
+
&::after {
|
395
|
+
border-top-color: $button-background;
|
396
|
+
}
|
397
|
+
}
|
398
|
+
|
399
|
+
&.hollow, &.clear {
|
400
|
+
&::after {
|
401
|
+
border-top-color: $button-background;
|
402
|
+
}
|
403
|
+
|
404
|
+
@each $name, $color in $button-palette {
|
405
|
+
&.#{$name} {
|
406
|
+
&::after {
|
407
|
+
border-top-color: $color;
|
408
|
+
}
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}
|
412
|
+
}
|
413
|
+
|
414
|
+
// Button with dropdown arrow only
|
415
|
+
&.arrow-only::after {
|
416
|
+
top: -0.1em;
|
417
|
+
float: none;
|
418
|
+
margin-#{$global-left}: 0;
|
419
|
+
}
|
420
|
+
}
|
421
|
+
|
422
|
+
a.button { // sass-lint:disable-line no-qualifying-elements
|
423
|
+
&:hover,
|
424
|
+
&:focus {
|
425
|
+
text-decoration: none;
|
426
|
+
}
|
427
|
+
}
|
428
|
+
}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group callout
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default background color.
|
10
|
+
/// @type Color
|
11
|
+
$callout-background: $white !default;
|
12
|
+
|
13
|
+
/// Default fade value for callout backgrounds.
|
14
|
+
/// @type Number
|
15
|
+
$callout-background-fade: 85% !default;
|
16
|
+
|
17
|
+
/// Default border style for callouts.
|
18
|
+
/// @type List
|
19
|
+
$callout-border: 1px solid rgba($black, 0.25) !default;
|
20
|
+
|
21
|
+
/// Default bottom margin for callouts.
|
22
|
+
/// @type Number
|
23
|
+
$callout-margin: 0 0 1rem 0 !default;
|
24
|
+
|
25
|
+
/// Sizes for Callout paddings.
|
26
|
+
/// @type Map
|
27
|
+
$callout-sizes: (
|
28
|
+
small: 0.5rem,
|
29
|
+
default: 1rem,
|
30
|
+
large: 3rem,
|
31
|
+
) !default;
|
32
|
+
|
33
|
+
/// Default font color for callouts.
|
34
|
+
/// @type Color
|
35
|
+
$callout-font-color: $body-font-color !default;
|
36
|
+
|
37
|
+
/// Default font color for callouts, if the callout has a dark background.
|
38
|
+
/// @type Color
|
39
|
+
$callout-font-color-alt: $body-background !default;
|
40
|
+
|
41
|
+
/// Default border radius for callouts.
|
42
|
+
/// @type Color
|
43
|
+
$callout-radius: $global-radius !default;
|
44
|
+
|
45
|
+
/// Amount to tint links used within colored panels. Set to `false` to disable this feature.
|
46
|
+
/// @type Number | Boolean
|
47
|
+
$callout-link-tint: 30% !default;
|
48
|
+
|
49
|
+
/// Adds basic styles for a callout, including padding and margin.
|
50
|
+
@mixin callout-base() {
|
51
|
+
position: relative;
|
52
|
+
margin: $callout-margin;
|
53
|
+
padding: map-get($callout-sizes, default);
|
54
|
+
|
55
|
+
border: $callout-border;
|
56
|
+
border-radius: $callout-radius;
|
57
|
+
|
58
|
+
// Respect the padding, fool.
|
59
|
+
> :first-child {
|
60
|
+
margin-top: 0;
|
61
|
+
}
|
62
|
+
|
63
|
+
> :last-child {
|
64
|
+
margin-bottom: 0;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
/// Generate quick styles for a callout using a single color as a baseline.
|
69
|
+
/// @param {Color} $color [$callout-background] - Color to use.
|
70
|
+
@mixin callout-style($color: $callout-background) {
|
71
|
+
$background: scale-color($color, $lightness: $callout-background-fade);
|
72
|
+
|
73
|
+
background-color: $background;
|
74
|
+
color: color-pick-contrast($background, ($callout-font-color, $callout-font-color-alt));
|
75
|
+
}
|
76
|
+
|
77
|
+
@mixin callout-size($padding) {
|
78
|
+
padding-top: $padding;
|
79
|
+
padding-right: $padding;
|
80
|
+
padding-bottom: $padding;
|
81
|
+
padding-left: $padding;
|
82
|
+
}
|
83
|
+
|
84
|
+
|
85
|
+
/// Adds styles for a callout.
|
86
|
+
/// @param {Color} $color [$callout-background] - Color to use.
|
87
|
+
@mixin callout($color: $callout-background) {
|
88
|
+
@include callout-base;
|
89
|
+
@include callout-style($color);
|
90
|
+
}
|
91
|
+
|
92
|
+
@mixin foundation-callout {
|
93
|
+
.callout {
|
94
|
+
@include callout;
|
95
|
+
|
96
|
+
@each $name, $color in $foundation-palette {
|
97
|
+
&.#{$name} {
|
98
|
+
@include callout-style($color);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
@each $size, $padding in map-remove($callout-sizes, default) {
|
103
|
+
&.#{$size} {
|
104
|
+
@include callout-size($padding);
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group card
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default background color.
|
10
|
+
/// @type Color
|
11
|
+
$card-background: $white !default;
|
12
|
+
|
13
|
+
/// Default font color for cards.
|
14
|
+
/// @type Color
|
15
|
+
$card-font-color: $body-font-color !default;
|
16
|
+
|
17
|
+
/// Default background.
|
18
|
+
/// @type Color
|
19
|
+
$card-divider-background: $light-gray !default;
|
20
|
+
|
21
|
+
/// Default border style.
|
22
|
+
/// @type List
|
23
|
+
$card-border: 1px solid $light-gray !default;
|
24
|
+
|
25
|
+
/// Default card shadow.
|
26
|
+
/// @type List
|
27
|
+
$card-shadow: none !default;
|
28
|
+
|
29
|
+
/// Default border radius.
|
30
|
+
/// @type List
|
31
|
+
$card-border-radius: $global-radius !default;
|
32
|
+
|
33
|
+
/// Default padding.
|
34
|
+
/// @type Number
|
35
|
+
$card-padding: $global-padding !default;
|
36
|
+
|
37
|
+
/// Default bottom margin.
|
38
|
+
/// @type number
|
39
|
+
$card-margin-bottom: $global-margin !default;
|
40
|
+
|
41
|
+
/// Adds styles for a card container.
|
42
|
+
/// @param {Color} $background - Background color of the card.
|
43
|
+
/// @param {Color} $color - font color of the card.
|
44
|
+
/// @param {Number} $margin - Bottom margin of the card.
|
45
|
+
/// @param {List} $border - Border around the card.
|
46
|
+
/// @param {List} $radius - border radius of the card.
|
47
|
+
/// @param {List} $shadow - box shadow of the card.
|
48
|
+
@mixin card-container(
|
49
|
+
$background: $card-background,
|
50
|
+
$color: $card-font-color,
|
51
|
+
$margin: $card-margin-bottom,
|
52
|
+
$border: $card-border,
|
53
|
+
$radius: $card-border-radius,
|
54
|
+
$shadow: $card-shadow
|
55
|
+
) {
|
56
|
+
@if $global-flexbox {
|
57
|
+
display: flex;
|
58
|
+
flex-direction: column;
|
59
|
+
flex-grow: 1;
|
60
|
+
}
|
61
|
+
|
62
|
+
margin-bottom: $margin;
|
63
|
+
|
64
|
+
border: $border;
|
65
|
+
border-radius: $radius;
|
66
|
+
|
67
|
+
background: $background;
|
68
|
+
box-shadow: $shadow;
|
69
|
+
|
70
|
+
overflow: hidden;
|
71
|
+
color: $color;
|
72
|
+
|
73
|
+
& > :last-child {
|
74
|
+
margin-bottom: 0;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
/// Adds styles for a card divider.
|
79
|
+
@mixin card-divider(
|
80
|
+
$background: $card-divider-background,
|
81
|
+
$padding: $card-padding
|
82
|
+
) {
|
83
|
+
@if $global-flexbox {
|
84
|
+
display: flex;
|
85
|
+
flex: 0 1 auto;
|
86
|
+
}
|
87
|
+
|
88
|
+
padding: $padding;
|
89
|
+
background: $background;
|
90
|
+
|
91
|
+
& > :last-child {
|
92
|
+
margin-bottom: 0;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
/// Adds styles for a card section.
|
97
|
+
@mixin card-section(
|
98
|
+
$padding: $card-padding
|
99
|
+
) {
|
100
|
+
@if $global-flexbox {
|
101
|
+
flex: 1 0 auto;
|
102
|
+
}
|
103
|
+
|
104
|
+
padding: $padding;
|
105
|
+
|
106
|
+
& > :last-child {
|
107
|
+
margin-bottom: 0;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
@mixin foundation-card {
|
112
|
+
.card {
|
113
|
+
@include card-container;
|
114
|
+
}
|
115
|
+
|
116
|
+
.card-divider {
|
117
|
+
@include card-divider;
|
118
|
+
}
|
119
|
+
|
120
|
+
.card-section {
|
121
|
+
@include card-section;
|
122
|
+
}
|
123
|
+
|
124
|
+
// For IE 11 - Flexbug
|
125
|
+
// https://github.com/philipwalton/flexbugs/issues/75
|
126
|
+
.card-image {
|
127
|
+
min-height: 1px;
|
128
|
+
}
|
129
|
+
}
|