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,659 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
@import "grid";
|
7
|
+
@import "buttons";
|
8
|
+
|
9
|
+
//
|
10
|
+
// Top Bar Variables
|
11
|
+
//
|
12
|
+
$include-html-top-bar-classes: $include-html-classes !default;
|
13
|
+
|
14
|
+
// Background color for the top bar
|
15
|
+
$topbar-bg-color: #333 !default;
|
16
|
+
$topbar-bg: $topbar-bg-color !default;
|
17
|
+
|
18
|
+
// Height and margin
|
19
|
+
$topbar-height: 45px !default;
|
20
|
+
$topbar-margin-bottom: 0 !default;
|
21
|
+
|
22
|
+
// Controlling the styles for the title in the top bar
|
23
|
+
$topbar-title-weight: $font-weight-normal !default;
|
24
|
+
$topbar-title-font-size: rem-calc(17) !default;
|
25
|
+
|
26
|
+
// Style the top bar dropdown elements
|
27
|
+
$topbar-dropdown-bg: #333 !default;
|
28
|
+
$topbar-dropdown-link-color: #fff !default;
|
29
|
+
$topbar-dropdown-link-bg: #333 !default;
|
30
|
+
$topbar-dropdown-link-weight: $font-weight-normal !default;
|
31
|
+
$topbar-dropdown-toggle-size: 5px !default;
|
32
|
+
$topbar-dropdown-toggle-color: #fff !default;
|
33
|
+
$topbar-dropdown-toggle-alpha: 0.4 !default;
|
34
|
+
|
35
|
+
// Set the link colors and styles for top-level nav
|
36
|
+
$topbar-link-color: #fff !default;
|
37
|
+
$topbar-link-color-hover: #fff !default;
|
38
|
+
$topbar-link-color-active: #fff !default;
|
39
|
+
$topbar-link-color-active-hover: #fff !default;
|
40
|
+
$topbar-link-weight: $font-weight-normal !default;
|
41
|
+
$topbar-link-font-size: rem-calc(13) !default;
|
42
|
+
$topbar-link-hover-lightness: -10% !default; // Darken by 10%
|
43
|
+
$topbar-link-bg: $topbar-bg !default;
|
44
|
+
$topbar-link-bg-hover: #272727 !default;
|
45
|
+
$topbar-link-bg-color-hover: #555555 !default;
|
46
|
+
$topbar-link-bg-active: $primary-color !default;
|
47
|
+
$topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default;
|
48
|
+
$topbar-link-font-family: $body-font-family !default;
|
49
|
+
$topbar-link-text-transform: none !default;
|
50
|
+
$topbar-link-padding: $topbar-height / 3 !default;
|
51
|
+
|
52
|
+
$topbar-button-font-size: 0.75rem !default;
|
53
|
+
$topbar-button-top: 7px !default;
|
54
|
+
|
55
|
+
$topbar-dropdown-label-color: #777 !default;
|
56
|
+
$topbar-dropdown-label-text-transform: uppercase !default;
|
57
|
+
$topbar-dropdown-label-font-weight: $font-weight-bold !default;
|
58
|
+
$topbar-dropdown-label-font-size: rem-calc(10) !default;
|
59
|
+
$topbar-dropdown-label-bg: #333 !default;
|
60
|
+
|
61
|
+
// Top menu icon styles
|
62
|
+
$topbar-menu-link-transform: uppercase !default;
|
63
|
+
$topbar-menu-link-font-size: rem-calc(13) !default;
|
64
|
+
$topbar-menu-link-weight: $font-weight-bold !default;
|
65
|
+
$topbar-menu-link-color: #fff !default;
|
66
|
+
$topbar-menu-icon-color: #fff !default;
|
67
|
+
$topbar-menu-link-color-toggled: #888 !default;
|
68
|
+
$topbar-menu-icon-color-toggled: #888 !default;
|
69
|
+
|
70
|
+
// Transitions and breakpoint styles
|
71
|
+
$topbar-transition-speed: 300ms !default;
|
72
|
+
// Using rem-calc for the below breakpoint causes issues with top bar
|
73
|
+
$topbar-breakpoint: #{lower-bound($medium-range)} !default; // Change to 9999px for always mobile layout
|
74
|
+
$topbar-media-query: $medium-up !default;
|
75
|
+
|
76
|
+
// Divider Styles
|
77
|
+
$topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%) !default;
|
78
|
+
$topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%) !default;
|
79
|
+
|
80
|
+
// Sticky Class
|
81
|
+
$topbar-sticky-class: ".sticky" !default;
|
82
|
+
$topbar-arrows: true !default; //Set false to remove the triangle icon from the menu item
|
83
|
+
|
84
|
+
// Accessibility mixins for hiding and showing the menu dropdown items
|
85
|
+
@mixin topbar-hide-dropdown {
|
86
|
+
// Makes an element visually hidden by default, but visible when focused.
|
87
|
+
display: block;
|
88
|
+
@include element-invisible();
|
89
|
+
}
|
90
|
+
|
91
|
+
@mixin topbar-show-dropdown {
|
92
|
+
display: block;
|
93
|
+
@include element-invisible-off();
|
94
|
+
position: absolute !important; // Reset the position from static to absolute
|
95
|
+
}
|
96
|
+
|
97
|
+
@include exports("top-bar") {
|
98
|
+
|
99
|
+
@if $include-html-top-bar-classes {
|
100
|
+
|
101
|
+
// Used to provide media query values for javascript components.
|
102
|
+
// This class is generated despite the value of $include-html-top-bar-classes
|
103
|
+
// to ensure width calculations work correctly.
|
104
|
+
meta.foundation-mq-topbar {
|
105
|
+
font-family: "/" + unquote($topbar-media-query) + "/";
|
106
|
+
width: $topbar-breakpoint;
|
107
|
+
}
|
108
|
+
|
109
|
+
/* Wrapped around .top-bar to contain to grid width */
|
110
|
+
.contain-to-grid {
|
111
|
+
width: 100%;
|
112
|
+
background: $topbar-bg;
|
113
|
+
|
114
|
+
.top-bar { margin-bottom: $topbar-margin-bottom; }
|
115
|
+
}
|
116
|
+
|
117
|
+
// Wrapped around .top-bar to make it stick to the top
|
118
|
+
.fixed {
|
119
|
+
width: 100%;
|
120
|
+
#{$default-float}: 0;
|
121
|
+
position: fixed;
|
122
|
+
top: 0;
|
123
|
+
z-index: 99;
|
124
|
+
|
125
|
+
&.expanded:not(.top-bar) {
|
126
|
+
overflow-y: auto;
|
127
|
+
height: auto;
|
128
|
+
width: 100%;
|
129
|
+
max-height: 100%;
|
130
|
+
|
131
|
+
.title-area {
|
132
|
+
position: fixed;
|
133
|
+
width: 100%;
|
134
|
+
z-index: 99;
|
135
|
+
}
|
136
|
+
// Ensure you can scroll the menu on small screens
|
137
|
+
.top-bar-section {
|
138
|
+
z-index: 98;
|
139
|
+
margin-top: $topbar-height;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
.top-bar {
|
145
|
+
overflow: hidden;
|
146
|
+
height: $topbar-height;
|
147
|
+
line-height: $topbar-height;
|
148
|
+
position: relative;
|
149
|
+
background: $topbar-bg;
|
150
|
+
margin-bottom: $topbar-margin-bottom;
|
151
|
+
|
152
|
+
// Topbar Global list Styles
|
153
|
+
ul {
|
154
|
+
margin-bottom: 0;
|
155
|
+
list-style: none;
|
156
|
+
}
|
157
|
+
|
158
|
+
.row { max-width: none; }
|
159
|
+
|
160
|
+
form,
|
161
|
+
input { margin-bottom: 0; }
|
162
|
+
|
163
|
+
input { height: auto; padding-top: .35rem; padding-bottom: .35rem; font-size: $topbar-button-font-size; }
|
164
|
+
|
165
|
+
.button, button {
|
166
|
+
padding-top: .45rem;
|
167
|
+
padding-bottom: .35rem;
|
168
|
+
margin-bottom: 0;
|
169
|
+
font-size: $topbar-button-font-size;
|
170
|
+
// position: relative;
|
171
|
+
// top: -1px;
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
// Title Area
|
176
|
+
.title-area {
|
177
|
+
position: relative;
|
178
|
+
margin: 0;
|
179
|
+
}
|
180
|
+
|
181
|
+
.name {
|
182
|
+
height: $topbar-height;
|
183
|
+
margin: 0;
|
184
|
+
font-size: $rem-base;
|
185
|
+
|
186
|
+
h1 {
|
187
|
+
line-height: $topbar-height;
|
188
|
+
font-size: $topbar-title-font-size;
|
189
|
+
margin: 0;
|
190
|
+
a {
|
191
|
+
font-weight: $topbar-title-weight;
|
192
|
+
color: $topbar-link-color;
|
193
|
+
width: 75%;
|
194
|
+
display: block;
|
195
|
+
padding: 0 $topbar-link-padding;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
// Menu toggle button on small devices
|
201
|
+
.toggle-topbar {
|
202
|
+
position: absolute;
|
203
|
+
#{$opposite-direction}: 0;
|
204
|
+
top: 0;
|
205
|
+
|
206
|
+
a {
|
207
|
+
color: $topbar-link-color;
|
208
|
+
text-transform: $topbar-menu-link-transform;
|
209
|
+
font-size: $topbar-menu-link-font-size;
|
210
|
+
font-weight: $topbar-menu-link-weight;
|
211
|
+
position: relative;
|
212
|
+
display: block;
|
213
|
+
padding: 0 $topbar-link-padding;
|
214
|
+
height: $topbar-height;
|
215
|
+
line-height: $topbar-height;
|
216
|
+
}
|
217
|
+
|
218
|
+
// Adding the class "menu-icon" will add the 3-line icon people love and adore.
|
219
|
+
&.menu-icon {
|
220
|
+
top: 50%;
|
221
|
+
margin-top: -16px;
|
222
|
+
|
223
|
+
a {
|
224
|
+
@if $text-direction == rtl {
|
225
|
+
text-indent: -58px;
|
226
|
+
}
|
227
|
+
height: 34px;
|
228
|
+
line-height: 33px;
|
229
|
+
padding: 0 $topbar-link-padding+25 0 $topbar-link-padding;
|
230
|
+
color: $topbar-menu-link-color;
|
231
|
+
position: relative;
|
232
|
+
|
233
|
+
& {
|
234
|
+
// @include hamburger icon
|
235
|
+
//
|
236
|
+
// We use this to create the icon with three lines aka the hamburger icon, the menu-icon or the navicon
|
237
|
+
// $width - Width of hamburger icon
|
238
|
+
// $left - If false, icon will be centered horizontally || explicitly set value in rem
|
239
|
+
// $top - If false, icon will be centered vertically || explicitly set value in rem
|
240
|
+
// $thickness - thickness of lines in hamburger icon, set value in px
|
241
|
+
// $gap - spacing between the lines in hamburger icon, set value in px
|
242
|
+
// $color - icon color
|
243
|
+
// $hover-color - icon color during hover, here it is set the same as $color because the values are changed on line 264
|
244
|
+
// $offcanvas - Set to false of @include in topbar
|
245
|
+
@include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, $topbar-menu-icon-color, false);
|
246
|
+
}
|
247
|
+
}
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
// Change things up when the top-bar is expanded
|
252
|
+
&.expanded {
|
253
|
+
height: auto;
|
254
|
+
background: transparent;
|
255
|
+
|
256
|
+
.title-area { background: $topbar-bg; }
|
257
|
+
|
258
|
+
.toggle-topbar {
|
259
|
+
a { color: $topbar-menu-link-color-toggled;
|
260
|
+
&::after {
|
261
|
+
// Shh, don't tell, but box-shadows create the menu icon :)
|
262
|
+
box-shadow: 0 10px 0 1px $topbar-menu-icon-color-toggled,
|
263
|
+
0 16px 0 1px $topbar-menu-icon-color-toggled,
|
264
|
+
0 22px 0 1px $topbar-menu-icon-color-toggled;
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
}
|
273
|
+
|
274
|
+
// Right and Left Navigation that stacked by default
|
275
|
+
.top-bar-section {
|
276
|
+
#{$default-float}: 0;
|
277
|
+
position: relative;
|
278
|
+
width: auto;
|
279
|
+
@include single-transition($default-float, $topbar-transition-speed);
|
280
|
+
|
281
|
+
ul {
|
282
|
+
padding: 0;
|
283
|
+
width: 100%;
|
284
|
+
height: auto;
|
285
|
+
display: block;
|
286
|
+
font-size: $rem-base;
|
287
|
+
margin: 0;
|
288
|
+
}
|
289
|
+
|
290
|
+
.divider,
|
291
|
+
[role="separator"] {
|
292
|
+
border-top: $topbar-divider-border-top;
|
293
|
+
clear: both;
|
294
|
+
height: 1px;
|
295
|
+
width: 100%;
|
296
|
+
}
|
297
|
+
|
298
|
+
ul li {
|
299
|
+
background: $topbar-dropdown-bg;
|
300
|
+
& > a {
|
301
|
+
display: block;
|
302
|
+
width: 100%;
|
303
|
+
color: $topbar-link-color;
|
304
|
+
padding: 12px 0 12px 0;
|
305
|
+
padding-#{$default-float}: $topbar-link-padding;
|
306
|
+
font-family: $topbar-link-font-family;
|
307
|
+
font-size: $topbar-link-font-size;
|
308
|
+
font-weight: $topbar-link-weight;
|
309
|
+
text-transform: $topbar-link-text-transform;
|
310
|
+
|
311
|
+
|
312
|
+
&.button {
|
313
|
+
font-size: $topbar-link-font-size;
|
314
|
+
padding-#{$opposite-direction}: $topbar-link-padding;
|
315
|
+
padding-#{$default-float}: $topbar-link-padding;
|
316
|
+
@include button-style($bg:$primary-color);
|
317
|
+
}
|
318
|
+
&.button.secondary { @include button-style($bg:$secondary-color); }
|
319
|
+
&.button.success { @include button-style($bg:$success-color); }
|
320
|
+
&.button.alert { @include button-style($bg:$alert-color); }
|
321
|
+
}
|
322
|
+
|
323
|
+
> button {
|
324
|
+
font-size: $topbar-link-font-size;
|
325
|
+
padding-#{$opposite-direction}: $topbar-link-padding;
|
326
|
+
padding-#{$default-float}: $topbar-link-padding;
|
327
|
+
@include button-style($bg:$primary-color);
|
328
|
+
|
329
|
+
&.secondary { @include button-style($bg:$secondary-color); }
|
330
|
+
&.success { @include button-style($bg:$success-color); }
|
331
|
+
&.alert { @include button-style($bg:$alert-color); }
|
332
|
+
}
|
333
|
+
|
334
|
+
// Apply the hover link color when it has that class
|
335
|
+
&:hover:not(.has-form) > a {
|
336
|
+
background-color: $topbar-link-bg-color-hover;
|
337
|
+
@if ($topbar-link-bg-hover) {
|
338
|
+
background: $topbar-link-bg-hover;
|
339
|
+
}
|
340
|
+
color: $topbar-link-color-hover;
|
341
|
+
|
342
|
+
}
|
343
|
+
|
344
|
+
// Apply the active link color when it has that class
|
345
|
+
&.active > a {
|
346
|
+
background: $topbar-link-bg-active;
|
347
|
+
color: $topbar-link-color-active;
|
348
|
+
&:hover {
|
349
|
+
background: $topbar-link-bg-active-hover;
|
350
|
+
color: $topbar-link-color-active-hover;
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}
|
354
|
+
|
355
|
+
// Add some extra padding for list items contains buttons
|
356
|
+
.has-form { padding: $topbar-link-padding; }
|
357
|
+
|
358
|
+
// Styling for list items that have a dropdown within them.
|
359
|
+
.has-dropdown {
|
360
|
+
position: relative;
|
361
|
+
|
362
|
+
& > a {
|
363
|
+
&:after {
|
364
|
+
@if ($topbar-arrows){
|
365
|
+
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float);
|
366
|
+
}
|
367
|
+
margin-#{$opposite-direction}: $topbar-link-padding;
|
368
|
+
margin-top: -($topbar-dropdown-toggle-size / 2) - 2;
|
369
|
+
position: absolute;
|
370
|
+
top: 50%;
|
371
|
+
#{$opposite-direction}: 0;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
|
375
|
+
&.moved { position: static;
|
376
|
+
& > .dropdown {
|
377
|
+
@include topbar-show-dropdown();
|
378
|
+
width: 100%;
|
379
|
+
}
|
380
|
+
& > a:after {
|
381
|
+
display: none;
|
382
|
+
}
|
383
|
+
}
|
384
|
+
}
|
385
|
+
|
386
|
+
// Styling elements inside of dropdowns
|
387
|
+
.dropdown {
|
388
|
+
padding: 0;
|
389
|
+
position: absolute;
|
390
|
+
#{$default-float}: 100%;
|
391
|
+
top: 0;
|
392
|
+
z-index: 99;
|
393
|
+
@include topbar-hide-dropdown();
|
394
|
+
|
395
|
+
li {
|
396
|
+
width: 100%;
|
397
|
+
height: auto;
|
398
|
+
|
399
|
+
a {
|
400
|
+
font-weight: $topbar-dropdown-link-weight;
|
401
|
+
padding: 8px $topbar-link-padding;
|
402
|
+
&.parent-link {
|
403
|
+
font-weight: $topbar-link-weight;
|
404
|
+
}
|
405
|
+
}
|
406
|
+
|
407
|
+
&.title h5 {
|
408
|
+
margin-bottom: 0;
|
409
|
+
margin-top: 0;
|
410
|
+
a {
|
411
|
+
color: $topbar-link-color;
|
412
|
+
line-height: $topbar-height / 2;
|
413
|
+
display: block;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
&.has-form { padding: 8px $topbar-link-padding; }
|
417
|
+
.button, button { top: auto; }
|
418
|
+
}
|
419
|
+
|
420
|
+
label {
|
421
|
+
padding: 8px $topbar-link-padding 2px;
|
422
|
+
margin-bottom: 0;
|
423
|
+
text-transform: $topbar-dropdown-label-text-transform;
|
424
|
+
color: $topbar-dropdown-label-color;
|
425
|
+
font-weight: $topbar-dropdown-label-font-weight;
|
426
|
+
font-size: $topbar-dropdown-label-font-size;
|
427
|
+
}
|
428
|
+
}
|
429
|
+
}
|
430
|
+
|
431
|
+
.js-generated { display: block; }
|
432
|
+
|
433
|
+
|
434
|
+
// Top Bar styles intended for screen sizes above the breakpoint.
|
435
|
+
@media #{$topbar-media-query} {
|
436
|
+
.top-bar {
|
437
|
+
background: $topbar-bg;
|
438
|
+
@include clearfix;
|
439
|
+
overflow: visible;
|
440
|
+
|
441
|
+
.toggle-topbar { display: none; }
|
442
|
+
|
443
|
+
.title-area { float: $default-float; }
|
444
|
+
.name h1 a { width: auto; }
|
445
|
+
|
446
|
+
input,
|
447
|
+
.button,
|
448
|
+
button {
|
449
|
+
font-size: rem-calc(14);
|
450
|
+
position: relative;
|
451
|
+
top: $topbar-button-top;
|
452
|
+
}
|
453
|
+
|
454
|
+
&.expanded { background: $topbar-bg; }
|
455
|
+
}
|
456
|
+
|
457
|
+
.contain-to-grid .top-bar {
|
458
|
+
max-width: $row-width;
|
459
|
+
margin: 0 auto;
|
460
|
+
margin-bottom: $topbar-margin-bottom;
|
461
|
+
}
|
462
|
+
|
463
|
+
.top-bar-section {
|
464
|
+
@include single-transition(none,0,0);
|
465
|
+
#{$default-float}: 0 !important;
|
466
|
+
|
467
|
+
ul {
|
468
|
+
width: auto;
|
469
|
+
height: auto !important;
|
470
|
+
display: inline;
|
471
|
+
|
472
|
+
li {
|
473
|
+
float: $default-float;
|
474
|
+
.js-generated { display: none; }
|
475
|
+
}
|
476
|
+
}
|
477
|
+
|
478
|
+
li {
|
479
|
+
&.hover {
|
480
|
+
> a:not(.button) {
|
481
|
+
background-color: $topbar-link-bg-color-hover;
|
482
|
+
@if ($topbar-link-bg-hover) {
|
483
|
+
background: $topbar-link-bg-hover;
|
484
|
+
}
|
485
|
+
color: $topbar-link-color-hover;
|
486
|
+
}
|
487
|
+
}
|
488
|
+
&:not(.has-form) {
|
489
|
+
a:not(.button) {
|
490
|
+
padding: 0 $topbar-link-padding;
|
491
|
+
line-height: $topbar-height;
|
492
|
+
background: $topbar-link-bg;
|
493
|
+
&:hover {
|
494
|
+
background-color: $topbar-link-bg-color-hover;
|
495
|
+
@if ($topbar-link-bg-hover) {
|
496
|
+
background: $topbar-link-bg-hover;
|
497
|
+
}
|
498
|
+
}
|
499
|
+
}
|
500
|
+
}
|
501
|
+
&.active:not(.has-form) {
|
502
|
+
a:not(.button) {
|
503
|
+
padding: 0 $topbar-link-padding;
|
504
|
+
line-height: $topbar-height;
|
505
|
+
color: $topbar-link-color-active;
|
506
|
+
background: $topbar-link-bg-active;
|
507
|
+
&:hover { background: $topbar-link-bg-active-hover; }
|
508
|
+
}
|
509
|
+
}
|
510
|
+
}
|
511
|
+
|
512
|
+
.has-dropdown {
|
513
|
+
|
514
|
+
@if($topbar-arrows){
|
515
|
+
|
516
|
+
& > a {
|
517
|
+
padding-#{$opposite-direction}: $topbar-link-padding + 20 !important;
|
518
|
+
&:after {
|
519
|
+
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top);
|
520
|
+
margin-top: -($topbar-dropdown-toggle-size / 2);
|
521
|
+
top: $topbar-height / 2;
|
522
|
+
}
|
523
|
+
}
|
524
|
+
|
525
|
+
}
|
526
|
+
|
527
|
+
&.moved { position: relative;
|
528
|
+
& > .dropdown {
|
529
|
+
@include topbar-hide-dropdown();
|
530
|
+
}
|
531
|
+
}
|
532
|
+
|
533
|
+
&.hover, &.not-click:hover {
|
534
|
+
& > .dropdown {
|
535
|
+
@include topbar-show-dropdown();
|
536
|
+
}
|
537
|
+
}
|
538
|
+
|
539
|
+
.dropdown li.has-dropdown {
|
540
|
+
& > a {
|
541
|
+
&:after {
|
542
|
+
border: none;
|
543
|
+
content: "\00bb";
|
544
|
+
top: 1rem;
|
545
|
+
margin-top: -1px;
|
546
|
+
#{$opposite-direction}: 5px;
|
547
|
+
line-height: 1.2;
|
548
|
+
}
|
549
|
+
}
|
550
|
+
}
|
551
|
+
|
552
|
+
}
|
553
|
+
|
554
|
+
.dropdown {
|
555
|
+
#{$default-float}: 0;
|
556
|
+
top: auto;
|
557
|
+
background: transparent;
|
558
|
+
min-width: 100%;
|
559
|
+
|
560
|
+
li {
|
561
|
+
a {
|
562
|
+
color: $topbar-dropdown-link-color;
|
563
|
+
line-height: $topbar-height;
|
564
|
+
white-space: nowrap;
|
565
|
+
padding: 12px $topbar-link-padding;
|
566
|
+
background: $topbar-dropdown-link-bg;
|
567
|
+
}
|
568
|
+
|
569
|
+
&:not(.has-form) a:not(.button) {
|
570
|
+
color: $topbar-dropdown-link-color;
|
571
|
+
background: $topbar-dropdown-link-bg;
|
572
|
+
}
|
573
|
+
&:not(.has-form):hover > a:not(.button) {
|
574
|
+
color: $topbar-link-color-hover;
|
575
|
+
background-color: $topbar-link-bg-color-hover;
|
576
|
+
@if ($topbar-link-bg-hover) {
|
577
|
+
background: $topbar-link-bg-hover;
|
578
|
+
}
|
579
|
+
}
|
580
|
+
|
581
|
+
label {
|
582
|
+
white-space: nowrap;
|
583
|
+
background: $topbar-dropdown-label-bg;
|
584
|
+
}
|
585
|
+
|
586
|
+
// Second Level Dropdowns
|
587
|
+
.dropdown {
|
588
|
+
#{$default-float}: 100%;
|
589
|
+
top: 0;
|
590
|
+
}
|
591
|
+
}
|
592
|
+
}
|
593
|
+
|
594
|
+
& > ul > .divider,
|
595
|
+
& > ul > [role="separator"] {
|
596
|
+
border-bottom: none;
|
597
|
+
border-top: none;
|
598
|
+
border-#{$opposite-direction}: $topbar-divider-border-bottom;
|
599
|
+
clear: none;
|
600
|
+
height: $topbar-height;
|
601
|
+
width: 0;
|
602
|
+
}
|
603
|
+
|
604
|
+
.has-form {
|
605
|
+
background: $topbar-link-bg;
|
606
|
+
padding: 0 $topbar-height / 3;
|
607
|
+
height: $topbar-height;
|
608
|
+
}
|
609
|
+
|
610
|
+
// Position overrides for ul.right and ul.left
|
611
|
+
.right {
|
612
|
+
li .dropdown {
|
613
|
+
#{$default-float}: auto;
|
614
|
+
#{$opposite-direction}: 0;
|
615
|
+
|
616
|
+
li .dropdown { #{$opposite-direction}: 100%; }
|
617
|
+
}
|
618
|
+
}
|
619
|
+
.left {
|
620
|
+
li .dropdown {
|
621
|
+
#{$opposite-direction}: auto;
|
622
|
+
#{$default-float}: 0;
|
623
|
+
|
624
|
+
li .dropdown { #{$default-float}: 100%; }
|
625
|
+
}
|
626
|
+
}
|
627
|
+
}
|
628
|
+
|
629
|
+
// Degrade gracefully when Javascript is disabled. Displays dropdown and changes
|
630
|
+
// background & text color on hover.
|
631
|
+
.no-js .top-bar-section {
|
632
|
+
ul li {
|
633
|
+
// Apply the hover link color when it has that class
|
634
|
+
&:hover > a {
|
635
|
+
background-color: $topbar-link-bg-color-hover;
|
636
|
+
@if ($topbar-link-bg-hover) {
|
637
|
+
background: $topbar-link-bg-hover;
|
638
|
+
}
|
639
|
+
color: $topbar-link-color-hover;
|
640
|
+
}
|
641
|
+
|
642
|
+
// Apply the active link color when it has that class
|
643
|
+
&:active > a {
|
644
|
+
background: $topbar-link-bg-active;
|
645
|
+
color: $topbar-link-color-active;
|
646
|
+
}
|
647
|
+
}
|
648
|
+
|
649
|
+
.has-dropdown {
|
650
|
+
&:hover {
|
651
|
+
& > .dropdown {
|
652
|
+
@include topbar-show-dropdown();
|
653
|
+
}
|
654
|
+
}
|
655
|
+
}
|
656
|
+
}
|
657
|
+
}
|
658
|
+
}
|
659
|
+
}
|