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