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,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-html-pricing-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use this to control the border color
|
13
|
+
$price-table-border: solid 1px #ddd !default;
|
14
|
+
|
15
|
+
// We use this to control the bottom margin of the pricing table
|
16
|
+
$price-table-margin-bottom: rem-calc(20) !default;
|
17
|
+
|
18
|
+
// We use these to control the title styles
|
19
|
+
$price-title-bg: #333 !default;
|
20
|
+
$price-title-padding: rem-calc(15 20) !default;
|
21
|
+
$price-title-align: center !default;
|
22
|
+
$price-title-color: #eee !default;
|
23
|
+
$price-title-weight: $font-weight-normal !default;
|
24
|
+
$price-title-size: rem-calc(16) !default;
|
25
|
+
$price-title-font-family: $body-font-family !default;
|
26
|
+
|
27
|
+
// We use these to control the price styles
|
28
|
+
$price-money-bg: #f6f6f6 !default;
|
29
|
+
$price-money-padding: rem-calc(15 20) !default;
|
30
|
+
$price-money-align: center !default;
|
31
|
+
$price-money-color: #333 !default;
|
32
|
+
$price-money-weight: $font-weight-normal !default;
|
33
|
+
$price-money-size: rem-calc(32) !default;
|
34
|
+
$price-money-font-family: $body-font-family !default;
|
35
|
+
|
36
|
+
|
37
|
+
// We use these to control the description styles
|
38
|
+
$price-bg: #fff !default;
|
39
|
+
$price-desc-color: #777 !default;
|
40
|
+
$price-desc-padding: rem-calc(15) !default;
|
41
|
+
$price-desc-align: center !default;
|
42
|
+
$price-desc-font-size: rem-calc(12) !default;
|
43
|
+
$price-desc-weight: $font-weight-normal !default;
|
44
|
+
$price-desc-line-height: 1.4 !default;
|
45
|
+
$price-desc-bottom-border: dotted 1px #ddd !default;
|
46
|
+
|
47
|
+
// We use these to control the list item styles
|
48
|
+
$price-item-color: #333 !default;
|
49
|
+
$price-item-padding: rem-calc(15) !default;
|
50
|
+
$price-item-align: center !default;
|
51
|
+
$price-item-font-size: rem-calc(14) !default;
|
52
|
+
$price-item-weight: $font-weight-normal !default;
|
53
|
+
$price-item-bottom-border: dotted 1px #ddd !default;
|
54
|
+
|
55
|
+
// We use these to control the CTA area styles
|
56
|
+
$price-cta-bg: #fff !default;
|
57
|
+
$price-cta-align: center !default;
|
58
|
+
$price-cta-padding: rem-calc(20 20 0) !default;
|
59
|
+
|
60
|
+
// @mixins
|
61
|
+
//
|
62
|
+
// We use this to create the container element for the pricing tables
|
63
|
+
@mixin pricing-table-container {
|
64
|
+
border: $price-table-border;
|
65
|
+
margin-#{$default-float}: 0;
|
66
|
+
margin-bottom: $price-table-margin-bottom;
|
67
|
+
|
68
|
+
& * {
|
69
|
+
list-style: none;
|
70
|
+
line-height: 1;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
// @mixins
|
74
|
+
//
|
75
|
+
// We use this mixin to create the pricing table title styles
|
76
|
+
@mixin pricing-table-title {
|
77
|
+
background-color: $price-title-bg;
|
78
|
+
padding: $price-title-padding;
|
79
|
+
text-align: $price-title-align;
|
80
|
+
color: $price-title-color;
|
81
|
+
font-weight: $price-title-weight;
|
82
|
+
font-size: $price-title-size;
|
83
|
+
font-family: $price-title-font-family;
|
84
|
+
}
|
85
|
+
|
86
|
+
// @mixins
|
87
|
+
//
|
88
|
+
// We use this mixin to control the pricing table price styles
|
89
|
+
@mixin pricing-table-price {
|
90
|
+
background-color: $price-money-bg;
|
91
|
+
padding: $price-money-padding;
|
92
|
+
text-align: $price-money-align;
|
93
|
+
color: $price-money-color;
|
94
|
+
font-weight: $price-money-weight;
|
95
|
+
font-size: $price-money-size;
|
96
|
+
font-family: $price-money-font-family;
|
97
|
+
}
|
98
|
+
|
99
|
+
// @mixins
|
100
|
+
//
|
101
|
+
// We use this mixin to create the description styles for the pricing table
|
102
|
+
@mixin pricing-table-description {
|
103
|
+
background-color: $price-bg;
|
104
|
+
padding: $price-desc-padding;
|
105
|
+
text-align: $price-desc-align;
|
106
|
+
color: $price-desc-color;
|
107
|
+
font-size: $price-desc-font-size;
|
108
|
+
font-weight: $price-desc-weight;
|
109
|
+
line-height: $price-desc-line-height;
|
110
|
+
border-bottom: $price-desc-bottom-border;
|
111
|
+
}
|
112
|
+
|
113
|
+
// @mixins
|
114
|
+
//
|
115
|
+
// We use this mixin to style the bullet items in the pricing table
|
116
|
+
@mixin pricing-table-bullet {
|
117
|
+
background-color: $price-bg;
|
118
|
+
padding: $price-item-padding;
|
119
|
+
text-align: $price-item-align;
|
120
|
+
color: $price-item-color;
|
121
|
+
font-size: $price-item-font-size;
|
122
|
+
font-weight: $price-item-weight;
|
123
|
+
border-bottom: $price-item-bottom-border;
|
124
|
+
}
|
125
|
+
|
126
|
+
// @mixins
|
127
|
+
//
|
128
|
+
// We use this mixin to style the CTA area of the pricing tables
|
129
|
+
@mixin pricing-table-cta {
|
130
|
+
background-color: $price-cta-bg;
|
131
|
+
text-align: $price-cta-align;
|
132
|
+
padding: $price-cta-padding;
|
133
|
+
}
|
134
|
+
|
135
|
+
@include exports("pricing-table") {
|
136
|
+
@if $include-html-pricing-classes {
|
137
|
+
|
138
|
+
/* Pricing Tables */
|
139
|
+
.pricing-table {
|
140
|
+
@include pricing-table-container;
|
141
|
+
|
142
|
+
.title { @include pricing-table-title; }
|
143
|
+
.price { @include pricing-table-price; }
|
144
|
+
.description { @include pricing-table-description; }
|
145
|
+
.bullet-item { @include pricing-table-bullet; }
|
146
|
+
.cta-button { @include pricing-table-cta; }
|
147
|
+
}
|
148
|
+
|
149
|
+
}
|
150
|
+
}
|
@@ -0,0 +1,79 @@
|
|
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-media-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use this to set the progress bar height
|
13
|
+
$progress-bar-height: rem-calc(25) !default;
|
14
|
+
$progress-bar-color: #f6f6f6 !default;
|
15
|
+
|
16
|
+
// We use these to control the border styles
|
17
|
+
$progress-bar-border-color: scale-color(#fff, $lightness: 20%) !default;
|
18
|
+
$progress-bar-border-size: 1px !default;
|
19
|
+
$progress-bar-border-style: solid !default;
|
20
|
+
$progress-bar-border-radius: $global-radius !default;
|
21
|
+
|
22
|
+
// We use these to control the margin & padding
|
23
|
+
$progress-bar-pad: rem-calc(2) !default;
|
24
|
+
$progress-bar-margin-bottom: rem-calc(10) !default;
|
25
|
+
|
26
|
+
// We use these to set the meter colors
|
27
|
+
$progress-meter-color: $primary-color !default;
|
28
|
+
$progress-meter-secondary-color: $secondary-color !default;
|
29
|
+
$progress-meter-success-color: $success-color !default;
|
30
|
+
$progress-meter-alert-color: $alert-color !default;
|
31
|
+
|
32
|
+
// @mixins
|
33
|
+
//
|
34
|
+
// We use this to set up the progress bar container
|
35
|
+
@mixin progress-container {
|
36
|
+
background-color: $progress-bar-color;
|
37
|
+
height: $progress-bar-height;
|
38
|
+
border: $progress-bar-border-size $progress-bar-border-style $progress-bar-border-color;
|
39
|
+
padding: $progress-bar-pad;
|
40
|
+
margin-bottom: $progress-bar-margin-bottom;
|
41
|
+
}
|
42
|
+
|
43
|
+
// @mixins
|
44
|
+
//
|
45
|
+
// $bg - Default: $progress-meter-color || $primary-color
|
46
|
+
@mixin progress-meter($bg:$progress-meter-color) {
|
47
|
+
background: $bg;
|
48
|
+
height: 100%;
|
49
|
+
display: block;
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
@include exports("progress-bar") {
|
54
|
+
@if $include-html-media-classes {
|
55
|
+
|
56
|
+
/* Progress Bar */
|
57
|
+
.progress {
|
58
|
+
@include progress-container;
|
59
|
+
|
60
|
+
// Meter
|
61
|
+
.meter {
|
62
|
+
@include progress-meter;
|
63
|
+
}
|
64
|
+
&.secondary .meter { @include progress-meter($bg:$progress-meter-secondary-color); }
|
65
|
+
&.success .meter { @include progress-meter($bg:$progress-meter-success-color); }
|
66
|
+
&.alert .meter { @include progress-meter($bg:$progress-meter-alert-color); }
|
67
|
+
|
68
|
+
&.radius { @include radius($progress-bar-border-radius);
|
69
|
+
.meter { @include radius($progress-bar-border-radius - 1); }
|
70
|
+
}
|
71
|
+
|
72
|
+
&.round { @include radius(1000px);
|
73
|
+
.meter { @include radius(999px); }
|
74
|
+
}
|
75
|
+
|
76
|
+
}
|
77
|
+
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,148 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @name _range-slider.scss
|
9
|
+
// @dependencies _global.scss
|
10
|
+
//
|
11
|
+
|
12
|
+
//
|
13
|
+
// @variables
|
14
|
+
//
|
15
|
+
|
16
|
+
$include-html-range-slider-classes: $include-html-classes !default;
|
17
|
+
|
18
|
+
// These variabels define the slider bar styles
|
19
|
+
$range-slider-bar-width: 100% !default;
|
20
|
+
$range-slider-bar-height: rem-calc(16) !default;
|
21
|
+
|
22
|
+
$range-slider-bar-border-width: 1px !default;
|
23
|
+
$range-slider-bar-border-style: solid !default;
|
24
|
+
$range-slider-bar-border-color: #ddd !default;
|
25
|
+
$range-slider-radius: $global-radius !default;
|
26
|
+
$range-slider-round: $global-rounded !default;
|
27
|
+
$range-slider-bar-bg-color: #fafafa !default;
|
28
|
+
|
29
|
+
// Vertical bar styles
|
30
|
+
$range-slider-vertical-bar-width: rem-calc(16) !default;
|
31
|
+
$range-slider-vertical-bar-height: rem-calc(200) !default;
|
32
|
+
|
33
|
+
// These variabels define the slider handle styles
|
34
|
+
$range-slider-handle-width: rem-calc(32) !default;
|
35
|
+
$range-slider-handle-height: rem-calc(22) !default;
|
36
|
+
$range-slider-handle-position-top: rem-calc(-5) !default;
|
37
|
+
$range-slider-handle-bg-color: $primary-color !default;
|
38
|
+
$range-slider-handle-border-width: 1px !default;
|
39
|
+
$range-slider-handle-border-style: solid !default;
|
40
|
+
$range-slider-handle-border-color: none !default;
|
41
|
+
$range-slider-handle-radius: $global-radius !default;
|
42
|
+
$range-slider-handle-round: $global-rounded !default;
|
43
|
+
$range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%) !default;
|
44
|
+
$range-slider-handle-cursor: pointer !default;
|
45
|
+
|
46
|
+
|
47
|
+
//
|
48
|
+
// @mixins
|
49
|
+
//
|
50
|
+
|
51
|
+
@mixin range-slider-bar-base($vertical: false) {
|
52
|
+
display: block;
|
53
|
+
position: relative;
|
54
|
+
width: $range-slider-bar-width;
|
55
|
+
height: $range-slider-bar-height;
|
56
|
+
border: $range-slider-bar-border-width $range-slider-bar-border-style $range-slider-bar-border-color;
|
57
|
+
margin: rem-calc(20 0);
|
58
|
+
-ms-touch-action: none;
|
59
|
+
touch-action: none;
|
60
|
+
@if $vertical == true {
|
61
|
+
display: inline-block;
|
62
|
+
width: $range-slider-vertical-bar-width;
|
63
|
+
height: $range-slider-vertical-bar-height;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
@mixin range-slider-bar-style(
|
67
|
+
$bg: true,
|
68
|
+
$radius: false,
|
69
|
+
$round: false) {
|
70
|
+
@if $bg == true { background: $range-slider-bar-bg-color; }
|
71
|
+
@if $radius == true { @include radius($range-slider-radius); }
|
72
|
+
@if $round == true { @include radius($range-slider-round); }
|
73
|
+
}
|
74
|
+
|
75
|
+
@mixin range-slider-bar(
|
76
|
+
$bg: $range-slider-bar-bg-color,
|
77
|
+
$radius:false) {
|
78
|
+
@include range-slider-bar-base;
|
79
|
+
@include range-slider-bar-style;
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin range-slider-handle-base() {
|
83
|
+
display: inline-block;
|
84
|
+
position: absolute;
|
85
|
+
z-index: 1;
|
86
|
+
top: $range-slider-handle-position-top;
|
87
|
+
width: $range-slider-handle-width;
|
88
|
+
height: $range-slider-handle-height;
|
89
|
+
border: $range-slider-handle-border-width $range-slider-handle-border-style $range-slider-handle-border-color;
|
90
|
+
cursor: $range-slider-handle-cursor;
|
91
|
+
}
|
92
|
+
@mixin range-slider-handle-style(
|
93
|
+
$bg: true,
|
94
|
+
$radius: false,
|
95
|
+
$round: false) {
|
96
|
+
@if $bg == true { background: $range-slider-handle-bg-color; }
|
97
|
+
@if $radius == true { @include radius($range-slider-radius); }
|
98
|
+
@if $round == true { @include radius($range-slider-round); }
|
99
|
+
&:hover {
|
100
|
+
background: $range-slider-handle-bg-hover-color;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
@mixin range-slider-handle() {
|
104
|
+
@include range-slider-handle-base;
|
105
|
+
@include range-slider-handle-style;
|
106
|
+
}
|
107
|
+
|
108
|
+
// CSS Generation
|
109
|
+
@include exports("range-slider-bar") {
|
110
|
+
@if $include-html-range-slider-classes {
|
111
|
+
.range-slider {
|
112
|
+
@include range-slider-bar-base;
|
113
|
+
@include range-slider-bar-style($bg:true, $radius:false);
|
114
|
+
&.vertical-range {
|
115
|
+
@include range-slider-bar-base($vertical: true);
|
116
|
+
.range-slider-handle {
|
117
|
+
margin-top: 0;
|
118
|
+
margin-#{$default-float}: -($range-slider-handle-width / 4);
|
119
|
+
position: absolute;
|
120
|
+
bottom: -($range-slider-vertical-bar-height - $range-slider-handle-width);
|
121
|
+
}
|
122
|
+
.range-slider-active-segment {
|
123
|
+
width: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2));
|
124
|
+
height: auto;
|
125
|
+
bottom: 0;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
&.radius {
|
129
|
+
@include range-slider-bar-style($radius:true);
|
130
|
+
.range-slider-handle { @include range-slider-handle-style($radius: true); }
|
131
|
+
}
|
132
|
+
&.round {
|
133
|
+
@include range-slider-bar-style($round:true);
|
134
|
+
.range-slider-handle { @include range-slider-handle-style($round: true); }
|
135
|
+
}
|
136
|
+
}
|
137
|
+
.range-slider-active-segment {
|
138
|
+
display: inline-block;
|
139
|
+
position: absolute;
|
140
|
+
height: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2));
|
141
|
+
background: scale-color($secondary-color, $lightness: -1%);
|
142
|
+
}
|
143
|
+
.range-slider-handle {
|
144
|
+
@include range-slider-handle-base;
|
145
|
+
@include range-slider-handle-style($bg:true, $radius: false);
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
File without changes
|
@@ -0,0 +1,216 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @name _reveal.scss
|
9
|
+
// @dependencies _global.scss
|
10
|
+
//
|
11
|
+
|
12
|
+
$include-html-reveal-classes: $include-html-classes !default;
|
13
|
+
|
14
|
+
// We use these to control the style of the reveal overlay.
|
15
|
+
$reveal-overlay-bg: rgba(#000, .45) !default;
|
16
|
+
$reveal-overlay-bg-old: #000 !default;
|
17
|
+
|
18
|
+
// We use these to control the style of the modal itself.
|
19
|
+
$reveal-modal-bg: #fff !default;
|
20
|
+
$reveal-position-top: rem-calc(100) !default;
|
21
|
+
$reveal-default-width: 80% !default;
|
22
|
+
$reveal-modal-padding: rem-calc(20) !default;
|
23
|
+
$reveal-box-shadow: 0 0 10px rgba(#000,.4) !default;
|
24
|
+
|
25
|
+
// We use these to style the reveal close button
|
26
|
+
$reveal-close-font-size: rem-calc(40) !default;
|
27
|
+
$reveal-close-top: rem-calc(8) !default;
|
28
|
+
$reveal-close-side: rem-calc(11) !default;
|
29
|
+
$reveal-close-color: #aaa !default;
|
30
|
+
$reveal-close-weight: $font-weight-bold !default;
|
31
|
+
|
32
|
+
// We use this to set the default radius used throughout the core.
|
33
|
+
$reveal-radius: $global-radius !default;
|
34
|
+
$reveal-round: $global-rounded !default;
|
35
|
+
|
36
|
+
// We use these to control the modal border
|
37
|
+
$reveal-border-style: solid !default;
|
38
|
+
$reveal-border-width: 1px !default;
|
39
|
+
$reveal-border-color: #666 !default;
|
40
|
+
|
41
|
+
$reveal-modal-class: "reveal-modal" !default;
|
42
|
+
$close-reveal-modal-class: "close-reveal-modal" !default;
|
43
|
+
|
44
|
+
//
|
45
|
+
// @mixins
|
46
|
+
//
|
47
|
+
|
48
|
+
// We use this to create the reveal background overlay styles
|
49
|
+
@mixin reveal-bg {
|
50
|
+
position: fixed;
|
51
|
+
height: 100%;
|
52
|
+
width: 100%;
|
53
|
+
background: $reveal-overlay-bg-old;
|
54
|
+
background: $reveal-overlay-bg;
|
55
|
+
z-index: 99;
|
56
|
+
display: none;
|
57
|
+
top: 0;
|
58
|
+
#{$default-float}: 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
// We use this mixin to create the structure of a reveal modal
|
62
|
+
//
|
63
|
+
// $base-style - Provides reveal base styles, can be set to false to override. Default: true, Options: false
|
64
|
+
// $width - Sets reveal width Default: $reveal-default-width || 80%
|
65
|
+
//
|
66
|
+
@mixin reveal-modal-base(
|
67
|
+
$base-style:true,
|
68
|
+
$width:$reveal-default-width) {
|
69
|
+
@if $base-style {
|
70
|
+
visibility: hidden;
|
71
|
+
display: none;
|
72
|
+
position: absolute;
|
73
|
+
z-index: 100;
|
74
|
+
width: 100vw;
|
75
|
+
top:0;
|
76
|
+
#{$default-float}: 0;
|
77
|
+
@media #{$small-only} {
|
78
|
+
min-height:100vh;
|
79
|
+
}
|
80
|
+
@media #{$medium-up} {
|
81
|
+
#{$default-float}: 50%;
|
82
|
+
}
|
83
|
+
|
84
|
+
// Make sure rows don't have a min-width on them
|
85
|
+
.column,
|
86
|
+
.columns { min-width: 0; }
|
87
|
+
|
88
|
+
// Get rid of margin from first and last element inside modal
|
89
|
+
& > :first-child { margin-top: 0; }
|
90
|
+
& > :last-child { margin-bottom: 0; }
|
91
|
+
}
|
92
|
+
|
93
|
+
@if $width {
|
94
|
+
@media #{$medium-up} {
|
95
|
+
margin-#{$default-float}: -($width / 2);
|
96
|
+
width: $width;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
// We use this to style the reveal modal defaults
|
102
|
+
//
|
103
|
+
// $bg - Sets background color of reveal modal. Default: $reveal-modal-bg || #fff
|
104
|
+
// $padding - Padding to apply to reveal modal. Default: $reveal-modal-padding.
|
105
|
+
// $border - Choose whether reveal uses a border. Default: true, Options: false
|
106
|
+
// $border-style - Set reveal border style. Default: $reveal-border-style || solid
|
107
|
+
// $border-width - Width of border (i.e. 1px). Default: $reveal-border-width.
|
108
|
+
// $border-color - Color of border. Default: $reveal-border-color.
|
109
|
+
// $box-shadow - Choose whether or not to include the default box-shadow. Default: true, Options: false
|
110
|
+
// $radius - If true, set to modal radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: false
|
111
|
+
// $top-offset - Default: $reveal-position-top || 50px
|
112
|
+
@mixin reveal-modal-style(
|
113
|
+
$bg:false,
|
114
|
+
$padding:false,
|
115
|
+
$border:false,
|
116
|
+
$border-style:$reveal-border-style,
|
117
|
+
$border-width:$reveal-border-width,
|
118
|
+
$border-color:$reveal-border-color,
|
119
|
+
$box-shadow:false,
|
120
|
+
$radius:false,
|
121
|
+
$top-offset:false) {
|
122
|
+
|
123
|
+
@if $bg { background-color: $bg; }
|
124
|
+
@if $padding != false { padding: $padding; }
|
125
|
+
|
126
|
+
@if $border { border: $border-style $border-width $border-color; }
|
127
|
+
|
128
|
+
// We can choose whether or not to include the default box-shadow.
|
129
|
+
@if $box-shadow {
|
130
|
+
box-shadow: $reveal-box-shadow;
|
131
|
+
}
|
132
|
+
|
133
|
+
// We can control how much radius is used on the modal
|
134
|
+
@if $radius == true { @include radius($reveal-radius); }
|
135
|
+
@else if $radius { @include radius($radius); }
|
136
|
+
|
137
|
+
@if $top-offset {
|
138
|
+
@media #{$medium-up} {
|
139
|
+
top: $top-offset;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
// We use this to create a close button for the reveal modal
|
145
|
+
//
|
146
|
+
// $color - Default: $reveal-close-color || #aaa
|
147
|
+
@mixin reveal-close($color:$reveal-close-color) {
|
148
|
+
font-size: $reveal-close-font-size;
|
149
|
+
line-height: 1;
|
150
|
+
position: absolute;
|
151
|
+
top: $reveal-close-top;
|
152
|
+
#{$opposite-direction}: $reveal-close-side;
|
153
|
+
color: $color;
|
154
|
+
font-weight: $reveal-close-weight;
|
155
|
+
cursor: $cursor-pointer-value;
|
156
|
+
}
|
157
|
+
|
158
|
+
@include exports("reveal") {
|
159
|
+
@if $include-html-reveal-classes {
|
160
|
+
|
161
|
+
// Reveal Modals
|
162
|
+
.reveal-modal-bg { @include reveal-bg; }
|
163
|
+
|
164
|
+
dialog, .#{$reveal-modal-class} {
|
165
|
+
@include reveal-modal-base;
|
166
|
+
@include reveal-modal-style(
|
167
|
+
$bg:$reveal-modal-bg,
|
168
|
+
$padding:$reveal-modal-padding,
|
169
|
+
$border:true,
|
170
|
+
$box-shadow:true,
|
171
|
+
$radius:false,
|
172
|
+
$top-offset:$reveal-position-top);
|
173
|
+
|
174
|
+
.#{$close-reveal-modal-class} { @include reveal-close; }
|
175
|
+
}
|
176
|
+
|
177
|
+
dialog[open] {
|
178
|
+
display:block;
|
179
|
+
visibility: visible;
|
180
|
+
}
|
181
|
+
|
182
|
+
@media #{$medium-up} {
|
183
|
+
|
184
|
+
dialog, .#{$reveal-modal-class} {
|
185
|
+
@include reveal-modal-style($padding:$reveal-modal-padding * 1.5);
|
186
|
+
|
187
|
+
&.radius { @include reveal-modal-style($radius:true); }
|
188
|
+
&.round { @include reveal-modal-style($radius:$reveal-round); }
|
189
|
+
|
190
|
+
&.collapse { @include reveal-modal-style($padding:0); }
|
191
|
+
|
192
|
+
&.tiny { @include reveal-modal-base(false, 30%); }
|
193
|
+
&.small { @include reveal-modal-base(false, 40%); }
|
194
|
+
&.medium { @include reveal-modal-base(false, 60%); }
|
195
|
+
&.large { @include reveal-modal-base(false, 70%); }
|
196
|
+
&.xlarge { @include reveal-modal-base(false, 95%); }
|
197
|
+
}
|
198
|
+
|
199
|
+
dialog, .#{$reveal-modal-class} {
|
200
|
+
&.full {
|
201
|
+
@include reveal-modal-base(false, 100vw);
|
202
|
+
top:0;
|
203
|
+
left:0;
|
204
|
+
height: 100vh;
|
205
|
+
min-height:100vh;
|
206
|
+
margin-left: 0 !important;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
// Reveal Print Styles
|
212
|
+
@media print {
|
213
|
+
dialog, .#{$reveal-modal-class} {background: #fff !important;}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
|
11
|
+
$include-html-nav-classes: $include-html-classes !default;
|
12
|
+
|
13
|
+
// We use this to control padding.
|
14
|
+
$side-nav-padding: rem-calc(14 0) !default;
|
15
|
+
|
16
|
+
// We use these to control list styles.
|
17
|
+
$side-nav-list-type: none !default;
|
18
|
+
$side-nav-list-position: inside !default;
|
19
|
+
$side-nav-list-margin: rem-calc(0 0 7 0) !default;
|
20
|
+
|
21
|
+
// We use these to control link styles.
|
22
|
+
$side-nav-link-color: $primary-color !default;
|
23
|
+
$side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
24
|
+
$side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
25
|
+
$side-nav-link-bg-hover: hsla(0, 0, 0, 0.025) !default;
|
26
|
+
$side-nav-link-margin: 0 !default;
|
27
|
+
$side-nav-link-padding: rem-calc(7 14) !default;
|
28
|
+
$side-nav-font-size: rem-calc(14) !default;
|
29
|
+
$side-nav-font-weight: $font-weight-normal !default;
|
30
|
+
$side-nav-font-weight-active: $side-nav-font-weight !default;
|
31
|
+
$side-nav-font-family: $body-font-family !default;
|
32
|
+
$side-nav-font-family-active: $side-nav-font-family !default;
|
33
|
+
|
34
|
+
// We use these to control heading styles.
|
35
|
+
$side-nav-heading-color: $side-nav-link-color !default;
|
36
|
+
$side-nav-heading-font-size: $side-nav-font-size !default;
|
37
|
+
$side-nav-heading-font-weight: bold !default;
|
38
|
+
$side-nav-heading-text-transform: uppercase !default;
|
39
|
+
|
40
|
+
// We use these to control border styles
|
41
|
+
$side-nav-divider-size: 1px !default;
|
42
|
+
$side-nav-divider-style: solid !default;
|
43
|
+
$side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
|
44
|
+
|
45
|
+
|
46
|
+
//
|
47
|
+
// @mixins
|
48
|
+
//
|
49
|
+
|
50
|
+
|
51
|
+
// We use this to style the side-nav
|
52
|
+
//
|
53
|
+
// $divider-color - Border color of divider. Default: $side-nav-divider-color.
|
54
|
+
// $font-size - Font size of nav items. Default: $side-nav-font-size.
|
55
|
+
// $link-color - Color of navigation links. Default: $side-nav-link-color.
|
56
|
+
// $link-color-hover - Color of navigation links when hovered. Default: $side-nav-link-color-hover.
|
57
|
+
@mixin side-nav(
|
58
|
+
$divider-color:$side-nav-divider-color,
|
59
|
+
$font-size:$side-nav-font-size,
|
60
|
+
$link-color:$side-nav-link-color,
|
61
|
+
$link-color-hover:$side-nav-link-color-hover,
|
62
|
+
$link-bg-hover:$side-nav-link-bg-hover) {
|
63
|
+
display: block;
|
64
|
+
margin: 0;
|
65
|
+
padding: $side-nav-padding;
|
66
|
+
list-style-type: $side-nav-list-type;
|
67
|
+
list-style-position: $side-nav-list-position;
|
68
|
+
font-family: $side-nav-font-family;
|
69
|
+
|
70
|
+
li {
|
71
|
+
margin: $side-nav-list-margin;
|
72
|
+
font-size: $font-size;
|
73
|
+
|
74
|
+
a:not(.button) {
|
75
|
+
display: block;
|
76
|
+
color: $link-color;
|
77
|
+
margin: $side-nav-link-margin;
|
78
|
+
padding: $side-nav-link-padding;
|
79
|
+
&:hover,
|
80
|
+
&:focus {
|
81
|
+
background: $link-bg-hover;
|
82
|
+
color: $link-color-hover;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
&.active > a:first-child:not(.button) {
|
87
|
+
color: $side-nav-link-color-active;
|
88
|
+
font-weight: $side-nav-font-weight-active;
|
89
|
+
font-family: $side-nav-font-family-active;
|
90
|
+
}
|
91
|
+
|
92
|
+
&.divider {
|
93
|
+
border-top: $side-nav-divider-size $side-nav-divider-style;
|
94
|
+
height: 0;
|
95
|
+
padding: 0;
|
96
|
+
list-style: none;
|
97
|
+
border-top-color: $divider-color;
|
98
|
+
}
|
99
|
+
|
100
|
+
&.heading {
|
101
|
+
color: $side-nav-heading-color;
|
102
|
+
font: {
|
103
|
+
size: $side-nav-heading-font-size;
|
104
|
+
weight: $side-nav-heading-font-weight;
|
105
|
+
}
|
106
|
+
text-transform: $side-nav-heading-text-transform;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
@include exports("side-nav") {
|
112
|
+
@if $include-html-nav-classes {
|
113
|
+
.side-nav { @include side-nav; }
|
114
|
+
}
|
115
|
+
}
|