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,193 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group tabs
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default margin of the tab bar.
|
10
|
+
/// @type Number
|
11
|
+
$tab-margin: 0 !default;
|
12
|
+
|
13
|
+
/// Default background color of a tab bar.
|
14
|
+
/// @type Color
|
15
|
+
$tab-background: $white !default;
|
16
|
+
|
17
|
+
/// Font color of tab item.
|
18
|
+
/// @type Color
|
19
|
+
$tab-color: $primary-color !default;
|
20
|
+
|
21
|
+
/// Active background color of a tab bar.
|
22
|
+
/// @type Color
|
23
|
+
$tab-background-active: $light-gray !default;
|
24
|
+
|
25
|
+
/// Active font color of tab item.
|
26
|
+
/// @type Color
|
27
|
+
$tab-active-color: $primary-color !default;
|
28
|
+
|
29
|
+
/// Font size of tab items.
|
30
|
+
/// @type Number
|
31
|
+
$tab-item-font-size: rem-calc(12) !default;
|
32
|
+
|
33
|
+
/// Default background color on hover for items in a Menu.
|
34
|
+
$tab-item-background-hover: $white !default;
|
35
|
+
|
36
|
+
/// Default padding of a tab item.
|
37
|
+
/// @type Number
|
38
|
+
$tab-item-padding: 1.25rem 1.5rem !default;
|
39
|
+
|
40
|
+
/// Default background color of tab content.
|
41
|
+
/// @type Color
|
42
|
+
$tab-content-background: $white !default;
|
43
|
+
|
44
|
+
/// Default border color of tab content.
|
45
|
+
/// @type Color
|
46
|
+
$tab-content-border: $light-gray !default;
|
47
|
+
|
48
|
+
/// Default text color of tab content.
|
49
|
+
/// @type Color
|
50
|
+
$tab-content-color: $body-font-color !default;
|
51
|
+
|
52
|
+
/// Default padding for tab content.
|
53
|
+
/// @type Number | List
|
54
|
+
$tab-content-padding: 1rem !default;
|
55
|
+
|
56
|
+
/// Adds styles for a tab container. Apply this to a `<ul>`.
|
57
|
+
@mixin tabs-container (
|
58
|
+
$margin: $tab-margin,
|
59
|
+
$background: $tab-background,
|
60
|
+
$border-color: $tab-content-border
|
61
|
+
) {
|
62
|
+
@include clearfix;
|
63
|
+
margin: $margin;
|
64
|
+
border: 1px solid $border-color;
|
65
|
+
background: $background;
|
66
|
+
list-style-type: none;
|
67
|
+
}
|
68
|
+
|
69
|
+
/// Augments a tab container to have vertical tabs. Use this in conjunction with `tabs-container()`.
|
70
|
+
@mixin tabs-container-vertical {
|
71
|
+
> li {
|
72
|
+
display: block;
|
73
|
+
float: none;
|
74
|
+
width: auto;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
/// Adds styles for the links within a tab container. Apply this to the `<li>` elements inside a tab container.
|
79
|
+
@mixin tabs-title (
|
80
|
+
$padding: $tab-item-padding,
|
81
|
+
$font-size: $tab-item-font-size,
|
82
|
+
$color: $tab-color,
|
83
|
+
$color-active: $tab-active-color,
|
84
|
+
$background-hover: $tab-item-background-hover,
|
85
|
+
$background-active: $tab-background-active
|
86
|
+
) {
|
87
|
+
float: #{$global-left};
|
88
|
+
|
89
|
+
> a {
|
90
|
+
@include disable-mouse-outline;
|
91
|
+
display: block;
|
92
|
+
padding: $padding;
|
93
|
+
font-size: $font-size;
|
94
|
+
line-height: 1;
|
95
|
+
color: $color;
|
96
|
+
|
97
|
+
&:hover {
|
98
|
+
background: $background-hover;
|
99
|
+
color: scale-color($color, $lightness: -14%);
|
100
|
+
}
|
101
|
+
|
102
|
+
&:focus,
|
103
|
+
&[aria-selected='true'] {
|
104
|
+
background: $background-active;
|
105
|
+
color: $color-active;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
/// Adds styles for the wrapper that surrounds a tab group's content panes.
|
111
|
+
@mixin tabs-content (
|
112
|
+
$background: $tab-content-background,
|
113
|
+
$color: $tab-content-color,
|
114
|
+
$border-color: $tab-content-border
|
115
|
+
) {
|
116
|
+
border: 1px solid $border-color;
|
117
|
+
border-top: 0;
|
118
|
+
background: $background;
|
119
|
+
color: $color;
|
120
|
+
transition: all 0.5s ease;
|
121
|
+
}
|
122
|
+
|
123
|
+
/// Augments a tab content container to have a vertical style, by shifting the border around. Use this in conjunction with `tabs-content()`.
|
124
|
+
@mixin tabs-content-vertical (
|
125
|
+
$border-color: $tab-content-border
|
126
|
+
) {
|
127
|
+
border: 1px solid $border-color;
|
128
|
+
border-#{$global-left}: 0;
|
129
|
+
}
|
130
|
+
|
131
|
+
/// Adds styles for an individual tab content panel within the tab content container.
|
132
|
+
@mixin tabs-panel (
|
133
|
+
$padding: $tab-content-padding
|
134
|
+
) {
|
135
|
+
display: none;
|
136
|
+
padding: $padding;
|
137
|
+
|
138
|
+
&.is-active {
|
139
|
+
display: block;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
@mixin foundation-tabs {
|
144
|
+
.tabs {
|
145
|
+
@include tabs-container;
|
146
|
+
}
|
147
|
+
|
148
|
+
// Vertical
|
149
|
+
.tabs.vertical {
|
150
|
+
@include tabs-container-vertical;
|
151
|
+
}
|
152
|
+
|
153
|
+
// Simple
|
154
|
+
.tabs.simple {
|
155
|
+
> li > a {
|
156
|
+
padding: 0;
|
157
|
+
|
158
|
+
&:hover {
|
159
|
+
background: transparent;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
// Primary color
|
165
|
+
.tabs.primary {
|
166
|
+
background: $primary-color;
|
167
|
+
|
168
|
+
> li > a {
|
169
|
+
color: color-pick-contrast($primary-color);
|
170
|
+
|
171
|
+
&:hover,
|
172
|
+
&:focus {
|
173
|
+
background: smart-scale($primary-color);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
.tabs-title {
|
179
|
+
@include tabs-title;
|
180
|
+
}
|
181
|
+
|
182
|
+
.tabs-content {
|
183
|
+
@include tabs-content;
|
184
|
+
}
|
185
|
+
|
186
|
+
.tabs-content.vertical {
|
187
|
+
@include tabs-content-vertical;
|
188
|
+
}
|
189
|
+
|
190
|
+
.tabs-panel {
|
191
|
+
@include tabs-panel;
|
192
|
+
}
|
193
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group thumbnail
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Border around thumbnail images.
|
10
|
+
/// @type Border
|
11
|
+
$thumbnail-border: 4px solid $white !default;
|
12
|
+
|
13
|
+
/// Bottom margin for thumbnail images.
|
14
|
+
/// @type Length
|
15
|
+
$thumbnail-margin-bottom: $global-margin !default;
|
16
|
+
|
17
|
+
/// Box shadow under thumbnail images.
|
18
|
+
/// @type Shadow
|
19
|
+
$thumbnail-shadow: 0 0 0 1px rgba($black, 0.2) !default;
|
20
|
+
|
21
|
+
/// Box shadow under thumbnail images.
|
22
|
+
/// @type Shadow
|
23
|
+
$thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5) !default;
|
24
|
+
|
25
|
+
/// Transition proprties for thumbnail images.
|
26
|
+
/// @type Transition
|
27
|
+
$thumbnail-transition: box-shadow 200ms ease-out !default;
|
28
|
+
|
29
|
+
/// Default radius for thumbnail images.
|
30
|
+
/// @type Number
|
31
|
+
$thumbnail-radius: $global-radius !default;
|
32
|
+
|
33
|
+
/// Adds thumbnail styles to an element.
|
34
|
+
@mixin thumbnail {
|
35
|
+
display: inline-block;
|
36
|
+
max-width: 100%;
|
37
|
+
margin-bottom: $thumbnail-margin-bottom;
|
38
|
+
|
39
|
+
border: $thumbnail-border;
|
40
|
+
border-radius: $thumbnail-radius;
|
41
|
+
box-shadow: $thumbnail-shadow;
|
42
|
+
|
43
|
+
line-height: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
@mixin thumbnail-link {
|
47
|
+
transition: $thumbnail-transition;
|
48
|
+
|
49
|
+
&:hover,
|
50
|
+
&:focus {
|
51
|
+
box-shadow: $thumbnail-shadow-hover;
|
52
|
+
}
|
53
|
+
|
54
|
+
image {
|
55
|
+
box-shadow: none;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
@mixin foundation-thumbnail {
|
60
|
+
.thumbnail {
|
61
|
+
@include thumbnail;
|
62
|
+
}
|
63
|
+
|
64
|
+
a.thumbnail {
|
65
|
+
@include thumbnail-link;
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group title-bar
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Background color of a title bar.
|
10
|
+
/// @type Color
|
11
|
+
$titlebar-background: $black !default;
|
12
|
+
|
13
|
+
/// Color of text inside a title bar.
|
14
|
+
/// @type Color
|
15
|
+
$titlebar-color: $white !default;
|
16
|
+
|
17
|
+
/// Padding inside a title bar.
|
18
|
+
/// @type Length
|
19
|
+
$titlebar-padding: 0.5rem !default;
|
20
|
+
|
21
|
+
/// Font weight of text inside a title bar.
|
22
|
+
/// @type Weight
|
23
|
+
$titlebar-text-font-weight: bold !default;
|
24
|
+
|
25
|
+
/// Color of menu icons inside a title bar.
|
26
|
+
/// @type Color
|
27
|
+
$titlebar-icon-color: $white !default;
|
28
|
+
|
29
|
+
/// Color of menu icons inside a title bar on hover.
|
30
|
+
/// @type Color
|
31
|
+
$titlebar-icon-color-hover: $medium-gray !default;
|
32
|
+
|
33
|
+
/// Spacing between the menu icon and text inside a title bar.
|
34
|
+
/// @type Length
|
35
|
+
$titlebar-icon-spacing: 0.25rem !default;
|
36
|
+
|
37
|
+
@mixin foundation-title-bar {
|
38
|
+
.title-bar {
|
39
|
+
padding: $titlebar-padding;
|
40
|
+
background: $titlebar-background;
|
41
|
+
color: $titlebar-color;
|
42
|
+
|
43
|
+
@if $global-flexbox {
|
44
|
+
display: flex;
|
45
|
+
justify-content: flex-start;
|
46
|
+
align-items: center;
|
47
|
+
}
|
48
|
+
@else {
|
49
|
+
@include clearfix;
|
50
|
+
}
|
51
|
+
|
52
|
+
.menu-icon {
|
53
|
+
margin-#{$global-left}: $titlebar-icon-spacing;
|
54
|
+
margin-#{$global-right}: $titlebar-icon-spacing;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
@if $global-flexbox {
|
59
|
+
.title-bar-left,
|
60
|
+
.title-bar-right {
|
61
|
+
flex: 1 1 0px; // sass-lint:disable-line zero-unit
|
62
|
+
}
|
63
|
+
|
64
|
+
.title-bar-right {
|
65
|
+
text-align: right;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
@else {
|
69
|
+
.title-bar-left {
|
70
|
+
float: left;
|
71
|
+
}
|
72
|
+
|
73
|
+
.title-bar-right {
|
74
|
+
float: right;
|
75
|
+
text-align: right;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
.title-bar-title {
|
80
|
+
display: inline-block;
|
81
|
+
vertical-align: middle;
|
82
|
+
font-weight: $titlebar-text-font-weight;
|
83
|
+
}
|
84
|
+
}
|
@@ -0,0 +1,160 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group tooltip
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default cursor of the defined term.
|
10
|
+
/// @type Keyword
|
11
|
+
$has-tip-cursor: help !default;
|
12
|
+
|
13
|
+
/// Default font weight of the defined term.
|
14
|
+
/// @type Keyword | Number
|
15
|
+
$has-tip-font-weight: $global-weight-bold !default;
|
16
|
+
|
17
|
+
/// Default border bottom of the defined term.
|
18
|
+
/// @type List
|
19
|
+
$has-tip-border-bottom: dotted 1px $dark-gray !default;
|
20
|
+
|
21
|
+
/// Default color of the tooltip background.
|
22
|
+
/// @type Color
|
23
|
+
$tooltip-background-color: $black !default;
|
24
|
+
|
25
|
+
/// Default color of the tooltip font.
|
26
|
+
/// @type Color
|
27
|
+
$tooltip-color: $white !default;
|
28
|
+
|
29
|
+
/// Default padding of the tooltip background.
|
30
|
+
/// @type Number
|
31
|
+
$tooltip-padding: 0.75rem !default;
|
32
|
+
|
33
|
+
/// Default max width for tooltips.
|
34
|
+
/// @type Number
|
35
|
+
$tooltip-max-width: 10rem !default;
|
36
|
+
|
37
|
+
/// Default font size of the tooltip text. By default, we recommend a smaller font size than the body copy.
|
38
|
+
/// @type Number
|
39
|
+
$tooltip-font-size: $small-font-size !default;
|
40
|
+
|
41
|
+
/// Default pip width for tooltips.
|
42
|
+
/// @type Number
|
43
|
+
$tooltip-pip-width: 0.75rem !default;
|
44
|
+
|
45
|
+
/// Default pip height for tooltips. This is helpful for calculating the distance of the tooltip from the tooltip word.
|
46
|
+
/// @type Number
|
47
|
+
$tooltip-pip-height: $tooltip-pip-width * 0.866 !default;
|
48
|
+
|
49
|
+
/// Default radius for tooltips.
|
50
|
+
/// @type Number
|
51
|
+
$tooltip-radius: $global-radius !default;
|
52
|
+
|
53
|
+
@mixin has-tip {
|
54
|
+
position: relative;
|
55
|
+
display: inline-block;
|
56
|
+
|
57
|
+
border-bottom: $has-tip-border-bottom;
|
58
|
+
font-weight: $has-tip-font-weight;
|
59
|
+
cursor: $has-tip-cursor;
|
60
|
+
}
|
61
|
+
|
62
|
+
@mixin tooltip {
|
63
|
+
position: absolute;
|
64
|
+
top: calc(100% + #{$tooltip-pip-height});
|
65
|
+
z-index: 1200;
|
66
|
+
|
67
|
+
max-width: $tooltip-max-width;
|
68
|
+
padding: $tooltip-padding;
|
69
|
+
|
70
|
+
border-radius: $tooltip-radius;
|
71
|
+
background-color: $tooltip-background-color;
|
72
|
+
font-size: $tooltip-font-size;
|
73
|
+
color: $tooltip-color;
|
74
|
+
|
75
|
+
&::before {
|
76
|
+
position: absolute;
|
77
|
+
}
|
78
|
+
|
79
|
+
&.bottom {
|
80
|
+
&::before {
|
81
|
+
@include css-triangle($tooltip-pip-width, $tooltip-background-color, up);
|
82
|
+
bottom: 100%;
|
83
|
+
}
|
84
|
+
|
85
|
+
&.align-center::before {
|
86
|
+
left: 50%;
|
87
|
+
transform: translateX(-50%);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
&.top {
|
92
|
+
&::before {
|
93
|
+
@include css-triangle($tooltip-pip-width, $tooltip-background-color, down);
|
94
|
+
top: 100%;
|
95
|
+
bottom: auto;
|
96
|
+
}
|
97
|
+
|
98
|
+
&.align-center::before {
|
99
|
+
left: 50%;
|
100
|
+
transform: translateX(-50%);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
&.left {
|
105
|
+
&::before {
|
106
|
+
@include css-triangle($tooltip-pip-width, $tooltip-background-color, right);
|
107
|
+
left: 100%;
|
108
|
+
}
|
109
|
+
|
110
|
+
&.align-center::before {
|
111
|
+
bottom: auto;
|
112
|
+
top: 50%;
|
113
|
+
transform: translateY(-50%);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
&.right {
|
118
|
+
&::before {
|
119
|
+
@include css-triangle($tooltip-pip-width, $tooltip-background-color, left);
|
120
|
+
right: 100%;
|
121
|
+
left: auto;
|
122
|
+
}
|
123
|
+
|
124
|
+
&.align-center::before {
|
125
|
+
bottom: auto;
|
126
|
+
top: 50%;
|
127
|
+
transform: translateY(-50%);
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
&.align-top::before {
|
132
|
+
bottom: auto;
|
133
|
+
top: 10%;
|
134
|
+
}
|
135
|
+
|
136
|
+
&.align-bottom::before {
|
137
|
+
bottom: 10%;
|
138
|
+
top: auto;
|
139
|
+
}
|
140
|
+
|
141
|
+
&.align-left::before {
|
142
|
+
left: 10%;
|
143
|
+
right: auto;
|
144
|
+
}
|
145
|
+
|
146
|
+
&.align-right::before {
|
147
|
+
left: auto;
|
148
|
+
right: 10%;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
@mixin foundation-tooltip {
|
153
|
+
.has-tip {
|
154
|
+
@include has-tip;
|
155
|
+
}
|
156
|
+
|
157
|
+
.tooltip {
|
158
|
+
@include tooltip;
|
159
|
+
}
|
160
|
+
}
|
@@ -0,0 +1,175 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group top-bar
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Padding for the top bar.
|
10
|
+
/// @type Number
|
11
|
+
$topbar-padding: 0.5rem !default;
|
12
|
+
|
13
|
+
/// Background color for the top bar. This color also cascades to menus within the top bar.
|
14
|
+
/// @type Color
|
15
|
+
$topbar-background: $light-gray !default;
|
16
|
+
|
17
|
+
/// Background color submenus within the top bar. Usefull if $topbar-background is transparent.
|
18
|
+
/// @type Color
|
19
|
+
$topbar-submenu-background: $topbar-background !default;
|
20
|
+
|
21
|
+
/// Spacing for the top bar title.
|
22
|
+
/// @type Number
|
23
|
+
$topbar-title-spacing: 0.5rem 1rem 0.5rem 0 !default;
|
24
|
+
|
25
|
+
/// Maximum width of `<input>` elements inside the top bar.
|
26
|
+
/// @type Number
|
27
|
+
$topbar-input-width: 200px !default;
|
28
|
+
|
29
|
+
/// Breakpoint at which top bar switches from mobile to desktop view.
|
30
|
+
/// @type Breakpoint
|
31
|
+
$topbar-unstack-breakpoint: medium !default;
|
32
|
+
|
33
|
+
/// Adds styles for a top bar container.
|
34
|
+
@mixin top-bar-container {
|
35
|
+
@if $global-flexbox {
|
36
|
+
display: flex;
|
37
|
+
flex-wrap: nowrap;
|
38
|
+
justify-content: space-between;
|
39
|
+
align-items: center;
|
40
|
+
}
|
41
|
+
@else {
|
42
|
+
@include clearfix;
|
43
|
+
}
|
44
|
+
|
45
|
+
padding: $topbar-padding;
|
46
|
+
|
47
|
+
&,
|
48
|
+
ul {
|
49
|
+
background-color: $topbar-background;
|
50
|
+
}
|
51
|
+
|
52
|
+
// Check if $topbar-background is differnt from $topbar-background-submenu
|
53
|
+
@if ($topbar-background != $topbar-submenu-background) {
|
54
|
+
ul ul {
|
55
|
+
background-color: $topbar-submenu-background;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// Restrain width of inputs by default to make them easier to arrange
|
60
|
+
input {
|
61
|
+
max-width: $topbar-input-width;
|
62
|
+
margin-#{$global-right}: 1rem;
|
63
|
+
}
|
64
|
+
|
65
|
+
// The above styles shouldn't apply to input group fields
|
66
|
+
.input-group-field {
|
67
|
+
width: 100%;
|
68
|
+
margin-#{$global-right}: 0;
|
69
|
+
}
|
70
|
+
|
71
|
+
input.button { // sass-lint:disable-line no-qualifying-elements
|
72
|
+
width: auto;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
/// Makes sections of a top bar stack on top of each other.
|
77
|
+
@mixin top-bar-stacked {
|
78
|
+
@if $global-flexbox {
|
79
|
+
flex-wrap: wrap;
|
80
|
+
|
81
|
+
// Sub-sections
|
82
|
+
.top-bar-left,
|
83
|
+
.top-bar-right {
|
84
|
+
flex: 0 0 100%;
|
85
|
+
max-width: 100%;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
@else {
|
89
|
+
// Sub-sections
|
90
|
+
.top-bar-left,
|
91
|
+
.top-bar-right {
|
92
|
+
width: 100%;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
/// Undoes the CSS applied by the `top-bar-stacked()` mixin.
|
98
|
+
@mixin top-bar-unstack {
|
99
|
+
@if $global-flexbox {
|
100
|
+
flex-wrap: nowrap;
|
101
|
+
|
102
|
+
.top-bar-left {
|
103
|
+
flex: 1 1 auto;
|
104
|
+
margin-right: auto;
|
105
|
+
}
|
106
|
+
|
107
|
+
.top-bar-right {
|
108
|
+
flex: 0 1 auto;
|
109
|
+
margin-left: auto;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
@else {
|
113
|
+
.top-bar-left,
|
114
|
+
.top-bar-right {
|
115
|
+
width: auto;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
@mixin foundation-top-bar {
|
121
|
+
// Top bar container
|
122
|
+
.top-bar {
|
123
|
+
@include top-bar-container;
|
124
|
+
|
125
|
+
// Stack on small screens by default
|
126
|
+
@include top-bar-stacked;
|
127
|
+
|
128
|
+
@include breakpoint($topbar-unstack-breakpoint) {
|
129
|
+
@include top-bar-unstack;
|
130
|
+
}
|
131
|
+
|
132
|
+
// Generate classes for stacking on each screen size (defined in $breakpoint-classes)
|
133
|
+
@each $size in $breakpoint-classes {
|
134
|
+
@if $size != $-zf-zero-breakpoint {
|
135
|
+
&.stacked-for-#{$size} {
|
136
|
+
@include breakpoint($size down) {
|
137
|
+
@include top-bar-stacked;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
// Sub-sections
|
145
|
+
@if $global-flexbox {
|
146
|
+
.top-bar-title {
|
147
|
+
flex: 0 0 auto;
|
148
|
+
margin: $topbar-title-spacing;
|
149
|
+
}
|
150
|
+
|
151
|
+
.top-bar-left,
|
152
|
+
.top-bar-right {
|
153
|
+
flex: 0 0 auto;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
@else {
|
157
|
+
.top-bar-title {
|
158
|
+
display: inline-block;
|
159
|
+
float: left;
|
160
|
+
padding: $topbar-title-spacing;
|
161
|
+
|
162
|
+
.menu-icon {
|
163
|
+
bottom: 2px;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
.top-bar-left {
|
168
|
+
float: left;
|
169
|
+
}
|
170
|
+
|
171
|
+
.top-bar-right {
|
172
|
+
float: right;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
}
|