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,22 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@mixin foundation-text-alignment {
|
6
|
+
@each $size in $breakpoint-classes {
|
7
|
+
@include breakpoint($size) {
|
8
|
+
@each $align in (left, right, center, justify) {
|
9
|
+
@if $size != $-zf-zero-breakpoint {
|
10
|
+
.#{$size}-text-#{$align} {
|
11
|
+
text-align: $align;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
@else {
|
15
|
+
.text-#{$align} {
|
16
|
+
text-align: $align;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,474 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group typography-base
|
7
|
+
////
|
8
|
+
|
9
|
+
// Base Typography
|
10
|
+
// - - - - - - - - - - - - - - -
|
11
|
+
// These are styles applied to basic HTML tags, including:
|
12
|
+
// - Paragraphs <p>
|
13
|
+
// - Bold/italics <b> <strong> <i> <em>
|
14
|
+
// - Small text <small>
|
15
|
+
// - Headings <h1>-<h6>
|
16
|
+
// - Anchors <a>
|
17
|
+
// - Dividers <hr>
|
18
|
+
// - Lists <ul> <ol> <dl>
|
19
|
+
// - Blockquotes <blockquote>
|
20
|
+
// - Code blocks <code>
|
21
|
+
// - Abbreviations <abbr>
|
22
|
+
// - Citations <cite>
|
23
|
+
// - Keystrokes <kbd>
|
24
|
+
|
25
|
+
/// Font family for header elements.
|
26
|
+
/// @type String | List
|
27
|
+
$header-font-family: $body-font-family !default;
|
28
|
+
|
29
|
+
/// Font weight of headers.
|
30
|
+
/// @type String
|
31
|
+
$header-font-weight: $global-weight-normal !default;
|
32
|
+
|
33
|
+
/// Font style (e.g. italicized) of headers.
|
34
|
+
/// @type String
|
35
|
+
$header-font-style: normal !default;
|
36
|
+
|
37
|
+
/// Font stack used for elements that use monospaced type, such as code samples
|
38
|
+
/// @type String | List
|
39
|
+
$font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace !default;
|
40
|
+
|
41
|
+
/// Color of headers.
|
42
|
+
/// @type Color
|
43
|
+
$header-color: inherit !default;
|
44
|
+
|
45
|
+
/// Line height of headers.
|
46
|
+
/// @type Number
|
47
|
+
$header-lineheight: 1.4 !default;
|
48
|
+
|
49
|
+
/// Bottom margin of headers.
|
50
|
+
/// @type Number
|
51
|
+
$header-margin-bottom: 0.5rem !default;
|
52
|
+
|
53
|
+
/// Styles for headings at various screen sizes. Each key is a breakpoint, and each value is a map of heading styles.
|
54
|
+
/// @type Map
|
55
|
+
$header-styles: (
|
56
|
+
small: (
|
57
|
+
'h1': ('font-size': 24),
|
58
|
+
'h2': ('font-size': 20),
|
59
|
+
'h3': ('font-size': 19),
|
60
|
+
'h4': ('font-size': 18),
|
61
|
+
'h5': ('font-size': 17),
|
62
|
+
'h6': ('font-size': 16),
|
63
|
+
),
|
64
|
+
medium: (
|
65
|
+
'h1': ('font-size': 48),
|
66
|
+
'h2': ('font-size': 40),
|
67
|
+
'h3': ('font-size': 31),
|
68
|
+
'h4': ('font-size': 25),
|
69
|
+
'h5': ('font-size': 20),
|
70
|
+
'h6': ('font-size': 16),
|
71
|
+
),
|
72
|
+
) !default;
|
73
|
+
|
74
|
+
// $header-styles map is built from $header-sizes in order to ensure downward compatibility
|
75
|
+
// when $header-sizes is depreciated, $header-styles needs to get !default values like settings.scss
|
76
|
+
@function build_from_header-sizes($header-sizes) {
|
77
|
+
@warn 'Note, that $header-sizes has been replaced with $header-styles. $header-sizes still works, but it is going to be depreciated.';
|
78
|
+
$header-styles: ();
|
79
|
+
@each $size, $headers in $header-sizes {
|
80
|
+
$header-map: ();
|
81
|
+
@each $header, $font-size in $headers {
|
82
|
+
$header-map: map-merge($header-map, ($header: ('font-size': $font-size)));
|
83
|
+
}
|
84
|
+
$header-styles: map-merge($header-styles, ($size: $header-map));
|
85
|
+
}
|
86
|
+
@return $header-styles;
|
87
|
+
}
|
88
|
+
|
89
|
+
// If it exists $headers-sizes is used to build $header-styles. See the documentation.
|
90
|
+
@if variable-exists(header-sizes) {
|
91
|
+
$header-styles: build_from_header-sizes($header-sizes);
|
92
|
+
}
|
93
|
+
|
94
|
+
/// Text rendering method of headers.
|
95
|
+
/// @type String
|
96
|
+
$header-text-rendering: optimizeLegibility !default;
|
97
|
+
|
98
|
+
/// Font size of `<small>` elements.
|
99
|
+
/// @type Number
|
100
|
+
$small-font-size: 80% !default;
|
101
|
+
|
102
|
+
/// Color of `<small>` elements when placed inside headers.
|
103
|
+
/// @type Color
|
104
|
+
$header-small-font-color: $medium-gray !default;
|
105
|
+
|
106
|
+
/// Line height of text inside `<p>` elements.
|
107
|
+
/// @type Number
|
108
|
+
$paragraph-lineheight: 1.6 !default;
|
109
|
+
|
110
|
+
/// Bottom margin of paragraphs.
|
111
|
+
/// @type Number
|
112
|
+
$paragraph-margin-bottom: 1rem !default;
|
113
|
+
|
114
|
+
/// Text rendering method for paragraph text.
|
115
|
+
/// @type String
|
116
|
+
$paragraph-text-rendering: optimizeLegibility !default;
|
117
|
+
|
118
|
+
/// Use the `.code-inline` component as default for `<code>` elements.
|
119
|
+
/// @type Boolean
|
120
|
+
$enable-code-inline: true;
|
121
|
+
|
122
|
+
/// Default color for links.
|
123
|
+
/// @type Color
|
124
|
+
$anchor-color: $primary-color !default;
|
125
|
+
|
126
|
+
/// Default color for links on hover.
|
127
|
+
/// @type Color
|
128
|
+
$anchor-color-hover: scale-color($anchor-color, $lightness: -14%) !default;
|
129
|
+
|
130
|
+
/// Default text decoration for links.
|
131
|
+
/// @type String
|
132
|
+
$anchor-text-decoration: none !default;
|
133
|
+
|
134
|
+
/// Default text decoration for links on hover.
|
135
|
+
/// @type String
|
136
|
+
$anchor-text-decoration-hover: none !default;
|
137
|
+
|
138
|
+
/// Maximum width of a divider.
|
139
|
+
/// @type Number
|
140
|
+
$hr-width: $global-width !default;
|
141
|
+
|
142
|
+
/// Default border for a divider.
|
143
|
+
/// @type List
|
144
|
+
$hr-border: 1px solid $medium-gray !default;
|
145
|
+
|
146
|
+
/// Default margin for a divider.
|
147
|
+
/// @type Number | List
|
148
|
+
$hr-margin: rem-calc(20) auto !default;
|
149
|
+
|
150
|
+
/// Line height for items in a list.
|
151
|
+
/// @type Number
|
152
|
+
$list-lineheight: $paragraph-lineheight !default;
|
153
|
+
|
154
|
+
/// Bottom margin for items in a list.
|
155
|
+
/// @type Number
|
156
|
+
$list-margin-bottom: $paragraph-margin-bottom !default;
|
157
|
+
|
158
|
+
/// Bullet type to use for unordered lists (e.g., `square`, `circle`, `disc`).
|
159
|
+
/// @type String
|
160
|
+
$list-style-type: disc !default;
|
161
|
+
|
162
|
+
/// Positioning for bullets on unordered list items.
|
163
|
+
/// @type String
|
164
|
+
$list-style-position: outside !default;
|
165
|
+
|
166
|
+
/// Left (or right) margin for lists.
|
167
|
+
/// @type Number
|
168
|
+
$list-side-margin: 1.25rem !default;
|
169
|
+
|
170
|
+
/// Left (or right) margin for a list inside a list.
|
171
|
+
/// @type Number
|
172
|
+
$list-nested-side-margin: 1.25rem !default;
|
173
|
+
|
174
|
+
/// Bottom margin for `<dl>` elements.
|
175
|
+
/// @type Number
|
176
|
+
$defnlist-margin-bottom: 1rem !default;
|
177
|
+
|
178
|
+
/// Font weight for `<dt>` elements.
|
179
|
+
/// @type String
|
180
|
+
$defnlist-term-weight: $global-weight-bold !default;
|
181
|
+
|
182
|
+
/// Spacing between `<dt>` and `<dd>` elements.
|
183
|
+
/// @type Number
|
184
|
+
$defnlist-term-margin-bottom: 0.3rem !default;
|
185
|
+
|
186
|
+
/// Text color of `<blockquote>` elements.
|
187
|
+
/// @type Color
|
188
|
+
$blockquote-color: $dark-gray !default;
|
189
|
+
|
190
|
+
/// Padding inside a `<blockquote>` element.
|
191
|
+
/// @type Number | List
|
192
|
+
$blockquote-padding: rem-calc(9 20 0 19) !default;
|
193
|
+
|
194
|
+
/// Side border for `<blockquote>` elements.
|
195
|
+
/// @type List
|
196
|
+
$blockquote-border: 1px solid $medium-gray !default;
|
197
|
+
|
198
|
+
/// Use the `.cite-block` component as default for `<cite>` elements.
|
199
|
+
/// @type Boolean
|
200
|
+
$enable-cite-block: true;
|
201
|
+
|
202
|
+
/// Font family for `<kbd>` elements.
|
203
|
+
/// @type String | List
|
204
|
+
$keystroke-font: $font-family-monospace !default;
|
205
|
+
|
206
|
+
/// Text color for `<kbd>` elements.
|
207
|
+
/// @type Color
|
208
|
+
$keystroke-color: $black !default;
|
209
|
+
|
210
|
+
/// Background color for `<kbd>` elements.
|
211
|
+
/// @type Color
|
212
|
+
$keystroke-background: $light-gray !default;
|
213
|
+
|
214
|
+
/// Padding for `<kbd>` elements.
|
215
|
+
/// @type Number | List
|
216
|
+
$keystroke-padding: rem-calc(2 4 0) !default;
|
217
|
+
|
218
|
+
/// Border radius for `<kbd>` elements.
|
219
|
+
/// @type Number | List
|
220
|
+
$keystroke-radius: $global-radius !default;
|
221
|
+
|
222
|
+
/// Bottom border style for `<abbr>` elements.
|
223
|
+
/// @type List
|
224
|
+
$abbr-underline: 1px dotted $black !default;
|
225
|
+
|
226
|
+
@mixin foundation-typography-base {
|
227
|
+
// Typography resets
|
228
|
+
div,
|
229
|
+
dl,
|
230
|
+
dt,
|
231
|
+
dd,
|
232
|
+
ul,
|
233
|
+
ol,
|
234
|
+
li,
|
235
|
+
h1,
|
236
|
+
h2,
|
237
|
+
h3,
|
238
|
+
h4,
|
239
|
+
h5,
|
240
|
+
h6,
|
241
|
+
pre,
|
242
|
+
form,
|
243
|
+
p,
|
244
|
+
blockquote,
|
245
|
+
th,
|
246
|
+
td {
|
247
|
+
margin: 0;
|
248
|
+
padding: 0;
|
249
|
+
}
|
250
|
+
|
251
|
+
// Paragraphs
|
252
|
+
p {
|
253
|
+
margin-bottom: $paragraph-margin-bottom;
|
254
|
+
|
255
|
+
font-size: inherit;
|
256
|
+
line-height: $paragraph-lineheight;
|
257
|
+
text-rendering: $paragraph-text-rendering;
|
258
|
+
}
|
259
|
+
|
260
|
+
// Emphasized text
|
261
|
+
em,
|
262
|
+
i {
|
263
|
+
font-style: italic;
|
264
|
+
line-height: inherit;
|
265
|
+
}
|
266
|
+
|
267
|
+
// Strong text
|
268
|
+
strong,
|
269
|
+
b {
|
270
|
+
font-weight: $global-weight-bold;
|
271
|
+
line-height: inherit;
|
272
|
+
}
|
273
|
+
|
274
|
+
// Small text
|
275
|
+
small {
|
276
|
+
font-size: $small-font-size;
|
277
|
+
line-height: inherit;
|
278
|
+
}
|
279
|
+
|
280
|
+
// Headings
|
281
|
+
h1, .h1,
|
282
|
+
h2, .h2,
|
283
|
+
h3, .h3,
|
284
|
+
h4, .h4,
|
285
|
+
h5, .h5,
|
286
|
+
h6, .h6 {
|
287
|
+
font-family: $header-font-family;
|
288
|
+
font-style: $header-font-style;
|
289
|
+
font-weight: $header-font-weight;
|
290
|
+
color: $header-color;
|
291
|
+
text-rendering: $header-text-rendering;
|
292
|
+
|
293
|
+
small {
|
294
|
+
line-height: 0;
|
295
|
+
color: $header-small-font-color;
|
296
|
+
}
|
297
|
+
}
|
298
|
+
|
299
|
+
// Heading styles
|
300
|
+
@each $size, $headers in $header-styles {
|
301
|
+
@include breakpoint($size) {
|
302
|
+
@each $header, $header-defs in $headers {
|
303
|
+
$font-size-temp: 1rem;
|
304
|
+
#{$header}, .#{$header} {
|
305
|
+
|
306
|
+
@if map-has-key($header-defs, font-size) {
|
307
|
+
$font-size-temp: rem-calc(map-get($header-defs, font-size));
|
308
|
+
font-size: $font-size-temp;
|
309
|
+
} @else if map-has-key($header-defs, fs) {
|
310
|
+
$font-size-temp: rem-calc(map-get($header-defs, fs));
|
311
|
+
font-size: $font-size-temp;
|
312
|
+
} @else if $size == $-zf-zero-breakpoint {
|
313
|
+
font-size: $font-size-temp;
|
314
|
+
}
|
315
|
+
@if map-has-key($header-defs, line-height) {
|
316
|
+
line-height: unitless-calc(map-get($header-defs, line-height), $font-size-temp);
|
317
|
+
} @else if map-has-key($header-defs, lh) {
|
318
|
+
line-height: unitless-calc(map-get($header-defs, lh), $font-size-temp);
|
319
|
+
} @else if $size == $-zf-zero-breakpoint {
|
320
|
+
line-height: unitless-calc($header-lineheight, $font-size-temp);
|
321
|
+
}
|
322
|
+
|
323
|
+
@if map-has-key($header-defs, margin-top) {
|
324
|
+
margin-top: rem-calc(map-get($header-defs, margin-top));
|
325
|
+
} @else if map-has-key($header-defs, mt) {
|
326
|
+
margin-top: rem-calc(map-get($header-defs, mt));
|
327
|
+
} @else if $size == $-zf-zero-breakpoint {
|
328
|
+
margin-top: 0;
|
329
|
+
}
|
330
|
+
@if map-has-key($header-defs, margin-bottom) {
|
331
|
+
margin-bottom: rem-calc(map-get($header-defs, margin-bottom));
|
332
|
+
} @else if map-has-key($header-defs, mb) {
|
333
|
+
margin-bottom: rem-calc(map-get($header-defs, mb));
|
334
|
+
} @else if $size == $-zf-zero-breakpoint {
|
335
|
+
margin-bottom: rem-calc($header-margin-bottom);
|
336
|
+
}
|
337
|
+
}
|
338
|
+
}
|
339
|
+
}
|
340
|
+
}
|
341
|
+
|
342
|
+
// Links
|
343
|
+
a {
|
344
|
+
line-height: inherit;
|
345
|
+
color: $anchor-color;
|
346
|
+
text-decoration: $anchor-text-decoration;
|
347
|
+
|
348
|
+
cursor: pointer;
|
349
|
+
|
350
|
+
&:hover,
|
351
|
+
&:focus {
|
352
|
+
color: $anchor-color-hover;
|
353
|
+
@if $anchor-text-decoration-hover != $anchor-text-decoration {
|
354
|
+
text-decoration: $anchor-text-decoration-hover;
|
355
|
+
}
|
356
|
+
}
|
357
|
+
|
358
|
+
img {
|
359
|
+
border: 0;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
|
363
|
+
// Horizontal rule
|
364
|
+
hr {
|
365
|
+
clear: both;
|
366
|
+
|
367
|
+
max-width: $hr-width;
|
368
|
+
height: 0;
|
369
|
+
margin: $hr-margin;
|
370
|
+
|
371
|
+
border-top: 0;
|
372
|
+
border-right: 0;
|
373
|
+
border-bottom: $hr-border;
|
374
|
+
border-left: 0;
|
375
|
+
}
|
376
|
+
|
377
|
+
// Lists
|
378
|
+
ul,
|
379
|
+
ol,
|
380
|
+
dl {
|
381
|
+
margin-bottom: $list-margin-bottom;
|
382
|
+
list-style-position: $list-style-position;
|
383
|
+
line-height: $list-lineheight;
|
384
|
+
}
|
385
|
+
|
386
|
+
// List items
|
387
|
+
li {
|
388
|
+
font-size: inherit;
|
389
|
+
}
|
390
|
+
|
391
|
+
// Unordered lists
|
392
|
+
ul {
|
393
|
+
margin-#{$global-left}: $list-side-margin;
|
394
|
+
list-style-type: $list-style-type;
|
395
|
+
}
|
396
|
+
|
397
|
+
// Ordered lists
|
398
|
+
ol {
|
399
|
+
margin-#{$global-left}: $list-side-margin;
|
400
|
+
}
|
401
|
+
|
402
|
+
// Nested unordered/ordered lists
|
403
|
+
ul, ol {
|
404
|
+
& & {
|
405
|
+
margin-#{$global-left}: $list-nested-side-margin;
|
406
|
+
margin-bottom: 0;
|
407
|
+
}
|
408
|
+
}
|
409
|
+
|
410
|
+
// Definition lists
|
411
|
+
dl {
|
412
|
+
margin-bottom: $defnlist-margin-bottom;
|
413
|
+
|
414
|
+
dt {
|
415
|
+
margin-bottom: $defnlist-term-margin-bottom;
|
416
|
+
font-weight: $defnlist-term-weight;
|
417
|
+
}
|
418
|
+
}
|
419
|
+
|
420
|
+
// Blockquotes
|
421
|
+
blockquote {
|
422
|
+
margin: 0 0 $paragraph-margin-bottom;
|
423
|
+
padding: $blockquote-padding;
|
424
|
+
border-#{$global-left}: $blockquote-border;
|
425
|
+
|
426
|
+
&, p {
|
427
|
+
line-height: $paragraph-lineheight;
|
428
|
+
color: $blockquote-color;
|
429
|
+
}
|
430
|
+
}
|
431
|
+
|
432
|
+
// Inline Citations
|
433
|
+
@if ($enable-cite-block == true) {
|
434
|
+
cite {
|
435
|
+
// Extending a class is not recommended.
|
436
|
+
// TODO: Break the typography-base/typography-helpers separation
|
437
|
+
@extend .cite-block;
|
438
|
+
}
|
439
|
+
}
|
440
|
+
|
441
|
+
// Abbreviations
|
442
|
+
abbr, abbr[title] {
|
443
|
+
border-bottom: $abbr-underline;
|
444
|
+
cursor: help;
|
445
|
+
text-decoration: none;
|
446
|
+
}
|
447
|
+
|
448
|
+
// Figures
|
449
|
+
figure {
|
450
|
+
margin: 0;
|
451
|
+
}
|
452
|
+
|
453
|
+
// Code
|
454
|
+
@if ($enable-code-inline == true) {
|
455
|
+
code {
|
456
|
+
@extend .code-inline;
|
457
|
+
}
|
458
|
+
}
|
459
|
+
|
460
|
+
// Keystrokes
|
461
|
+
kbd {
|
462
|
+
margin: 0;
|
463
|
+
padding: $keystroke-padding;
|
464
|
+
|
465
|
+
background-color: $keystroke-background;
|
466
|
+
|
467
|
+
font-family: $keystroke-font;
|
468
|
+
color: $keystroke-color;
|
469
|
+
|
470
|
+
@if has-value($keystroke-radius) {
|
471
|
+
border-radius: $keystroke-radius;
|
472
|
+
}
|
473
|
+
}
|
474
|
+
}
|
@@ -0,0 +1,180 @@
|
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group typography-helpers
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default font size for lead paragraphs.
|
10
|
+
/// @type Number
|
11
|
+
$lead-font-size: $global-font-size * 1.25 !default;
|
12
|
+
|
13
|
+
/// Default line height for lead paragraphs.
|
14
|
+
/// @type String
|
15
|
+
$lead-lineheight: 1.6 !default;
|
16
|
+
|
17
|
+
/// Default line height for subheaders.
|
18
|
+
/// @type Number
|
19
|
+
$subheader-lineheight: 1.4 !default;
|
20
|
+
|
21
|
+
/// Default font color for subheaders.
|
22
|
+
/// @type Color
|
23
|
+
$subheader-color: $dark-gray !default;
|
24
|
+
|
25
|
+
/// Default font weight for subheaders.
|
26
|
+
/// @type String
|
27
|
+
$subheader-font-weight: $global-weight-normal !default;
|
28
|
+
|
29
|
+
/// Default top margin for subheaders.
|
30
|
+
/// @type Number
|
31
|
+
$subheader-margin-top: 0.2rem !default;
|
32
|
+
|
33
|
+
/// Default bottom margin for subheaders.
|
34
|
+
/// @type Number
|
35
|
+
$subheader-margin-bottom: 0.5rem !default;
|
36
|
+
|
37
|
+
/// Default font size for statistic numbers.
|
38
|
+
/// @type Number
|
39
|
+
$stat-font-size: 2.5rem !default;
|
40
|
+
|
41
|
+
/// Text color for `.cite-block` component.
|
42
|
+
/// @type Color
|
43
|
+
$cite-color: $dark-gray !default;
|
44
|
+
|
45
|
+
/// Font size for `.cite-block` component.
|
46
|
+
/// @type Number
|
47
|
+
$cite-font-size: rem-calc(13) !default;
|
48
|
+
|
49
|
+
/// Pseudo content for `.cite-block` component.
|
50
|
+
/// @type String
|
51
|
+
$cite-pseudo-content: '\2014 \0020' !default;
|
52
|
+
|
53
|
+
/// Text color of `.code-inline` and `.code-block` components.
|
54
|
+
/// @type Color
|
55
|
+
$code-color: $black !default;
|
56
|
+
|
57
|
+
/// Font family of `.code-inline` and `.code-block` components.
|
58
|
+
/// @type String | List
|
59
|
+
$code-font-family: $font-family-monospace !default;
|
60
|
+
|
61
|
+
/// Font weight of text in `.code-inline` and `.code-block` components.
|
62
|
+
/// @type String
|
63
|
+
$code-font-weight: $global-weight-normal !default;
|
64
|
+
|
65
|
+
/// Background color of `.code-inline` and `.code-block` components.
|
66
|
+
/// @type Color
|
67
|
+
$code-background: $light-gray !default;
|
68
|
+
|
69
|
+
/// Border around `.code-inline` and `.code-block` components.
|
70
|
+
/// @type List
|
71
|
+
$code-border: 1px solid $medium-gray !default;
|
72
|
+
|
73
|
+
/// Padding around text of the `.code-inline` component.
|
74
|
+
/// @type Number | List
|
75
|
+
$code-padding: rem-calc(2 5 1) !default;
|
76
|
+
|
77
|
+
/// Padding around text of the `.code-block` component.
|
78
|
+
/// @type Number | List
|
79
|
+
$code-block-padding: 1rem !default;
|
80
|
+
|
81
|
+
/// Margin under the `.code-block` component.
|
82
|
+
/// @type Number
|
83
|
+
$code-block-margin-bottom: 1.5rem !default;
|
84
|
+
|
85
|
+
@mixin cite-block {
|
86
|
+
display: block;
|
87
|
+
color: $cite-color;
|
88
|
+
font-size: $cite-font-size;
|
89
|
+
|
90
|
+
&:before {
|
91
|
+
content: $cite-pseudo-content;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
/// Add basic styles for a code helper.
|
96
|
+
/// See `code-inline` and `code-block` mixins.
|
97
|
+
@mixin code-style {
|
98
|
+
border: $code-border;
|
99
|
+
background-color: $code-background;
|
100
|
+
|
101
|
+
font-family: $code-font-family;
|
102
|
+
font-weight: $code-font-weight;
|
103
|
+
color: $code-color;
|
104
|
+
}
|
105
|
+
|
106
|
+
/// Make code helper from the `code-style` mixin inline.
|
107
|
+
/// Used to generate `.code-inline`
|
108
|
+
@mixin code-inline {
|
109
|
+
display: inline;
|
110
|
+
max-width: 100%;
|
111
|
+
word-wrap: break-word;
|
112
|
+
|
113
|
+
padding: $code-padding;
|
114
|
+
}
|
115
|
+
|
116
|
+
/// Make code helper from the `code-style` mixin a block.
|
117
|
+
/// Used to generate `.code-block`
|
118
|
+
@mixin code-block {
|
119
|
+
display: block;
|
120
|
+
overflow: auto;
|
121
|
+
white-space: pre;
|
122
|
+
|
123
|
+
padding: $code-block-padding;
|
124
|
+
margin-bottom: $code-block-margin-bottom;
|
125
|
+
}
|
126
|
+
|
127
|
+
@mixin foundation-typography-helpers {
|
128
|
+
// Use to create a subheading under a main header
|
129
|
+
// Make sure you pair the two elements in a <header> element, like this:
|
130
|
+
// <header>
|
131
|
+
// <h1>Heading</h1>
|
132
|
+
// <h2>Subheading</h2>
|
133
|
+
// </header>
|
134
|
+
.subheader {
|
135
|
+
margin-top: $subheader-margin-top;
|
136
|
+
margin-bottom: $subheader-margin-bottom;
|
137
|
+
|
138
|
+
font-weight: $subheader-font-weight;
|
139
|
+
line-height: $subheader-lineheight;
|
140
|
+
color: $subheader-color;
|
141
|
+
}
|
142
|
+
|
143
|
+
// Use to style an introductory lead, deck, blurb, etc.
|
144
|
+
.lead {
|
145
|
+
font-size: $lead-font-size;
|
146
|
+
line-height: $lead-lineheight;
|
147
|
+
}
|
148
|
+
|
149
|
+
// Use to style a large number to display a statistic
|
150
|
+
.stat {
|
151
|
+
font-size: $stat-font-size;
|
152
|
+
line-height: 1;
|
153
|
+
|
154
|
+
p + & {
|
155
|
+
margin-top: -1rem;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
ul, ol {
|
160
|
+
// Use to remove numbers from ordered list & bullets from unordered list
|
161
|
+
&.no-bullet {
|
162
|
+
margin-#{$global-left}: 0;
|
163
|
+
list-style: none;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
.cite-block {
|
168
|
+
@include cite-block;
|
169
|
+
}
|
170
|
+
|
171
|
+
.code-inline {
|
172
|
+
@include code-style;
|
173
|
+
@include code-inline;
|
174
|
+
}
|
175
|
+
|
176
|
+
.code-block {
|
177
|
+
@include code-style;
|
178
|
+
@include code-block;
|
179
|
+
}
|
180
|
+
}
|