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,222 @@
|
|
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-button-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use these to build padding for buttons.
|
13
|
+
$button-tny: rem-calc(10) !default;
|
14
|
+
$button-sml: rem-calc(14) !default;
|
15
|
+
$button-med: rem-calc(16) !default;
|
16
|
+
$button-lrg: rem-calc(18) !default;
|
17
|
+
|
18
|
+
// We use this to control the display property.
|
19
|
+
$button-display: inline-block !default;
|
20
|
+
$button-margin-bottom: rem-calc(20) !default;
|
21
|
+
|
22
|
+
// We use these to control button text styles.
|
23
|
+
$button-font-family: $body-font-family !default;
|
24
|
+
$button-font-color: #fff !default;
|
25
|
+
$button-font-color-alt: #333 !default;
|
26
|
+
$button-font-tny: rem-calc(11) !default;
|
27
|
+
$button-font-sml: rem-calc(13) !default;
|
28
|
+
$button-font-med: rem-calc(16) !default;
|
29
|
+
$button-font-lrg: rem-calc(20) !default;
|
30
|
+
$button-font-weight: $font-weight-normal !default;
|
31
|
+
$button-font-align: center !default;
|
32
|
+
|
33
|
+
// We use these to control various hover effects.
|
34
|
+
$button-function-factor: -20% !default;
|
35
|
+
|
36
|
+
// We use these to control button border styles.
|
37
|
+
$button-border-width: 0px !default;
|
38
|
+
$button-border-style: solid !default;
|
39
|
+
$button-bg: $primary-color !default;
|
40
|
+
$button-border-color: scale-color($button-bg, $lightness: $button-function-factor) !default;
|
41
|
+
|
42
|
+
// We use this to set the default radius used throughout the core.
|
43
|
+
$button-radius: $global-radius !default;
|
44
|
+
$button-round: $global-rounded !default;
|
45
|
+
|
46
|
+
// We use this to set default opacity for disabled buttons.
|
47
|
+
$button-disabled-opacity: 0.7 !default;
|
48
|
+
|
49
|
+
|
50
|
+
//
|
51
|
+
// @MIXIN
|
52
|
+
//
|
53
|
+
// We use this mixin to create a default button base.
|
54
|
+
//
|
55
|
+
// $style - Sets base styles. Can be set to false. Default: true.
|
56
|
+
// $display - Used to control display property. Default: $button-display || inline-block
|
57
|
+
|
58
|
+
@mixin button-base($style:true, $display:$button-display) {
|
59
|
+
@if $style {
|
60
|
+
border-style: $button-border-style;
|
61
|
+
border-width: $button-border-width;
|
62
|
+
cursor: $cursor-pointer-value;
|
63
|
+
font-family: $button-font-family;
|
64
|
+
font-weight: $button-font-weight;
|
65
|
+
line-height: normal;
|
66
|
+
margin: 0 0 $button-margin-bottom;
|
67
|
+
position: relative;
|
68
|
+
text-decoration: none;
|
69
|
+
text-align: $button-font-align;
|
70
|
+
-webkit-appearance: none;
|
71
|
+
-webkit-border-radius:0;
|
72
|
+
}
|
73
|
+
@if $display { display: $display; }
|
74
|
+
}
|
75
|
+
|
76
|
+
// @MIXIN
|
77
|
+
//
|
78
|
+
// We use this mixin to add button size styles
|
79
|
+
//
|
80
|
+
// $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12)
|
81
|
+
// $full-width - We can set $full-width:true to remove side padding extend width - Default: false
|
82
|
+
|
83
|
+
@mixin button-size($padding:$button-med, $full-width:false) {
|
84
|
+
|
85
|
+
// We control which padding styles come through,
|
86
|
+
// these can be turned off by setting $padding:false
|
87
|
+
@if $padding {
|
88
|
+
padding-top: $padding;
|
89
|
+
padding-#{$opposite-direction}: $padding * 2;
|
90
|
+
padding-bottom: $padding + rem-calc(1);
|
91
|
+
padding-#{$default-float}: $padding * 2;
|
92
|
+
|
93
|
+
// We control the font-size based on mixin input.
|
94
|
+
@if $padding == $button-med { font-size: $button-font-med; }
|
95
|
+
@else if $padding == $button-tny { font-size: $button-font-tny; }
|
96
|
+
@else if $padding == $button-sml { font-size: $button-font-sml; }
|
97
|
+
@else if $padding == $button-lrg { font-size: $button-font-lrg; }
|
98
|
+
}
|
99
|
+
|
100
|
+
// We can set $full-width:true to remove side padding extend width.
|
101
|
+
@if $full-width {
|
102
|
+
// We still need to check if $padding is set.
|
103
|
+
@if $padding {
|
104
|
+
padding-top: $padding;
|
105
|
+
padding-bottom: $padding + rem-calc(1);
|
106
|
+
} @else if $padding == false {
|
107
|
+
padding-top:0;
|
108
|
+
padding-bottom:0;
|
109
|
+
}
|
110
|
+
padding-right: 0;
|
111
|
+
padding-left: 0;
|
112
|
+
width: 100%;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
// @MIXIN
|
117
|
+
//
|
118
|
+
// We use this mixin to add button color styles
|
119
|
+
//
|
120
|
+
// $bg - Primary color set in settings file. Default: $button-bg.
|
121
|
+
// $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: true
|
122
|
+
// $disabled - We can set $disabled:true to create a disabled transparent button. Default: false
|
123
|
+
@mixin button-style($bg:$button-bg, $radius:true, $disabled:false) {
|
124
|
+
|
125
|
+
// We control which background styles are used,
|
126
|
+
// these can be removed by setting $bg:false
|
127
|
+
@if $bg {
|
128
|
+
// This find the lightness percentage of the background color.
|
129
|
+
$bg-lightness: lightness($bg);
|
130
|
+
|
131
|
+
background-color: $bg;
|
132
|
+
border-color: scale-color($bg, $lightness: $button-function-factor);
|
133
|
+
&:hover,
|
134
|
+
&:focus { background-color: scale-color($bg, $lightness: $button-function-factor); }
|
135
|
+
|
136
|
+
// We control the text color for you based on the background color.
|
137
|
+
@if $bg-lightness > 70% {
|
138
|
+
color: $button-font-color-alt;
|
139
|
+
&:hover,
|
140
|
+
&:focus { color: $button-font-color-alt; }
|
141
|
+
}
|
142
|
+
@else {
|
143
|
+
color: $button-font-color;
|
144
|
+
&:hover,
|
145
|
+
&:focus { color: $button-font-color; }
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
// We can set $disabled:true to create a disabled transparent button.
|
150
|
+
@if $disabled {
|
151
|
+
cursor: $cursor-default-value;
|
152
|
+
opacity: $button-disabled-opacity;
|
153
|
+
box-shadow: none;
|
154
|
+
&:hover,
|
155
|
+
&:focus { background-color: $bg; }
|
156
|
+
}
|
157
|
+
|
158
|
+
// We can control how much button radius us used.
|
159
|
+
@if $radius == true { @include radius($button-radius); }
|
160
|
+
@else if $radius { @include radius($radius); }
|
161
|
+
|
162
|
+
}
|
163
|
+
|
164
|
+
// @MIXIN
|
165
|
+
//
|
166
|
+
// We use this to quickly create buttons with a single mixin. As @jaredhardy puts it, "the kitchen sink mixin"
|
167
|
+
//
|
168
|
+
// $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12)
|
169
|
+
// $bg - Primary color set in settings file. Default: $button-bg.
|
170
|
+
// $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default:false.
|
171
|
+
// $full-width - We can set $full-width:true to remove side padding extend width. Default:false.
|
172
|
+
// $disabled - We can set $disabled:true to create a disabled transparent button. Default:false.
|
173
|
+
// $is-input - <input>'s and <button>'s take on strange padding. We added this to help fix that. Default:false.
|
174
|
+
// $is-prefix - Not used? Default:false.
|
175
|
+
@mixin button($padding:$button-med, $bg:$button-bg, $radius:false, $full-width:false, $disabled:false, $is-prefix:false) {
|
176
|
+
@include button-base;
|
177
|
+
@include button-size($padding, $full-width);
|
178
|
+
@include button-style($bg, $radius, $disabled);
|
179
|
+
}
|
180
|
+
|
181
|
+
|
182
|
+
@include exports("button") {
|
183
|
+
@if $include-html-button-classes {
|
184
|
+
|
185
|
+
// Default styles applied outside of media query
|
186
|
+
button, .button {
|
187
|
+
@include button-base;
|
188
|
+
@include button-size;
|
189
|
+
@include button-style;
|
190
|
+
|
191
|
+
@include single-transition(background-color);
|
192
|
+
|
193
|
+
&.secondary { @include button-style($bg:$secondary-color); }
|
194
|
+
&.success { @include button-style($bg:$success-color); }
|
195
|
+
&.alert { @include button-style($bg:$alert-color); }
|
196
|
+
|
197
|
+
&.large { @include button-size($padding:$button-lrg); }
|
198
|
+
&.small { @include button-size($padding:$button-sml); }
|
199
|
+
&.tiny { @include button-size($padding:$button-tny); }
|
200
|
+
&.expand { @include button-size($padding:null,$full-width:true); }
|
201
|
+
|
202
|
+
&.left-align { text-align: left; text-indent: rem-calc(12); }
|
203
|
+
&.right-align { text-align: right; padding-right: rem-calc(12); }
|
204
|
+
|
205
|
+
&.radius { @include button-style($bg:false, $radius:true); }
|
206
|
+
&.round { @include button-style($bg:false, $radius:$button-round); }
|
207
|
+
|
208
|
+
&.disabled, &[disabled] { @include button-style($bg:$button-bg, $disabled:true);
|
209
|
+
&.secondary { @include button-style($bg:$secondary-color, $disabled:true); }
|
210
|
+
&.success { @include button-style($bg:$success-color, $disabled:true); }
|
211
|
+
&.alert { @include button-style($bg:$alert-color, $disabled:true); }
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
@media #{$medium-up} {
|
216
|
+
button, .button {
|
217
|
+
@include button-base($style:false, $display:inline-block);
|
218
|
+
@include button-size($padding:false, $full-width:false);
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
@@ -0,0 +1,247 @@
|
|
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-clearing-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use these to set the background colors for parts of Clearing.
|
13
|
+
$clearing-bg: #333 !default;
|
14
|
+
$clearing-caption-bg: $clearing-bg !default;
|
15
|
+
$clearing-carousel-bg: rgba(51,51,51,0.8) !default;
|
16
|
+
$clearing-img-bg: $clearing-bg !default;
|
17
|
+
|
18
|
+
// We use these to style the close button
|
19
|
+
$clearing-close-color: #ccc !default;
|
20
|
+
$clearing-close-size: 30px !default;
|
21
|
+
|
22
|
+
// We use these to style the arrows
|
23
|
+
$clearing-arrow-size: 12px !default;
|
24
|
+
$clearing-arrow-color: $clearing-close-color !default;
|
25
|
+
|
26
|
+
// We use these to style captions
|
27
|
+
$clearing-caption-font-color: #ccc !default;
|
28
|
+
$clearing-caption-font-size: 0.875em !default;
|
29
|
+
$clearing-caption-padding: 10px 30px 20px !default;
|
30
|
+
|
31
|
+
// We use these to make the image and carousel height and style
|
32
|
+
$clearing-active-img-height: 85% !default;
|
33
|
+
$clearing-carousel-height: 120px !default;
|
34
|
+
$clearing-carousel-thumb-width: 120px !default;
|
35
|
+
$clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
|
36
|
+
|
37
|
+
@include exports("clearing") {
|
38
|
+
@if $include-html-clearing-classes {
|
39
|
+
// We decided to not create a mixin for Clearing because it relies
|
40
|
+
// on predefined classes and structure to work properly.
|
41
|
+
// The variables above should give enough control.
|
42
|
+
|
43
|
+
/* Clearing Styles */
|
44
|
+
.clearing-thumbs, #{data('clearing')} {
|
45
|
+
@include clearfix;
|
46
|
+
margin-bottom: 0;
|
47
|
+
margin-#{$default-float}: 0;
|
48
|
+
list-style: none;
|
49
|
+
|
50
|
+
li {
|
51
|
+
float: $default-float;
|
52
|
+
margin-#{$opposite-direction}: 10px;
|
53
|
+
}
|
54
|
+
|
55
|
+
&[class*="block-grid-"] li {
|
56
|
+
margin-#{$opposite-direction}: 0;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
.clearing-blackout {
|
61
|
+
background: $clearing-bg;
|
62
|
+
position: fixed;
|
63
|
+
width: 100%;
|
64
|
+
height: 100%;
|
65
|
+
top: 0;
|
66
|
+
#{$default-float}: 0;
|
67
|
+
z-index: 998;
|
68
|
+
|
69
|
+
.clearing-close { display: block; }
|
70
|
+
}
|
71
|
+
|
72
|
+
.clearing-container {
|
73
|
+
position: relative;
|
74
|
+
z-index: 998;
|
75
|
+
height: 100%;
|
76
|
+
overflow: hidden;
|
77
|
+
margin: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
.clearing-touch-label {
|
81
|
+
position: absolute;
|
82
|
+
top: 50%;
|
83
|
+
left: 50%;
|
84
|
+
color: #aaa;
|
85
|
+
font-size: 0.6em;
|
86
|
+
}
|
87
|
+
|
88
|
+
.visible-img {
|
89
|
+
height: 95%;
|
90
|
+
position: relative;
|
91
|
+
|
92
|
+
img {
|
93
|
+
position: absolute;
|
94
|
+
#{$default-float}: 50%;
|
95
|
+
top: 50%;
|
96
|
+
margin-#{$default-float}: -50%;
|
97
|
+
max-height: 100%;
|
98
|
+
max-width: 100%;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
.clearing-caption {
|
103
|
+
color: $clearing-caption-font-color;
|
104
|
+
font-size: $clearing-caption-font-size;
|
105
|
+
line-height: 1.3;
|
106
|
+
margin-bottom: 0;
|
107
|
+
text-align: center;
|
108
|
+
bottom: 0;
|
109
|
+
background: $clearing-caption-bg;
|
110
|
+
width: 100%;
|
111
|
+
padding: $clearing-caption-padding;
|
112
|
+
position: absolute;
|
113
|
+
#{$default-float}: 0;
|
114
|
+
}
|
115
|
+
|
116
|
+
.clearing-close {
|
117
|
+
z-index: 999;
|
118
|
+
padding-#{$default-float}: 20px;
|
119
|
+
padding-top: 10px;
|
120
|
+
font-size: $clearing-close-size;
|
121
|
+
line-height: 1;
|
122
|
+
color: $clearing-close-color;
|
123
|
+
display: none;
|
124
|
+
|
125
|
+
&:hover,
|
126
|
+
&:focus { color: #ccc; }
|
127
|
+
}
|
128
|
+
|
129
|
+
.clearing-assembled .clearing-container { height: 100%;
|
130
|
+
.carousel > ul { display: none; }
|
131
|
+
}
|
132
|
+
|
133
|
+
// If you want to show a lightbox, but only have a single image come through as the thumbnail
|
134
|
+
.clearing-feature li {
|
135
|
+
display: none;
|
136
|
+
&.clearing-featured-img {
|
137
|
+
display: block;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
// Large screen overrides
|
142
|
+
@media #{$medium-up} {
|
143
|
+
.clearing-main-prev,
|
144
|
+
.clearing-main-next {
|
145
|
+
position: absolute;
|
146
|
+
height: 100%;
|
147
|
+
width: 40px;
|
148
|
+
top: 0;
|
149
|
+
& > span {
|
150
|
+
position: absolute;
|
151
|
+
top: 50%;
|
152
|
+
display: block;
|
153
|
+
width: 0;
|
154
|
+
height: 0;
|
155
|
+
border: solid $clearing-arrow-size;
|
156
|
+
&:hover { opacity: 0.8; }
|
157
|
+
}
|
158
|
+
}
|
159
|
+
.clearing-main-prev {
|
160
|
+
#{$default-float}: 0;
|
161
|
+
& > span {
|
162
|
+
#{$default-float}: 5px;
|
163
|
+
border-color: transparent;
|
164
|
+
border-#{$opposite-direction}-color: $clearing-arrow-color;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
.clearing-main-next {
|
168
|
+
#{$opposite-direction}: 0;
|
169
|
+
& > span {
|
170
|
+
border-color: transparent;
|
171
|
+
border-#{$default-float}-color: $clearing-arrow-color;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
.clearing-main-prev.disabled,
|
176
|
+
.clearing-main-next.disabled { opacity: 0.3; }
|
177
|
+
|
178
|
+
.clearing-assembled .clearing-container {
|
179
|
+
|
180
|
+
.carousel {
|
181
|
+
background: $clearing-carousel-bg;
|
182
|
+
height: $clearing-carousel-height;
|
183
|
+
margin-top: 10px;
|
184
|
+
text-align: center;
|
185
|
+
|
186
|
+
& > ul {
|
187
|
+
display: inline-block;
|
188
|
+
z-index: 999;
|
189
|
+
height: 100%;
|
190
|
+
position: relative;
|
191
|
+
float: none;
|
192
|
+
|
193
|
+
li {
|
194
|
+
display: block;
|
195
|
+
width: $clearing-carousel-thumb-width;
|
196
|
+
min-height: inherit;
|
197
|
+
float: $default-float;
|
198
|
+
overflow: hidden;
|
199
|
+
margin-#{$opposite-direction}: 0;
|
200
|
+
padding: 0;
|
201
|
+
position: relative;
|
202
|
+
cursor: $cursor-pointer-value;
|
203
|
+
opacity: 0.4;
|
204
|
+
clear: none;
|
205
|
+
|
206
|
+
&.fix-height {
|
207
|
+
img {
|
208
|
+
height: 100%;
|
209
|
+
max-width: none;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
a.th {
|
214
|
+
border: none;
|
215
|
+
box-shadow: none;
|
216
|
+
display: block;
|
217
|
+
}
|
218
|
+
|
219
|
+
img {
|
220
|
+
cursor: $cursor-pointer-value !important;
|
221
|
+
width: 100% !important;
|
222
|
+
}
|
223
|
+
|
224
|
+
&.visible { opacity: 1; }
|
225
|
+
&:hover { opacity: 0.8; }
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
.visible-img {
|
231
|
+
background: $clearing-img-bg;
|
232
|
+
overflow: hidden;
|
233
|
+
height: $clearing-active-img-height;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
.clearing-close {
|
238
|
+
position: absolute;
|
239
|
+
top: 10px;
|
240
|
+
#{$opposite-direction}: 20px;
|
241
|
+
padding-#{$default-float}: 0;
|
242
|
+
padding-top: 0;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
}
|
247
|
+
}
|
@@ -0,0 +1,129 @@
|
|
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-button-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use these to set the color of the pip in dropdown buttons
|
13
|
+
$dropdown-button-pip-color: #fff !default;
|
14
|
+
$dropdown-button-pip-color-alt: #333 !default;
|
15
|
+
|
16
|
+
$button-pip-tny: rem-calc(6) !default;
|
17
|
+
$button-pip-sml: rem-calc(7) !default;
|
18
|
+
$button-pip-med: rem-calc(9) !default;
|
19
|
+
$button-pip-lrg: rem-calc(11) !default;
|
20
|
+
|
21
|
+
// We use these to style tiny dropdown buttons
|
22
|
+
$dropdown-button-padding-tny: $button-pip-tny * 7 !default;
|
23
|
+
$dropdown-button-pip-size-tny: $button-pip-tny !default;
|
24
|
+
$dropdown-button-pip-opposite-tny: $button-pip-tny * 3 !default;
|
25
|
+
$dropdown-button-pip-top-tny: -$button-pip-tny / 2 + rem-calc(1) !default;
|
26
|
+
|
27
|
+
// We use these to style small dropdown buttons
|
28
|
+
$dropdown-button-padding-sml: $button-pip-sml * 7 !default;
|
29
|
+
$dropdown-button-pip-size-sml: $button-pip-sml !default;
|
30
|
+
$dropdown-button-pip-opposite-sml: $button-pip-sml * 3 !default;
|
31
|
+
$dropdown-button-pip-top-sml: -$button-pip-sml / 2 + rem-calc(1) !default;
|
32
|
+
|
33
|
+
// We use these to style medium dropdown buttons
|
34
|
+
$dropdown-button-padding-med: $button-pip-med * 6 + rem-calc(3) !default;
|
35
|
+
$dropdown-button-pip-size-med: $button-pip-med - rem-calc(3) !default;
|
36
|
+
$dropdown-button-pip-opposite-med: $button-pip-med * 2.5 !default;
|
37
|
+
$dropdown-button-pip-top-med: -$button-pip-med / 2 + rem-calc(2) !default;
|
38
|
+
|
39
|
+
// We use these to style large dropdown buttons
|
40
|
+
$dropdown-button-padding-lrg: $button-pip-lrg * 5 + rem-calc(3) !default;
|
41
|
+
$dropdown-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default;
|
42
|
+
$dropdown-button-pip-opposite-lrg: $button-pip-lrg * 2.5 !default;
|
43
|
+
$dropdown-button-pip-top-lrg: -$button-pip-lrg / 2 + rem-calc(3) !default;
|
44
|
+
|
45
|
+
// @mixins
|
46
|
+
//
|
47
|
+
// Dropdown Button Mixin
|
48
|
+
//
|
49
|
+
// We use this mixin to build off of the button mixin and add dropdown button styles
|
50
|
+
//
|
51
|
+
// $padding - Determines the size of button you're working with. Default: medium. Options [tiny, small, medium, large]
|
52
|
+
// $pip-color - Color of the little triangle that points to the dropdown. Default: #fff.
|
53
|
+
// $base-style - Add in base-styles. This can be set to false. Default:true
|
54
|
+
|
55
|
+
@mixin dropdown-button($padding:medium, $pip-color:#fff, $base-style:true) {
|
56
|
+
|
57
|
+
// We add in base styles, but they can be negated by setting to 'false'.
|
58
|
+
@if $base-style {
|
59
|
+
position: relative;
|
60
|
+
|
61
|
+
// This creates the base styles for the triangle pip
|
62
|
+
&:after {
|
63
|
+
position: absolute;
|
64
|
+
content: "";
|
65
|
+
width: 0;
|
66
|
+
height: 0;
|
67
|
+
display: block;
|
68
|
+
border-style: solid;
|
69
|
+
border-color: $dropdown-button-pip-color transparent transparent transparent;
|
70
|
+
top: 50%;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
// If we're dealing with tiny buttons, use these styles
|
75
|
+
@if $padding == tiny {
|
76
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-tny;
|
77
|
+
&:before {
|
78
|
+
border-width: $dropdown-button-pip-size-tny;
|
79
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-tny;
|
80
|
+
margin-top: $dropdown-button-pip-top-tny;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
// If we're dealing with small buttons, use these styles
|
85
|
+
@if $padding == small {
|
86
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-sml;
|
87
|
+
&:after {
|
88
|
+
border-width: $dropdown-button-pip-size-sml;
|
89
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-sml;
|
90
|
+
margin-top: $dropdown-button-pip-top-sml;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
// If we're dealing with default (medium) buttons, use these styles
|
95
|
+
@if $padding == medium {
|
96
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-med;
|
97
|
+
&:after {
|
98
|
+
border-width: $dropdown-button-pip-size-med;
|
99
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-med;
|
100
|
+
margin-top: $dropdown-button-pip-top-med;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
// If we're dealing with large buttons, use these styles
|
105
|
+
@if $padding == large {
|
106
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-lrg;
|
107
|
+
&:after {
|
108
|
+
border-width: $dropdown-button-pip-size-lrg;
|
109
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-lrg;
|
110
|
+
margin-top: $dropdown-button-pip-top-lrg;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
// We can control the pip color. We didn't use logic in this case, just set it and forget it.
|
115
|
+
@if $pip-color {
|
116
|
+
&:after { border-color: $pip-color transparent transparent transparent; }
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
@include exports("dropdown-button") {
|
121
|
+
@if $include-html-button-classes {
|
122
|
+
.dropdown.button, button.dropdown { @include dropdown-button;
|
123
|
+
&.tiny { @include dropdown-button(tiny,$base-style:false); }
|
124
|
+
&.small { @include dropdown-button(small,$base-style:false); }
|
125
|
+
&.large { @include dropdown-button(large,$base-style:false); }
|
126
|
+
&.secondary:after { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; }
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|