locomotivecms_wagon 1.4.0 → 1.5.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Gemfile +6 -2
- data/README.md +7 -1
- data/bin/wagon +3 -0
- data/generators/blank/Gemfile.tt +1 -3
- data/generators/blank/config/site.yml.tt +3 -3
- data/generators/bootstrap/config/site.yml.tt +3 -3
- data/generators/bootstrap3/Gemfile.tt +1 -3
- data/generators/bootstrap3/app/views/pages/index.liquid +21 -63
- data/generators/bootstrap3/app/views/pages/index.liquid.haml +15 -57
- data/generators/bootstrap3/config/deploy.yml +15 -15
- data/generators/bootstrap3/config/site.yml.tt +2 -2
- data/generators/bootstrap3/icon.png +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.eot +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.svg +201 -200
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.woff +0 -0
- data/generators/{bootstrap2/app/content_types → bootstrap3/public/images}/.empty_directory +0 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/affix.js +137 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/alert.js +88 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/button.js +107 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/carousel.js +205 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/collapse.js +170 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/dropdown.js +147 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/modal.js +243 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/popover.js +110 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/scrollspy.js +153 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/tab.js +125 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/tooltip.js +399 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/transition.js +48 -0
- data/generators/bootstrap3/public/javascripts/bootstrap.min.js +12 -6
- data/generators/bootstrap3/public/stylesheets/application.css +1 -0
- data/generators/bootstrap3/public/stylesheets/application.css.scss +8 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_alerts.scss +67 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_badges.scss +55 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_button-groups.scss +226 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_buttons.scss +159 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_carousel.scss +232 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_close.scss +35 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_code.scss +63 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_component-animations.scss +29 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_dropdowns.scss +213 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_forms.scss +436 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_glyphicons.scss +233 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_grid.scss +84 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_input-groups.scss +162 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_jumbotron.scss +44 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_labels.scss +64 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_list-group.scss +110 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_media.scss +56 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_mixins.scss +947 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_modals.scss +139 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_navbar.scss +620 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_navs.scss +242 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_normalize.scss +423 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_pager.scss +55 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_pagination.scss +88 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_panels.scss +241 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_popovers.scss +133 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_print.scss +101 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_progress-bars.scss +80 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_responsive-utilities.scss +74 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_scaffolding.scss +134 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_tables.scss +233 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_theme.scss +247 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_thumbnails.scss +38 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_tooltip.scss +95 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_type.scss +284 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_utilities.scss +56 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_variables.scss +833 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_wells.scss +29 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/bootstrap.css.scss +49 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap.css +2035 -3056
- data/generators/bootstrap3/public/stylesheets/bootstrap.css.scss +49 -0
- data/generators/cloned/Gemfile.tt +1 -3
- data/generators/content_type/app/content_types/%slug%.yml.tt +57 -0
- data/generators/content_type/data/{%name%.yml.tt → %slug%.yml.tt} +2 -2
- data/generators/{bootstrap2 → foundation5}/Gemfile.tt +1 -3
- data/generators/{bootstrap2/data → foundation5/app/content_types}/.empty_directory +0 -0
- data/generators/{foundation → foundation5}/app/views/pages/404.liquid +1 -4
- data/generators/{foundation → foundation5}/app/views/pages/404.liquid.haml +1 -1
- data/generators/foundation5/app/views/pages/index.liquid +196 -0
- data/generators/foundation5/app/views/pages/index.liquid.haml +157 -0
- data/generators/foundation5/config/deploy.yml +15 -0
- data/generators/{bootstrap2 → foundation5}/config/site.yml.tt +3 -4
- data/generators/{bootstrap2 → foundation5}/config/translations.yml +0 -0
- data/generators/{bootstrap2 → foundation5}/config.ru +0 -0
- data/generators/{bootstrap2/public/samples → foundation5/data}/.empty_directory +0 -0
- data/generators/foundation5/favicon.ico +0 -0
- data/generators/foundation5/icon.png +0 -0
- data/generators/{foundation/app/content_types → foundation5/public/fonts}/.empty_directory +0 -0
- data/generators/{foundation/data → foundation5/public/images}/.empty_directory +0 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.abide.js +299 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.accordion.js +59 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.alert.js +43 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.clearing.js +534 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.dropdown.js +311 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.equalizer.js +74 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.interchange.js +331 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.joyride.js +843 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.js +611 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.magellan.js +178 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.offcanvas.js +108 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.orbit.js +610 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.reveal.js +437 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.slider.js +199 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.tab.js +167 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.tooltip.js +298 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.topbar.js +425 -0
- data/generators/foundation5/public/javascripts/foundation.js +4161 -0
- data/generators/foundation5/public/javascripts/foundation.min.js +10 -0
- data/generators/{foundation → foundation5}/public/javascripts/vendor/custom.modernizr.js +0 -0
- data/generators/foundation5/public/javascripts/vendor/custom.modernizr.min.js +1 -0
- data/generators/foundation5/public/javascripts/vendor/fastclick.js +9 -0
- data/generators/foundation5/public/javascripts/vendor/fastclick.min.js +11 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.js +645 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.min.js +1 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.cookie.js +8 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.cookie.min.js +8 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.js +26 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.min.js +27 -0
- data/generators/foundation5/public/javascripts/vendor/modernizr.js +8 -0
- data/generators/foundation5/public/javascripts/vendor/modernizr.min.js +1 -0
- data/generators/foundation5/public/javascripts/vendor/placeholder.js +2 -0
- data/generators/foundation5/public/javascripts/vendor/placeholder.min.js +1 -0
- data/generators/{foundation/public/fonts → foundation5/public/samples}/.empty_directory +0 -0
- data/generators/foundation5/public/stylesheets/application.css +2 -0
- data/generators/foundation5/public/stylesheets/application.css.scss +3 -0
- data/generators/foundation5/public/stylesheets/foundation/_functions.scss +101 -0
- data/generators/foundation5/public/stylesheets/foundation/_settings.scss +1296 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_accordion.scss +53 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss +126 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss +132 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss +127 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss +108 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_buttons.scss +222 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_clearing.scss +247 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss +129 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss +248 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_flex-video.scss +51 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_forms.scss +498 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_global.scss +434 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_grid.scss +260 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_inline-lists.scss +57 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_joyride.scss +220 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss +61 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_labels.scss +104 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_magellan.scss +34 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss +356 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_orbit.scss +423 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_pagination.scss +150 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_panels.scss +90 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss +150 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss +79 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss +148 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_reveal-new.scss +0 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_reveal.scss +216 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss +115 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss +191 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss +125 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_switch.scss +294 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_tables.scss +129 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_tabs.scss +109 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss +68 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss +140 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss +659 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_type.scss +513 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_visibility.scss +408 -0
- data/generators/foundation5/public/stylesheets/foundation.css +5398 -0
- data/generators/foundation5/public/stylesheets/foundation.css.scss +45 -0
- data/generators/foundation5/public/stylesheets/normalize.css +425 -0
- data/generators/foundation5/public/stylesheets/normalize.css.scss +425 -0
- data/generators/{foundation → line_case}/Gemfile.tt +1 -3
- data/generators/line_case/app/content_types/categories.yml +56 -0
- data/generators/line_case/app/content_types/emails.yml +35 -0
- data/generators/line_case/app/content_types/projects.yml +58 -0
- data/generators/{bootstrap2 → line_case}/app/views/pages/404.liquid.haml +3 -2
- data/generators/line_case/app/views/pages/email-registered.liquid.haml +13 -0
- data/generators/line_case/app/views/pages/index.liquid.haml +110 -0
- data/generators/line_case/app/views/pages/projects/content_type_template.liquid.haml +32 -0
- data/generators/line_case/app/views/snippets/newsletter_form.liquid.haml +14 -0
- data/generators/line_case/app/views/snippets/projects.liquid.haml +17 -0
- data/generators/line_case/app/views/snippets/social_links.liquid.haml +19 -0
- data/generators/line_case/config/deploy.yml +15 -0
- data/generators/{foundation → line_case}/config/site.yml.tt +3 -3
- data/generators/{foundation → line_case}/config/translations.yml +0 -0
- data/generators/{foundation → line_case}/config.ru +0 -0
- data/generators/line_case/data/categories.yml +8 -0
- data/generators/line_case/data/emails.yml +2 -0
- data/generators/line_case/data/projects.yml +39 -0
- data/generators/line_case/icon.png +0 -0
- data/generators/line_case/public/images/banner-header.png +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.abide.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.alerts.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.clearing.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.cookie.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.dropdown.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.forms.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.interchange.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.joyride.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.magellan.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.orbit.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.placeholder.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.reveal.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.section.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.tooltips.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.topbar.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation.min.js +0 -0
- data/generators/line_case/public/javascripts/vendor/custom.modernizr.js +4 -0
- data/generators/{foundation → line_case}/public/javascripts/vendor/jquery.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/vendor/zepto.js +0 -0
- data/generators/line_case/public/samples/projects/sample.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample2.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample3.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample4.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample5.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample6.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample7.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample8.jpeg +0 -0
- data/generators/line_case/public/stylesheets/_variables.css.sass +20 -0
- data/generators/line_case/public/stylesheets/foundation/_variables.scss +1290 -0
- data/generators/line_case/public/stylesheets/foundation/components/_alert-boxes.scss +107 -0
- data/generators/line_case/public/stylesheets/foundation/components/_block-grid.scss +71 -0
- data/generators/line_case/public/stylesheets/foundation/components/_breadcrumbs.scss +124 -0
- data/generators/line_case/public/stylesheets/foundation/components/_button-groups.scss +89 -0
- data/generators/line_case/public/stylesheets/foundation/components/_buttons.scss +230 -0
- data/generators/line_case/public/stylesheets/foundation/components/_clearing.scss +227 -0
- data/generators/line_case/public/stylesheets/foundation/components/_custom-forms.scss +278 -0
- data/generators/line_case/public/stylesheets/foundation/components/_dropdown-buttons.scss +115 -0
- data/generators/line_case/public/stylesheets/foundation/components/_dropdown.scss +151 -0
- data/generators/line_case/public/stylesheets/foundation/components/_flex-video.scss +46 -0
- data/generators/line_case/public/stylesheets/foundation/components/_forms.scss +411 -0
- data/generators/line_case/public/stylesheets/foundation/components/_global.scss +366 -0
- data/generators/line_case/public/stylesheets/foundation/components/_grid-5.scss +214 -0
- data/generators/line_case/public/stylesheets/foundation/components/_grid.scss +188 -0
- data/generators/line_case/public/stylesheets/foundation/components/_inline-lists.scss +53 -0
- data/generators/line_case/public/stylesheets/foundation/components/_joyride.scss +217 -0
- data/generators/line_case/public/stylesheets/foundation/components/_keystrokes.scss +57 -0
- data/generators/line_case/public/stylesheets/foundation/components/_labels.scss +85 -0
- data/generators/line_case/public/stylesheets/foundation/components/_magellan.scss +23 -0
- data/generators/line_case/public/stylesheets/foundation/components/_orbit.scss +340 -0
- data/generators/line_case/public/stylesheets/foundation/components/_pagination.scss +140 -0
- data/generators/line_case/public/stylesheets/foundation/components/_panels.scss +83 -0
- data/generators/line_case/public/stylesheets/foundation/components/_pricing-tables.scss +131 -0
- data/generators/line_case/public/stylesheets/foundation/components/_progress-bars.scss +71 -0
- data/generators/line_case/public/stylesheets/foundation/components/_reveal.scss +136 -0
- data/generators/line_case/public/stylesheets/foundation/components/_section.scss +391 -0
- data/generators/line_case/public/stylesheets/foundation/components/_side-nav.scss +69 -0
- data/generators/line_case/public/stylesheets/foundation/components/_split-buttons.scss +167 -0
- data/generators/line_case/public/stylesheets/foundation/components/_sub-nav.scss +84 -0
- data/generators/line_case/public/stylesheets/foundation/components/_switch.scss +266 -0
- data/generators/line_case/public/stylesheets/foundation/components/_tables.scss +84 -0
- data/generators/line_case/public/stylesheets/foundation/components/_thumbs.scss +53 -0
- data/generators/line_case/public/stylesheets/foundation/components/_tooltips.scss +117 -0
- data/generators/line_case/public/stylesheets/foundation/components/_top-bar.scss +576 -0
- data/generators/line_case/public/stylesheets/foundation/components/_type.scss +435 -0
- data/generators/line_case/public/stylesheets/foundation/components/_visibility.scss +322 -0
- data/generators/line_case/public/stylesheets/foundation.css.scss +43 -0
- data/generators/{foundation → line_case}/public/stylesheets/foundation.min.css +0 -0
- data/generators/{foundation/public/stylesheets/normalize.css → line_case/public/stylesheets/normalize.css.scss} +5 -5
- data/generators/line_case/public/stylesheets/pages.css.sass +163 -0
- data/generators/page/template.liquid.haml.tt +8 -5
- data/generators/page/template.liquid.tt +6 -2
- data/lib/locomotive/wagon/cli.rb +139 -43
- data/lib/locomotive/wagon/generators/content_type.rb +26 -10
- data/lib/locomotive/wagon/generators/page.rb +41 -25
- data/lib/locomotive/wagon/generators/site/base.rb +53 -0
- data/lib/locomotive/wagon/generators/site/blank.rb +9 -2
- data/lib/locomotive/wagon/generators/site/bootstrap2.rb +8 -2
- data/lib/locomotive/wagon/generators/site/bootstrap3.rb +20 -2
- data/lib/locomotive/wagon/generators/site/cloned.rb +4 -0
- data/lib/locomotive/wagon/generators/site/{foundation.rb → foundation4.rb} +10 -4
- data/lib/locomotive/wagon/generators/site/foundation5.rb +48 -0
- data/lib/locomotive/wagon/generators/site/line_case.rb +20 -0
- data/lib/locomotive/wagon/generators/site/unzip.rb +10 -2
- data/lib/locomotive/wagon/generators/site.rb +48 -2
- data/lib/locomotive/wagon/generators/snippet.rb +2 -1
- data/lib/locomotive/wagon/liquid/drops/content_types.rb +9 -3
- data/lib/locomotive/wagon/liquid/drops/page.rb +9 -1
- data/lib/locomotive/wagon/liquid/scopeable.rb +1 -1
- data/lib/locomotive/wagon/liquid/tags/fetch_page.rb +41 -0
- data/lib/locomotive/wagon/liquid/tags/model_form.rb +67 -0
- data/lib/locomotive/wagon/liquid/tags/path_helper.rb +2 -2
- data/lib/locomotive/wagon/liquid/tags/with_scope.rb +1 -1
- data/lib/locomotive/wagon/listen.rb +18 -10
- data/lib/locomotive/wagon/logger.rb +4 -0
- data/lib/locomotive/wagon/misc/core_ext.rb +8 -0
- data/lib/locomotive/wagon/misc/deployment_connection.rb +120 -0
- data/lib/locomotive/wagon/misc/hosting_api.rb +115 -0
- data/lib/locomotive/wagon/misc/httparty.rb +2 -0
- data/lib/locomotive/wagon/misc/livereload.rb +43 -0
- data/lib/locomotive/wagon/misc/mounter.rb +1 -1
- data/lib/locomotive/wagon/misc/tcp_port.rb +42 -0
- data/lib/locomotive/wagon/misc/thor.rb +15 -0
- data/lib/locomotive/wagon/server/entry_submission.rb +69 -38
- data/lib/locomotive/wagon/server/middleware.rb +4 -2
- data/lib/locomotive/wagon/server/page.rb +2 -2
- data/lib/locomotive/wagon/server.rb +11 -7
- data/lib/locomotive/wagon/version.rb +1 -1
- data/lib/locomotive/wagon.rb +141 -30
- data/locomotivecms_wagon.gemspec +7 -6
- data/spec/fixtures/default/app/content_types/bands.yml +3 -1
- data/spec/fixtures/default/app/views/pages/all.liquid.haml +3 -0
- data/spec/fixtures/default/app/views/pages/events.liquid.haml +21 -0
- data/spec/fixtures/default/app/views/pages/filtered.liquid.haml +11 -1
- data/spec/fixtures/default/app/views/pages/index.liquid.haml +1 -1
- data/spec/fixtures/default/data/bands.yml +3 -0
- data/spec/integration/server/basic_spec.rb +1 -0
- data/spec/integration/server/contact_form_spec.rb +1 -1
- data/spec/integration/server/liquid_spec.rb +8 -1
- data/spec/integration/server/new_contact_form_spec.rb +67 -0
- data/spec/integration/server/with_scope_spec.rb +10 -0
- data/spec/spec_helper.rb +3 -0
- metadata +339 -144
- data/generators/bootstrap2/app/views/pages/404.liquid +0 -13
- data/generators/bootstrap2/app/views/pages/index.liquid +0 -98
- data/generators/bootstrap2/app/views/pages/index.liquid.haml +0 -80
- data/generators/bootstrap2/app/views/snippets/footer.liquid +0 -3
- data/generators/bootstrap2/app/views/snippets/footer.liquid.haml +0 -2
- data/generators/bootstrap2/config/deploy.yml +0 -15
- data/generators/bootstrap2/public/fonts/FontAwesome.otf +0 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.eot +0 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.svg +0 -399
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.ttf +0 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.woff +0 -0
- data/generators/bootstrap2/public/javascripts/bootstrap.js +0 -2280
- data/generators/bootstrap2/public/javascripts/bootstrap.min.js +0 -6
- data/generators/bootstrap2/public/stylesheets/application.css.scss +0 -39
- data/generators/bootstrap2/public/stylesheets/bootstrap-responsive.css +0 -1109
- data/generators/bootstrap2/public/stylesheets/bootstrap-responsive.min.css +0 -9
- data/generators/bootstrap2/public/stylesheets/bootstrap.css +0 -5568
- data/generators/bootstrap2/public/stylesheets/bootstrap.min.css +0 -9
- data/generators/bootstrap2/public/stylesheets/fonts/awesome.css.scss +0 -3
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.css +0 -1203
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.min.css +0 -384
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.css +0 -1470
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.min.css +0 -403
- data/generators/bootstrap3/public/javascripts/bootstrap.js +0 -1999
- data/generators/bootstrap3/public/stylesheets/bootstrap-theme.css +0 -384
- data/generators/bootstrap3/public/stylesheets/bootstrap-theme.min.css +0 -1
- data/generators/bootstrap3/public/stylesheets/bootstrap.min.css +0 -9
- data/generators/content_type/app/content_types/%name%.yml.tt +0 -58
- data/generators/foundation/app/views/pages/index.liquid +0 -150
- data/generators/foundation/app/views/pages/index.liquid.haml +0 -125
- data/generators/foundation/app/views/snippets/footer.liquid +0 -16
- data/generators/foundation/app/views/snippets/footer.liquid.haml +0 -22
- data/generators/foundation/config/deploy.yml +0 -15
- data/generators/foundation/public/samples/.empty_directory +0 -1
- data/generators/foundation/public/stylesheets/foundation.css +0 -4727
@@ -0,0 +1,434 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "../functions";
|
6
|
+
//
|
7
|
+
// Foundation Variables
|
8
|
+
//
|
9
|
+
|
10
|
+
// Data attribute namespace
|
11
|
+
// styles get applied to [data-mysite-plugin], etc
|
12
|
+
$namespace: false !default;
|
13
|
+
|
14
|
+
// Control the inclusion of experimental properties
|
15
|
+
$experimental: true !default;
|
16
|
+
|
17
|
+
// The default font-size is set to 100% of the browser style sheet (usually 16px)
|
18
|
+
// for compatibility with browser-based text zoom or user-set defaults.
|
19
|
+
|
20
|
+
// Since the typical default browser font-size is 16px, that makes the calculation for grid size.
|
21
|
+
// If you want your base font-size to be different and not have it affect the grid breakpoints,
|
22
|
+
// set $rem-base to $base-font-size and make sure $base-font-size is a px value.
|
23
|
+
$base-font-size: 100% !default;
|
24
|
+
|
25
|
+
// $base-line-height is 24px while $base-font-size is 16px
|
26
|
+
$base-line-height: 150% !default;
|
27
|
+
|
28
|
+
//
|
29
|
+
// Global Foundation Mixins
|
30
|
+
//
|
31
|
+
|
32
|
+
// @mixins
|
33
|
+
//
|
34
|
+
// We use this to optionally include experimental or
|
35
|
+
// explicitly vendor prefixed properties
|
36
|
+
@mixin experimental() {
|
37
|
+
@if $experimental {
|
38
|
+
@content;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// @mixins
|
43
|
+
//
|
44
|
+
// We use this to control border radius.
|
45
|
+
// $radius - Default: $global-radius || 4px
|
46
|
+
@mixin radius($radius:$global-radius) {
|
47
|
+
@if $radius {
|
48
|
+
border-radius: $radius;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
// @mixins
|
53
|
+
//
|
54
|
+
// We use this to create equal side border radius on elements.
|
55
|
+
// $side - Options: left, right, top, bottom
|
56
|
+
@mixin side-radius($side, $radius:$global-radius) {
|
57
|
+
@if ($side == left or $side == right) {
|
58
|
+
border-bottom-#{$side}-radius: $radius;
|
59
|
+
border-top-#{$side}-radius: $radius;
|
60
|
+
} @else {
|
61
|
+
border-#{$side}-left-radius: $radius;
|
62
|
+
border-#{$side}-right-radius: $radius;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
// @mixins
|
67
|
+
//
|
68
|
+
// We can control whether or not we have inset shadows edges.
|
69
|
+
// $active - Default: true, Options: false
|
70
|
+
@mixin inset-shadow($active:true) {
|
71
|
+
box-shadow: $shiny-edge-size $shiny-edge-color inset;
|
72
|
+
|
73
|
+
@if $active { &:active {
|
74
|
+
box-shadow: $shiny-edge-size $shiny-edge-active-color inset; } }
|
75
|
+
}
|
76
|
+
|
77
|
+
// @mixins
|
78
|
+
//
|
79
|
+
// We use this to add transitions to elements
|
80
|
+
// $property - Default: all, Options: http://www.w3.org/TR/css3-transitions/#animatable-properties
|
81
|
+
// $speed - Default: 300ms
|
82
|
+
// $ease - Default:ease-out, Options: http://css-tricks.com/almanac/properties/t/transition-timing-function/
|
83
|
+
@mixin single-transition($property:all, $speed:300ms, $ease:ease-out) {
|
84
|
+
transition: $property $speed $ease;
|
85
|
+
}
|
86
|
+
|
87
|
+
// @mixins
|
88
|
+
//
|
89
|
+
// We use this to add box-sizing across browser prefixes
|
90
|
+
@mixin box-sizing($type:border-box) {
|
91
|
+
-webkit-box-sizing: $type; // Android < 2.3, iOS < 4
|
92
|
+
-moz-box-sizing: $type; // Firefox < 29
|
93
|
+
box-sizing: $type; // Chrome, IE 8+, Opera, Safari 5.1
|
94
|
+
}
|
95
|
+
|
96
|
+
// @mixins
|
97
|
+
//
|
98
|
+
// We use this to create isosceles triangles
|
99
|
+
// $triangle-size - Used to set border-size. No default, set a px or em size.
|
100
|
+
// $triangle-color - Used to set border-color which makes up triangle. No default
|
101
|
+
// $triangle-direction - Used to determine which direction triangle points. Options: top, bottom, left, right
|
102
|
+
@mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) {
|
103
|
+
content: "";
|
104
|
+
display: block;
|
105
|
+
width: 0;
|
106
|
+
height: 0;
|
107
|
+
border: inset $triangle-size;
|
108
|
+
@if ($triangle-direction == top) {
|
109
|
+
border-color: $triangle-color transparent transparent transparent;
|
110
|
+
border-top-style: solid;
|
111
|
+
}
|
112
|
+
@if ($triangle-direction == bottom) {
|
113
|
+
border-color: transparent transparent $triangle-color transparent;
|
114
|
+
border-bottom-style: solid;
|
115
|
+
}
|
116
|
+
@if ($triangle-direction == left) {
|
117
|
+
border-color: transparent transparent transparent $triangle-color;
|
118
|
+
border-left-style: solid;
|
119
|
+
}
|
120
|
+
@if ($triangle-direction == right) {
|
121
|
+
border-color: transparent $triangle-color transparent transparent;
|
122
|
+
border-right-style: solid;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
// @mixins
|
127
|
+
//
|
128
|
+
// We use this to create the icon with three lines aka the hamburger icon, the menu-icon or the navicon
|
129
|
+
// $width - Width of hamburger icon in rem
|
130
|
+
// $left - If false, icon will be centered horizontally || explicitly set value in rem
|
131
|
+
// $top - If false, icon will be centered vertically || explicitly set value in rem
|
132
|
+
// $thickness - thickness of lines in hamburger icon, set value in px
|
133
|
+
// $gap - spacing between the lines in hamburger icon, set value in px
|
134
|
+
// $color - icon color
|
135
|
+
// $hover-color - icon color during hover
|
136
|
+
// $offcanvas - Set to true of @include in offcanvas
|
137
|
+
@mixin hamburger($width, $left, $top, $thickness, $gap, $color, $hover-color, $offcanvas) {
|
138
|
+
span::after {
|
139
|
+
content: "";
|
140
|
+
position: absolute;
|
141
|
+
display: block;
|
142
|
+
height: 0;
|
143
|
+
|
144
|
+
@if $offcanvas {
|
145
|
+
@if $top {
|
146
|
+
top: $top;
|
147
|
+
}
|
148
|
+
@else {
|
149
|
+
top: 50%;
|
150
|
+
margin-top: -$width/2;
|
151
|
+
}
|
152
|
+
@if $left {
|
153
|
+
left: $left;
|
154
|
+
}
|
155
|
+
@else {
|
156
|
+
left: ($tabbar-menu-icon-width - $width)/2;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
@else {
|
160
|
+
top: 50%;
|
161
|
+
margin-top: -$width/2;
|
162
|
+
#{$opposite-direction}: $topbar-link-padding;
|
163
|
+
}
|
164
|
+
|
165
|
+
box-shadow:
|
166
|
+
0 0px 0 $thickness $color,
|
167
|
+
0 $gap + $thickness 0 $thickness $color,
|
168
|
+
0 (2 * $gap + 2*$thickness) 0 $thickness $color;
|
169
|
+
width: $width;
|
170
|
+
}
|
171
|
+
span:hover:after {
|
172
|
+
box-shadow:
|
173
|
+
0 0px 0 $thickness $hover-color,
|
174
|
+
0 $gap + $thickness 0 $thickness $hover-color,
|
175
|
+
0 (2 * $gap + 2*$thickness) 0 $thickness $hover-color;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
// We use this to do clear floats
|
180
|
+
@mixin clearfix {
|
181
|
+
&:before, &:after { content: " "; display: table; }
|
182
|
+
&:after { clear: both; }
|
183
|
+
}
|
184
|
+
|
185
|
+
// @mixins
|
186
|
+
//
|
187
|
+
// We use this to add a glowing effect to block elements
|
188
|
+
// $selector - Used for selector state. Default: focus, Options: hover, active, visited
|
189
|
+
// $fade-time - Default: 300ms
|
190
|
+
// $glowing-effect-color - Default: fade-out($primary-color, .25)
|
191
|
+
@mixin block-glowing-effect($selector:focus, $fade-time:300ms, $glowing-effect-color:fade-out($primary-color, .25)) {
|
192
|
+
transition: box-shadow $fade-time, border-color $fade-time ease-in-out;
|
193
|
+
|
194
|
+
&:#{$selector} {
|
195
|
+
box-shadow: 0 0 5px $glowing-effect-color;
|
196
|
+
border-color: $glowing-effect-color;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
// @mixins
|
201
|
+
//
|
202
|
+
// We use this to translate elements in 2D
|
203
|
+
// $horizontal: Default: 0
|
204
|
+
// $vertical: Default: 0
|
205
|
+
@mixin translate2d($horizontal:0, $vertical:0) {
|
206
|
+
transform: translate($horizontal,$vertical)
|
207
|
+
}
|
208
|
+
|
209
|
+
// @mixins
|
210
|
+
//
|
211
|
+
// Makes an element visually hidden, but accessible.
|
212
|
+
// @see http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
|
213
|
+
@mixin element-invisible {
|
214
|
+
position: absolute !important;
|
215
|
+
height: 1px;
|
216
|
+
width: 1px;
|
217
|
+
overflow: hidden;
|
218
|
+
clip: rect(1px, 1px, 1px, 1px);
|
219
|
+
}
|
220
|
+
|
221
|
+
// @mixins
|
222
|
+
//
|
223
|
+
// Turns off the element-invisible effect.
|
224
|
+
@mixin element-invisible-off {
|
225
|
+
position: static !important;
|
226
|
+
height: auto;
|
227
|
+
width: auto;
|
228
|
+
overflow: visible;
|
229
|
+
clip: auto;
|
230
|
+
}
|
231
|
+
|
232
|
+
// We use these to define default font weights
|
233
|
+
$font-weight-normal: normal !default;
|
234
|
+
$font-weight-bold: bold !default;
|
235
|
+
|
236
|
+
// We use these to control various global styles
|
237
|
+
$body-bg: #fff !default;
|
238
|
+
$body-font-color: #222 !default;
|
239
|
+
$body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
|
240
|
+
$body-font-weight: $font-weight-normal !default;
|
241
|
+
$body-font-style: normal !default;
|
242
|
+
|
243
|
+
// We use this to control font-smoothing
|
244
|
+
$font-smoothing: antialiased !default;
|
245
|
+
|
246
|
+
// We use these to control text direction settings
|
247
|
+
$text-direction: ltr !default;
|
248
|
+
$default-float: left !default;
|
249
|
+
$opposite-direction: right !default;
|
250
|
+
@if $text-direction == ltr {
|
251
|
+
$default-float: left;
|
252
|
+
$opposite-direction: right;
|
253
|
+
} @else {
|
254
|
+
$default-float: right;
|
255
|
+
$opposite-direction: left;
|
256
|
+
}
|
257
|
+
// We use these as default colors throughout
|
258
|
+
$primary-color: #008CBA !default;
|
259
|
+
$secondary-color: #e7e7e7 !default;
|
260
|
+
$alert-color: #f04124 !default;
|
261
|
+
$success-color: #43AC6A !default;
|
262
|
+
$warning-color: #f08a24 !default;
|
263
|
+
$info-color: #a0d3e8 !default;
|
264
|
+
|
265
|
+
// We use these to make sure border radius matches unless we want it different.
|
266
|
+
$global-radius: 3px !default;
|
267
|
+
$global-rounded: 1000px !default;
|
268
|
+
|
269
|
+
// We use these to control inset shadow shiny edges and depressions.
|
270
|
+
$shiny-edge-size: 0 1px 0 !default;
|
271
|
+
$shiny-edge-color: rgba(#fff, .5) !default;
|
272
|
+
$shiny-edge-active-color: rgba(#000, .2) !default;
|
273
|
+
|
274
|
+
// We use this to control whether or not CSS classes come through in the gem files.
|
275
|
+
$include-html-classes: true !default;
|
276
|
+
$include-print-styles: true !default;
|
277
|
+
$include-html-global-classes: $include-html-classes !default;
|
278
|
+
|
279
|
+
$column-gutter: rem-calc(30) !default;
|
280
|
+
|
281
|
+
// Media Query Ranges
|
282
|
+
$small-range: (0em, 40em) !default;
|
283
|
+
$medium-range: (40.063em, 64em) !default;
|
284
|
+
$large-range: (64.063em, 90em) !default;
|
285
|
+
$xlarge-range: (90.063em, 120em) !default;
|
286
|
+
$xxlarge-range: (120.063em, 99999999em) !default;
|
287
|
+
|
288
|
+
|
289
|
+
$screen: "only screen" !default;
|
290
|
+
|
291
|
+
$landscape: "#{$screen} and (orientation: landscape)" !default;
|
292
|
+
$portrait: "#{$screen} and (orientation: portrait)" !default;
|
293
|
+
|
294
|
+
$small-up: $screen !default;
|
295
|
+
$small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})" !default;
|
296
|
+
|
297
|
+
$medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})" !default;
|
298
|
+
$medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})" !default;
|
299
|
+
|
300
|
+
$large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})" !default;
|
301
|
+
$large-only: "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})" !default;
|
302
|
+
|
303
|
+
$xlarge-up: "#{$screen} and (min-width:#{lower-bound($xlarge-range)})" !default;
|
304
|
+
$xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})" !default;
|
305
|
+
|
306
|
+
$xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})" !default;
|
307
|
+
$xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})" !default;
|
308
|
+
|
309
|
+
// Legacy
|
310
|
+
$small: $medium-up;
|
311
|
+
$medium: $medium-up;
|
312
|
+
$large: $large-up;
|
313
|
+
|
314
|
+
|
315
|
+
//We use this as cursors values for enabling the option of having custom cursors in the whole site's stylesheet
|
316
|
+
$cursor-crosshair-value: crosshair !default;
|
317
|
+
$cursor-default-value: default !default;
|
318
|
+
$cursor-pointer-value: pointer !default;
|
319
|
+
$cursor-help-value: help !default;
|
320
|
+
$cursor-text-value: text !default;
|
321
|
+
|
322
|
+
|
323
|
+
@include exports("global") {
|
324
|
+
|
325
|
+
// Meta styles are included in all builds, as they are a dependancy of the Javascript.
|
326
|
+
// Used to provide media query values for javascript components.
|
327
|
+
// Forward slash placed around everything to convince PhantomJS to read the value.
|
328
|
+
|
329
|
+
meta.foundation-version {
|
330
|
+
font-family: "/5.2.3/";
|
331
|
+
}
|
332
|
+
|
333
|
+
meta.foundation-mq-small {
|
334
|
+
font-family: "/" + unquote($small-up) + "/";
|
335
|
+
width: lower-bound($small-range);
|
336
|
+
}
|
337
|
+
|
338
|
+
meta.foundation-mq-medium {
|
339
|
+
font-family: "/" + unquote($medium-up) + "/";
|
340
|
+
width: lower-bound($medium-range);
|
341
|
+
}
|
342
|
+
|
343
|
+
meta.foundation-mq-large {
|
344
|
+
font-family: "/" + unquote($large-up) + "/";
|
345
|
+
width: lower-bound($large-range);
|
346
|
+
}
|
347
|
+
|
348
|
+
meta.foundation-mq-xlarge {
|
349
|
+
font-family: "/" + unquote($xlarge-up) + "/";
|
350
|
+
width: lower-bound($xlarge-range);
|
351
|
+
}
|
352
|
+
|
353
|
+
meta.foundation-mq-xxlarge {
|
354
|
+
font-family: "/" + unquote($xxlarge-up) + "/";
|
355
|
+
width: lower-bound($xxlarge-range);
|
356
|
+
}
|
357
|
+
|
358
|
+
meta.foundation-data-attribute-namespace {
|
359
|
+
font-family: #{$namespace};
|
360
|
+
}
|
361
|
+
|
362
|
+
@if $include-html-global-classes {
|
363
|
+
|
364
|
+
// Must be 100% for off canvas to work
|
365
|
+
html, body { height: 100%; }
|
366
|
+
|
367
|
+
// Set box-sizing globally to handle padding and border widths
|
368
|
+
*,
|
369
|
+
*:before,
|
370
|
+
*:after {
|
371
|
+
@include box-sizing(border-box);
|
372
|
+
}
|
373
|
+
|
374
|
+
html,
|
375
|
+
body { font-size: $base-font-size; }
|
376
|
+
|
377
|
+
// Default body styles
|
378
|
+
body {
|
379
|
+
background: $body-bg;
|
380
|
+
color: $body-font-color;
|
381
|
+
padding: 0;
|
382
|
+
margin: 0;
|
383
|
+
font-family: $body-font-family;
|
384
|
+
font-weight: $body-font-weight;
|
385
|
+
font-style: $body-font-style;
|
386
|
+
line-height: 1; // Set to $base-line-height to take on browser default of 150%
|
387
|
+
position: relative;
|
388
|
+
cursor: $cursor-default-value;
|
389
|
+
}
|
390
|
+
|
391
|
+
a:hover { cursor: $cursor-pointer-value; }
|
392
|
+
|
393
|
+
// Grid Defaults to get images and embeds to work properly
|
394
|
+
img { max-width: 100%; height: auto; }
|
395
|
+
|
396
|
+
img { -ms-interpolation-mode: bicubic; }
|
397
|
+
|
398
|
+
#map_canvas,
|
399
|
+
.map_canvas {
|
400
|
+
img,
|
401
|
+
embed,
|
402
|
+
object { max-width: none !important;
|
403
|
+
}
|
404
|
+
}
|
405
|
+
|
406
|
+
// Miscellaneous useful HTML classes
|
407
|
+
.left { float: left !important; }
|
408
|
+
.right { float: right !important; }
|
409
|
+
.clearfix { @include clearfix; }
|
410
|
+
.hide { display: none; }
|
411
|
+
|
412
|
+
// Font smoothing
|
413
|
+
// Antialiased font smoothing works best for light text on a dark background.
|
414
|
+
// Apply to single elements instead of globally to body.
|
415
|
+
// Note this only applies to webkit-based desktop browsers and Firefox 25 (and later) on the Mac.
|
416
|
+
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
|
417
|
+
|
418
|
+
// Get rid of gap under images by making them display: inline-block; by default
|
419
|
+
img {
|
420
|
+
display: inline-block;
|
421
|
+
vertical-align: middle;
|
422
|
+
}
|
423
|
+
|
424
|
+
//
|
425
|
+
// Global resets for forms
|
426
|
+
//
|
427
|
+
|
428
|
+
// Make sure textarea takes on height automatically
|
429
|
+
textarea { height: auto; min-height: 50px; }
|
430
|
+
|
431
|
+
// Make select elements 100% width by default
|
432
|
+
select { width: 100%; }
|
433
|
+
}
|
434
|
+
}
|
@@ -0,0 +1,260 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
$include-html-grid-classes: $include-html-classes !default;
|
11
|
+
$include-xl-html-grid-classes: false !default;
|
12
|
+
|
13
|
+
$row-width: rem-calc(1000) !default;
|
14
|
+
$total-columns: 12 !default;
|
15
|
+
|
16
|
+
//
|
17
|
+
// Grid Functions
|
18
|
+
//
|
19
|
+
|
20
|
+
// Deprecated: We'll drop support for this in 5.1, use grid-calc()
|
21
|
+
@function gridCalc($colNumber, $totalColumns) {
|
22
|
+
@warn "gridCalc() is deprecated, use grid-calc()";
|
23
|
+
@return grid-calc($colNumber, $totalColumns);
|
24
|
+
}
|
25
|
+
|
26
|
+
// @FUNCTION
|
27
|
+
// $colNumber - Found in settings file
|
28
|
+
// $totalColumns - Found in settings file
|
29
|
+
@function grid-calc($colNumber, $totalColumns) {
|
30
|
+
@return percentage(($colNumber / $totalColumns));
|
31
|
+
}
|
32
|
+
|
33
|
+
//
|
34
|
+
// @mixins
|
35
|
+
//
|
36
|
+
|
37
|
+
// For creating container, nested, and collapsed rows.
|
38
|
+
//
|
39
|
+
//
|
40
|
+
// $behavior - Any special behavior for this row? Default: false. Options: nest, collapse, nest-collapse, false.
|
41
|
+
@mixin grid-row($behavior: false) {
|
42
|
+
|
43
|
+
// use @include grid-row(nest); to include a nested row
|
44
|
+
@if $behavior == nest {
|
45
|
+
width: auto;
|
46
|
+
margin-#{$default-float}: -($column-gutter/2);
|
47
|
+
margin-#{$opposite-direction}: -($column-gutter/2);
|
48
|
+
margin-top: 0;
|
49
|
+
margin-bottom: 0;
|
50
|
+
max-width: none;
|
51
|
+
}
|
52
|
+
|
53
|
+
// use @include grid-row(collapse); to collapsed a container row margins
|
54
|
+
@else if $behavior == collapse {
|
55
|
+
width: 100%;
|
56
|
+
margin: 0;
|
57
|
+
max-width: $row-width;
|
58
|
+
}
|
59
|
+
|
60
|
+
// use @include grid-row(nest-collapse); to collapse outer margins on a nested row
|
61
|
+
@else if $behavior == nest-collapse {
|
62
|
+
width: auto;
|
63
|
+
margin: 0;
|
64
|
+
max-width: none;
|
65
|
+
}
|
66
|
+
|
67
|
+
// use @include grid-row; to use a container row
|
68
|
+
@else {
|
69
|
+
width: 100%;
|
70
|
+
margin-#{$default-float}: auto;
|
71
|
+
margin-#{$opposite-direction}: auto;
|
72
|
+
margin-top: 0;
|
73
|
+
margin-bottom: 0;
|
74
|
+
max-width: $row-width;
|
75
|
+
}
|
76
|
+
|
77
|
+
// Clearfix for all rows
|
78
|
+
@include clearfix();
|
79
|
+
}
|
80
|
+
|
81
|
+
// Creates a column, should be used inside of a media query to control layouts
|
82
|
+
//
|
83
|
+
// $columns - The number of columns this should be
|
84
|
+
// $last-column - Is this the last column? Default: false.
|
85
|
+
// $center - Center these columns? Default: false.
|
86
|
+
// $offset - # of columns to offset. Default: false.
|
87
|
+
// $push - # of columns to push. Default: false.
|
88
|
+
// $pull - # of columns to pull. Default: false.
|
89
|
+
// $collapse - Get rid of gutter padding on column? Default: false.
|
90
|
+
// $float - Should this float? Default: true. Options: true, false, left, right.
|
91
|
+
@mixin grid-column(
|
92
|
+
$columns:false,
|
93
|
+
$last-column:false,
|
94
|
+
$center:false,
|
95
|
+
$offset:false,
|
96
|
+
$push:false,
|
97
|
+
$pull:false,
|
98
|
+
$collapse:false,
|
99
|
+
$float:true,
|
100
|
+
$position:false) {
|
101
|
+
|
102
|
+
// If positioned for default .column, include relative position
|
103
|
+
// push and pull require position set
|
104
|
+
@if $position or $push or $pull {
|
105
|
+
position: relative;
|
106
|
+
}
|
107
|
+
|
108
|
+
// If collapsed, get rid of gutter padding
|
109
|
+
@if $collapse {
|
110
|
+
padding-left: 0;
|
111
|
+
padding-right: 0;
|
112
|
+
}
|
113
|
+
|
114
|
+
// Gutter padding whenever a column isn't set to collapse
|
115
|
+
// (use $collapse:null to do nothing)
|
116
|
+
@else if $collapse == false {
|
117
|
+
padding-left: $column-gutter / 2;
|
118
|
+
padding-right: $column-gutter / 2;
|
119
|
+
}
|
120
|
+
|
121
|
+
// If a column number is given, calculate width
|
122
|
+
@if $columns {
|
123
|
+
width: grid-calc($columns, $total-columns);
|
124
|
+
|
125
|
+
// If last column, float naturally instead of to the right
|
126
|
+
@if $last-column { float: $opposite-direction; }
|
127
|
+
}
|
128
|
+
|
129
|
+
// Source Ordering, adds left/right depending on which you use.
|
130
|
+
@if $push { #{$default-float}: grid-calc($push, $total-columns); #{$opposite-direction}: auto; }
|
131
|
+
@if $pull { #{$opposite-direction}: grid-calc($pull, $total-columns); #{$default-float}: auto; }
|
132
|
+
|
133
|
+
@if $float {
|
134
|
+
@if $float == left or $float == true { float: $default-float; }
|
135
|
+
@else if $float == right { float: $opposite-direction; }
|
136
|
+
@else { float: none; }
|
137
|
+
}
|
138
|
+
|
139
|
+
// If centered, get rid of float and add appropriate margins
|
140
|
+
@if $center {
|
141
|
+
margin-#{$default-float}: auto;
|
142
|
+
margin-#{$opposite-direction}: auto;
|
143
|
+
float: none !important;
|
144
|
+
}
|
145
|
+
|
146
|
+
// If offset, calculate appropriate margins
|
147
|
+
@if $offset { margin-#{$default-float}: grid-calc($offset, $total-columns) !important; }
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
// Create presentational classes for grid
|
152
|
+
//
|
153
|
+
// $size - Name of class to use, i.e. "large" will generate .large-1, .large-2, etc.
|
154
|
+
@mixin grid-html-classes($size) {
|
155
|
+
|
156
|
+
@for $i from 0 through $total-columns - 1 {
|
157
|
+
.#{$size}-push-#{$i} {
|
158
|
+
@include grid-column($push:$i, $collapse:null, $float:false);
|
159
|
+
}
|
160
|
+
.#{$size}-pull-#{$i} {
|
161
|
+
@include grid-column($pull:$i, $collapse:null, $float:false);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
.column,
|
166
|
+
.columns { @include grid-column($columns:false, $position:true); }
|
167
|
+
|
168
|
+
|
169
|
+
@for $i from 1 through $total-columns {
|
170
|
+
.#{$size}-#{$i} { @include grid-column($columns:$i,$collapse:null,$float:false); }
|
171
|
+
}
|
172
|
+
|
173
|
+
[class*="column"] + [class*="column"]:last-child { float: $opposite-direction; }
|
174
|
+
[class*="column"] + [class*="column"].end { float: $default-float; }
|
175
|
+
|
176
|
+
|
177
|
+
@for $i from 0 through $total-columns - 1 {
|
178
|
+
.#{$size}-offset-#{$i} { @include grid-column($offset:$i, $collapse:null,$float:false); }
|
179
|
+
}
|
180
|
+
.#{$size}-reset-order {
|
181
|
+
margin-#{$default-float}: 0;
|
182
|
+
margin-#{$opposite-direction}: 0;
|
183
|
+
left: auto;
|
184
|
+
right: auto;
|
185
|
+
float: $default-float;
|
186
|
+
}
|
187
|
+
|
188
|
+
.column.#{$size}-centered,
|
189
|
+
.columns.#{$size}-centered { @include grid-column($center:true, $collapse:null, $float:false); }
|
190
|
+
|
191
|
+
.column.#{$size}-uncentered,
|
192
|
+
.columns.#{$size}-uncentered {
|
193
|
+
margin-#{$default-float}: 0;
|
194
|
+
margin-#{$opposite-direction}: 0;
|
195
|
+
float: $default-float !important;
|
196
|
+
}
|
197
|
+
|
198
|
+
.column.#{$size}-uncentered.opposite,
|
199
|
+
.columns.#{$size}-uncentered.opposite {
|
200
|
+
float: $opposite-direction;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
@include exports("grid") {
|
205
|
+
@if $include-html-grid-classes {
|
206
|
+
.row {
|
207
|
+
@include grid-row;
|
208
|
+
|
209
|
+
&.collapse {
|
210
|
+
> .column,
|
211
|
+
> .columns { @include grid-column($collapse:true, $float:false); }
|
212
|
+
|
213
|
+
.row {margin-left:0; margin-right:0;}
|
214
|
+
}
|
215
|
+
|
216
|
+
.row { @include grid-row($behavior:nest);
|
217
|
+
&.collapse { @include grid-row($behavior:nest-collapse); }
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
.column,
|
222
|
+
.columns { @include grid-column($columns:$total-columns); }
|
223
|
+
|
224
|
+
@media #{$small-up} {
|
225
|
+
@include grid-html-classes($size:small);
|
226
|
+
}
|
227
|
+
|
228
|
+
@media #{$medium-up} {
|
229
|
+
@include grid-html-classes($size:medium);
|
230
|
+
// Old push and pull classes
|
231
|
+
@for $i from 0 through $total-columns - 1 {
|
232
|
+
.push-#{$i} {
|
233
|
+
@include grid-column($push:$i, $collapse:null, $float:false);
|
234
|
+
}
|
235
|
+
.pull-#{$i} {
|
236
|
+
@include grid-column($pull:$i, $collapse:null, $float:false);
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
240
|
+
@media #{$large-up} {
|
241
|
+
@include grid-html-classes($size:large);
|
242
|
+
@for $i from 0 through $total-columns - 1 {
|
243
|
+
.push-#{$i} {
|
244
|
+
@include grid-column($push:$i, $collapse:null, $float:false);
|
245
|
+
}
|
246
|
+
.pull-#{$i} {
|
247
|
+
@include grid-column($pull:$i, $collapse:null, $float:false);
|
248
|
+
}
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
@if $include-xl-html-grid-classes {
|
253
|
+
@media #{$xlarge-up} {
|
254
|
+
@include grid-html-classes($size:xlarge);
|
255
|
+
}
|
256
|
+
@media #{$xxlarge-up} {
|
257
|
+
@include grid-html-classes($size:xxlarge);
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|