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,423 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
// @variables
|
8
|
+
//
|
9
|
+
$include-html-orbit-classes: $include-html-classes !default;
|
10
|
+
|
11
|
+
// We use these to control the caption styles
|
12
|
+
$orbit-container-bg: none !default;
|
13
|
+
$orbit-caption-bg: rgba(51,51,51, 0.8) !default;
|
14
|
+
$orbit-caption-font-color: #fff !default;
|
15
|
+
$orbit-caption-font-size: rem-calc(14) !default;
|
16
|
+
$orbit-caption-position: "bottom" !default; // Supported values: "bottom", "under"
|
17
|
+
$orbit-caption-padding: rem-calc(10 14) !default;
|
18
|
+
$orbit-caption-height: auto !default;
|
19
|
+
|
20
|
+
// We use these to control the left/right nav styles
|
21
|
+
$orbit-nav-bg: transparent !default;
|
22
|
+
$orbit-nav-bg-hover: rgba(0,0,0,0.3) !default;
|
23
|
+
$orbit-nav-arrow-color: #fff !default;
|
24
|
+
$orbit-nav-arrow-color-hover: #fff !default;
|
25
|
+
|
26
|
+
// We use these to control the timer styles
|
27
|
+
$orbit-timer-bg: rgba(255,255,255,0.3) !default;
|
28
|
+
$orbit-timer-show-progress-bar: true !default;
|
29
|
+
|
30
|
+
// We use these to control the bullet nav styles
|
31
|
+
$orbit-bullet-nav-color: #ccc !default;
|
32
|
+
$orbit-bullet-nav-color-active: #999 !default;
|
33
|
+
$orbit-bullet-radius: rem-calc(9) !default;
|
34
|
+
|
35
|
+
// We use these to controls the style of slide numbers
|
36
|
+
$orbit-slide-number-bg: rgba(0,0,0,0) !default;
|
37
|
+
$orbit-slide-number-font-color: #fff !default;
|
38
|
+
$orbit-slide-number-padding: rem-calc(5) !default;
|
39
|
+
|
40
|
+
// We use these to controls the css animation
|
41
|
+
$orbit-animation-speed: 500ms !default;
|
42
|
+
$orbit-animation-ease: ease-in-out !default;
|
43
|
+
|
44
|
+
// Graceful Loading Wrapper and preloader
|
45
|
+
$wrapper-class: "slideshow-wrapper" !default;
|
46
|
+
$preloader-class: "preloader" !default;
|
47
|
+
|
48
|
+
// Hide controls on small
|
49
|
+
$orbit-nav-hide-for-small: true !default;
|
50
|
+
$orbit-bullet-hide-for-small: true !default;
|
51
|
+
$orbit-timer-hide-for-small: true !default;
|
52
|
+
|
53
|
+
// CSS Transform
|
54
|
+
// This function is needed in order to put in all of the browser prefixes.
|
55
|
+
// The normal tranform attribute still does not work properly across all browsers.
|
56
|
+
// In order to receive the transitionEnd events then you will still need to use the vendor prefixes
|
57
|
+
@mixin translate3d($x,$y,$z) {
|
58
|
+
-ms-transform:translate($x,$y);
|
59
|
+
|
60
|
+
-webkit-transform: translate3d($x,$y,$z);
|
61
|
+
-moz-transform: translate3d($x,$y,$z);
|
62
|
+
-o-transform: translate3d($x,$y,$z);
|
63
|
+
transform: translate3d($x,$y,$z);
|
64
|
+
}
|
65
|
+
|
66
|
+
@mixin rotate($d) {
|
67
|
+
-webkit-transform: rotate($d);
|
68
|
+
-moz-transform: rotate($d);
|
69
|
+
-ms-transform: rotate($d);
|
70
|
+
-o-transform: rotate($d);
|
71
|
+
transform: rotate($d);
|
72
|
+
}
|
73
|
+
|
74
|
+
@include exports("orbit") {
|
75
|
+
@if $include-html-orbit-classes {
|
76
|
+
|
77
|
+
@keyframes rotate {
|
78
|
+
from { @include rotate(0deg); }
|
79
|
+
to { @include rotate(360deg); }
|
80
|
+
}
|
81
|
+
|
82
|
+
/* Orbit Graceful Loading */
|
83
|
+
.#{$wrapper-class} {
|
84
|
+
position: relative;
|
85
|
+
|
86
|
+
ul {
|
87
|
+
// Prevent bullets showing before .orbit-container is loaded
|
88
|
+
list-style-type: none;
|
89
|
+
margin: 0;
|
90
|
+
|
91
|
+
// Hide all list items
|
92
|
+
li,
|
93
|
+
li .orbit-caption { display: none; }
|
94
|
+
|
95
|
+
// ...except for the first one
|
96
|
+
li:first-child { display: block; }
|
97
|
+
}
|
98
|
+
|
99
|
+
.orbit-container { background-color: transparent;
|
100
|
+
|
101
|
+
// Show images when .orbit-container is loaded
|
102
|
+
li { display: block;
|
103
|
+
|
104
|
+
.orbit-caption { display: block; }
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
// Orbit preloader
|
109
|
+
.#{$preloader-class} {
|
110
|
+
display: block;
|
111
|
+
width: 40px;
|
112
|
+
height: 40px;
|
113
|
+
position: absolute;
|
114
|
+
top: 50%;
|
115
|
+
left: 50%;
|
116
|
+
margin-top: -20px;
|
117
|
+
margin-left: -20px;
|
118
|
+
border: solid 3px;
|
119
|
+
border-color: #555 #fff;
|
120
|
+
@include radius(1000px);
|
121
|
+
animation-name: rotate;
|
122
|
+
animation-duration: 1.5s;
|
123
|
+
animation-iteration-count: infinite;
|
124
|
+
animation-timing-function: linear;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
.orbit-container {
|
129
|
+
overflow: hidden;
|
130
|
+
width: 100%;
|
131
|
+
position: relative;
|
132
|
+
background: $orbit-container-bg;
|
133
|
+
|
134
|
+
.orbit-slides-container {
|
135
|
+
list-style: none;
|
136
|
+
margin: 0;
|
137
|
+
padding: 0;
|
138
|
+
position: relative;
|
139
|
+
|
140
|
+
// Prevents images (and captions) from disappearing after first rotation on Chrome for Android
|
141
|
+
-webkit-transform: translateZ(0);
|
142
|
+
|
143
|
+
img { display: block; max-width: 100%; }
|
144
|
+
|
145
|
+
&.fade > li {
|
146
|
+
opacity: 0;
|
147
|
+
transition: opacity $orbit-animation-speed $orbit-animation-ease;
|
148
|
+
@include translate3d(0,0,0);
|
149
|
+
&.animate-in {
|
150
|
+
opacity: 1;
|
151
|
+
z-index: 20;
|
152
|
+
transition: opacity $orbit-animation-speed $orbit-animation-ease;
|
153
|
+
}
|
154
|
+
&.animate-out {
|
155
|
+
z-index: 10;
|
156
|
+
transition: opacity $orbit-animation-speed $orbit-animation-ease;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
&.swipe-next > li {
|
161
|
+
@include translate3d(100%,0,0);
|
162
|
+
&.animate-in {
|
163
|
+
@include translate3d(0,0,0);
|
164
|
+
transition-duration:$orbit-animation-speed;
|
165
|
+
}
|
166
|
+
&.animate-out {
|
167
|
+
@include translate3d(-100%,0,0);
|
168
|
+
transition-duration:$orbit-animation-speed;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
&.swipe-prev > li {
|
173
|
+
@include translate3d(-100%,0,0);
|
174
|
+
&.animate-in {
|
175
|
+
@include translate3d(0,0,0);
|
176
|
+
transition-duration:$orbit-animation-speed;
|
177
|
+
}
|
178
|
+
&.animate-out {
|
179
|
+
@include translate3d(100%,0,0);
|
180
|
+
transition-duration:$orbit-animation-speed;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
> li {
|
185
|
+
position: absolute;
|
186
|
+
top: 0;
|
187
|
+
left: 0;
|
188
|
+
width: 100%;
|
189
|
+
@include translate3d(100%,0,0);
|
190
|
+
|
191
|
+
> a { display: block; }
|
192
|
+
|
193
|
+
&.active {
|
194
|
+
opacity: 1;
|
195
|
+
// "relative" positioning is required for variable height of children.
|
196
|
+
position:relative;
|
197
|
+
top: 0;
|
198
|
+
left: 0;
|
199
|
+
@include translate3d(0,0,0);
|
200
|
+
}
|
201
|
+
|
202
|
+
.orbit-caption {
|
203
|
+
@if $orbit-caption-position == "bottom" {
|
204
|
+
position: absolute;
|
205
|
+
bottom: 0;
|
206
|
+
} @else if $orbit-caption-position == "under" {
|
207
|
+
position: relative;
|
208
|
+
}
|
209
|
+
|
210
|
+
background-color: $orbit-caption-bg;
|
211
|
+
color: $orbit-caption-font-color;
|
212
|
+
width: 100%;
|
213
|
+
padding: $orbit-caption-padding;
|
214
|
+
font-size: $orbit-caption-font-size;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
.orbit-slide-number {
|
220
|
+
position: absolute;
|
221
|
+
top: 10px;
|
222
|
+
#{$default-float}: 10px;
|
223
|
+
font-size: 12px;
|
224
|
+
span { font-weight: $font-weight-bold; padding: $orbit-slide-number-padding;}
|
225
|
+
color: $orbit-slide-number-font-color;
|
226
|
+
background: $orbit-slide-number-bg;
|
227
|
+
z-index: 10;
|
228
|
+
}
|
229
|
+
|
230
|
+
.orbit-timer {
|
231
|
+
position: absolute;
|
232
|
+
top: 12px;
|
233
|
+
#{$opposite-direction}: 10px;
|
234
|
+
height: 6px;
|
235
|
+
width: 100px;
|
236
|
+
z-index: 10;
|
237
|
+
.orbit-progress {
|
238
|
+
@if $orbit-timer-show-progress-bar {
|
239
|
+
height: 3px;
|
240
|
+
background-color: $orbit-timer-bg;
|
241
|
+
display: block;
|
242
|
+
width: 0%;
|
243
|
+
position: relative;
|
244
|
+
right: 20px;
|
245
|
+
top: 5px;
|
246
|
+
} @else {
|
247
|
+
display:none; // This is used by the Javascript to not create a handler.
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
// Play button
|
252
|
+
& > span {
|
253
|
+
display: none;
|
254
|
+
position: absolute;
|
255
|
+
top: 0px;
|
256
|
+
#{$opposite-direction}: 0;
|
257
|
+
width: 11px;
|
258
|
+
height: 14px;
|
259
|
+
border: solid 4px #fff;
|
260
|
+
border-top: none;
|
261
|
+
border-bottom: none;
|
262
|
+
}
|
263
|
+
|
264
|
+
// Pause button
|
265
|
+
&.paused {
|
266
|
+
& > span {
|
267
|
+
#{$opposite-direction}: -4px;
|
268
|
+
top: 0px;
|
269
|
+
width: 11px;
|
270
|
+
height: 14px;
|
271
|
+
border: inset 8px;
|
272
|
+
border-left-style: solid;
|
273
|
+
@include rotate(180deg);
|
274
|
+
border-color: transparent #fff transparent transparent;
|
275
|
+
&.dark {
|
276
|
+
border-color: transparent #333 transparent transparent;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
&:hover .orbit-timer > span { display: block; }
|
285
|
+
|
286
|
+
// Let's get those controls to be right in the center on each side
|
287
|
+
.orbit-prev,
|
288
|
+
.orbit-next {
|
289
|
+
position: absolute;
|
290
|
+
top: 45%;
|
291
|
+
margin-top: -25px;
|
292
|
+
width: 36px;
|
293
|
+
height: 60px;
|
294
|
+
line-height: 50px;
|
295
|
+
color: white;
|
296
|
+
background-color: $orbit-nav-bg;
|
297
|
+
text-indent: -9999px !important;
|
298
|
+
z-index: 10;
|
299
|
+
|
300
|
+
&:hover {
|
301
|
+
background-color: $orbit-nav-bg-hover;
|
302
|
+
}
|
303
|
+
|
304
|
+
& > span {
|
305
|
+
position: absolute;
|
306
|
+
top: 50%;
|
307
|
+
margin-top: -10px;
|
308
|
+
display: block;
|
309
|
+
width: 0;
|
310
|
+
height: 0;
|
311
|
+
border: inset 10px;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
.orbit-prev { #{$default-float}: 0;
|
315
|
+
& > span {
|
316
|
+
border-#{$opposite-direction}-style: solid;
|
317
|
+
border-color: transparent;
|
318
|
+
border-#{$opposite-direction}-color: $orbit-nav-arrow-color;
|
319
|
+
}
|
320
|
+
&:hover > span {
|
321
|
+
border-#{$opposite-direction}-color: $orbit-nav-arrow-color-hover;
|
322
|
+
}
|
323
|
+
}
|
324
|
+
.orbit-next { #{$opposite-direction}: 0;
|
325
|
+
& > span {
|
326
|
+
border-color: transparent;
|
327
|
+
border-#{$default-float}-style: solid;
|
328
|
+
border-#{$default-float}-color: $orbit-nav-arrow-color;
|
329
|
+
#{$default-float}: 50%;
|
330
|
+
margin-#{$default-float}: -4px;
|
331
|
+
}
|
332
|
+
&:hover > span {
|
333
|
+
border-#{$default-float}-color: $orbit-nav-arrow-color-hover;
|
334
|
+
}
|
335
|
+
}
|
336
|
+
|
337
|
+
.orbit-bullets-container { text-align: center; }
|
338
|
+
.orbit-bullets {
|
339
|
+
margin: 0 auto 30px auto;
|
340
|
+
overflow: hidden;
|
341
|
+
position: relative;
|
342
|
+
top: 10px;
|
343
|
+
float: none;
|
344
|
+
text-align: center;
|
345
|
+
display: block;
|
346
|
+
|
347
|
+
li {
|
348
|
+
display: inline-block;
|
349
|
+
width: $orbit-bullet-radius;
|
350
|
+
height: $orbit-bullet-radius;
|
351
|
+
background: $orbit-bullet-nav-color;
|
352
|
+
// float: $default-float;
|
353
|
+
float: none;
|
354
|
+
margin-#{$opposite-direction}: 6px;
|
355
|
+
@include radius(1000px);
|
356
|
+
|
357
|
+
&.active {
|
358
|
+
background: $orbit-bullet-nav-color-active;
|
359
|
+
}
|
360
|
+
|
361
|
+
&:last-child { margin-#{$opposite-direction}: 0; }
|
362
|
+
}
|
363
|
+
}
|
364
|
+
}
|
365
|
+
|
366
|
+
|
367
|
+
.touch {
|
368
|
+
.orbit-container {
|
369
|
+
.orbit-prev,
|
370
|
+
.orbit-next { display: none; }
|
371
|
+
}
|
372
|
+
|
373
|
+
.orbit-bullets { display: none; }
|
374
|
+
}
|
375
|
+
|
376
|
+
|
377
|
+
@media #{$medium-up} {
|
378
|
+
|
379
|
+
.touch {
|
380
|
+
.orbit-container {
|
381
|
+
.orbit-prev,
|
382
|
+
.orbit-next { display: inherit; }
|
383
|
+
}
|
384
|
+
|
385
|
+
.orbit-bullets { display: block; }
|
386
|
+
}
|
387
|
+
|
388
|
+
}
|
389
|
+
|
390
|
+
@media #{$small-only} {
|
391
|
+
.orbit-stack-on-small {
|
392
|
+
|
393
|
+
.orbit-slides-container {height: auto !important;}
|
394
|
+
.orbit-slides-container > * {
|
395
|
+
position: relative !important;
|
396
|
+
margin-left: 0% !important;
|
397
|
+
opacity: 1 !important;
|
398
|
+
-webkit-transform: none !important;
|
399
|
+
-moz-transform: none !important;
|
400
|
+
-ms-transform: none !important;
|
401
|
+
-o-transform: none !important;
|
402
|
+
transform: none !important;
|
403
|
+
transition: none !important;
|
404
|
+
}
|
405
|
+
|
406
|
+
@if $orbit-timer-hide-for-small {
|
407
|
+
.orbit-timer{display: none;}
|
408
|
+
}
|
409
|
+
@if $orbit-nav-hide-for-small {
|
410
|
+
.orbit-next,.orbit-prev{display: none;}
|
411
|
+
}
|
412
|
+
@if $orbit-bullet-hide-for-small {
|
413
|
+
.orbit-bullets{display: none;}
|
414
|
+
}
|
415
|
+
|
416
|
+
.orbit-slide-number {
|
417
|
+
display: none;
|
418
|
+
}
|
419
|
+
}
|
420
|
+
}
|
421
|
+
|
422
|
+
}
|
423
|
+
}
|
@@ -0,0 +1,150 @@
|
|
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-pagination-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use these to control the pagination container
|
13
|
+
$pagination-height: rem-calc(24) !default;
|
14
|
+
$pagination-margin: rem-calc(-5) !default;
|
15
|
+
|
16
|
+
// We use these to set the list-item properties
|
17
|
+
$pagination-li-float: $default-float !default;
|
18
|
+
$pagination-li-height: rem-calc(24) !default;
|
19
|
+
$pagination-li-font-color: #222 !default;
|
20
|
+
$pagination-li-font-size: rem-calc(14) !default;
|
21
|
+
$pagination-li-margin: rem-calc(5) !default;
|
22
|
+
|
23
|
+
// We use these for the pagination anchor links
|
24
|
+
$pagination-link-pad: rem-calc(1 10 1) !default;
|
25
|
+
$pagination-link-font-color: #999 !default;
|
26
|
+
$pagination-link-active-bg: scale-color(#fff, $lightness: -10%) !default;
|
27
|
+
|
28
|
+
// We use these for disabled anchor links
|
29
|
+
$pagination-link-unavailable-cursor: default !default;
|
30
|
+
$pagination-link-unavailable-font-color: #999 !default;
|
31
|
+
$pagination-link-unavailable-bg-active: transparent !default;
|
32
|
+
|
33
|
+
// We use these for currently selected anchor links
|
34
|
+
$pagination-link-current-background: $primary-color !default;
|
35
|
+
$pagination-link-current-font-color: #fff !default;
|
36
|
+
$pagination-link-current-font-weight: $font-weight-bold !default;
|
37
|
+
$pagination-link-current-cursor: default !default;
|
38
|
+
$pagination-link-current-active-bg: $primary-color !default;
|
39
|
+
|
40
|
+
// @mixins
|
41
|
+
//
|
42
|
+
// Style the pagination container. Currently only used when centering elements.
|
43
|
+
// $center - Default: false, Options: true
|
44
|
+
@mixin pagination-container($center:false) {
|
45
|
+
@if $center { text-align: center; }
|
46
|
+
}
|
47
|
+
|
48
|
+
// @mixins
|
49
|
+
// Style unavailable list items
|
50
|
+
@mixin pagination-unavailable-item {
|
51
|
+
a {
|
52
|
+
cursor: $pagination-link-unavailable-cursor;
|
53
|
+
color: $pagination-link-unavailable-font-color;
|
54
|
+
}
|
55
|
+
&:hover a,
|
56
|
+
& a:focus { background: $pagination-link-unavailable-bg-active; }
|
57
|
+
}
|
58
|
+
// @mixins
|
59
|
+
// Style the current list item. Do not assume that the current item has
|
60
|
+
// an anchor <a> element.
|
61
|
+
// $has-anchor - Default: true, Options: false
|
62
|
+
@mixin pagination-current-item($has-anchor: true) {
|
63
|
+
@if $has-anchor {
|
64
|
+
a {
|
65
|
+
background: $pagination-link-current-background;
|
66
|
+
color: $pagination-link-current-font-color;
|
67
|
+
font-weight: $pagination-link-current-font-weight;
|
68
|
+
cursor: $pagination-link-current-cursor;
|
69
|
+
|
70
|
+
&:hover,
|
71
|
+
&:focus { background: $pagination-link-current-active-bg; }
|
72
|
+
}
|
73
|
+
} @else {
|
74
|
+
height: auto;
|
75
|
+
padding: $pagination-link-pad;
|
76
|
+
background: $pagination-link-current-background;
|
77
|
+
color: $pagination-link-current-font-color;
|
78
|
+
font-weight: $pagination-link-current-font-weight;
|
79
|
+
cursor: $pagination-link-current-cursor;
|
80
|
+
@include radius;
|
81
|
+
|
82
|
+
&:hover,
|
83
|
+
&:focus { background: $pagination-link-current-active-bg; }
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
// @mixins
|
88
|
+
//
|
89
|
+
// We use this mixin to set the properties for the creating Foundation pagination
|
90
|
+
// $center - Left or center align the li elements. Default: false
|
91
|
+
// $base-style - Sets base styles for pagination. Default: true, Options: false
|
92
|
+
// $use-default-classes - Makes unavailable & current classes available for use. Default: true
|
93
|
+
@mixin pagination($center:false, $base-style:true, $use-default-classes:true) {
|
94
|
+
|
95
|
+
@if $base-style {
|
96
|
+
display: block;
|
97
|
+
min-height: $pagination-height;
|
98
|
+
margin-#{$default-float}: $pagination-margin;
|
99
|
+
|
100
|
+
li {
|
101
|
+
height: $pagination-li-height;
|
102
|
+
color: $pagination-li-font-color;
|
103
|
+
font-size: $pagination-li-font-size;
|
104
|
+
margin-#{$default-float}: $pagination-li-margin;
|
105
|
+
|
106
|
+
a {
|
107
|
+
display: block;
|
108
|
+
padding: $pagination-link-pad;
|
109
|
+
color: $pagination-link-font-color;
|
110
|
+
@include radius;
|
111
|
+
}
|
112
|
+
|
113
|
+
&:hover a,
|
114
|
+
a:focus { background: $pagination-link-active-bg; }
|
115
|
+
|
116
|
+
@if $use-default-classes {
|
117
|
+
&.unavailable { @include pagination-unavailable-item(); }
|
118
|
+
&.current { @include pagination-current-item(); }
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
// Left or center align the li elements
|
124
|
+
li {
|
125
|
+
@if $center {
|
126
|
+
float: none;
|
127
|
+
display: inline-block;
|
128
|
+
} @else {
|
129
|
+
float: $pagination-li-float;
|
130
|
+
display: block;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
@include exports("pagination") {
|
136
|
+
@if $include-pagination-classes {
|
137
|
+
ul.pagination {
|
138
|
+
@include pagination;
|
139
|
+
}
|
140
|
+
|
141
|
+
/* Pagination centred wrapper */
|
142
|
+
.pagination-centered {
|
143
|
+
@include pagination-container(true);
|
144
|
+
|
145
|
+
ul.pagination {
|
146
|
+
@include pagination(true, false);
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
@@ -0,0 +1,90 @@
|
|
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-panel-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use these to control the background and border styles
|
13
|
+
$panel-bg: scale-color(#fff, $lightness: -5%) !default;
|
14
|
+
$panel-border-style: solid !default;
|
15
|
+
$panel-border-size: 1px !default;
|
16
|
+
|
17
|
+
// We use this % to control how much we darken things on hover
|
18
|
+
$panel-function-factor: -11% !default;
|
19
|
+
$panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor) !default;
|
20
|
+
|
21
|
+
// We use these to set default inner padding and bottom margin
|
22
|
+
$panel-margin-bottom: rem-calc(20) !default;
|
23
|
+
$panel-padding: rem-calc(20) !default;
|
24
|
+
|
25
|
+
// We use these to set default font colors
|
26
|
+
$panel-font-color: #333 !default;
|
27
|
+
$panel-font-color-alt: #fff !default;
|
28
|
+
|
29
|
+
$panel-header-adjust: true !default;
|
30
|
+
$callout-panel-link-color: $primary-color !default;
|
31
|
+
//
|
32
|
+
// @mixins
|
33
|
+
//
|
34
|
+
// We use this mixin to create panels.
|
35
|
+
// $bg - Sets the panel background color. Default: $panel-pg || scale-color(#fff, $lightness: -5%) !default
|
36
|
+
// $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20)
|
37
|
+
// $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true
|
38
|
+
@mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust) {
|
39
|
+
|
40
|
+
@if $bg {
|
41
|
+
$bg-lightness: lightness($bg);
|
42
|
+
|
43
|
+
border-style: $panel-border-style;
|
44
|
+
border-width: $panel-border-size;
|
45
|
+
border-color: scale-color($bg, $lightness: $panel-function-factor);
|
46
|
+
margin-bottom: $panel-margin-bottom;
|
47
|
+
padding: $padding;
|
48
|
+
|
49
|
+
background: $bg;
|
50
|
+
|
51
|
+
// Respect the padding, fool.
|
52
|
+
&>:first-child { margin-top: 0; }
|
53
|
+
&>:last-child { margin-bottom: 0; }
|
54
|
+
|
55
|
+
@if $adjust {
|
56
|
+
// We set the font color based on the darkness of the bg.
|
57
|
+
@if $bg-lightness >= 50% and $bg == blue { h1,h2,h3,h4,h5,h6,p,li { color: $panel-font-color-alt; } }
|
58
|
+
@else if $bg-lightness >= 50% { h1,h2,h3,h4,h5,h6,p,li { color: $panel-font-color; } }
|
59
|
+
@else { h1,h2,h3,h4,h5,h6,p,li { color: $panel-font-color-alt; } }
|
60
|
+
|
61
|
+
// reset header line-heights for panels
|
62
|
+
h1,h2,h3,h4,h5,h6 {
|
63
|
+
line-height: 1; margin-bottom: rem-calc(20) / 2;
|
64
|
+
&.subheader { line-height: 1.4; }
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
@include exports("panel") {
|
71
|
+
@if $include-html-panel-classes {
|
72
|
+
|
73
|
+
/* Panels */
|
74
|
+
.panel { @include panel;
|
75
|
+
|
76
|
+
&.callout {
|
77
|
+
@include panel(scale-color($primary-color, $lightness: 94%));
|
78
|
+
a:not(.button) {
|
79
|
+
color: $callout-panel-link-color;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
&.radius {
|
84
|
+
@include radius;
|
85
|
+
}
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
}
|
90
|
+
}
|