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,127 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group close-button
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default position of the close button. The first value should be `right` or `left`, and the second value should be `top` or `bottom`.
|
10
|
+
/// @type List
|
11
|
+
$closebutton-position: right top !default;
|
12
|
+
|
13
|
+
/// Default z-index for a close button.
|
14
|
+
/// @type Number
|
15
|
+
$closebutton-z-index: 10 !default;
|
16
|
+
|
17
|
+
/// Button size to use as default
|
18
|
+
/// @type String
|
19
|
+
/// @see $closebutton-size
|
20
|
+
/// @see $closebutton-offset-horizontal
|
21
|
+
/// @see $closebutton-offset-vertical
|
22
|
+
$closebutton-default-size: medium !default;
|
23
|
+
|
24
|
+
/// Right (or left) offset(s) for a close button.
|
25
|
+
/// @type Number|Map
|
26
|
+
$closebutton-offset-horizontal: (
|
27
|
+
small: 0.66rem,
|
28
|
+
medium: 1rem,
|
29
|
+
) !default;
|
30
|
+
|
31
|
+
/// Top (or bottom) offset(s) for a close button.
|
32
|
+
/// @type Number|Map
|
33
|
+
$closebutton-offset-vertical: (
|
34
|
+
small: 0.33em,
|
35
|
+
medium: 0.5rem,
|
36
|
+
) !default;
|
37
|
+
|
38
|
+
/// Size(s) of the close button. Used to generate sizing modifiers.
|
39
|
+
/// @type Number|Map
|
40
|
+
$closebutton-size: (
|
41
|
+
small: 1.5em,
|
42
|
+
medium: 2em,
|
43
|
+
) !default;
|
44
|
+
|
45
|
+
/// The line-height of the close button. It affects the spacing of the element.
|
46
|
+
/// @type Number
|
47
|
+
$closebutton-lineheight: 1 !default;
|
48
|
+
|
49
|
+
/// Default color of the close button.
|
50
|
+
/// @type Color
|
51
|
+
$closebutton-color: $dark-gray !default;
|
52
|
+
|
53
|
+
/// Default color of the close button when being hovered on.
|
54
|
+
/// @type Color
|
55
|
+
$closebutton-color-hover: $black !default;
|
56
|
+
|
57
|
+
|
58
|
+
/// Get the size and position for a close button. If the input value is a number, the number is returned. If the input value is a config map and the map has the key `$size`, the value is returned.
|
59
|
+
///
|
60
|
+
/// @param {Number|Map} $value - A number or map that represents the size or position value(s) of the close button.
|
61
|
+
/// @param {Keyword} $size - The size of the close button to use.
|
62
|
+
///
|
63
|
+
/// @return {Number} The given number or the value found in the map.
|
64
|
+
@function -zf-get-size-val($value, $size) {
|
65
|
+
// Check if the value is a number
|
66
|
+
@if type-of($value) == 'number' {
|
67
|
+
// If it is, just return the number
|
68
|
+
@return $value;
|
69
|
+
}
|
70
|
+
|
71
|
+
// Check if the size name exists in the value map
|
72
|
+
@else if map-has-key($value, $size) {
|
73
|
+
// If it does, return the value
|
74
|
+
@return map-get($value, $size);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
/// Sets the size and position of a close button.
|
79
|
+
/// @param {Keyword} $size [medium] - The size to use. Set to `small` to create a small close button. The 'medium' values defined in `$closebutton-*` variables will be used as the default size and position of the close button.
|
80
|
+
@mixin close-button-size($size) {
|
81
|
+
$x: nth($closebutton-position, 1);
|
82
|
+
$y: nth($closebutton-position, 2);
|
83
|
+
|
84
|
+
#{$x}: -zf-get-size-val($closebutton-offset-horizontal, $size);
|
85
|
+
#{$y}: -zf-get-size-val($closebutton-offset-vertical, $size);
|
86
|
+
font-size: -zf-get-size-val($closebutton-size, $size);
|
87
|
+
line-height: -zf-get-size-val($closebutton-lineheight, $size);
|
88
|
+
}
|
89
|
+
|
90
|
+
/// Adds styles for a close button, using the styles in the settings variables.
|
91
|
+
@mixin close-button {
|
92
|
+
$x: nth($closebutton-position, 1);
|
93
|
+
$y: nth($closebutton-position, 2);
|
94
|
+
|
95
|
+
@include disable-mouse-outline;
|
96
|
+
position: absolute;
|
97
|
+
z-index: $closebutton-z-index;
|
98
|
+
color: $closebutton-color;
|
99
|
+
cursor: pointer;
|
100
|
+
|
101
|
+
&:hover,
|
102
|
+
&:focus {
|
103
|
+
color: $closebutton-color-hover;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
@mixin foundation-close-button {
|
108
|
+
.close-button {
|
109
|
+
@include close-button;
|
110
|
+
|
111
|
+
// Generate a placeholder and a class for each size
|
112
|
+
@each $name, $size in $closebutton-size {
|
113
|
+
@at-root {
|
114
|
+
%zf-close-button--#{$name} {
|
115
|
+
@include close-button-size($name);
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
&.#{$name} {
|
120
|
+
@extend %zf-close-button--#{$name};
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
// Use by default the placeholder of the default size
|
125
|
+
@extend %zf-close-button--#{$closebutton-default-size};
|
126
|
+
}
|
127
|
+
}
|
@@ -0,0 +1,140 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group drilldown
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Transition property to use for animating menus.
|
10
|
+
/// @type Transition
|
11
|
+
$drilldown-transition: transform 0.15s linear !default;
|
12
|
+
|
13
|
+
/// Adds arrows to drilldown items with submenus, as well as the back button.
|
14
|
+
/// @type Boolean
|
15
|
+
$drilldown-arrows: true !default;
|
16
|
+
|
17
|
+
/// Sets drilldown menu item padding.
|
18
|
+
/// @type Number
|
19
|
+
$drilldown-padding: $global-menu-padding !default;
|
20
|
+
|
21
|
+
/// Sets drilldown menu nested margin
|
22
|
+
/// @type Number
|
23
|
+
$drilldown-nested-margin: 0 !default;
|
24
|
+
|
25
|
+
/// Background color for drilldown top level items.
|
26
|
+
/// @type Color
|
27
|
+
$drilldown-background: $white !default;
|
28
|
+
|
29
|
+
/// Sets drilldown menu item padding in the submenu.
|
30
|
+
/// @type Number
|
31
|
+
$drilldown-submenu-padding: $drilldown-padding !default;
|
32
|
+
|
33
|
+
/// Background color for drilldown submenus.
|
34
|
+
/// @type Color
|
35
|
+
$drilldown-submenu-background: $white !default;
|
36
|
+
|
37
|
+
/// Sets drilldown arrow color if arrow is used.
|
38
|
+
/// @type Color
|
39
|
+
$drilldown-arrow-color: $primary-color !default;
|
40
|
+
|
41
|
+
/// Sets drilldown arrow size if arrow is used.
|
42
|
+
/// @type Length
|
43
|
+
$drilldown-arrow-size: 6px !default;
|
44
|
+
|
45
|
+
@mixin zf-drilldown-left-right-arrows {
|
46
|
+
.is-drilldown-submenu-parent > a {
|
47
|
+
position: relative;
|
48
|
+
|
49
|
+
&::after {
|
50
|
+
@include css-triangle($drilldown-arrow-size, $drilldown-arrow-color, $global-right);
|
51
|
+
position: absolute;
|
52
|
+
top: 50%;
|
53
|
+
margin-top: -1 * $drilldown-arrow-size;
|
54
|
+
#{$global-right}: 1rem;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
&.align-left .is-drilldown-submenu-parent > a::after {
|
59
|
+
@include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, right);
|
60
|
+
right: 1rem;
|
61
|
+
left: auto;
|
62
|
+
}
|
63
|
+
|
64
|
+
&.align-right .is-drilldown-submenu-parent > a::after {
|
65
|
+
@include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, left);
|
66
|
+
right: auto;
|
67
|
+
left: 1rem;
|
68
|
+
}
|
69
|
+
|
70
|
+
}
|
71
|
+
|
72
|
+
@mixin foundation-drilldown-menu {
|
73
|
+
// Applied to the Menu container
|
74
|
+
.is-drilldown {
|
75
|
+
position: relative;
|
76
|
+
overflow: hidden;
|
77
|
+
|
78
|
+
li {
|
79
|
+
display: block;
|
80
|
+
}
|
81
|
+
|
82
|
+
&.animate-height {
|
83
|
+
transition: height 0.5s;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
// The top level <ul>
|
88
|
+
.drilldown {
|
89
|
+
a {
|
90
|
+
padding: $drilldown-padding;
|
91
|
+
background: $drilldown-background;
|
92
|
+
}
|
93
|
+
|
94
|
+
// Applied to submenu <ul>s
|
95
|
+
.is-drilldown-submenu {
|
96
|
+
position: absolute;
|
97
|
+
top: 0;
|
98
|
+
#{$global-left}: 100%;
|
99
|
+
z-index: -1;
|
100
|
+
|
101
|
+
width: 100%;
|
102
|
+
background: $drilldown-submenu-background;
|
103
|
+
transition: $drilldown-transition;
|
104
|
+
|
105
|
+
&.is-active {
|
106
|
+
z-index: 1;
|
107
|
+
display: block;
|
108
|
+
transform: translateX(if($global-text-direction == ltr, -100%, 100%));
|
109
|
+
}
|
110
|
+
|
111
|
+
&.is-closing {
|
112
|
+
transform: translateX(if($global-text-direction == ltr, 100%, -100%));
|
113
|
+
}
|
114
|
+
|
115
|
+
// Submenu item padding
|
116
|
+
a {
|
117
|
+
padding: $drilldown-submenu-padding;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.nested.is-drilldown-submenu {
|
122
|
+
@include menu-nested($drilldown-nested-margin);
|
123
|
+
}
|
124
|
+
|
125
|
+
.drilldown-submenu-cover-previous {
|
126
|
+
min-height: 100%;
|
127
|
+
}
|
128
|
+
|
129
|
+
@if $drilldown-arrows {
|
130
|
+
@include zf-drilldown-left-right-arrows;
|
131
|
+
|
132
|
+
.js-drilldown-back > a::before {
|
133
|
+
@include css-triangle($drilldown-arrow-size, $drilldown-arrow-color, $global-left);
|
134
|
+
display: inline-block;
|
135
|
+
vertical-align: middle;
|
136
|
+
margin-#{$global-right}: 0.75rem; // Creates space between the arrow and the text
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
@@ -0,0 +1,279 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group dropdown-menu
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Enables arrows for items with dropdown menus.
|
10
|
+
/// @type Boolean
|
11
|
+
$dropdownmenu-arrows: true !default;
|
12
|
+
|
13
|
+
/// Sets dropdown menu arrow color if arrow is used.
|
14
|
+
/// @type Color
|
15
|
+
$dropdownmenu-arrow-color: $anchor-color !default;
|
16
|
+
|
17
|
+
/// Sets dropdown menu arrow size if arrow is used.
|
18
|
+
/// @type Length
|
19
|
+
$dropdownmenu-arrow-size: 6px !default;
|
20
|
+
|
21
|
+
/// Sets dropdown menu arrow padding for aligning the arrow correctly.
|
22
|
+
/// @type Length
|
23
|
+
$dropdownmenu-arrow-padding: 1.5rem !default;
|
24
|
+
|
25
|
+
/// Minimum width of dropdown sub-menus.
|
26
|
+
/// @type Length
|
27
|
+
$dropdownmenu-min-width: 200px !default;
|
28
|
+
|
29
|
+
/// Background color for top level items.
|
30
|
+
/// @type Color
|
31
|
+
$dropdownmenu-background: null !default;
|
32
|
+
|
33
|
+
/// Background color for dropdowns.
|
34
|
+
/// @type Color
|
35
|
+
$dropdownmenu-submenu-background: $white !default;
|
36
|
+
|
37
|
+
/// Padding for top level items.
|
38
|
+
/// @type Number
|
39
|
+
$dropdownmenu-padding: $global-menu-padding !default;
|
40
|
+
|
41
|
+
/// Sets dropdown menu nested margin
|
42
|
+
/// @type Number
|
43
|
+
$dropdownmenu-nested-margin: 0 !default;
|
44
|
+
|
45
|
+
/// Padding for sub-menu items.
|
46
|
+
/// @type Number
|
47
|
+
$dropdownmenu-submenu-padding: $dropdownmenu-padding !default;
|
48
|
+
|
49
|
+
/// Border for dropdown sub-menus.
|
50
|
+
/// @type List
|
51
|
+
$dropdownmenu-border: 1px solid $medium-gray !default;
|
52
|
+
|
53
|
+
// Border width for dropdown sub-menus.
|
54
|
+
// Used to adjust top margin of a sub-menu if a border is used.
|
55
|
+
// @type Length
|
56
|
+
$dropdownmenu-border-width: nth($dropdownmenu-border, 1);
|
57
|
+
|
58
|
+
/// Text color of an active dropdown menu item. Explicit override for menu defaults
|
59
|
+
/// @type Color
|
60
|
+
$dropdown-menu-item-color-active: get-color(primary) !default;
|
61
|
+
|
62
|
+
/// Background color of an active dropdown menu item. Explicit override for menu defaults
|
63
|
+
/// @type Color
|
64
|
+
$dropdown-menu-item-background-active: transparent !default;
|
65
|
+
|
66
|
+
@mixin zf-dropdown-left-right-arrows {
|
67
|
+
> a::after {
|
68
|
+
#{$global-right}: 14px;
|
69
|
+
}
|
70
|
+
|
71
|
+
&.opens-left > a::after {
|
72
|
+
@include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, left);
|
73
|
+
right: auto;
|
74
|
+
left: 5px;
|
75
|
+
}
|
76
|
+
|
77
|
+
&.opens-right > a::after {
|
78
|
+
@include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, right);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin dropdown-menu-direction($dir: horizontal) {
|
83
|
+
@if $dir == horizontal {
|
84
|
+
> li.opens-left { // sass-lint:disable-line no-qualifying-elements
|
85
|
+
> .is-dropdown-submenu {
|
86
|
+
top: 100%;
|
87
|
+
right: 0;
|
88
|
+
left: auto;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
> li.opens-right { // sass-lint:disable-line no-qualifying-elements
|
93
|
+
> .is-dropdown-submenu {
|
94
|
+
top: 100%;
|
95
|
+
right: auto;
|
96
|
+
left: 0;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
@if $dropdownmenu-arrows {
|
101
|
+
> li.is-dropdown-submenu-parent > a { // sass-lint:disable-line no-qualifying-elements
|
102
|
+
position: relative;
|
103
|
+
padding-#{$global-right}: $dropdownmenu-arrow-padding;
|
104
|
+
}
|
105
|
+
|
106
|
+
> li.is-dropdown-submenu-parent > a::after { // sass-lint:disable-line no-qualifying-elements
|
107
|
+
@include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, down);
|
108
|
+
#{$global-right}: 5px;
|
109
|
+
#{$global-left}: auto;
|
110
|
+
margin-top: -1 * ($dropdownmenu-arrow-size / 2);
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
@else if $dir == vertical {
|
115
|
+
> li {
|
116
|
+
.is-dropdown-submenu {
|
117
|
+
top: 0;
|
118
|
+
}
|
119
|
+
|
120
|
+
&.opens-left {
|
121
|
+
> .is-dropdown-submenu {
|
122
|
+
top: 0;
|
123
|
+
right: 100%;
|
124
|
+
left: auto;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
&.opens-right {
|
129
|
+
> .is-dropdown-submenu {
|
130
|
+
right: auto;
|
131
|
+
left: 100%;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
@if $dropdownmenu-arrows {
|
136
|
+
@include zf-dropdown-left-right-arrows;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
@else {
|
141
|
+
@warn 'The direction used for dropdown-menu-direction() must be horizontal or vertical.';
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
@mixin foundation-dropdown-menu {
|
146
|
+
.dropdown.menu {
|
147
|
+
@include dropdown-menu-direction(horizontal);
|
148
|
+
|
149
|
+
a {
|
150
|
+
@include disable-mouse-outline;
|
151
|
+
}
|
152
|
+
|
153
|
+
// Top-level item
|
154
|
+
> li > a {
|
155
|
+
background: $dropdownmenu-background;
|
156
|
+
padding: $dropdownmenu-padding;
|
157
|
+
}
|
158
|
+
|
159
|
+
// Top-level item active state
|
160
|
+
> li.is-active > a {
|
161
|
+
background: $dropdown-menu-item-background-active;
|
162
|
+
color: $dropdown-menu-item-color-active;
|
163
|
+
}
|
164
|
+
|
165
|
+
.no-js & ul {
|
166
|
+
display: none;
|
167
|
+
}
|
168
|
+
|
169
|
+
.nested.is-dropdown-submenu {
|
170
|
+
@include menu-nested($dropdownmenu-nested-margin);
|
171
|
+
}
|
172
|
+
|
173
|
+
&.vertical {
|
174
|
+
@include dropdown-menu-direction(vertical);
|
175
|
+
}
|
176
|
+
|
177
|
+
@each $size in $breakpoint-classes {
|
178
|
+
@if $size != $-zf-zero-breakpoint {
|
179
|
+
@include breakpoint($size) {
|
180
|
+
&.#{$size}-horizontal {
|
181
|
+
@include dropdown-menu-direction(horizontal);
|
182
|
+
}
|
183
|
+
|
184
|
+
&.#{$size}-vertical {
|
185
|
+
@include dropdown-menu-direction(vertical);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
&.align-right {
|
192
|
+
.is-dropdown-submenu.first-sub {
|
193
|
+
top: 100%;
|
194
|
+
right: 0;
|
195
|
+
left: auto;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
.is-dropdown-menu.vertical {
|
201
|
+
width: 100px;
|
202
|
+
|
203
|
+
&.align-right {
|
204
|
+
float: right;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
.is-dropdown-submenu-parent {
|
209
|
+
position: relative;
|
210
|
+
|
211
|
+
a::after {
|
212
|
+
position: absolute;
|
213
|
+
top: 50%;
|
214
|
+
#{$global-right}: 5px;
|
215
|
+
#{$global-left}: auto;
|
216
|
+
margin-top: -1 * $dropdownmenu-arrow-size;
|
217
|
+
}
|
218
|
+
|
219
|
+
&.opens-inner > .is-dropdown-submenu {
|
220
|
+
|
221
|
+
top: 100%;
|
222
|
+
@if $global-text-direction == 'rtl' {
|
223
|
+
right: auto;
|
224
|
+
}
|
225
|
+
@else {
|
226
|
+
left: auto;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
&.opens-left > .is-dropdown-submenu {
|
231
|
+
right: 100%;
|
232
|
+
left: auto;
|
233
|
+
}
|
234
|
+
|
235
|
+
&.opens-right > .is-dropdown-submenu {
|
236
|
+
right: auto;
|
237
|
+
left: 100%;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
.is-dropdown-submenu {
|
242
|
+
position: absolute;
|
243
|
+
top: 0;
|
244
|
+
#{$global-left}: 100%;
|
245
|
+
z-index: 1;
|
246
|
+
|
247
|
+
display: none;
|
248
|
+
min-width: $dropdownmenu-min-width;
|
249
|
+
|
250
|
+
border: $dropdownmenu-border;
|
251
|
+
background: $dropdownmenu-submenu-background;
|
252
|
+
|
253
|
+
.dropdown & a {
|
254
|
+
padding: $dropdownmenu-submenu-padding;
|
255
|
+
}
|
256
|
+
|
257
|
+
.is-dropdown-submenu-parent {
|
258
|
+
@if $dropdownmenu-arrows {
|
259
|
+
@include zf-dropdown-left-right-arrows;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
@if (type-of($dropdownmenu-border-width) == 'number') {
|
264
|
+
.is-dropdown-submenu {
|
265
|
+
margin-top: (-$dropdownmenu-border-width);
|
266
|
+
}
|
267
|
+
}
|
268
|
+
|
269
|
+
> li {
|
270
|
+
width: 100%;
|
271
|
+
}
|
272
|
+
|
273
|
+
// [TODO] Cut back specificity
|
274
|
+
//&:not(.js-dropdown-nohover) > .is-dropdown-submenu-parent:hover > &, // why is this line needed? Opening is handled by JS and this causes some ugly flickering when the sub is re-positioned automatically...
|
275
|
+
&.js-dropdown-active {
|
276
|
+
display: block;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group dropdown
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Padding for dropdown panes.
|
10
|
+
/// @type List
|
11
|
+
$dropdown-padding: 1rem !default;
|
12
|
+
|
13
|
+
/// Background for dropdown panes.
|
14
|
+
/// @type Color
|
15
|
+
$dropdown-background: $body-background !default;
|
16
|
+
|
17
|
+
/// Border for dropdown panes.
|
18
|
+
/// @type List
|
19
|
+
$dropdown-border: 1px solid $medium-gray !default;
|
20
|
+
|
21
|
+
/// Font size for dropdown panes.
|
22
|
+
/// @type List
|
23
|
+
$dropdown-font-size: 1rem !default;
|
24
|
+
|
25
|
+
/// Width for dropdown panes.
|
26
|
+
/// @type Number
|
27
|
+
$dropdown-width: 300px !default;
|
28
|
+
|
29
|
+
/// Border radius dropdown panes.
|
30
|
+
/// @type Number
|
31
|
+
$dropdown-radius: $global-radius !default;
|
32
|
+
|
33
|
+
/// Sizes for dropdown panes. Each size is a CSS class you can apply.
|
34
|
+
/// @type Map
|
35
|
+
$dropdown-sizes: (
|
36
|
+
tiny: 100px,
|
37
|
+
small: 200px,
|
38
|
+
large: 400px,
|
39
|
+
) !default;
|
40
|
+
|
41
|
+
/// Applies styles for a basic dropdown.
|
42
|
+
@mixin dropdown-container {
|
43
|
+
position: absolute;
|
44
|
+
z-index: 10;
|
45
|
+
|
46
|
+
display: none;
|
47
|
+
|
48
|
+
width: $dropdown-width;
|
49
|
+
padding: $dropdown-padding;
|
50
|
+
|
51
|
+
visibility: hidden;
|
52
|
+
border: $dropdown-border;
|
53
|
+
border-radius: $dropdown-radius;
|
54
|
+
background-color: $dropdown-background;
|
55
|
+
|
56
|
+
font-size: $dropdown-font-size;
|
57
|
+
|
58
|
+
|
59
|
+
// Allow an intermittent state to do positioning before making visible.
|
60
|
+
&.is-opening {
|
61
|
+
display: block;
|
62
|
+
}
|
63
|
+
|
64
|
+
&.is-open {
|
65
|
+
display: block;
|
66
|
+
visibility: visible;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
@mixin foundation-dropdown {
|
71
|
+
.dropdown-pane {
|
72
|
+
@include dropdown-container;
|
73
|
+
}
|
74
|
+
|
75
|
+
@each $name, $size in $dropdown-sizes {
|
76
|
+
.dropdown-pane {
|
77
|
+
&.#{$name} {
|
78
|
+
width: $size;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import 'responsive-embed';
|