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
@@ -1,120 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
|
7
|
-
//
|
8
|
-
// @variables
|
9
|
-
//
|
10
|
-
|
11
|
-
$include-html-nav-classes: $include-html-classes !default;
|
12
|
-
|
13
|
-
// We use this to control padding.
|
14
|
-
$side-nav-padding: rem-calc(14 0) !default;
|
15
|
-
|
16
|
-
// We use these to control list styles.
|
17
|
-
$side-nav-list-type: none !default;
|
18
|
-
$side-nav-list-position: outside !default;
|
19
|
-
$side-nav-list-margin: rem-calc(0 0 7 0) !default;
|
20
|
-
|
21
|
-
// We use these to control link styles.
|
22
|
-
$side-nav-link-color: $primary-color !default;
|
23
|
-
$side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
24
|
-
$side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
25
|
-
$side-nav-link-bg-hover: hsla(0, 0, 0, .025) !default;
|
26
|
-
$side-nav-link-margin: 0 !default;
|
27
|
-
$side-nav-link-padding: rem-calc(7 14) !default;
|
28
|
-
$side-nav-font-size: rem-calc(14) !default;
|
29
|
-
$side-nav-font-weight: $font-weight-normal !default;
|
30
|
-
$side-nav-font-weight-active: $side-nav-font-weight !default;
|
31
|
-
$side-nav-font-family: $body-font-family !default;
|
32
|
-
$side-nav-font-family-active: $side-nav-font-family !default;
|
33
|
-
|
34
|
-
// We use these to control heading styles.
|
35
|
-
$side-nav-heading-color: $side-nav-link-color !default;
|
36
|
-
$side-nav-heading-font-size: $side-nav-font-size !default;
|
37
|
-
$side-nav-heading-font-weight: bold !default;
|
38
|
-
$side-nav-heading-text-transform: uppercase !default;
|
39
|
-
|
40
|
-
// We use these to control border styles
|
41
|
-
$side-nav-divider-size: 1px !default;
|
42
|
-
$side-nav-divider-style: solid !default;
|
43
|
-
$side-nav-divider-color: scale-color($white, $lightness: -10%) !default;
|
44
|
-
|
45
|
-
|
46
|
-
//
|
47
|
-
// @mixins
|
48
|
-
//
|
49
|
-
|
50
|
-
|
51
|
-
// We use this to style the side-nav
|
52
|
-
//
|
53
|
-
// $divider-color - Border color of divider. Default: $side-nav-divider-color.
|
54
|
-
// $font-size - Font size of nav items. Default: $side-nav-font-size.
|
55
|
-
// $link-color - Color of navigation links. Default: $side-nav-link-color.
|
56
|
-
// $link-color-hover - Color of navigation links when hovered. Default: $side-nav-link-color-hover.
|
57
|
-
@mixin side-nav(
|
58
|
-
$divider-color:$side-nav-divider-color,
|
59
|
-
$font-size:$side-nav-font-size,
|
60
|
-
$link-color:$side-nav-link-color,
|
61
|
-
$link-color-active:$side-nav-link-color-active,
|
62
|
-
$link-color-hover:$side-nav-link-color-hover,
|
63
|
-
$link-bg-hover:$side-nav-link-bg-hover) {
|
64
|
-
display: block;
|
65
|
-
font-family: $side-nav-font-family;
|
66
|
-
list-style-position: $side-nav-list-position;
|
67
|
-
list-style-type: $side-nav-list-type;
|
68
|
-
margin: 0;
|
69
|
-
padding: $side-nav-padding;
|
70
|
-
|
71
|
-
li {
|
72
|
-
font-size: $font-size;
|
73
|
-
font-weight: $side-nav-font-weight;
|
74
|
-
margin: $side-nav-list-margin;
|
75
|
-
|
76
|
-
a:not(.button) {
|
77
|
-
color: $link-color;
|
78
|
-
display: block;
|
79
|
-
margin: $side-nav-link-margin;
|
80
|
-
padding: $side-nav-link-padding;
|
81
|
-
&:hover,
|
82
|
-
&:focus {
|
83
|
-
background: $link-bg-hover;
|
84
|
-
color: $link-color-hover;
|
85
|
-
}
|
86
|
-
&:active {
|
87
|
-
color: $link-color-active;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
&.active > a:first-child:not(.button) {
|
92
|
-
color: $side-nav-link-color-active;
|
93
|
-
font-family: $side-nav-font-family-active;
|
94
|
-
font-weight: $side-nav-font-weight-active;
|
95
|
-
}
|
96
|
-
|
97
|
-
&.divider {
|
98
|
-
border-top: $side-nav-divider-size $side-nav-divider-style;
|
99
|
-
height: 0;
|
100
|
-
list-style: none;
|
101
|
-
padding: 0;
|
102
|
-
border-top-color: $divider-color;
|
103
|
-
}
|
104
|
-
|
105
|
-
&.heading {
|
106
|
-
color: $side-nav-heading-color;
|
107
|
-
font: {
|
108
|
-
size: $side-nav-heading-font-size;
|
109
|
-
weight: $side-nav-heading-font-weight;
|
110
|
-
}
|
111
|
-
text-transform: $side-nav-heading-text-transform;
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
@include exports("side-nav") {
|
117
|
-
@if $include-html-nav-classes {
|
118
|
-
.side-nav {@include side-nav;}
|
119
|
-
}
|
120
|
-
}
|
@@ -1,203 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
@import 'buttons';
|
7
|
-
@import 'dropdown-buttons';
|
8
|
-
|
9
|
-
//
|
10
|
-
// @name _split-buttons.scss
|
11
|
-
// @dependencies _buttons.scss, _global.scss
|
12
|
-
//
|
13
|
-
|
14
|
-
//
|
15
|
-
// @variables
|
16
|
-
//
|
17
|
-
|
18
|
-
$include-html-button-classes: $include-html-classes !default;
|
19
|
-
|
20
|
-
// We use these to control different shared styles for Split Buttons
|
21
|
-
$split-button-function-factor: 10% !default;
|
22
|
-
$split-button-pip-color: $white !default;
|
23
|
-
$split-button-pip-color-alt: $oil !default;
|
24
|
-
$split-button-active-bg-tint: rgba(0,0,0,0.1) !default;
|
25
|
-
$split-button-span-border-color: rgba(255,255,255,0.5) !default;
|
26
|
-
|
27
|
-
// We use these to control tiny split buttons
|
28
|
-
$split-button-padding-tny: $button-pip-tny * 10 !default;
|
29
|
-
$split-button-span-width-tny: $button-pip-tny * 6 !default;
|
30
|
-
$split-button-pip-size-tny: $button-pip-tny !default;
|
31
|
-
$split-button-pip-top-tny: $button-pip-tny * 2 !default;
|
32
|
-
$split-button-pip-default-float-tny: rem-calc(-6) !default;
|
33
|
-
|
34
|
-
// We use these to control small split buttons
|
35
|
-
$split-button-padding-sml: $button-pip-sml * 10 !default;
|
36
|
-
$split-button-span-width-sml: $button-pip-sml * 6 !default;
|
37
|
-
$split-button-pip-size-sml: $button-pip-sml !default;
|
38
|
-
$split-button-pip-top-sml: $button-pip-sml * 1.5 !default;
|
39
|
-
$split-button-pip-default-float-sml: rem-calc(-6) !default;
|
40
|
-
|
41
|
-
// We use these to control medium split buttons
|
42
|
-
$split-button-padding-med: $button-pip-med * 9 !default;
|
43
|
-
$split-button-span-width-med: $button-pip-med * 5.5 !default;
|
44
|
-
$split-button-pip-size-med: $button-pip-med - rem-calc(3) !default;
|
45
|
-
$split-button-pip-top-med: $button-pip-med * 1.5 !default;
|
46
|
-
$split-button-pip-default-float-med: rem-calc(-6) !default;
|
47
|
-
|
48
|
-
// We use these to control large split buttons
|
49
|
-
$split-button-padding-lrg: $button-pip-lrg * 8 !default;
|
50
|
-
$split-button-span-width-lrg: $button-pip-lrg * 5 !default;
|
51
|
-
$split-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default;
|
52
|
-
$split-button-pip-top-lrg: $button-pip-lrg + rem-calc(5) !default;
|
53
|
-
$split-button-pip-default-float-lrg: rem-calc(-6) !default;
|
54
|
-
|
55
|
-
|
56
|
-
//
|
57
|
-
// @mixins
|
58
|
-
//
|
59
|
-
|
60
|
-
// We use this mixin to create split buttons that build upon the button mixins
|
61
|
-
//
|
62
|
-
// $padding - Type of padding to apply. Default: medium. Options: tiny, small, medium, large.
|
63
|
-
// $pip-color - Color of the triangle. Default: $split-button-pip-color.
|
64
|
-
// $span-border - Border color of button divider. Default: $split-button-span-border-color.
|
65
|
-
// $base-style - Apply base style to split button. Default: true.
|
66
|
-
@mixin split-button(
|
67
|
-
$padding:medium,
|
68
|
-
$pip-color:$split-button-pip-color,
|
69
|
-
$span-border:$split-button-span-border-color,
|
70
|
-
$base-style:true) {
|
71
|
-
|
72
|
-
// With this, we can control whether or not the base styles come through.
|
73
|
-
@if $base-style {
|
74
|
-
position: relative;
|
75
|
-
|
76
|
-
// Styling for the split arrow clickable area
|
77
|
-
span {
|
78
|
-
display: block;
|
79
|
-
height: 100%;
|
80
|
-
position: absolute;
|
81
|
-
#{$opposite-direction}: 0;
|
82
|
-
top: 0;
|
83
|
-
border-#{$default-float}: solid 1px;
|
84
|
-
|
85
|
-
// Building the triangle pip indicator
|
86
|
-
&:after {
|
87
|
-
position: absolute;
|
88
|
-
content: "";
|
89
|
-
width: 0;
|
90
|
-
height: 0;
|
91
|
-
display: block;
|
92
|
-
border-style: inset;
|
93
|
-
top: 50%;
|
94
|
-
#{$default-float}: 50%;
|
95
|
-
}
|
96
|
-
|
97
|
-
&:active { background-color: $split-button-active-bg-tint; }
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
// Control the border color for the span area of the split button
|
102
|
-
@if $span-border {
|
103
|
-
span {
|
104
|
-
border-#{$default-float}-color: $span-border;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
// Style of the button and clickable area for tiny sizes
|
109
|
-
@if $padding == tiny {
|
110
|
-
padding-#{$opposite-direction}: $split-button-padding-tny;
|
111
|
-
|
112
|
-
span { width: $split-button-span-width-tny;
|
113
|
-
&:after {
|
114
|
-
border-top-style: solid;
|
115
|
-
border-width: $split-button-pip-size-tny;
|
116
|
-
margin-#{$default-float}: $split-button-pip-default-float-tny;
|
117
|
-
top: 48%;
|
118
|
-
}
|
119
|
-
}
|
120
|
-
}
|
121
|
-
|
122
|
-
// Style of the button and clickable area for small sizes
|
123
|
-
@else if $padding == small {
|
124
|
-
padding-#{$opposite-direction}: $split-button-padding-sml;
|
125
|
-
|
126
|
-
span { width: $split-button-span-width-sml;
|
127
|
-
&:after {
|
128
|
-
border-top-style: solid;
|
129
|
-
border-width: $split-button-pip-size-sml;
|
130
|
-
margin-#{$default-float}: $split-button-pip-default-float-sml;
|
131
|
-
top: 48%;
|
132
|
-
}
|
133
|
-
}
|
134
|
-
}
|
135
|
-
|
136
|
-
// Style of the button and clickable area for default (medium) sizes
|
137
|
-
@else if $padding == medium {
|
138
|
-
padding-#{$opposite-direction}: $split-button-padding-med;
|
139
|
-
|
140
|
-
span { width: $split-button-span-width-med;
|
141
|
-
&:after {
|
142
|
-
border-top-style: solid;
|
143
|
-
border-width: $split-button-pip-size-med;
|
144
|
-
margin-#{$default-float}: $split-button-pip-default-float-med;
|
145
|
-
top: 48%;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
// Style of the button and clickable area for large sizes
|
151
|
-
@else if $padding == large {
|
152
|
-
padding-#{$opposite-direction}: $split-button-padding-lrg;
|
153
|
-
|
154
|
-
span { width: $split-button-span-width-lrg;
|
155
|
-
&:after {
|
156
|
-
border-top-style: solid;
|
157
|
-
border-width: $split-button-pip-size-lrg;
|
158
|
-
margin-#{$default-float}: $split-button-pip-default-float-lrg;
|
159
|
-
top: 48%;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
// Control the color of the triangle pip
|
165
|
-
@if $pip-color {
|
166
|
-
span:after { border-color: $pip-color transparent transparent transparent; }
|
167
|
-
}
|
168
|
-
}
|
169
|
-
|
170
|
-
@include exports("split-button") {
|
171
|
-
@if $include-html-button-classes {
|
172
|
-
|
173
|
-
.split.button { @include split-button;
|
174
|
-
|
175
|
-
&.secondary { @include split-button(false, $split-button-pip-color, $split-button-span-border-color, false); }
|
176
|
-
&.alert { @include split-button(false, false, $split-button-span-border-color, false); }
|
177
|
-
&.success { @include split-button(false, false, $split-button-span-border-color, false); }
|
178
|
-
|
179
|
-
&.tiny { @include split-button(tiny, false, false, false); }
|
180
|
-
&.small { @include split-button(small, false, false, false); }
|
181
|
-
&.large { @include split-button(large, false, false, false); }
|
182
|
-
&.expand { padding-left: 2rem; }
|
183
|
-
|
184
|
-
&.secondary { @include split-button(false, $split-button-pip-color-alt, false, false); }
|
185
|
-
|
186
|
-
&.radius span { @include side-radius($opposite-direction, $global-radius); }
|
187
|
-
&.round span { @include side-radius($opposite-direction, 1000px); }
|
188
|
-
&.no-pip{
|
189
|
-
span:before{ border-style:none; }
|
190
|
-
span:after{ border-style:none; }
|
191
|
-
span>i{
|
192
|
-
display: block;
|
193
|
-
left: 50%;
|
194
|
-
margin-left: -0.28889em;
|
195
|
-
margin-top: -0.48889em;
|
196
|
-
position: absolute;
|
197
|
-
top: 50%;
|
198
|
-
}
|
199
|
-
}
|
200
|
-
}
|
201
|
-
|
202
|
-
}
|
203
|
-
}
|
@@ -1,125 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
|
7
|
-
//
|
8
|
-
// @name _sub-nav.scss
|
9
|
-
// @dependencies _global.scss
|
10
|
-
//
|
11
|
-
|
12
|
-
//
|
13
|
-
// @variables
|
14
|
-
//
|
15
|
-
|
16
|
-
$include-html-nav-classes: $include-html-classes !default;
|
17
|
-
|
18
|
-
// We use these to control margin and padding
|
19
|
-
$sub-nav-list-margin: rem-calc(-4 0 18) !default;
|
20
|
-
$sub-nav-list-padding-top: rem-calc(4) !default;
|
21
|
-
|
22
|
-
// We use this to control the definition
|
23
|
-
$sub-nav-font-family: $body-font-family !default;
|
24
|
-
$sub-nav-font-size: rem-calc(14) !default;
|
25
|
-
$sub-nav-font-color: $aluminum !default;
|
26
|
-
$sub-nav-font-weight: $font-weight-normal !default;
|
27
|
-
$sub-nav-text-decoration: none !default;
|
28
|
-
$sub-nav-padding: rem-calc(3 16) !default;
|
29
|
-
$sub-nav-border-radius: 3px !default;
|
30
|
-
$sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !default;
|
31
|
-
|
32
|
-
|
33
|
-
// We use these to control the active item styles
|
34
|
-
|
35
|
-
$sub-nav-active-font-weight: $font-weight-normal !default;
|
36
|
-
$sub-nav-active-bg: $primary-color !default;
|
37
|
-
$sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
|
38
|
-
$sub-nav-active-color: $white !default;
|
39
|
-
$sub-nav-active-padding: $sub-nav-padding !default;
|
40
|
-
$sub-nav-active-cursor: default !default;
|
41
|
-
|
42
|
-
$sub-nav-item-divider: "" !default;
|
43
|
-
$sub-nav-item-divider-margin: rem-calc(12) !default;
|
44
|
-
|
45
|
-
//
|
46
|
-
// @mixins
|
47
|
-
//
|
48
|
-
|
49
|
-
|
50
|
-
// Create a sub-nav item
|
51
|
-
//
|
52
|
-
// $font-color - Font color. Default: $sub-nav-font-color.
|
53
|
-
// $font-size - Font size. Default: $sub-nav-font-size.
|
54
|
-
// $active-bg - Background of active nav item. Default: $sub-nav-active-bg.
|
55
|
-
// $active-bg-hover - Background of active nav item, when hovered. Default: $sub-nav-active-bg-hover.
|
56
|
-
@mixin sub-nav(
|
57
|
-
$font-color: $sub-nav-font-color,
|
58
|
-
$font-size: $sub-nav-font-size,
|
59
|
-
$active-bg: $sub-nav-active-bg,
|
60
|
-
$active-bg-hover: $sub-nav-active-bg-hover) {
|
61
|
-
display: block;
|
62
|
-
margin: $sub-nav-list-margin;
|
63
|
-
overflow: hidden;
|
64
|
-
padding-top: $sub-nav-list-padding-top;
|
65
|
-
width: auto;
|
66
|
-
|
67
|
-
dt {
|
68
|
-
text-transform: uppercase;
|
69
|
-
}
|
70
|
-
|
71
|
-
dt,
|
72
|
-
dd,
|
73
|
-
li {
|
74
|
-
color: $font-color;
|
75
|
-
float: $default-float;
|
76
|
-
font-family: $sub-nav-font-family;
|
77
|
-
font-size: $font-size;
|
78
|
-
font-weight: $sub-nav-font-weight;
|
79
|
-
margin-#{$default-float}: rem-calc(16);
|
80
|
-
margin-bottom: 0;
|
81
|
-
|
82
|
-
a {
|
83
|
-
color: $sub-nav-font-color;
|
84
|
-
padding: $sub-nav-padding;
|
85
|
-
text-decoration: $sub-nav-text-decoration;
|
86
|
-
|
87
|
-
&:hover {
|
88
|
-
color: $sub-nav-font-color-hover;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
&.active a {
|
93
|
-
@include radius($sub-nav-border-radius);
|
94
|
-
background: $active-bg;
|
95
|
-
color: $sub-nav-active-color;
|
96
|
-
cursor: $sub-nav-active-cursor;
|
97
|
-
font-weight: $sub-nav-active-font-weight;
|
98
|
-
padding: $sub-nav-active-padding;
|
99
|
-
|
100
|
-
&:hover {
|
101
|
-
background: $active-bg-hover;
|
102
|
-
}
|
103
|
-
}
|
104
|
-
|
105
|
-
@if $sub-nav-item-divider != "" {
|
106
|
-
margin-#{$default-float}: 0;
|
107
|
-
|
108
|
-
&:before {
|
109
|
-
content: "#{$sub-nav-item-divider}";
|
110
|
-
margin: 0 $sub-nav-item-divider-margin;
|
111
|
-
}
|
112
|
-
|
113
|
-
&:first-child:before {
|
114
|
-
content: "";
|
115
|
-
margin: 0;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
@include exports("sub-nav") {
|
122
|
-
@if $include-html-nav-classes {
|
123
|
-
.sub-nav { @include sub-nav; }
|
124
|
-
}
|
125
|
-
}
|
@@ -1,241 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
|
7
|
-
//
|
8
|
-
// @name
|
9
|
-
// @dependencies _global.scss
|
10
|
-
//
|
11
|
-
|
12
|
-
//
|
13
|
-
// @variables
|
14
|
-
//
|
15
|
-
|
16
|
-
$include-html-form-classes: $include-html-classes !default;
|
17
|
-
|
18
|
-
// Controlling background color for the switch container
|
19
|
-
$switch-bg: $gainsboro !default;
|
20
|
-
|
21
|
-
// We use these to control the switch heights for our default classes
|
22
|
-
$switch-height-tny: 1.5rem !default;
|
23
|
-
$switch-height-sml: 1.75rem !default;
|
24
|
-
$switch-height-med: 2rem !default;
|
25
|
-
$switch-height-lrg: 2.5rem !default;
|
26
|
-
$switch-bottom-margin: 1.5rem !default;
|
27
|
-
|
28
|
-
// We use these to style the switch-paddle
|
29
|
-
$switch-paddle-bg: $white !default;
|
30
|
-
$switch-paddle-transition-speed: .15s !default;
|
31
|
-
$switch-paddle-transition-ease: ease-out !default;
|
32
|
-
$switch-active-color: $primary-color !default;
|
33
|
-
|
34
|
-
|
35
|
-
//
|
36
|
-
// @mixins
|
37
|
-
//
|
38
|
-
|
39
|
-
// We use this mixin to create the base styles for our switch element.
|
40
|
-
//
|
41
|
-
// $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
|
42
|
-
// $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
|
43
|
-
@mixin switch-base(
|
44
|
-
$transition-speed:$switch-paddle-transition-speed,
|
45
|
-
$transition-ease:$switch-paddle-transition-ease) {
|
46
|
-
|
47
|
-
border: none;
|
48
|
-
margin-bottom: $switch-bottom-margin;
|
49
|
-
outline: 0;
|
50
|
-
padding: 0;
|
51
|
-
position: relative;
|
52
|
-
-webkit-user-select: none;
|
53
|
-
-moz-user-select: none;
|
54
|
-
-ms-user-select: none;
|
55
|
-
user-select: none;
|
56
|
-
|
57
|
-
// Default label styles for type and transition
|
58
|
-
label {
|
59
|
-
background: $switch-bg;
|
60
|
-
color: transparent;
|
61
|
-
cursor: pointer;
|
62
|
-
display: block;
|
63
|
-
margin-bottom: ($switch-height-med / 2);
|
64
|
-
position: relative;
|
65
|
-
text-indent: 100%;
|
66
|
-
width: $switch-height-med * 2; height: $switch-height-med;
|
67
|
-
|
68
|
-
// Transition for the switch label to follow paddle
|
69
|
-
@include single-transition(left, $transition-speed, $transition-ease);
|
70
|
-
}
|
71
|
-
|
72
|
-
// So that we don't need to recreate the form with any JS, we use the
|
73
|
-
// existing checkbox or radio button, but we cleverly position and hide it.
|
74
|
-
input {
|
75
|
-
left: 10px;
|
76
|
-
opacity: 0;
|
77
|
-
padding:0;
|
78
|
-
position: absolute;
|
79
|
-
top: 9px;
|
80
|
-
|
81
|
-
& + label { margin-left: 0; margin-right: 0; }
|
82
|
-
}
|
83
|
-
|
84
|
-
// The paddle for the switch is created from an after psuedoclass
|
85
|
-
// content element. This is sized and positioned, and reacts to
|
86
|
-
// the state of the input.
|
87
|
-
|
88
|
-
label:after {
|
89
|
-
background: $switch-paddle-bg;
|
90
|
-
content: "";
|
91
|
-
display: block;
|
92
|
-
height: $switch-height-med - .5rem;
|
93
|
-
left: .25rem;
|
94
|
-
position: absolute;
|
95
|
-
top: .25rem;
|
96
|
-
width: $switch-height-med - .5rem;
|
97
|
-
|
98
|
-
-webkit-transition: left $transition-speed $transition-ease;
|
99
|
-
-moz-transition: left $transition-speed $transition-ease;
|
100
|
-
-o-transition: translate3d(0,0,0);
|
101
|
-
transition: left $transition-speed $transition-ease;
|
102
|
-
|
103
|
-
-webkit-transform: translate3d(0,0,0);
|
104
|
-
-moz-transform: translate3d(0,0,0);
|
105
|
-
-ms-transform: translate3d(0,0,0);
|
106
|
-
-o-transform: translate3d(0,0,0);
|
107
|
-
transform: translate3d(0,0,0);
|
108
|
-
}
|
109
|
-
|
110
|
-
input:checked + label {
|
111
|
-
background: $switch-active-color;
|
112
|
-
}
|
113
|
-
|
114
|
-
input:checked + label:after {
|
115
|
-
left: $switch-height-med + .25rem;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
// We use this mixin to create the size styles for switches.
|
120
|
-
//
|
121
|
-
// $height - Height (in px) of the switch. Default: $switch-height-med.
|
122
|
-
// $font-size - Font size of text in switch. Default: $switch-font-size-med.
|
123
|
-
// $line-height - Line height of switch. Default: 2.3rem.
|
124
|
-
@mixin switch-size($height: $switch-height-med) {
|
125
|
-
|
126
|
-
label {
|
127
|
-
height: $height;
|
128
|
-
width: $height * 2;
|
129
|
-
}
|
130
|
-
|
131
|
-
label:after {
|
132
|
-
height: $height - .5rem;
|
133
|
-
width: $height - .5rem;
|
134
|
-
}
|
135
|
-
|
136
|
-
input:checked + label:after {
|
137
|
-
left: $height + .25rem;
|
138
|
-
}
|
139
|
-
|
140
|
-
}
|
141
|
-
|
142
|
-
// We use this mixin to add color and other fanciness to the switches.
|
143
|
-
//
|
144
|
-
// $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
|
145
|
-
// $active-color - Background color of positive side of switch. Default: $switch-positive-color.
|
146
|
-
// $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
|
147
|
-
// $radius - Radius to apply to switch. Default: false.
|
148
|
-
// $base-style - Apply base styles? Default: true.
|
149
|
-
@mixin switch-style(
|
150
|
-
$paddle-bg:$switch-paddle-bg,
|
151
|
-
$active-color:$switch-active-color,
|
152
|
-
$radius:false,
|
153
|
-
$base-style:true) {
|
154
|
-
|
155
|
-
@if $base-style {
|
156
|
-
|
157
|
-
label {
|
158
|
-
color: transparent;
|
159
|
-
background: $switch-bg;
|
160
|
-
}
|
161
|
-
|
162
|
-
label:after {
|
163
|
-
background: $paddle-bg;
|
164
|
-
}
|
165
|
-
|
166
|
-
input:checked + label {
|
167
|
-
background: $active-color;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
|
171
|
-
// Setting up the radius for switches
|
172
|
-
@if $radius == true {
|
173
|
-
label {
|
174
|
-
border-radius: 2rem;
|
175
|
-
}
|
176
|
-
label:after {
|
177
|
-
border-radius: 2rem;
|
178
|
-
}
|
179
|
-
}
|
180
|
-
@else if $radius {
|
181
|
-
label {
|
182
|
-
border-radius: $radius;
|
183
|
-
}
|
184
|
-
label:after {
|
185
|
-
border-radius: $radius;
|
186
|
-
}
|
187
|
-
}
|
188
|
-
|
189
|
-
}
|
190
|
-
|
191
|
-
// We use this to quickly create switches with a single mixin
|
192
|
-
//
|
193
|
-
// $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
|
194
|
-
// $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
|
195
|
-
// $height - Height (in px) of the switch. Default: $switch-height-med.
|
196
|
-
// $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
|
197
|
-
// $active-color - Background color of an active switch. Default: $switch-active-color.
|
198
|
-
// $radius - Radius to apply to switch. Default: false.
|
199
|
-
// $base-style - Apply base styles? Default: true.
|
200
|
-
@mixin switch(
|
201
|
-
$transition-speed: $switch-paddle-transition-speed,
|
202
|
-
$transition-ease: $switch-paddle-transition-ease,
|
203
|
-
$height: $switch-height-med,
|
204
|
-
$paddle-bg: $switch-paddle-bg,
|
205
|
-
$active-color: $switch-active-color,
|
206
|
-
$radius:false,
|
207
|
-
$base-style:true) {
|
208
|
-
@include switch-base($transition-speed, $transition-ease);
|
209
|
-
@include switch-size($height);
|
210
|
-
@include switch-style($paddle-bg, $active-color, $radius, $base-style);
|
211
|
-
}
|
212
|
-
|
213
|
-
@include exports("switch") {
|
214
|
-
@if $include-html-form-classes {
|
215
|
-
.switch {
|
216
|
-
@include switch;
|
217
|
-
|
218
|
-
// Large radio switches
|
219
|
-
&.large { @include switch-size($switch-height-lrg); }
|
220
|
-
|
221
|
-
// Small radio switches
|
222
|
-
&.small { @include switch-size($switch-height-sml); }
|
223
|
-
|
224
|
-
// Tiny radio switches
|
225
|
-
&.tiny { @include switch-size($switch-height-tny); }
|
226
|
-
|
227
|
-
// Add a radius to the switch
|
228
|
-
&.radius {
|
229
|
-
label { @include radius(4px); }
|
230
|
-
label:after { @include radius(3px); }
|
231
|
-
}
|
232
|
-
|
233
|
-
// Make the switch completely round, like a pill
|
234
|
-
&.round { @include radius(1000px);
|
235
|
-
label { @include radius(2rem); }
|
236
|
-
label:after { @include radius(2rem); }
|
237
|
-
}
|
238
|
-
|
239
|
-
}
|
240
|
-
}
|
241
|
-
}
|