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,151 @@
|
|
1
|
+
//
|
2
|
+
// Dropdown Variables
|
3
|
+
//
|
4
|
+
$include-html-button-classes: $include-html-classes !default;
|
5
|
+
|
6
|
+
// We use these to controls height and width styles.
|
7
|
+
$f-dropdown-max-width: 200px !default;
|
8
|
+
$f-dropdown-height: auto !default;
|
9
|
+
$f-dropdown-max-height: none !default;
|
10
|
+
$f-dropdown-margin-top: 2px !default;
|
11
|
+
|
12
|
+
// We use this to control the background color
|
13
|
+
$f-dropdown-bg: #fff !default;
|
14
|
+
|
15
|
+
// We use this to set the border styles for dropdowns.
|
16
|
+
$f-dropdown-border-style: solid !default;
|
17
|
+
$f-dropdown-border-width: 1px !default;
|
18
|
+
$f-dropdown-border-color: darken(#fff, 20%) !default;
|
19
|
+
|
20
|
+
// We use these to style the triangle pip.
|
21
|
+
$f-dropdown-triangle-size: 6px !default;
|
22
|
+
$f-dropdown-triangle-color: #fff !default;
|
23
|
+
$f-dropdown-triangle-side-offset: 10px !default;
|
24
|
+
|
25
|
+
// We use these to control styles for the list elements.
|
26
|
+
$f-dropdown-list-style: none !default;
|
27
|
+
$f-dropdown-font-color: #555 !default;
|
28
|
+
$f-dropdown-font-size: em-calc(14) !default;
|
29
|
+
$f-dropdown-list-padding: em-calc(5, 10) !default;
|
30
|
+
$f-dropdown-line-height: em-calc(18) !default;
|
31
|
+
$f-dropdown-list-hover-bg: #eeeeee !default;
|
32
|
+
$dropdown-mobile-default-float: 0 !default;
|
33
|
+
|
34
|
+
// We use this to control the styles for when the dropdown has custom content.
|
35
|
+
$f-dropdown-content-padding: em-calc(20) !default;
|
36
|
+
|
37
|
+
//
|
38
|
+
// Dropdown Mixins
|
39
|
+
//
|
40
|
+
|
41
|
+
// NOTE: Make default max-width change between list and content types. Can add more width with classes, maybe .small, .medium, .large, etc.;
|
42
|
+
|
43
|
+
// We use this to style the dropdown container element.
|
44
|
+
@mixin dropdown-container($content:list, $triangle:true, $max-width:$f-dropdown-max-width) {
|
45
|
+
position: absolute;
|
46
|
+
top: -9999px;
|
47
|
+
list-style: $f-dropdown-list-style;
|
48
|
+
margin-#{$default-float}: 0;
|
49
|
+
|
50
|
+
> *:first-child { margin-top: 0; }
|
51
|
+
> *:last-child { margin-bottom: 0; }
|
52
|
+
|
53
|
+
@if $content == list {
|
54
|
+
width: 100%;
|
55
|
+
max-height: $f-dropdown-max-height;
|
56
|
+
height: $f-dropdown-height;
|
57
|
+
background: $f-dropdown-bg;
|
58
|
+
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
59
|
+
font-size: $em-base;
|
60
|
+
z-index: 99;
|
61
|
+
}
|
62
|
+
@else if $content == content {
|
63
|
+
padding: $f-dropdown-content-padding;
|
64
|
+
width: 100%;
|
65
|
+
height: $f-dropdown-height;
|
66
|
+
max-height: $f-dropdown-max-height;
|
67
|
+
background: $f-dropdown-bg;
|
68
|
+
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
69
|
+
font-size: $em-base;
|
70
|
+
z-index: 99;
|
71
|
+
}
|
72
|
+
|
73
|
+
@if $triangle {
|
74
|
+
margin-top: $f-dropdown-margin-top;
|
75
|
+
|
76
|
+
&:before {
|
77
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, bottom);
|
78
|
+
position: absolute;
|
79
|
+
top: -($f-dropdown-triangle-size * 2);
|
80
|
+
#{$default-float}: $f-dropdown-triangle-side-offset;
|
81
|
+
z-index: 99;
|
82
|
+
}
|
83
|
+
&:after {
|
84
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
|
85
|
+
position: absolute;
|
86
|
+
top: -(($f-dropdown-triangle-size + 1) * 2);
|
87
|
+
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
|
88
|
+
z-index: 98;
|
89
|
+
}
|
90
|
+
|
91
|
+
&.right:before {
|
92
|
+
left: auto;
|
93
|
+
right: $f-dropdown-triangle-side-offset;
|
94
|
+
}
|
95
|
+
&.right:after {
|
96
|
+
left: auto;
|
97
|
+
right: $f-dropdown-triangle-side-offset - 1;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
@if $max-width { max-width: $max-width; }
|
102
|
+
@else { max-width: $f-dropdown-max-width; }
|
103
|
+
|
104
|
+
}
|
105
|
+
|
106
|
+
// We use this to style the list elements or content inside the dropdown.
|
107
|
+
@mixin dropdown-style {
|
108
|
+
font-size: $f-dropdown-font-size;
|
109
|
+
cursor: $cursor-pointer-value;
|
110
|
+
|
111
|
+
line-height: $f-dropdown-line-height;
|
112
|
+
margin: 0;
|
113
|
+
|
114
|
+
&:hover,
|
115
|
+
&:focus { background: $f-dropdown-list-hover-bg; }
|
116
|
+
|
117
|
+
a {
|
118
|
+
display: block;
|
119
|
+
padding: $f-dropdown-list-padding;
|
120
|
+
color: $f-dropdown-font-color;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
|
125
|
+
@if $include-html-button-classes != false {
|
126
|
+
|
127
|
+
@media only screen and (max-width: 767px) {
|
128
|
+
.f-dropdown {
|
129
|
+
max-width: 100%;
|
130
|
+
#{$default-float}: $dropdown-mobile-default-float;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
/* Foundation Dropdowns */
|
135
|
+
.f-dropdown {
|
136
|
+
@include dropdown-container(list);
|
137
|
+
// max-width: none;
|
138
|
+
|
139
|
+
li { @include dropdown-style; }
|
140
|
+
|
141
|
+
// You can also put custom content in these dropdowns
|
142
|
+
&.content { @include dropdown-container(content, $triangle:false); }
|
143
|
+
|
144
|
+
// Sizes
|
145
|
+
&.tiny { max-width: 200px; }
|
146
|
+
&.small { max-width: 300px; }
|
147
|
+
&.medium { max-width: 500px; }
|
148
|
+
&.large { max-width: 800px; }
|
149
|
+
}
|
150
|
+
|
151
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
//
|
2
|
+
// Flex Video Variables
|
3
|
+
//
|
4
|
+
$include-html-media-classes: $include-html-classes !default;
|
5
|
+
|
6
|
+
// We use these to control video container padding and margins
|
7
|
+
$flex-video-padding-top: em-calc(25) !default;
|
8
|
+
$flex-video-padding-bottom: 67.5% !default;
|
9
|
+
$flex-video-margin-bottom: em-calc(16) !default;
|
10
|
+
|
11
|
+
// We use this to control widescreen bottom padding
|
12
|
+
$flex-video-widescreen-padding-bottom: 57.25% !default;
|
13
|
+
|
14
|
+
//
|
15
|
+
// Flex Video Mixins
|
16
|
+
//
|
17
|
+
|
18
|
+
@mixin flex-video-container {
|
19
|
+
position: relative;
|
20
|
+
padding-top: $flex-video-padding-top;
|
21
|
+
padding-bottom: $flex-video-padding-bottom;
|
22
|
+
height: 0;
|
23
|
+
margin-bottom: $flex-video-margin-bottom;
|
24
|
+
overflow: hidden;
|
25
|
+
|
26
|
+
&.widescreen { padding-bottom: $flex-video-widescreen-padding-bottom; }
|
27
|
+
&.vimeo { padding-top: 0; }
|
28
|
+
|
29
|
+
iframe,
|
30
|
+
object,
|
31
|
+
embed,
|
32
|
+
video {
|
33
|
+
position: absolute;
|
34
|
+
top: 0;
|
35
|
+
#{$default-float}: 0;
|
36
|
+
width: 100%;
|
37
|
+
height: 100%;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
@if $include-html-media-classes != false {
|
42
|
+
|
43
|
+
/* Flex Video */
|
44
|
+
.flex-video { @include flex-video-container; }
|
45
|
+
|
46
|
+
}
|
@@ -0,0 +1,411 @@
|
|
1
|
+
//
|
2
|
+
// Form Variables
|
3
|
+
//
|
4
|
+
$include-html-form-classes: $include-html-classes !default;
|
5
|
+
$include-html-form-error-classes: $include-html-form-classes !default;
|
6
|
+
|
7
|
+
// We use this to set the base for lots of form spacing and positioning styles
|
8
|
+
$form-spacing: em-calc(16) !default;
|
9
|
+
|
10
|
+
// We use these to style the labels in different ways
|
11
|
+
$form-label-pointer: pointer !default;
|
12
|
+
$form-label-font-size: em-calc(14) !default;
|
13
|
+
$form-label-font-weight: 500 !default;
|
14
|
+
$form-label-font-color: lighten(#000, 30%) !default;
|
15
|
+
$form-label-bottom-margin: em-calc(3) !default;
|
16
|
+
$input-font-family: inherit !default;
|
17
|
+
$input-font-color: rgba(0,0,0,0.75) !default;
|
18
|
+
$input-font-size: em-calc(14) !default;
|
19
|
+
$input-bg-color: #fff !default;
|
20
|
+
$input-focus-bg-color: darken(#fff, 2%) !default;
|
21
|
+
$input-border-color: darken(#fff, 20%) !default;
|
22
|
+
$input-focus-border-color: darken(#fff, 40%) !default;
|
23
|
+
$input-border-style: solid !default;
|
24
|
+
$input-border-width: 1px !default;
|
25
|
+
$input-disabled-bg: #ddd !default;
|
26
|
+
$input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default;
|
27
|
+
$input-include-glowing-effect: true !default;
|
28
|
+
|
29
|
+
// We use these to style the fieldset border and spacing.
|
30
|
+
$fieldset-border-style: solid !default;
|
31
|
+
$fieldset-border-width: 1px !default;
|
32
|
+
$fieldset-border-color: #ddd !default;
|
33
|
+
$fieldset-padding: em-calc(20) !default;
|
34
|
+
$fieldset-margin: em-calc(18 0) !default;
|
35
|
+
|
36
|
+
// We use these to style the legends when you use them
|
37
|
+
$legend-bg: #fff !default;
|
38
|
+
$legend-font-weight: bold !default;
|
39
|
+
$legend-padding: em-calc(0 3) !default;
|
40
|
+
|
41
|
+
// We use these to style the prefix and postfix input elements
|
42
|
+
$input-prefix-bg: darken(#fff, 5%) !default;
|
43
|
+
$input-prefix-border-color: darken(#fff, 20%) !default;
|
44
|
+
$input-prefix-border-size: 1px !default;
|
45
|
+
$input-prefix-border-type: solid !default;
|
46
|
+
$input-prefix-overflow: hidden !default;
|
47
|
+
$input-prefix-font-color: #333 !default;
|
48
|
+
$input-prefix-font-color-alt: #fff !default;
|
49
|
+
|
50
|
+
// We use these to style the error states for inputs and labels
|
51
|
+
$input-error-message-padding: em-calc(6 4) !default;
|
52
|
+
$input-error-message-top: 0;
|
53
|
+
$input-error-message-font-size: em-calc(12) !default;
|
54
|
+
$input-error-message-font-weight: bold !default;
|
55
|
+
$input-error-message-font-color: #fff !default;
|
56
|
+
$input-error-message-font-color-alt: #333 !default;
|
57
|
+
|
58
|
+
// We use this to style the glowing effect of inputs when focused
|
59
|
+
$glowing-effect-fade-time: 0.45s !default;
|
60
|
+
$glowing-effect-color: $input-focus-border-color !default;
|
61
|
+
|
62
|
+
//
|
63
|
+
// Form Mixins
|
64
|
+
//
|
65
|
+
|
66
|
+
// We use this mixin to give us form styles for rows inside of forms
|
67
|
+
@mixin form-row-base {
|
68
|
+
.row { margin: 0 ((-$form-spacing) / 2);
|
69
|
+
|
70
|
+
.column,
|
71
|
+
.columns { padding: 0 $form-spacing / 2; }
|
72
|
+
|
73
|
+
// Use this to collapse the margins of a form row
|
74
|
+
&.collapse { margin: 0;
|
75
|
+
|
76
|
+
.column,
|
77
|
+
.columns { padding: 0; }
|
78
|
+
input {
|
79
|
+
-moz-border-radius-bottom#{$opposite-direction}: 0;
|
80
|
+
-moz-border-radius-top#{$opposite-direction}: 0;
|
81
|
+
-webkit-border-bottom-#{$opposite-direction}-radius: 0;
|
82
|
+
-webkit-border-top-#{$opposite-direction}-radius: 0;
|
83
|
+
}
|
84
|
+
|
85
|
+
}
|
86
|
+
}
|
87
|
+
input.column,
|
88
|
+
input.columns,
|
89
|
+
textarea.column,
|
90
|
+
textarea.columns { padding-#{$default-float}: $form-spacing / 2; }
|
91
|
+
}
|
92
|
+
|
93
|
+
// We use this mixin to give all basic form elements their style
|
94
|
+
@mixin form-element() {
|
95
|
+
background-color: $input-bg-color;
|
96
|
+
font-family: $input-font-family;
|
97
|
+
border: $input-border-width $input-border-style $input-border-color;
|
98
|
+
@if $experimental {
|
99
|
+
-webkit-box-shadow: $input-box-shadow;
|
100
|
+
}
|
101
|
+
box-shadow: $input-box-shadow;
|
102
|
+
color: $input-font-color;
|
103
|
+
display: block;
|
104
|
+
font-size: $input-font-size;
|
105
|
+
margin: 0 0 $form-spacing 0;
|
106
|
+
padding: $form-spacing / 2;
|
107
|
+
height: ($input-font-size + ($form-spacing * 1.5) - em-calc(1));
|
108
|
+
width: 100%;
|
109
|
+
@include box-sizing(border-box);
|
110
|
+
@if $input-include-glowing-effect {
|
111
|
+
@include block-glowing-effect(focus, $glowing-effect-fade-time, $glowing-effect-color);
|
112
|
+
}
|
113
|
+
// Basic focus styles
|
114
|
+
&:focus {
|
115
|
+
background: $input-focus-bg-color;
|
116
|
+
border-color: $input-focus-border-color;
|
117
|
+
outline: none;
|
118
|
+
}
|
119
|
+
|
120
|
+
// Disabled background input background color
|
121
|
+
&[disabled] { background-color: $input-disabled-bg; }
|
122
|
+
}
|
123
|
+
|
124
|
+
// We use this mixin to create form labels
|
125
|
+
@mixin form-label($alignment:false, $base-style:true) {
|
126
|
+
|
127
|
+
// Control whether or not the base styles come through.
|
128
|
+
@if $base-style {
|
129
|
+
font-size: $form-label-font-size;
|
130
|
+
color: $form-label-font-color;
|
131
|
+
cursor: $form-label-pointer;
|
132
|
+
display: block;
|
133
|
+
font-weight: $form-label-font-weight;
|
134
|
+
margin-bottom: $form-label-bottom-margin;
|
135
|
+
}
|
136
|
+
|
137
|
+
// Alignment options
|
138
|
+
@if $alignment == right {
|
139
|
+
float: none;
|
140
|
+
text-align: right;
|
141
|
+
}
|
142
|
+
@else if $alignment == inline {
|
143
|
+
margin: 0 0 $form-spacing 0;
|
144
|
+
padding: $form-spacing / 2 + em-calc($input-border-width * 2) 0;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
// We use this mixin to create postfix/prefix form Labels
|
149
|
+
@mixin prefix-postfix-base {
|
150
|
+
display: block;
|
151
|
+
position: relative;
|
152
|
+
z-index: 2;
|
153
|
+
text-align: center;
|
154
|
+
width: 100%;
|
155
|
+
padding-top: 0;
|
156
|
+
padding-bottom: 0;
|
157
|
+
border-style: $input-prefix-border-type;
|
158
|
+
border-width: $input-prefix-border-size;
|
159
|
+
overflow: $input-prefix-overflow;
|
160
|
+
font-size: $form-label-font-size;
|
161
|
+
height: ($form-label-font-size + ($form-spacing * 1.5) - em-calc(1));
|
162
|
+
line-height: ($form-label-font-size + ($form-spacing * 1.5) - em-calc(1));
|
163
|
+
}
|
164
|
+
|
165
|
+
// We use this mixin to create prefix label styles
|
166
|
+
@mixin prefix($bg:$input-prefix-bg,$is-button:false) {
|
167
|
+
|
168
|
+
@if $bg {
|
169
|
+
$bg-lightness: lightness($bg);
|
170
|
+
background: $bg;
|
171
|
+
border-color: darken($bg, 10%);
|
172
|
+
border-#{$opposite-direction}: none;
|
173
|
+
|
174
|
+
// Control the font color based on background brightness
|
175
|
+
@if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; }
|
176
|
+
@else { color: $input-prefix-font-color-alt; }
|
177
|
+
}
|
178
|
+
|
179
|
+
@if $is-button {
|
180
|
+
padding-#{$default-float}: 0;
|
181
|
+
padding-#{$opposite-direction}: 0;
|
182
|
+
padding-top: 0;
|
183
|
+
padding-bottom: 0;
|
184
|
+
text-align: center;
|
185
|
+
line-height: em-calc(34);
|
186
|
+
}
|
187
|
+
|
188
|
+
}
|
189
|
+
|
190
|
+
// We use this mixin to create postfix label styles
|
191
|
+
@mixin postfix($bg:$input-prefix-bg, $is-button:false) {
|
192
|
+
|
193
|
+
@if $bg {
|
194
|
+
$bg-lightness: lightness($bg);
|
195
|
+
background: $bg;
|
196
|
+
border-color: darken($bg, 15%);
|
197
|
+
border-#{$default-float}: none;
|
198
|
+
|
199
|
+
// Control the font color based on background brightness
|
200
|
+
@if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; }
|
201
|
+
@else { color: $input-prefix-font-color-alt; }
|
202
|
+
}
|
203
|
+
|
204
|
+
@if $is-button {
|
205
|
+
padding-#{$default-float}: 0;
|
206
|
+
padding-#{$opposite-direction}: 0;
|
207
|
+
padding-top: 0;
|
208
|
+
padding-bottom: 0;
|
209
|
+
text-align: center;
|
210
|
+
line-height: em-calc(34);
|
211
|
+
}
|
212
|
+
|
213
|
+
}
|
214
|
+
|
215
|
+
// We use this mixin to style fieldsets
|
216
|
+
@mixin fieldset {
|
217
|
+
border: $fieldset-border-style $fieldset-border-width $fieldset-border-color;
|
218
|
+
padding: $fieldset-padding;
|
219
|
+
margin: $fieldset-margin;
|
220
|
+
|
221
|
+
// and legend styles
|
222
|
+
legend {
|
223
|
+
font-weight: $legend-font-weight;
|
224
|
+
background: $legend-bg;
|
225
|
+
padding: $legend-padding;
|
226
|
+
margin: 0;
|
227
|
+
margin-#{$default-float}: em-calc(-3);
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
// We use this mixin to control border and background color of error inputs
|
232
|
+
@mixin form-error-color($color:$alert-color) {
|
233
|
+
border-color: $color;
|
234
|
+
background-color: rgba($color, 0.1);
|
235
|
+
|
236
|
+
// Go back to normal on focus
|
237
|
+
&:focus {
|
238
|
+
background: $input-focus-bg-color;
|
239
|
+
border-color: $input-focus-border-color;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
// We use this simple mixin to style labels for error inputs
|
244
|
+
@mixin form-label-error-color($color:$alert-color) { color: $color; }
|
245
|
+
|
246
|
+
// We use this mixin to create error message styles
|
247
|
+
@mixin form-error-message($bg:$alert-color) {
|
248
|
+
display: block;
|
249
|
+
padding: $input-error-message-padding;
|
250
|
+
margin-top: $input-error-message-top;
|
251
|
+
margin-bottom: $form-spacing;
|
252
|
+
font-size: $input-error-message-font-size;
|
253
|
+
font-weight: $input-error-message-font-weight;
|
254
|
+
|
255
|
+
// We can control the text color based on the brightness of the background.
|
256
|
+
$bg-lightness: lightness($bg);
|
257
|
+
background: $bg;
|
258
|
+
@if $bg-lightness < 70% or $bg == yellow { color: $input-error-message-font-color; }
|
259
|
+
@else { color: $input-error-message-font-color-alt; }
|
260
|
+
}
|
261
|
+
|
262
|
+
// Only include these classes if the variable is true, otherwise they'll be left out.
|
263
|
+
@if $include-html-form-classes != false {
|
264
|
+
/* Standard Forms */
|
265
|
+
form { margin: 0 0 $form-spacing; }
|
266
|
+
|
267
|
+
/* Using forms within rows, we need to set some defaults */
|
268
|
+
form .row { @include form-row-base; }
|
269
|
+
|
270
|
+
/* Label Styles */
|
271
|
+
label { @include form-label;
|
272
|
+
&.right { @include form-label(right,false); }
|
273
|
+
&.inline { @include form-label(inline,false); }
|
274
|
+
/* Styles for required inputs */
|
275
|
+
small {
|
276
|
+
text-transform: capitalize;
|
277
|
+
color: lighten($form-label-font-color, 10%);
|
278
|
+
}
|
279
|
+
}
|
280
|
+
|
281
|
+
/* Attach elements to the beginning or end of an input */
|
282
|
+
.prefix,
|
283
|
+
.postfix { @include prefix-postfix-base; }
|
284
|
+
|
285
|
+
/* Adjust padding, alignment and radius if pre/post element is a button */
|
286
|
+
.postfix.button { @include button-size(false,false,false); @include postfix(false,true); }
|
287
|
+
.prefix.button { @include button-size(false,false,false); @include prefix(false,true); }
|
288
|
+
|
289
|
+
.prefix.button.radius { @include radius(0); @include side-radius(left, $button-radius); }
|
290
|
+
.postfix.button.radius { @include radius(0); @include side-radius(right, $button-radius); }
|
291
|
+
.prefix.button.round { @include radius(0); @include side-radius(left, $button-round); }
|
292
|
+
.postfix.button.round { @include radius(0); @include side-radius(right, $button-round); }
|
293
|
+
|
294
|
+
/* Separate prefix and postfix styles when on span or label so buttons keep their own */
|
295
|
+
span.prefix,label.prefix { @include prefix();
|
296
|
+
&.radius { @include radius(0); @include side-radius(left, $global-radius); }
|
297
|
+
}
|
298
|
+
span.postfix,label.postfix { @include postfix();
|
299
|
+
&.radius { @include radius(0); @include side-radius(right, $global-radius); }
|
300
|
+
}
|
301
|
+
|
302
|
+
/* Input groups will automatically style first and last elements of the group */
|
303
|
+
.input-group {
|
304
|
+
&.radius {
|
305
|
+
&>*:first-child, &>*:first-child * {
|
306
|
+
@include side-radius($default-float, $global-radius);
|
307
|
+
}
|
308
|
+
&>*:last-child, &>*:last-child * {
|
309
|
+
@include side-radius($opposite-direction, $global-radius);
|
310
|
+
}
|
311
|
+
}
|
312
|
+
&.round {
|
313
|
+
&>*:first-child, &>*:first-child * {
|
314
|
+
@include side-radius($default-float, $button-round);
|
315
|
+
}
|
316
|
+
&>*:last-child, &>*:last-child * {
|
317
|
+
@include side-radius($opposite-direction, $button-round);
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
|
322
|
+
/* We use this to get basic styling on all basic form elements */
|
323
|
+
input[type="text"],
|
324
|
+
input[type="password"],
|
325
|
+
input[type="date"],
|
326
|
+
input[type="datetime"],
|
327
|
+
input[type="datetime-local"],
|
328
|
+
input[type="month"],
|
329
|
+
input[type="week"],
|
330
|
+
input[type="email"],
|
331
|
+
input[type="number"],
|
332
|
+
input[type="search"],
|
333
|
+
input[type="tel"],
|
334
|
+
input[type="time"],
|
335
|
+
input[type="url"],
|
336
|
+
textarea {
|
337
|
+
-webkit-appearance: none;
|
338
|
+
-webkit-border-radius: 0;
|
339
|
+
border-radius: 0;
|
340
|
+
@include form-element;
|
341
|
+
@if not $input-include-glowing-effect {
|
342
|
+
@include single-transition(all, 0.15s, linear);
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
/* Adjust margin for form elements below */
|
347
|
+
input[type="file"],
|
348
|
+
input[type="checkbox"],
|
349
|
+
input[type="radio"],
|
350
|
+
select {
|
351
|
+
margin: 0 0 $form-spacing 0;
|
352
|
+
}
|
353
|
+
|
354
|
+
/* Normalize file input width */
|
355
|
+
input[type="file"] {
|
356
|
+
width:100%;
|
357
|
+
}
|
358
|
+
|
359
|
+
/* We add basic fieldset styling */
|
360
|
+
fieldset {
|
361
|
+
@include fieldset;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
@if $include-html-form-error-classes != false {
|
366
|
+
/* Error Handling */
|
367
|
+
|
368
|
+
[data-abide] {
|
369
|
+
.error small.error, span.error, small.error {
|
370
|
+
@include form-error-message;
|
371
|
+
}
|
372
|
+
span.error, small.error { display: none; }
|
373
|
+
}
|
374
|
+
span.error, small.error {
|
375
|
+
@include form-error-message;
|
376
|
+
}
|
377
|
+
.error {
|
378
|
+
input,
|
379
|
+
textarea,
|
380
|
+
select {
|
381
|
+
@include form-error-color;
|
382
|
+
margin-bottom: 0;
|
383
|
+
}
|
384
|
+
|
385
|
+
label,
|
386
|
+
label.error {
|
387
|
+
@include form-label-error-color;
|
388
|
+
}
|
389
|
+
|
390
|
+
> small,
|
391
|
+
small.error {
|
392
|
+
@include form-error-message;
|
393
|
+
}
|
394
|
+
|
395
|
+
span.error-message {
|
396
|
+
display: block;
|
397
|
+
}
|
398
|
+
}
|
399
|
+
|
400
|
+
input.error,
|
401
|
+
textarea.error {
|
402
|
+
@include form-error-color;
|
403
|
+
margin-bottom: 0;
|
404
|
+
}
|
405
|
+
|
406
|
+
.error select {
|
407
|
+
@include form-error-color;
|
408
|
+
}
|
409
|
+
|
410
|
+
label.error { @include form-label-error-color; }
|
411
|
+
}
|