card 1.92.2 → 1.93.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +3 -3
- data/VERSION +1 -1
- data/card.gemspec +1 -1
- data/config/initializers/01_core_extensions/array.rb +1 -1
- data/config/initializers/01_core_extensions/object.rb +9 -0
- data/config/initializers/01_core_extensions/persistent_identifiers.rb +1 -1
- data/config/initializers/02_patches/action_dispatch.rb +1 -0
- data/config/initializers/02_patches/active_record.rb +42 -0
- data/config/initializers/02_patches/active_support.rb +13 -0
- data/config/initializers/deck_config.rb +3 -0
- data/config/initializers/patches.rb +37 -6
- data/config/locales/de.yml +1 -3
- data/config/locales/en.yml +1 -3
- data/db/migrate_core_cards/20120611203506_rails_inflection_updates.rb +3 -3
- data/db/migrate_core_cards/20130823192433_add_style_cards.rb +1 -1
- data/db/migrate_core_cards/20130920214038_jsonize_tinymce.rb +1 -1
- data/db/migrate_core_cards/20140629222005_add_email_cards.rb +4 -4
- data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +1 -1
- data/db/migrate_core_cards/20150220134731_following_to_follow_rule.rb +1 -1
- data/db/migrate_core_cards/20150317162412_bootstrap_themes.rb +1 -1
- data/db/migrate_core_cards/20150429090551_search_card_context.rb +2 -2
- data/db/migrate_core_cards/20150501010515_responsive_sidebar.rb +1 -1
- data/db/migrate_core_cards/20150610180019_add_recaptcha_key_and_admin_info_cards.rb +2 -2
- data/db/migrate_core_cards/20150724123438_update_file_and_image_cards.rb +2 -2
- data/db/migrate_core_cards/20160811115836_rename_stats_to_admin.rb +1 -1
- data/db/migrate_core_cards/20160914132636_fix_mod_files.rb +3 -3
- data/db/migrate_core_cards/20170830210517_correct_signup_success_message.rb +2 -2
- data/db/migrate_core_cards/data/cards.yml +2 -2
- data/db/migrate_core_cards/data/cards/*header +1 -1
- data/lib/card.rb +53 -34
- data/lib/card/act_manager.rb +64 -10
- data/lib/card/act_manager/stage_director.rb +13 -2
- data/lib/card/act_manager/stage_director/phases.rb +6 -4
- data/lib/card/auth.rb +3 -1
- data/lib/card/cache.rb +8 -2
- data/lib/card/cache/persistent.rb +23 -10
- data/lib/card/codename.rb +59 -18
- data/lib/card/dirty.rb +39 -0
- data/lib/card/env/location.rb +1 -1
- data/lib/card/env/location_history.rb +1 -1
- data/lib/card/env/success.rb +1 -1
- data/lib/card/error.rb +3 -0
- data/lib/card/format.rb +55 -21
- data/lib/card/format/content.rb +1 -1
- data/lib/card/format/context_names.rb +2 -2
- data/lib/card/format/nest.rb +2 -2
- data/lib/card/format/nest/fetch.rb +1 -1
- data/lib/card/format/nest/subformat.rb +1 -1
- data/lib/card/format/render.rb +4 -18
- data/lib/card/migration.rb +1 -1
- data/lib/card/migration/import.rb +1 -1
- data/lib/card/migration/import/import_data.rb +5 -12
- data/lib/card/migration/import/import_data/card_attributes.rb +3 -4
- data/lib/card/mod.rb +4 -3
- data/lib/card/mod/dirs.rb +21 -10
- data/lib/card/mod/loader.rb +1 -1
- data/lib/card/model/save_helper.rb +1 -1
- data/lib/card/name.rb +8 -6
- data/lib/card/name/fields_and_traits.rb +5 -10
- data/lib/card/query.rb +1 -1
- data/lib/card/reference.rb +1 -1
- data/lib/card/set.rb +7 -14
- data/lib/card/set/advanced_api.rb +1 -0
- data/lib/card/set/event.rb +19 -109
- data/lib/card/set/event/delayed_event.rb +104 -0
- data/lib/card/set/format.rb +2 -2
- data/lib/card/set_pattern.rb +4 -4
- data/lib/card/subcards.rb +22 -35
- data/lib/card/tasks/card.rake +1 -2
- data/lib/card/view.rb +1 -2
- data/lib/card/view/cache.rb +1 -1
- data/lib/card/view/cache_action.rb +1 -1
- data/lib/card/view/options.rb +1 -1
- data/lib/card/view/stub.rb +5 -1
- data/lib/cardio.rb +50 -22
- data/mod/Modfile +1 -0
- data/mod/account/set/all/account.rb +2 -2
- data/mod/account/set/right/account.rb +4 -2
- data/mod/account/set/right/email.rb +1 -1
- data/mod/account/set/self/account_links.rb +2 -2
- data/mod/account/set/self/signin.rb +3 -3
- data/mod/account/spec/set/right/account_spec.rb +2 -2
- data/mod/account/spec/set/right/email_spec.rb +1 -1
- data/mod/account/spec/set/right/password_spec.rb +1 -1
- data/mod/account/spec/set/right/salt_spec.rb +1 -1
- data/mod/account/spec/set/type/signup_spec.rb +1 -1
- data/mod/basic_formats/format/css_format.rb +1 -2
- data/mod/basic_formats/format/csv_format.rb +1 -1
- data/mod/basic_formats/format/js_format.rb +4 -0
- data/mod/basic_formats/set/all/all_css.rb +3 -3
- data/mod/basic_formats/set/all/all_js.rb +1 -1
- data/mod/basic_formats/set/all/base.rb +5 -5
- data/mod/basic_formats/set/all/json.rb +4 -4
- data/mod/basic_formats/set/all/rss.rb +3 -3
- data/mod/basic_formats/set/self/head.rb +12 -7
- data/mod/bootstrap/db/migrate_cards/20170719163710_update_bootswatch_themes_to_4_beta.rb +115 -0
- data/mod/bootstrap/db/migrate_cards/20170726145012_select2.rb +7 -7
- data/mod/bootstrap/lib/bootstrap/component/panel.rb +1 -1
- data/mod/bootstrap/lib/javascript/script_load_select2.js.coffee +2 -0
- data/mod/bootstrap/lib/stylesheets/bootstrap_cards.scss +2 -8
- data/mod/bootstrap/lib/stylesheets/style_select2_bootstrap.scss +546 -628
- data/mod/bootstrap/set/abstract/bootstrap_code_file.rb +9 -6
- data/mod/bootstrap/set/all/bootstrap/accordion.rb +3 -3
- data/mod/bootstrap/set/all/bootstrap/helper.rb +58 -15
- data/mod/bootstrap/set/all/bootstrap/tabs.rb +2 -2
- data/mod/bootstrap/set/all/bootstrap/wrapper.rb +1 -1
- data/mod/bootstrap/set/self/bootstrap_js.rb +7 -1
- data/mod/bootstrap/set/self/bootswatch_shared.rb +8 -17
- data/mod/bootstrap/set/self/script_select2.rb +9 -0
- data/mod/bootstrap/set/self/style_select2.rb +1 -1
- data/mod/bootstrap/set/self/style_select2_bootstrap.rb +1 -0
- data/mod/bootstrap/vendor/bootstrap/.editorconfig +17 -0
- data/mod/bootstrap/vendor/bootstrap/.gitattributes +15 -0
- data/mod/bootstrap/vendor/bootstrap/.gitignore +41 -0
- data/mod/bootstrap/vendor/bootstrap/.hound.yml +12 -0
- data/mod/bootstrap/vendor/bootstrap/.travis.yml +45 -0
- data/mod/bootstrap/vendor/bootstrap/CHANGELOG.md +5 -0
- data/mod/bootstrap/vendor/bootstrap/CNAME +1 -0
- data/mod/bootstrap/vendor/bootstrap/CONTRIBUTING.md +270 -0
- data/mod/bootstrap/vendor/bootstrap/Gemfile +6 -0
- data/mod/bootstrap/vendor/bootstrap/Gemfile.lock +49 -0
- data/mod/bootstrap/vendor/bootstrap/Gruntfile.js +511 -0
- data/mod/bootstrap/vendor/bootstrap/ISSUE_TEMPLATE.md +22 -0
- data/mod/bootstrap/vendor/bootstrap/LICENSE +21 -0
- data/mod/bootstrap/vendor/bootstrap/README.md +142 -0
- data/mod/bootstrap/vendor/bootstrap/_config.yml +42 -0
- data/mod/bootstrap/vendor/bootstrap/bower.json +34 -0
- data/mod/bootstrap/vendor/bootstrap/composer.json +37 -0
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-theme.css +587 -0
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-theme.css.map +0 -0
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-theme.min.css +6 -0
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-theme.min.css.map +0 -0
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.css +6757 -0
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.css.map +0 -0
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.min.css +6 -0
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.min.css.map +0 -0
- data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +288 -0
- data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.js +2377 -0
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.min.js +7 -0
- data/mod/bootstrap/vendor/bootstrap/dist/js/npm.js +13 -0
- data/mod/bootstrap/vendor/bootstrap/docs/LICENSE +319 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_data/browser-bugs.yml +433 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_data/browser-features.yml +109 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_data/core-team.yml +27 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_data/glyphicons.yml +266 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_data/sass-team.yml +7 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_data/showcase.yml +19 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_data/translations.yml +64 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/ads.html +1 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/alerts.html +89 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/badges.html +45 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/breadcrumbs.html +27 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/button-dropdowns.html +321 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/button-groups.html +268 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/dropdowns.html +156 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/glyphicons.html +91 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/input-groups.html +365 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/jumbotron.html +27 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/labels.html +40 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/list-group.html +188 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/media.html +207 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/navbar.html +461 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/navs.html +189 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/page-header.html +15 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/pagination.html +202 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/panels.html +279 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/progress-bars.html +214 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/responsive-embed.html +23 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/thumbnails.html +94 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/wells.html +33 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/buttons.html +189 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/code.html +52 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/forms.html +1029 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/grid.html +560 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/helpers.html +207 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/images.html +31 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/less.html +499 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/overview.html +52 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/responsive-utilities.html +258 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/sass.html +52 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/tables.html +467 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/type.html +461 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/customizer-variables.html +1892 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/footer.html +67 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/accessibility.html +37 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/browser-device-support.html +237 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/community.html +13 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/disabling-responsiveness.html +22 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/download.html +63 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/examples.html +161 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/grunt.html +35 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/license.html +34 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/template.html +37 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/third-party-support.html +51 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/tools.html +6 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/translations.html +12 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/whats-included.html +55 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/header.html +58 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/affix.html +129 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/alerts.html +73 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/buttons.html +139 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/carousel.html +260 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/collapse.html +277 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/dropdowns.html +201 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/modal.html +520 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/overview.html +86 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/popovers.html +309 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/scrollspy.html +151 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/tabs.html +147 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/tooltips.html +276 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/transitions.html +15 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/about.html +9 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/components.html +146 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/css.html +136 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/customize.html +47 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/getting-started.html +76 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/javascript.html +124 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/main.html +37 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/migration.html +12 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_layouts/default.html +65 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_layouts/home.html +19 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_plugins/bridge.rb +9 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_plugins/bugify.rb +26 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_pug/customizer-nav.pug +17 -0
- data/mod/bootstrap/vendor/bootstrap/docs/_pug/customizer-variables.pug +25 -0
- data/mod/bootstrap/vendor/bootstrap/docs/about.html +127 -0
- data/mod/bootstrap/vendor/bootstrap/docs/apple-touch-icon.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/brand/bootstrap-outline.svg +20 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/brand/bootstrap-punchout.svg +18 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/brand/bootstrap-solid.svg +17 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/css/docs.min.css +11 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/css/docs.min.css.map +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/css/ie10-viewport-bug-workaround.css +13 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/css/src/docs.css +1632 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/css/src/pygments-manni.css +66 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/flash/ZeroClipboard.swf +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/img/components.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/img/devices.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/img/expo-lyft.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/img/expo-newsweek.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/img/expo-riot.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/img/expo-vogue.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/img/sass-less.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/customize.min.js +91 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/docs.min.js +26 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/ie-emulation-modes-warning.js +51 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/ie10-viewport-bug-workaround.js +23 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/ie8-responsive-file-warning.js +13 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/raw-files.min.js +8 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/src/application.js +183 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/src/customizer.js +520 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/Blob.js +211 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/FileSaver.js +248 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/ZeroClipboard.min.js +9 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/anchor.min.js +6 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/autoprefixer.js +21114 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/holder.min.js +12 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/jquery.min.js +5 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/jszip.min.js +14 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/less.min.js +16 -0
- data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/uglify.min.js +6 -0
- data/mod/bootstrap/vendor/bootstrap/docs/browser-bugs.html +75 -0
- data/mod/bootstrap/vendor/bootstrap/docs/components.html +29 -0
- data/mod/bootstrap/vendor/bootstrap/docs/css.html +20 -0
- data/mod/bootstrap/vendor/bootstrap/docs/customize.html +385 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap-theme.css +587 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap-theme.css.map +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap-theme.min.css +6 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap-theme.min.css.map +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap.css +6757 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap.css.map +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap.min.css +6 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap.min.css.map +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.svg +288 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/js/bootstrap.js +2377 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/js/bootstrap.min.js +7 -0
- data/mod/bootstrap/vendor/bootstrap/docs/dist/js/npm.js +13 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/blog/blog.css +166 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/blog/index.html +180 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/carousel/carousel.css +134 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/carousel/index.html +220 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/cover/cover.css +163 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/cover/index.html +84 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/dashboard/dashboard.css +105 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/dashboard/index.html +252 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/grid/grid.css +23 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/grid/index.html +156 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/jumbotron-narrow/index.html +88 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/jumbotron-narrow/jumbotron-narrow.css +79 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/jumbotron/index.html +107 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/jumbotron/jumbotron.css +5 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/justified-nav/index.html +92 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/justified-nav/justified-nav.css +88 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar-fixed-top/index.html +99 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar-fixed-top/navbar-fixed-top.css +4 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar-static-top/index.html +100 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar-static-top/navbar-static-top.css +7 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar/index.html +98 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar/navbar.css +8 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/non-responsive/index.html +115 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/non-responsive/non-responsive.css +262 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/offcanvas/index.html +137 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/offcanvas/offcanvas.css +59 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/offcanvas/offcanvas.js +5 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/blog.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/carousel.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/cover.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/dashboard.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/equal-height-columns.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/grid.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/jumbotron-narrow.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/jumbotron.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/justified-nav.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/navbar-fixed.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/navbar-static.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/navbar.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/non-responsive.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/offcanvas.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/sign-in.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/starter-template.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/sticky-footer-navbar.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/sticky-footer.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/theme.jpg +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/signin/index.html +58 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/signin/signin.css +40 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/starter-template/index.html +76 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/starter-template/starter-template.css +7 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/sticky-footer-navbar/index.html +95 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/sticky-footer-navbar/sticky-footer-navbar.css +39 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/sticky-footer/index.html +55 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/sticky-footer/sticky-footer.css +32 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/theme/index.html +644 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/theme/theme.css +18 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/tooltip-viewport/index.html +62 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/tooltip-viewport/tooltip-viewport.css +26 -0
- data/mod/bootstrap/vendor/bootstrap/docs/examples/tooltip-viewport/tooltip-viewport.js +18 -0
- data/mod/bootstrap/vendor/bootstrap/docs/favicon.ico +0 -0
- data/mod/bootstrap/vendor/bootstrap/docs/getting-started.html +28 -0
- data/mod/bootstrap/vendor/bootstrap/docs/index.html +73 -0
- data/mod/bootstrap/vendor/bootstrap/docs/javascript.html +21 -0
- data/mod/bootstrap/vendor/bootstrap/docs/migration.html +445 -0
- data/mod/bootstrap/vendor/bootstrap/docs/robots.txt +9 -0
- data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
- data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/mod/bootstrap/vendor/bootstrap/grunt/.jshintrc +7 -0
- data/mod/bootstrap/vendor/bootstrap/grunt/bs-commonjs-generator.js +30 -0
- data/mod/bootstrap/vendor/bootstrap/grunt/bs-glyphicons-data-generator.js +42 -0
- data/mod/bootstrap/vendor/bootstrap/grunt/bs-lessdoc-parser.js +237 -0
- data/mod/bootstrap/vendor/bootstrap/grunt/bs-raw-files-generator.js +44 -0
- data/mod/bootstrap/vendor/bootstrap/grunt/change-version.js +109 -0
- data/mod/bootstrap/vendor/bootstrap/grunt/configBridge.json +46 -0
- data/mod/bootstrap/vendor/bootstrap/grunt/npm-shrinkwrap.json +2679 -0
- data/mod/bootstrap/vendor/bootstrap/grunt/sauce_browsers.yml +82 -0
- data/mod/bootstrap/vendor/bootstrap/js/.jscsrc +42 -0
- data/mod/bootstrap/vendor/bootstrap/js/.jshintrc +15 -0
- data/mod/bootstrap/vendor/bootstrap/js/affix.js +162 -0
- data/mod/bootstrap/vendor/bootstrap/js/alert.js +94 -0
- data/mod/bootstrap/vendor/bootstrap/js/button.js +125 -0
- data/mod/bootstrap/vendor/bootstrap/js/carousel.js +239 -0
- data/mod/bootstrap/vendor/bootstrap/js/collapse.js +212 -0
- data/mod/bootstrap/vendor/bootstrap/js/dropdown.js +165 -0
- data/mod/bootstrap/vendor/bootstrap/js/modal.js +339 -0
- data/mod/bootstrap/vendor/bootstrap/js/popover.js +108 -0
- data/mod/bootstrap/vendor/bootstrap/js/scrollspy.js +172 -0
- data/mod/bootstrap/vendor/bootstrap/js/tab.js +155 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/README.md +62 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/index.html +169 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/.jshintrc +6 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/affix.js +107 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/alert.js +78 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/button.js +168 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/carousel.js +718 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/collapse.js +443 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/dropdown.js +423 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/modal.js +377 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/phantom.js +72 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/popover.js +290 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/scrollspy.js +278 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/tab.js +216 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/tooltip.js +1325 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/vendor/jquery.min.js +5 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/vendor/qunit.css +305 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/vendor/qunit.js +4204 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/affix-with-sticky-footer.html +317 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/affix.html +306 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/alert.html +48 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/button.html +79 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/carousel.html +58 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/collapse.html +78 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/dropdown.html +108 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/modal.html +205 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/popover.html +54 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/scrollspy.html +109 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/tab.html +172 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/tooltip.html +50 -0
- data/mod/bootstrap/vendor/bootstrap/js/tooltip.js +520 -0
- data/mod/bootstrap/vendor/bootstrap/js/transition.js +59 -0
- data/mod/bootstrap/vendor/bootstrap/less/.csscomb.json +304 -0
- data/mod/bootstrap/vendor/bootstrap/less/.csslintrc +19 -0
- data/mod/bootstrap/vendor/bootstrap/less/alerts.less +73 -0
- data/mod/bootstrap/vendor/bootstrap/less/badges.less +66 -0
- data/mod/bootstrap/vendor/bootstrap/less/bootstrap.less +56 -0
- data/mod/bootstrap/vendor/bootstrap/less/breadcrumbs.less +26 -0
- data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/_button-group.scss → vendor/bootstrap/less/button-groups.less} +100 -58
- data/mod/bootstrap/vendor/bootstrap/less/buttons.less +166 -0
- data/mod/bootstrap/vendor/bootstrap/less/carousel.less +270 -0
- data/mod/bootstrap/vendor/bootstrap/less/close.less +34 -0
- data/mod/bootstrap/vendor/bootstrap/less/code.less +69 -0
- data/mod/bootstrap/vendor/bootstrap/less/component-animations.less +33 -0
- data/mod/bootstrap/vendor/bootstrap/less/dropdowns.less +216 -0
- data/mod/bootstrap/vendor/bootstrap/less/forms.less +613 -0
- data/mod/bootstrap/vendor/bootstrap/less/glyphicons.less +305 -0
- data/mod/bootstrap/vendor/bootstrap/less/grid.less +84 -0
- data/mod/bootstrap/vendor/bootstrap/less/input-groups.less +171 -0
- data/mod/bootstrap/vendor/bootstrap/less/jumbotron.less +54 -0
- data/mod/bootstrap/vendor/bootstrap/less/labels.less +64 -0
- data/mod/bootstrap/vendor/bootstrap/less/list-group.less +130 -0
- data/mod/bootstrap/vendor/bootstrap/less/media.less +66 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins.less +40 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/alerts.less +14 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/background-variant.less +9 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/border-radius.less +18 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/buttons.less +65 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/center-block.less +7 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/clearfix.less +22 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/forms.less +85 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/gradients.less +59 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/grid-framework.less +91 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/grid.less +122 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/hide-text.less +21 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/image.less +33 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/labels.less +12 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/list-group.less +30 -0
- data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_nav-divider.scss → vendor/bootstrap/less/mixins/nav-divider.less} +3 -3
- data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_navbar-align.scss → vendor/bootstrap/less/mixins/nav-vertical-align.less} +4 -4
- data/mod/bootstrap/vendor/bootstrap/less/mixins/opacity.less +8 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/pagination.less +24 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/panels.less +24 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/progress-bar.less +10 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/reset-filter.less +8 -0
- data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_reset-text.scss → vendor/bootstrap/less/mixins/reset-text.less} +6 -5
- data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_resize.scss → vendor/bootstrap/less/mixins/resize.less} +2 -2
- data/mod/bootstrap/vendor/bootstrap/less/mixins/responsive-visibility.less +15 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/size.less +10 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/tab-focus.less +9 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/table-row.less +28 -0
- data/mod/bootstrap/vendor/bootstrap/less/mixins/text-emphasis.less +9 -0
- data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_text-truncate.scss → vendor/bootstrap/less/mixins/text-overflow.less} +3 -3
- data/mod/bootstrap/vendor/bootstrap/less/mixins/vendor-prefixes.less +227 -0
- data/mod/bootstrap/vendor/bootstrap/less/modals.less +150 -0
- data/mod/bootstrap/vendor/bootstrap/less/navbar.less +660 -0
- data/mod/bootstrap/vendor/bootstrap/less/navs.less +242 -0
- data/mod/bootstrap/vendor/bootstrap/less/normalize.less +424 -0
- data/mod/bootstrap/vendor/bootstrap/less/pager.less +54 -0
- data/mod/bootstrap/vendor/bootstrap/less/pagination.less +89 -0
- data/mod/bootstrap/vendor/bootstrap/less/panels.less +271 -0
- data/mod/bootstrap/vendor/bootstrap/less/popovers.less +131 -0
- data/mod/bootstrap/vendor/bootstrap/less/print.less +101 -0
- data/mod/bootstrap/vendor/bootstrap/less/progress-bars.less +87 -0
- data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/_responsive-embed.scss → vendor/bootstrap/less/responsive-embed.less} +9 -26
- data/mod/bootstrap/vendor/bootstrap/less/responsive-utilities.less +194 -0
- data/mod/bootstrap/vendor/bootstrap/less/scaffolding.less +161 -0
- data/mod/bootstrap/vendor/bootstrap/less/tables.less +234 -0
- data/mod/bootstrap/vendor/bootstrap/less/theme.less +291 -0
- data/mod/bootstrap/vendor/bootstrap/less/thumbnails.less +36 -0
- data/mod/bootstrap/vendor/bootstrap/less/tooltip.less +101 -0
- data/mod/bootstrap/vendor/bootstrap/less/type.less +302 -0
- data/mod/bootstrap/vendor/bootstrap/less/utilities.less +55 -0
- data/mod/bootstrap/vendor/bootstrap/less/variables.less +869 -0
- data/mod/bootstrap/vendor/bootstrap/less/wells.less +29 -0
- data/mod/bootstrap/vendor/bootstrap/nuget/MyGet.ps1 +8 -0
- data/mod/bootstrap/vendor/bootstrap/nuget/bootstrap.less.nuspec +28 -0
- data/mod/bootstrap/vendor/bootstrap/nuget/bootstrap.nuspec +28 -0
- data/mod/bootstrap/vendor/bootstrap/package.js +32 -0
- data/mod/bootstrap/vendor/bootstrap/package.json +89 -0
- data/mod/bootstrap/vendor/bootswatch/README.md +63 -0
- data/mod/bootstrap/vendor/bootswatch/swatchmaker/README.md +1 -0
- data/mod/bootstrap/vendor/select2/.editorconfig +6 -0
- data/mod/bootstrap/vendor/select2/.github/CONTRIBUTING.md +203 -0
- data/mod/bootstrap/vendor/select2/.github/ISSUE_TEMPLATE.md +20 -0
- data/mod/bootstrap/vendor/select2/.github/PULL_REQUEST_TEMPLATE.md +13 -0
- data/mod/bootstrap/vendor/select2/.gitignore +3 -0
- data/mod/bootstrap/vendor/select2/.jshintignore +4 -0
- data/mod/bootstrap/vendor/select2/.jshintrc +25 -0
- data/mod/bootstrap/vendor/select2/.travis.yml +22 -0
- data/mod/bootstrap/vendor/select2/CHANGELOG.md +272 -0
- data/mod/bootstrap/vendor/select2/Gruntfile.js +380 -0
- data/mod/bootstrap/vendor/select2/LICENSE.md +21 -0
- data/mod/bootstrap/vendor/select2/README.md +123 -0
- data/mod/bootstrap/vendor/select2/bower.json +13 -0
- data/mod/bootstrap/vendor/select2/component.json +19 -0
- data/mod/bootstrap/vendor/select2/composer.json +25 -0
- data/mod/bootstrap/{lib/stylesheets/style_select2.css → vendor/select2/dist/css/select2.css} +0 -0
- data/mod/bootstrap/{lib/stylesheets → vendor/select2/dist/css}/select2.min.css +0 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/af.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/ar.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/az.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/bg.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/bs.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/ca.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/cs.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/da.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/de.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/dsb.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/el.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/en.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/es.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/et.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/eu.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/fa.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/fi.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/fr.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/gl.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/he.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/hi.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/hr.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/hsb.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/hu.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/hy.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/id.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/is.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/it.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/ja.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/km.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/ko.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/lt.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/lv.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/mk.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/ms.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/nb.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/nl.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/pl.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/ps.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/pt-BR.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/pt.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/ro.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/ru.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/sk.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/sl.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/sr-Cyrl.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/sr.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/sv.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/th.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/tr.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/uk.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/vi.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/zh-CN.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/i18n/zh-TW.js +3 -0
- data/mod/bootstrap/vendor/select2/dist/js/select2.full.js +6457 -0
- data/mod/bootstrap/vendor/select2/dist/js/select2.full.min.js +1 -0
- data/mod/bootstrap/{lib/javascript/script_select2.js → vendor/select2/dist/js/select2.js} +90 -69
- data/mod/bootstrap/vendor/select2/dist/js/select2.min.js +1 -0
- data/mod/bootstrap/vendor/select2/docs/README.md +1 -0
- data/mod/bootstrap/vendor/select2/docs/announcements-4.0.html +12 -0
- data/mod/bootstrap/vendor/select2/docs/community.html +12 -0
- data/mod/bootstrap/vendor/select2/docs/examples.html +12 -0
- data/mod/bootstrap/vendor/select2/docs/index.html +12 -0
- data/mod/bootstrap/vendor/select2/docs/options-old.html +12 -0
- data/mod/bootstrap/vendor/select2/docs/options.html +12 -0
- data/mod/bootstrap/vendor/select2/package.json +73 -0
- data/mod/bootstrap/vendor/select2/select2.jquery.json +32 -0
- data/mod/bootstrap/vendor/select2/src/js/banner.end.js +6 -0
- data/mod/bootstrap/vendor/select2/src/js/banner.start.js +6 -0
- data/mod/bootstrap/vendor/select2/src/js/jquery.mousewheel.shim.js +6 -0
- data/mod/bootstrap/vendor/select2/src/js/jquery.select2.js +57 -0
- data/mod/bootstrap/vendor/select2/src/js/jquery.shim.js +14 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/compat/containerCss.js +56 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/compat/dropdownCss.js +56 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/compat/initSelection.js +42 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/compat/inputData.js +127 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/compat/matcher.js +42 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/compat/query.js +26 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/compat/utils.js +43 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/core.js +612 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/data/ajax.js +109 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/data/array.js +79 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/data/base.js +40 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/data/maximumInputLength.js +31 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/data/maximumSelectionLength.js +31 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/data/minimumInputLength.js +30 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/data/select.js +285 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/data/tags.js +128 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/data/tokenizer.js +116 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/defaults.js +396 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/diacritics.js +847 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown.js +42 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/attachBody.js +222 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/attachContainer.js +18 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/closeOnSelect.js +35 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/hidePlaceholder.js +42 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/infiniteScroll.js +89 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/minimumResultsForSearch.js +39 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/search.js +101 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/selectOnClose.js +50 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/stopPropagation.js +38 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/af.js +44 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ar.js +30 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/az.js +27 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/bg.js +47 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/bs.js +55 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ca.js +52 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/cs.js +61 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/da.js +36 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/de.js +40 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/dsb.js +48 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/el.js +52 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/en.js +44 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/es.js +52 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/et.js +53 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/eu.js +51 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/fa.js +38 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/fi.js +30 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/fr.js +33 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/gl.js +39 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/he.js +56 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hi.js +39 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hr.js +44 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hsb.js +48 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hu.js +30 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hy.js +38 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/id.js +30 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/is.js +41 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/it.js +48 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ja.js +36 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/km.js +36 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ko.js +36 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/lt.js +52 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/lv.js +51 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/mk.js +47 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ms.js +30 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/nb.js +32 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/nl.js +43 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/pl.js +45 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ps.js +45 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/pt-BR.js +46 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/pt.js +40 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ro.js +46 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ru.js +58 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sk.js +59 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sl.js +54 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sr-Cyrl.js +55 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sr.js +55 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sv.js +37 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/th.js +36 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/tr.js +36 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/uk.js +43 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/vi.js +37 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/zh-CN.js +36 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/i18n/zh-TW.js +33 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/keys.js +25 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/options.js +122 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/results.js +523 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/selection/allowClear.js +97 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/selection/base.js +158 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/selection/clickMask.js +29 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/selection/eventRelay.js +45 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/selection/multiple.js +109 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/selection/placeholder.js +49 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/selection/search.js +222 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/selection/single.js +99 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/selection/stopPropagation.js +38 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/translation.js +36 -0
- data/mod/bootstrap/vendor/select2/src/js/select2/utils.js +276 -0
- data/mod/bootstrap/vendor/select2/src/js/wrapper.end.js +12 -0
- data/mod/bootstrap/vendor/select2/src/js/wrapper.start.js +38 -0
- data/mod/bootstrap/vendor/select2/src/scss/_dropdown.scss +73 -0
- data/mod/bootstrap/vendor/select2/src/scss/_multiple.scss +35 -0
- data/mod/bootstrap/vendor/select2/src/scss/_single.scss +34 -0
- data/mod/bootstrap/vendor/select2/src/scss/core.scss +48 -0
- data/mod/bootstrap/vendor/select2/src/scss/mixins/_gradients.scss +13 -0
- data/mod/bootstrap/vendor/select2/src/scss/theme/classic/_defaults.scss +34 -0
- data/mod/bootstrap/vendor/select2/src/scss/theme/classic/_multiple.scss +93 -0
- data/mod/bootstrap/vendor/select2/src/scss/theme/classic/_single.scss +124 -0
- data/mod/bootstrap/vendor/select2/src/scss/theme/classic/layout.scss +64 -0
- data/mod/bootstrap/vendor/select2/src/scss/theme/default/_multiple.scss +98 -0
- data/mod/bootstrap/vendor/select2/src/scss/theme/default/_single.scss +83 -0
- data/mod/bootstrap/vendor/select2/src/scss/theme/default/layout.scss +97 -0
- data/mod/bootstrap/vendor/select2/tests/a11y/search-tests.js +51 -0
- data/mod/bootstrap/vendor/select2/tests/a11y/selection-tests.js +154 -0
- data/mod/bootstrap/vendor/select2/tests/data/array-tests.js +318 -0
- data/mod/bootstrap/vendor/select2/tests/data/base-tests.js +29 -0
- data/mod/bootstrap/vendor/select2/tests/data/inputData-tests.js +158 -0
- data/mod/bootstrap/vendor/select2/tests/data/maximumInputLength-tests.js +138 -0
- data/mod/bootstrap/vendor/select2/tests/data/maximumSelectionLength-tests.js +202 -0
- data/mod/bootstrap/vendor/select2/tests/data/minimumInputLength-tests.js +138 -0
- data/mod/bootstrap/vendor/select2/tests/data/select-tests.js +489 -0
- data/mod/bootstrap/vendor/select2/tests/data/tags-tests.js +276 -0
- data/mod/bootstrap/vendor/select2/tests/data/tokenizer-tests.js +219 -0
- data/mod/bootstrap/vendor/select2/tests/dropdown/dropdownCss-tests.js +104 -0
- data/mod/bootstrap/vendor/select2/tests/dropdown/positioning-tests.js +177 -0
- data/mod/bootstrap/vendor/select2/tests/dropdown/selectOnClose-tests.js +137 -0
- data/mod/bootstrap/vendor/select2/tests/dropdown/stopPropagation-tests.js +33 -0
- data/mod/bootstrap/vendor/select2/tests/helpers.js +46 -0
- data/mod/bootstrap/vendor/select2/tests/integration.html +21 -0
- data/mod/bootstrap/vendor/select2/tests/integration/dom-changes.js +257 -0
- data/mod/bootstrap/vendor/select2/tests/integration/jquery-calls.js +30 -0
- data/mod/bootstrap/vendor/select2/tests/integration/select2-methods.js +139 -0
- data/mod/bootstrap/vendor/select2/tests/options/ajax-tests.js +32 -0
- data/mod/bootstrap/vendor/select2/tests/options/data-tests.js +44 -0
- data/mod/bootstrap/vendor/select2/tests/options/deprecated-tests.js +250 -0
- data/mod/bootstrap/vendor/select2/tests/options/translation-tests.js +28 -0
- data/mod/bootstrap/vendor/select2/tests/options/width-tests.js +66 -0
- data/mod/bootstrap/vendor/select2/tests/results/focusing-tests.js +138 -0
- data/mod/bootstrap/vendor/select2/tests/selection/allowClear-tests.js +218 -0
- data/mod/bootstrap/vendor/select2/tests/selection/containerCss-tests.js +104 -0
- data/mod/bootstrap/vendor/select2/tests/selection/multiple-tests.js +149 -0
- data/mod/bootstrap/vendor/select2/tests/selection/placeholder-tests.js +74 -0
- data/mod/bootstrap/vendor/select2/tests/selection/search-tests.js +191 -0
- data/mod/bootstrap/vendor/select2/tests/selection/single-tests.js +117 -0
- data/mod/bootstrap/vendor/select2/tests/selection/stopPropagation-tests.js +33 -0
- data/mod/bootstrap/vendor/select2/tests/unit.html +95 -0
- data/mod/bootstrap/vendor/select2/tests/utils/decorator-tests.js +189 -0
- data/mod/bootstrap/vendor/select2/tests/utils/escapeMarkup-tests.js +36 -0
- data/mod/bootstrap/vendor/select2/tests/vendor/jquery-1.7.2.js +9404 -0
- data/mod/bootstrap/vendor/select2/tests/vendor/qunit-1.23.1.css +305 -0
- data/mod/bootstrap/vendor/select2/tests/vendor/qunit-1.23.1.js +4334 -0
- data/mod/bootstrap/vendor/select2/vendor/jquery-2.1.0.js +9111 -0
- data/mod/carrierwave/lib/carrier_wave/cardmount.rb +6 -1
- data/mod/carrierwave/lib/carrier_wave/file_card_uploader.rb +4 -0
- data/mod/carrierwave/set/abstract/attachment.rb +13 -6
- data/mod/carrierwave/set/abstract/attachment/storage_type.rb +15 -12
- data/mod/carrierwave/set/abstract/attachment/upload_cache.rb +2 -3
- data/mod/carrierwave/set/type/file.rb +17 -17
- data/mod/carrierwave/set/type/image.rb +40 -37
- data/mod/carrierwave/spec/set/type/file_spec.rb +15 -15
- data/mod/carrierwave/spec/set/type/image_spec.rb +3 -3
- data/mod/core/chunk/reference.rb +3 -3
- data/mod/core/chunk/view_stub.rb +12 -4
- data/mod/core/format/html_format.rb +1 -1
- data/mod/core/format/text_format.rb +5 -0
- data/mod/core/set/abstract/code_file.rb +8 -3
- data/mod/core/set/all/actify.rb +8 -50
- data/mod/core/set/all/assign_attributes.rb +1 -1
- data/mod/core/set/all/cache.rb +1 -1
- data/mod/core/set/all/collection.rb +7 -7
- data/mod/core/set/all/content.rb +12 -6
- data/mod/core/set/all/fetch.rb +23 -15
- data/mod/core/set/all/fetch_helper.rb +11 -9
- data/mod/core/set/all/haml.rb +4 -0
- data/mod/core/set/all/initialize.rb +2 -2
- data/mod/core/set/all/mark.rb +17 -35
- data/mod/core/set/all/name.rb +25 -25
- data/mod/core/set/all/name_validations.rb +6 -6
- data/mod/core/set/all/permissions.rb +1 -1
- data/mod/core/set/all/phases.rb +3 -3
- data/mod/core/set/all/references.rb +4 -4
- data/mod/core/set/all/rename.rb +6 -7
- data/mod/core/set/all/rules.rb +2 -2
- data/mod/core/set/all/stages.rb +2 -11
- data/mod/core/set/all/subcards.rb +1 -1
- data/mod/core/set/all/templating.rb +4 -4
- data/mod/core/set/all/type.rb +2 -2
- data/mod/core/set/all/update_read_rules.rb +2 -56
- data/mod/core/set_pattern/04_star.rb +1 -1
- data/mod/core/set_pattern/05_rstar.rb +1 -1
- data/mod/core/set_pattern/06_right.rb +1 -1
- data/mod/core/set_pattern/07_type_plus_right.rb +2 -3
- data/mod/core/spec/format/html_format_spec.rb +4 -4
- data/mod/core/spec/set/all/actify_spec.rb +107 -42
- data/mod/core/spec/set/all/event_conditions_spec.rb +1 -1
- data/mod/core/spec/set/all/fetch_spec.rb +57 -13
- data/mod/core/spec/set/all/name_spec.rb +1 -1
- data/mod/core/spec/set/all/permissions/reader_rules_spec.rb +1 -1
- data/mod/core/spec/set/all/permissions_spec.rb +2 -2
- data/mod/core/spec/set/all/rename_spec.rb +7 -5
- data/mod/core/spec/set/all/templating_spec.rb +5 -5
- data/mod/core/spec/set/all/type_spec.rb +1 -1
- data/mod/developer/set/all/event_viz.rb +1 -3
- data/mod/history/lib/card/act.rb +2 -6
- data/mod/history/lib/card/act/act_renderer.rb +6 -11
- data/mod/history/lib/card/action/action_renderer.rb +1 -1
- data/mod/history/lib/card/change.rb +1 -1
- data/mod/history/set/all/action_view.rb +1 -1
- data/mod/history/set/all/actions.rb +10 -1
- data/mod/history/set/all/content_history.rb +9 -9
- data/mod/history/set/all/history.rb +40 -27
- data/mod/machines/lib/javascript/decko.js.coffee +1 -1
- data/mod/machines/lib/javascript/decko_filter.js.coffee +40 -0
- data/mod/machines/lib/javascript/decko_layout.js.coffee +16 -8
- data/mod/machines/lib/stylesheets/style_cards.scss +9 -0
- data/mod/machines/set/abstract/machine.rb +12 -9
- data/mod/machines/set/abstract/script.rb +4 -0
- data/mod/machines/set/self/script_slot.rb +2 -1
- data/mod/machines/set/type/css.rb +4 -0
- data/mod/machines/spec/set/type/skin_spec.rb +2 -2
- data/mod/machines/spec/shared_examples/machine_input.rb +3 -3
- data/mod/notifications/format/email_html_format.rb +4 -0
- data/mod/notifications/set/all/follow.rb +1 -1
- data/mod/notifications/set/all/send_notifications.rb +18 -17
- data/mod/notifications/set/right/bcc.rb +1 -1
- data/mod/notifications/set/right/follow.rb +3 -3
- data/mod/notifications/set/right/followers.rb +1 -1
- data/mod/notifications/set/right/following.rb +2 -2
- data/mod/notifications/set/right/html_message.rb +0 -5
- data/mod/notifications/set/right/text_message.rb +0 -5
- data/mod/notifications/set/self/follow_defaults.rb +3 -3
- data/mod/notifications/set/type_plus_right/user/follow.rb +1 -1
- data/mod/notifications/spec/set/right/followers_spec.rb +1 -1
- data/mod/pointer/set/abstract/01_paging.rb +1 -1
- data/mod/pointer/set/abstract/02_pointer.rb +2 -2
- data/mod/pointer/set/abstract/02_pointer/edit.rb +10 -8
- data/mod/pointer/set/abstract/code_pointer.rb +1 -1
- data/mod/pointer/set/self/input_options.rb +1 -1
- data/mod/pointer/spec/set/type/pointer_spec.rb +1 -1
- data/mod/prosemirror_editor/set/abstract/prosemirror_editor.rb +1 -1
- data/mod/{standard → search}/set/abstract/01_search_params.rb +0 -0
- data/mod/{standard → search}/set/abstract/search.rb +1 -1
- data/mod/{standard → search}/set/abstract/wql_search.rb +2 -2
- data/mod/search/set/all/filter.rb +12 -0
- data/mod/{standard → search}/set/self/navbox.rb +1 -1
- data/mod/{standard → search}/set/self/recent.rb +1 -1
- data/mod/{standard → search}/set/self/search.rb +2 -2
- data/mod/{standard → search}/set/type/search_type.rb +2 -2
- data/mod/search/spec/set/all/filter_spec.rb +37 -0
- data/mod/{standard → search}/spec/set/self/navbox_spec.rb +0 -0
- data/mod/{standard → search}/spec/set/self/recent_spec.rb +0 -0
- data/mod/{standard → search}/spec/set/self/search_spec.rb +0 -0
- data/mod/search/template/all/filter/_filter_input.haml +8 -0
- data/mod/search/template/all/filter/filter_form.haml +32 -0
- data/mod/settings/lib/card/setting.rb +11 -11
- data/mod/settings/set/abstract/permission.rb +3 -3
- data/mod/settings/set/right/read.rb +56 -0
- data/mod/settings/set/type/setting.rb +1 -1
- data/mod/solid_cache/set/right/solid_cache.rb +1 -1
- data/mod/standard/set/abstract/toolbar_split_button.rb +1 -1
- data/mod/standard/set/all/error.rb +1 -1
- data/mod/standard/set/all/links.rb +3 -3
- data/mod/standard/set/all/list_changes.rb +7 -3
- data/mod/standard/set/all/rich_html/content.rb +17 -17
- data/mod/standard/set/all/rich_html/editing.rb +3 -3
- data/mod/standard/set/all/rich_html/editor.rb +1 -1
- data/mod/standard/set/all/rich_html/form.rb +2 -2
- data/mod/standard/set/all/rich_html/formgroup.rb +1 -1
- data/mod/standard/set/all/rich_html/header.rb +3 -3
- data/mod/standard/set/all/rich_html/menu.rb +7 -7
- data/mod/standard/set/all/rich_html/modal.rb +3 -3
- data/mod/standard/set/all/rich_html/new.rb +3 -3
- data/mod/standard/set/all/rich_html/toolbar.rb +16 -14
- data/mod/standard/set/all/rich_html/wrapper.rb +7 -7
- data/mod/standard/set/rstar/rules.rb +5 -5
- data/mod/standard/set/rstar/rules_editor.rb +5 -5
- data/mod/standard/set/type/cardtype.rb +1 -1
- data/mod/standard/set/type/list.rb +6 -6
- data/mod/standard/set/type/listed_by.rb +29 -24
- data/mod/standard/set/type/session.rb +0 -4
- data/mod/standard/set/type/set.rb +23 -26
- data/mod/standard/set/type/toggle.rb +2 -2
- data/mod/standard/spec/set/all/history_spec.rb +1 -0
- data/mod/standard/spec/set/all/rich_html/editing_spec.rb +1 -1
- data/mod/standard/spec/set/all/rich_html/wrapper_spec.rb +2 -2
- data/mod/standard/spec/set/type/list_spec.rb +7 -3
- data/mod/standard/spec/set/type/listed_by_spec.rb +3 -2
- data/mod/standard/spec/set/type/uri_spec.rb +8 -8
- data/spec/config/initializers/core_extensions_spec.rb +2 -2
- data/spec/lib/card/cache_spec.rb +3 -3
- data/spec/lib/card/codename_spec.rb +40 -2
- data/spec/lib/card/format_spec.rb +6 -6
- data/spec/lib/card/query_spec.rb +0 -2
- data/spec/lib/card/reference_spec.rb +3 -3
- data/spec/lib/card/stage_director_spec.rb +52 -17
- data/spec/lib/card/success_spec.rb +1 -1
- data/spec/models/card/trash_spec.rb +1 -1
- data/spec/models/card_spec.rb +3 -3
- data/spec/support/helper/event_helper.rb +14 -0
- data/spec/support/helper/render_helper.rb +1 -1
- data/spec/support/matchers/card_matchers.rb +7 -9
- metadata +643 -111
- data/lib/active_record/connection_adapters_ext.rb +0 -52
- data/lib/active_support/callbacks_ext.rb +0 -9
- data/lib/card/name/view_name.rb +0 -50
- data/mod/bootstrap/db/migrate_cards/20170719163701_update_bootswatch_themes.rb +0 -80
- data/mod/bootstrap/lib/javascript/bootstrap.js +0 -3535
- data/mod/bootstrap/lib/javascript/bootstrap.min.js +0 -7
- data/mod/bootstrap/lib/javascript/select2.min.js +0 -3
- data/mod/bootstrap/lib/javascript/tether.min.js +0 -1
- data/mod/bootstrap/lib/stylesheets/bootstrap.css +0 -9320
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/.scss-lint.yml +0 -548
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_alert.scss +0 -55
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_badge.scss +0 -77
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_breadcrumb.scss +0 -38
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_buttons.scss +0 -170
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_card.scss +0 -276
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_carousel.scss +0 -178
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_close.scss +0 -31
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_code.scss +0 -64
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_custom-forms.scss +0 -263
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_custom.scss +0 -4
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_dropdown.scss +0 -161
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_forms.scss +0 -388
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_grid.scss +0 -52
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_images.scss +0 -43
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_input-group.scss +0 -178
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_jumbotron.scss +0 -20
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_list-group.scss +0 -141
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_media.scss +0 -8
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_mixins.scss +0 -57
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_modal.scss +0 -142
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_nav.scss +0 -119
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_navbar.scss +0 -268
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_normalize.scss +0 -461
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_pagination.scss +0 -67
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_popover.scss +0 -171
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_print.scss +0 -119
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_progress.scss +0 -32
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_reboot.scss +0 -389
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_tables.scss +0 -153
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_tooltip.scss +0 -90
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_transitions.scss +0 -34
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_type.scss +0 -143
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_utilities.scss +0 -13
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_variables.scss +0 -961
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/bootstrap-grid.scss +0 -43
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/bootstrap-reboot.scss +0 -10
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/bootstrap.scss +0 -54
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_alert.scss +0 -14
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_background-variant.scss +0 -12
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_badge.scss +0 -11
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_border-radius.scss +0 -35
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_breakpoints.scss +0 -95
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_buttons.scss +0 -86
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_cards.scss +0 -47
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_clearfix.scss +0 -7
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_float.scss +0 -9
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_forms.scss +0 -79
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_gradients.scss +0 -37
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_grid-framework.scss +0 -65
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_grid.scss +0 -100
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_hover.scss +0 -60
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_image.scss +0 -36
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_list-group.scss +0 -28
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_lists.scss +0 -7
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_pagination.scss +0 -21
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_screen-reader.scss +0 -32
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_size.scss +0 -6
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_table-row.scss +0 -30
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_text-emphasis.scss +0 -12
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_text-hide.scss +0 -8
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_transforms.scss +0 -14
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_visibility.scss +0 -5
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_align.scss +0 -6
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_background.scss +0 -19
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_borders.scss +0 -37
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_clearfix.scss +0 -3
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_display.scss +0 -18
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_flex.scss +0 -48
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_float.scss +0 -9
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_position.scss +0 -23
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_screenreaders.scss +0 -11
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_sizing.scss +0 -10
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_spacing.scss +0 -43
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_text.scss +0 -61
- data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_visibility.scss +0 -55
- data/mod/bootstrap/lib/stylesheets/select2-boostrap-v4-alpha-6.scss +0 -828
@@ -0,0 +1,207 @@
|
|
1
|
+
<div class="bs-docs-section">
|
2
|
+
<h1 id="helper-classes" class="page-header">Helper classes</h1>
|
3
|
+
|
4
|
+
<h3 id="helper-classes-colors">Contextual colors</h3>
|
5
|
+
<p>Convey meaning through color with a handful of emphasis utility classes. These may also be applied to links and will darken on hover just like our default link styles.</p>
|
6
|
+
<div class="bs-example" data-example-id="contextual-colors-helpers">
|
7
|
+
<p class="text-muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
|
8
|
+
<p class="text-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
9
|
+
<p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
|
10
|
+
<p class="text-info">Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
|
11
|
+
<p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
|
12
|
+
<p class="text-danger">Donec ullamcorper nulla non metus auctor fringilla.</p>
|
13
|
+
</div>
|
14
|
+
{% highlight html %}
|
15
|
+
<p class="text-muted">...</p>
|
16
|
+
<p class="text-primary">...</p>
|
17
|
+
<p class="text-success">...</p>
|
18
|
+
<p class="text-info">...</p>
|
19
|
+
<p class="text-warning">...</p>
|
20
|
+
<p class="text-danger">...</p>
|
21
|
+
{% endhighlight %}
|
22
|
+
<div class="bs-callout bs-callout-info" id="callout-helper-context-color-specificity">
|
23
|
+
<h4>Dealing with specificity</h4>
|
24
|
+
<p>Sometimes emphasis classes cannot be applied due to the specificity of another selector. In most cases, a sufficient workaround is to wrap your text in a <code><span></code> with the class.</p>
|
25
|
+
</div>
|
26
|
+
<div class="bs-callout bs-callout-warning" id="callout-helper-context-color-accessibility">
|
27
|
+
<h4>Conveying meaning to assistive technologies</h4>
|
28
|
+
<p>Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (the contextual colors are only used to reinforce meaning that is already present in the text/markup), or is included through alternative means, such as additional text hidden with the <code>.sr-only</code> class.</p>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<h3 id="helper-classes-backgrounds">Contextual backgrounds</h3>
|
32
|
+
<p>Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes.</p>
|
33
|
+
<div class="bs-example bs-example-bg-classes" data-example-id="contextual-backgrounds-helpers">
|
34
|
+
<p class="bg-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
35
|
+
<p class="bg-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
|
36
|
+
<p class="bg-info">Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
|
37
|
+
<p class="bg-warning">Etiam porta sem malesuada magna mollis euismod.</p>
|
38
|
+
<p class="bg-danger">Donec ullamcorper nulla non metus auctor fringilla.</p>
|
39
|
+
</div>
|
40
|
+
{% highlight html %}
|
41
|
+
<p class="bg-primary">...</p>
|
42
|
+
<p class="bg-success">...</p>
|
43
|
+
<p class="bg-info">...</p>
|
44
|
+
<p class="bg-warning">...</p>
|
45
|
+
<p class="bg-danger">...</p>
|
46
|
+
{% endhighlight %}
|
47
|
+
<div class="bs-callout bs-callout-info" id="callout-helper-bg-specificity">
|
48
|
+
<h4>Dealing with specificity</h4>
|
49
|
+
<p>Sometimes contextual background classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element's content in a <code><div></code> with the class.</p>
|
50
|
+
</div>
|
51
|
+
<div class="bs-callout bs-callout-warning" id="callout-helper-bg-accessibility">
|
52
|
+
<h4>Conveying meaning to assistive technologies</h4>
|
53
|
+
<p>As with <a href="#helper-classes-colors">contextual colors</a>, ensure that any meaning conveyed through color is also conveyed in a format that is not purely presentational.</p>
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<h3 id="helper-classes-close">Close icon</h3>
|
57
|
+
<p>Use the generic close icon for dismissing content like modals and alerts.</p>
|
58
|
+
<div class="bs-example" data-example-id="close-icon">
|
59
|
+
<p><button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button></p>
|
60
|
+
</div>
|
61
|
+
{% highlight html %}
|
62
|
+
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>
|
63
|
+
{% endhighlight %}
|
64
|
+
|
65
|
+
|
66
|
+
<h3 id="helper-classes-carets">Carets</h3>
|
67
|
+
<p>Use carets to indicate dropdown functionality and direction. Note that the default caret will reverse automatically in <a href="../components/#btn-dropdowns-dropup">dropup menus</a>.</p>
|
68
|
+
<div class="bs-example" data-example-id="caret">
|
69
|
+
<span class="caret"></span>
|
70
|
+
</div>
|
71
|
+
{% highlight html %}
|
72
|
+
<span class="caret"></span>
|
73
|
+
{% endhighlight %}
|
74
|
+
|
75
|
+
|
76
|
+
<h3 id="helper-classes-floats">Quick floats</h3>
|
77
|
+
<p>Float an element to the left or right with a class. <code>!important</code> is included to avoid specificity issues. Classes can also be used as mixins.</p>
|
78
|
+
{% highlight html %}
|
79
|
+
<div class="pull-left">...</div>
|
80
|
+
<div class="pull-right">...</div>
|
81
|
+
{% endhighlight %}
|
82
|
+
{% highlight scss %}
|
83
|
+
// Classes
|
84
|
+
.pull-left {
|
85
|
+
float: left !important;
|
86
|
+
}
|
87
|
+
.pull-right {
|
88
|
+
float: right !important;
|
89
|
+
}
|
90
|
+
|
91
|
+
// Usage as mixins
|
92
|
+
.element {
|
93
|
+
.pull-left();
|
94
|
+
}
|
95
|
+
.another-element {
|
96
|
+
.pull-right();
|
97
|
+
}
|
98
|
+
{% endhighlight %}
|
99
|
+
|
100
|
+
<div class="bs-callout bs-callout-warning" id="callout-helper-pull-navbar">
|
101
|
+
<h4>Not for use in navbars</h4>
|
102
|
+
<p>To align components in navbars with utility classes, use <code>.navbar-left</code> or <code>.navbar-right</code> instead. <a href="../components/#navbar-component-alignment">See the navbar docs</a> for details.</p>
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<h3 id="helper-classes-center">Center content blocks</h3>
|
107
|
+
<p>Set an element to <code>display: block</code> and center via <code>margin</code>. Available as a mixin and class.</p>
|
108
|
+
{% highlight html %}
|
109
|
+
<div class="center-block">...</div>
|
110
|
+
{% endhighlight %}
|
111
|
+
{% highlight scss %}
|
112
|
+
// Class
|
113
|
+
.center-block {
|
114
|
+
display: block;
|
115
|
+
margin-left: auto;
|
116
|
+
margin-right: auto;
|
117
|
+
}
|
118
|
+
|
119
|
+
// Usage as a mixin
|
120
|
+
.element {
|
121
|
+
.center-block();
|
122
|
+
}
|
123
|
+
{% endhighlight %}
|
124
|
+
|
125
|
+
|
126
|
+
<h3 id="helper-classes-clearfix">Clearfix</h3>
|
127
|
+
<p>Easily clear <code>float</code>s by adding <code>.clearfix</code> <strong>to the parent element</strong>. Utilizes <a href="http://nicolasgallagher.com/micro-clearfix-hack/">the micro clearfix</a> as popularized by Nicolas Gallagher. Can also be used as a mixin.</p>
|
128
|
+
{% highlight html %}
|
129
|
+
<!-- Usage as a class -->
|
130
|
+
<div class="clearfix">...</div>
|
131
|
+
{% endhighlight %}
|
132
|
+
{% highlight scss %}
|
133
|
+
// Mixin itself
|
134
|
+
.clearfix() {
|
135
|
+
&:before,
|
136
|
+
&:after {
|
137
|
+
content: " ";
|
138
|
+
display: table;
|
139
|
+
}
|
140
|
+
&:after {
|
141
|
+
clear: both;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
// Usage as a mixin
|
146
|
+
.element {
|
147
|
+
.clearfix();
|
148
|
+
}
|
149
|
+
{% endhighlight %}
|
150
|
+
|
151
|
+
|
152
|
+
<h3 id="helper-classes-show-hide">Showing and hiding content</h3>
|
153
|
+
<p>Force an element to be shown or hidden (<strong>including for screen readers</strong>) with the use of <code>.show</code> and <code>.hidden</code> classes. These classes use <code>!important</code> to avoid specificity conflicts, just like the <a href="#helper-classes-floats">quick floats</a>. They are only available for block level toggling. They can also be used as mixins.</p>
|
154
|
+
<p><code>.hide</code> is available, but it does not always affect screen readers and is <strong>deprecated</strong> as of v3.0.1. Use <code>.hidden</code> or <code>.sr-only</code> instead.</p>
|
155
|
+
<p>Furthermore, <code>.invisible</code> can be used to toggle only the visibility of an element, meaning its <code>display</code> is not modified and the element can still affect the flow of the document.</p>
|
156
|
+
{% highlight html %}
|
157
|
+
<div class="show">...</div>
|
158
|
+
<div class="hidden">...</div>
|
159
|
+
{% endhighlight %}
|
160
|
+
{% highlight scss %}
|
161
|
+
// Classes
|
162
|
+
.show {
|
163
|
+
display: block !important;
|
164
|
+
}
|
165
|
+
.hidden {
|
166
|
+
display: none !important;
|
167
|
+
}
|
168
|
+
.invisible {
|
169
|
+
visibility: hidden;
|
170
|
+
}
|
171
|
+
|
172
|
+
// Usage as mixins
|
173
|
+
.element {
|
174
|
+
.show();
|
175
|
+
}
|
176
|
+
.another-element {
|
177
|
+
.hidden();
|
178
|
+
}
|
179
|
+
{% endhighlight %}
|
180
|
+
|
181
|
+
|
182
|
+
<h3 id="helper-classes-screen-readers">Screen reader and keyboard navigation content</h3>
|
183
|
+
<p>Hide an element to all devices <strong>except screen readers</strong> with <code>.sr-only</code>. Combine <code>.sr-only</code> with <code>.sr-only-focusable</code> to show the element again when it's focused (e.g. by a keyboard-only user). Necessary for following <a href="../getting-started/#accessibility">accessibility best practices</a>. Can also be used as mixins.</p>
|
184
|
+
{% highlight html %}
|
185
|
+
<a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
|
186
|
+
{% endhighlight %}
|
187
|
+
{% highlight scss %}
|
188
|
+
// Usage as a mixin
|
189
|
+
.skip-navigation {
|
190
|
+
.sr-only();
|
191
|
+
.sr-only-focusable();
|
192
|
+
}
|
193
|
+
{% endhighlight %}
|
194
|
+
|
195
|
+
|
196
|
+
<h3 id="helper-classes-image-replacement">Image replacement</h3>
|
197
|
+
<p>Utilize the <code>.text-hide</code> class or mixin to help replace an element's text content with a background image.</p>
|
198
|
+
{% highlight html %}
|
199
|
+
<h1 class="text-hide">Custom heading</h1>
|
200
|
+
{% endhighlight %}
|
201
|
+
{% highlight scss %}
|
202
|
+
// Usage as a mixin
|
203
|
+
.heading {
|
204
|
+
.text-hide();
|
205
|
+
}
|
206
|
+
{% endhighlight %}
|
207
|
+
</div>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<div class="bs-docs-section">
|
2
|
+
<h1 id="images" class="page-header">Images</h1>
|
3
|
+
|
4
|
+
<h2 id="images-responsive">Responsive images</h2>
|
5
|
+
<p>Images in Bootstrap 3 can be made responsive-friendly via the addition of the <code>.img-responsive</code> class. This applies <code>max-width: 100%;</code>, <code>height: auto;</code> and <code>display: block;</code> to the image so that it scales nicely to the parent element.</p>
|
6
|
+
<p>To center images which use the <code>.img-responsive</code> class, use <code>.center-block</code> instead of <code>.text-center</code>. <a href="../css/#helper-classes-center">See the helper classes section</a> for more details about <code>.center-block</code> usage.</p>
|
7
|
+
<div class="bs-callout bs-callout-warning" id="callout-images-ie-svg">
|
8
|
+
<h4>SVG images and IE 8-10</h4>
|
9
|
+
<p>In Internet Explorer 8-10, SVG images with <code>.img-responsive</code> are disproportionately sized. To fix this, add <code>width: 100% \9;</code> where necessary. Bootstrap doesn't apply this automatically as it causes complications to other image formats.</p>
|
10
|
+
</div>
|
11
|
+
{% highlight html %}
|
12
|
+
<img src="..." class="img-responsive" alt="Responsive image">
|
13
|
+
{% endhighlight %}
|
14
|
+
|
15
|
+
<h2 id="images-shapes">Image shapes</h2>
|
16
|
+
<p>Add classes to an <code><img></code> element to easily style images in any project.</p>
|
17
|
+
<div class="bs-callout bs-callout-danger" id="callout-images-ie-rounded-corners">
|
18
|
+
<h4>Cross-browser compatibility</h4>
|
19
|
+
<p>Keep in mind that Internet Explorer 8 lacks support for rounded corners.</p>
|
20
|
+
</div>
|
21
|
+
<div class="bs-example bs-example-images" data-example-id="image-shapes">
|
22
|
+
<img data-src="holder.js/140x140" class="img-rounded" alt="A generic square placeholder image with rounded corners">
|
23
|
+
<img data-src="holder.js/140x140" class="img-circle" alt="A generic square placeholder image where only the portion within the circle circumscribed about said square is visible">
|
24
|
+
<img data-src="holder.js/140x140" class="img-thumbnail" alt="A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera">
|
25
|
+
</div>
|
26
|
+
{% highlight html %}
|
27
|
+
<img src="..." alt="..." class="img-rounded">
|
28
|
+
<img src="..." alt="..." class="img-circle">
|
29
|
+
<img src="..." alt="..." class="img-thumbnail">
|
30
|
+
{% endhighlight %}
|
31
|
+
</div>
|
@@ -0,0 +1,499 @@
|
|
1
|
+
<div class="bs-docs-section">
|
2
|
+
<h1 id="less" class="page-header">Using Less</h1>
|
3
|
+
|
4
|
+
<p class="lead">Bootstrap's CSS is built on Less, a preprocessor with additional functionality like variables, mixins, and functions for compiling CSS. Those looking to use the source Less files instead of our compiled CSS files can make use of the numerous variables and mixins we use throughout the framework.</p>
|
5
|
+
|
6
|
+
<p>Grid variables and mixins are covered <a href="#grid-less">within the Grid system section</a>.</p>
|
7
|
+
|
8
|
+
|
9
|
+
<h2 id="less-bootstrap">Compiling Bootstrap</h2>
|
10
|
+
<p>Bootstrap can be used in at least two ways: with the compiled CSS or with the source Less files. To compile the Less files, <a href="../getting-started/#grunt">consult the Getting Started section</a> for how to setup your development environment to run the necessary commands.</p>
|
11
|
+
<p>Third party compilation tools may work with Bootstrap, but they are not supported by our core team.</p>
|
12
|
+
|
13
|
+
<h2 id="less-variables">Variables</h2>
|
14
|
+
<p>Variables are used throughout the entire project as a way to centralize and share commonly used values like colors, spacing, or font stacks. For a complete breakdown, please see <a href="../customize/#less-variables-section">the Customizer</a>.</p>
|
15
|
+
|
16
|
+
<h3 id="less-variables-colors">Colors</h3>
|
17
|
+
<p>Easily make use of two color schemes: grayscale and semantic. Grayscale colors provide quick access to commonly used shades of black while semantic include various colors assigned to meaningful contextual values.</p>
|
18
|
+
<div class="bs-example">
|
19
|
+
<div class="color-swatches">
|
20
|
+
<div class="color-swatch gray-darker"></div>
|
21
|
+
<div class="color-swatch gray-dark"></div>
|
22
|
+
<div class="color-swatch gray"></div>
|
23
|
+
<div class="color-swatch gray-light"></div>
|
24
|
+
<div class="color-swatch gray-lighter"></div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
{% highlight scss %}
|
28
|
+
@gray-darker: lighten(#000, 13.5%); // #222
|
29
|
+
@gray-dark: lighten(#000, 20%); // #333
|
30
|
+
@gray: lighten(#000, 33.5%); // #555
|
31
|
+
@gray-light: lighten(#000, 46.7%); // #777
|
32
|
+
@gray-lighter: lighten(#000, 93.5%); // #eee
|
33
|
+
{% endhighlight %}
|
34
|
+
|
35
|
+
<div class="bs-example">
|
36
|
+
<div class="color-swatches">
|
37
|
+
<div class="color-swatch brand-primary"></div>
|
38
|
+
<div class="color-swatch brand-success"></div>
|
39
|
+
<div class="color-swatch brand-info"></div>
|
40
|
+
<div class="color-swatch brand-warning"></div>
|
41
|
+
<div class="color-swatch brand-danger"></div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
{% highlight scss %}
|
45
|
+
@brand-primary: darken(#428bca, 6.5%); // #337ab7
|
46
|
+
@brand-success: #5cb85c;
|
47
|
+
@brand-info: #5bc0de;
|
48
|
+
@brand-warning: #f0ad4e;
|
49
|
+
@brand-danger: #d9534f;
|
50
|
+
{% endhighlight %}
|
51
|
+
|
52
|
+
<p>Use any of these color variables as they are or reassign them to more meaningful variables for your project.</p>
|
53
|
+
{% highlight scss %}
|
54
|
+
// Use as-is
|
55
|
+
.masthead {
|
56
|
+
background-color: @brand-primary;
|
57
|
+
}
|
58
|
+
|
59
|
+
// Reassigned variables in Less
|
60
|
+
@alert-message-background: @brand-info;
|
61
|
+
.alert {
|
62
|
+
background-color: @alert-message-background;
|
63
|
+
}
|
64
|
+
{% endhighlight %}
|
65
|
+
|
66
|
+
<h3 id="less-variables-scaffolding">Scaffolding</h3>
|
67
|
+
<p>A handful of variables for quickly customizing key elements of your site's skeleton.</p>
|
68
|
+
{% highlight scss %}
|
69
|
+
// Scaffolding
|
70
|
+
@body-bg: #fff;
|
71
|
+
@text-color: @black-50;
|
72
|
+
{% endhighlight %}
|
73
|
+
|
74
|
+
<h3 id="less-variables-links">Links</h3>
|
75
|
+
<p>Easily style your links with the right color with only one value.</p>
|
76
|
+
{% highlight scss %}
|
77
|
+
// Variables
|
78
|
+
@link-color: @brand-primary;
|
79
|
+
@link-hover-color: darken(@link-color, 15%);
|
80
|
+
|
81
|
+
// Usage
|
82
|
+
a {
|
83
|
+
color: @link-color;
|
84
|
+
text-decoration: none;
|
85
|
+
|
86
|
+
&:hover {
|
87
|
+
color: @link-hover-color;
|
88
|
+
text-decoration: underline;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
{% endhighlight %}
|
92
|
+
<p>Note that the <code>@link-hover-color</code> uses a function, another awesome tool from Less, to automagically create the right hover color. You can use <code>darken</code>, <code>lighten</code>, <code>saturate</code>, and <code>desaturate</code>.</p>
|
93
|
+
|
94
|
+
<h3 id="less-variables-typography">Typography</h3>
|
95
|
+
<p>Easily set your typeface, text size, leading, and more with a few quick variables. Bootstrap makes use of these as well to provide easy typographic mixins.</p>
|
96
|
+
{% highlight scss %}
|
97
|
+
@font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
98
|
+
@font-family-serif: Georgia, "Times New Roman", Times, serif;
|
99
|
+
@font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
|
100
|
+
@font-family-base: @font-family-sans-serif;
|
101
|
+
|
102
|
+
@font-size-base: 14px;
|
103
|
+
@font-size-large: ceil((@font-size-base * 1.25)); // ~18px
|
104
|
+
@font-size-small: ceil((@font-size-base * 0.85)); // ~12px
|
105
|
+
|
106
|
+
@font-size-h1: floor((@font-size-base * 2.6)); // ~36px
|
107
|
+
@font-size-h2: floor((@font-size-base * 2.15)); // ~30px
|
108
|
+
@font-size-h3: ceil((@font-size-base * 1.7)); // ~24px
|
109
|
+
@font-size-h4: ceil((@font-size-base * 1.25)); // ~18px
|
110
|
+
@font-size-h5: @font-size-base;
|
111
|
+
@font-size-h6: ceil((@font-size-base * 0.85)); // ~12px
|
112
|
+
|
113
|
+
@line-height-base: 1.428571429; // 20/14
|
114
|
+
@line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
|
115
|
+
|
116
|
+
@headings-font-family: inherit;
|
117
|
+
@headings-font-weight: 500;
|
118
|
+
@headings-line-height: 1.1;
|
119
|
+
@headings-color: inherit;
|
120
|
+
{% endhighlight %}
|
121
|
+
|
122
|
+
<h3 id="less-variables-icons">Icons</h3>
|
123
|
+
<p>Two quick variables for customizing the location and filename of your icons.</p>
|
124
|
+
{% highlight scss %}
|
125
|
+
@icon-font-path: "../fonts/";
|
126
|
+
@icon-font-name: "glyphicons-halflings-regular";
|
127
|
+
{% endhighlight %}
|
128
|
+
|
129
|
+
<h3 id="less-variables-components">Components</h3>
|
130
|
+
<p>Components throughout Bootstrap make use of some default variables for setting common values. Here are the most commonly used.</p>
|
131
|
+
{% highlight scss %}
|
132
|
+
@padding-base-vertical: 6px;
|
133
|
+
@padding-base-horizontal: 12px;
|
134
|
+
|
135
|
+
@padding-large-vertical: 10px;
|
136
|
+
@padding-large-horizontal: 16px;
|
137
|
+
|
138
|
+
@padding-small-vertical: 5px;
|
139
|
+
@padding-small-horizontal: 10px;
|
140
|
+
|
141
|
+
@padding-xs-vertical: 1px;
|
142
|
+
@padding-xs-horizontal: 5px;
|
143
|
+
|
144
|
+
@line-height-large: 1.33;
|
145
|
+
@line-height-small: 1.5;
|
146
|
+
|
147
|
+
@border-radius-base: 4px;
|
148
|
+
@border-radius-large: 6px;
|
149
|
+
@border-radius-small: 3px;
|
150
|
+
|
151
|
+
@component-active-color: #fff;
|
152
|
+
@component-active-bg: @brand-primary;
|
153
|
+
|
154
|
+
@caret-width-base: 4px;
|
155
|
+
@caret-width-large: 5px;
|
156
|
+
{% endhighlight %}
|
157
|
+
|
158
|
+
|
159
|
+
<h2 id="less-mixins-vendor">Vendor mixins</h2>
|
160
|
+
<p>Vendor mixins are mixins to help support multiple browsers by including all relevant vendor prefixes in your compiled CSS.</p>
|
161
|
+
|
162
|
+
|
163
|
+
<h3 id="less-mixins-box-sizing">Box-sizing</h3>
|
164
|
+
<p>Reset your components' box model with a single mixin. For context, see this <a href="https://developer.mozilla.org/en-US/docs/CSS/box-sizing" target="_blank">helpful article from Mozilla</a>.</p>
|
165
|
+
<p>The mixin is <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixin internally until Bootstrap v4.</p>
|
166
|
+
{% highlight scss %}
|
167
|
+
.box-sizing(@box-model) {
|
168
|
+
-webkit-box-sizing: @box-model; // Safari <= 5
|
169
|
+
-moz-box-sizing: @box-model; // Firefox <= 19
|
170
|
+
box-sizing: @box-model;
|
171
|
+
}
|
172
|
+
{% endhighlight %}
|
173
|
+
|
174
|
+
<h3 id="less-mixins-rounded-corners">Rounded corners</h3>
|
175
|
+
<p>Today all modern browsers support the non-prefixed <code>border-radius</code> property. As such, there is no <code>.border-radius()</code> mixin, but Bootstrap does include shortcuts for quickly rounding two corners on a particular side of an object.</p>
|
176
|
+
{% highlight scss %}
|
177
|
+
.border-top-radius(@radius) {
|
178
|
+
border-top-right-radius: @radius;
|
179
|
+
border-top-left-radius: @radius;
|
180
|
+
}
|
181
|
+
.border-right-radius(@radius) {
|
182
|
+
border-bottom-right-radius: @radius;
|
183
|
+
border-top-right-radius: @radius;
|
184
|
+
}
|
185
|
+
.border-bottom-radius(@radius) {
|
186
|
+
border-bottom-right-radius: @radius;
|
187
|
+
border-bottom-left-radius: @radius;
|
188
|
+
}
|
189
|
+
.border-left-radius(@radius) {
|
190
|
+
border-bottom-left-radius: @radius;
|
191
|
+
border-top-left-radius: @radius;
|
192
|
+
}
|
193
|
+
{% endhighlight %}
|
194
|
+
|
195
|
+
<h3 id="less-mixins-box-shadow">Box (Drop) shadows</h3>
|
196
|
+
<p>If your target audience is using the latest and greatest browsers and devices, be sure to just use the <code>box-shadow</code> property on its own. If you need support for older Android (pre-v4) and iOS devices (pre-iOS 5), use the <strong>deprecated</strong> mixin to pick up the required <code>-webkit</code> prefix.</p>
|
197
|
+
<p>The mixin is <strong>deprecated</strong> as of v3.1.0, since Bootstrap doesn't officially support the outdated platforms that don't support the standard property. To preserve backwards-compatibility, Bootstrap will continue to use the mixin internally until Bootstrap v4.</p>
|
198
|
+
<p>Be sure to use <code>rgba()</code> colors in your box shadows so they blend as seamlessly as possible with backgrounds.</p>
|
199
|
+
{% highlight scss %}
|
200
|
+
.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) {
|
201
|
+
-webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
|
202
|
+
box-shadow: @shadow;
|
203
|
+
}
|
204
|
+
{% endhighlight %}
|
205
|
+
|
206
|
+
<h3 id="less-mixins-transitions">Transitions</h3>
|
207
|
+
<p>Multiple mixins for flexibility. Set all transition information with one, or specify a separate delay and duration as needed.</p>
|
208
|
+
<p>The mixins are <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixins internally until Bootstrap v4.</p>
|
209
|
+
{% highlight scss %}
|
210
|
+
.transition(@transition) {
|
211
|
+
-webkit-transition: @transition;
|
212
|
+
transition: @transition;
|
213
|
+
}
|
214
|
+
.transition-property(@transition-property) {
|
215
|
+
-webkit-transition-property: @transition-property;
|
216
|
+
transition-property: @transition-property;
|
217
|
+
}
|
218
|
+
.transition-delay(@transition-delay) {
|
219
|
+
-webkit-transition-delay: @transition-delay;
|
220
|
+
transition-delay: @transition-delay;
|
221
|
+
}
|
222
|
+
.transition-duration(@transition-duration) {
|
223
|
+
-webkit-transition-duration: @transition-duration;
|
224
|
+
transition-duration: @transition-duration;
|
225
|
+
}
|
226
|
+
.transition-timing-function(@timing-function) {
|
227
|
+
-webkit-transition-timing-function: @timing-function;
|
228
|
+
transition-timing-function: @timing-function;
|
229
|
+
}
|
230
|
+
.transition-transform(@transition) {
|
231
|
+
-webkit-transition: -webkit-transform @transition;
|
232
|
+
-moz-transition: -moz-transform @transition;
|
233
|
+
-o-transition: -o-transform @transition;
|
234
|
+
transition: transform @transition;
|
235
|
+
}
|
236
|
+
{% endhighlight %}
|
237
|
+
|
238
|
+
<h3 id="less-mixins-transformations">Transformations</h3>
|
239
|
+
<p>Rotate, scale, translate (move), or skew any object.</p>
|
240
|
+
<p>The mixins are <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixins internally until Bootstrap v4.</p>
|
241
|
+
{% highlight scss %}
|
242
|
+
.rotate(@degrees) {
|
243
|
+
-webkit-transform: rotate(@degrees);
|
244
|
+
-ms-transform: rotate(@degrees); // IE9 only
|
245
|
+
transform: rotate(@degrees);
|
246
|
+
}
|
247
|
+
.scale(@ratio; @ratio-y...) {
|
248
|
+
-webkit-transform: scale(@ratio, @ratio-y);
|
249
|
+
-ms-transform: scale(@ratio, @ratio-y); // IE9 only
|
250
|
+
transform: scale(@ratio, @ratio-y);
|
251
|
+
}
|
252
|
+
.translate(@x; @y) {
|
253
|
+
-webkit-transform: translate(@x, @y);
|
254
|
+
-ms-transform: translate(@x, @y); // IE9 only
|
255
|
+
transform: translate(@x, @y);
|
256
|
+
}
|
257
|
+
.skew(@x; @y) {
|
258
|
+
-webkit-transform: skew(@x, @y);
|
259
|
+
-ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
|
260
|
+
transform: skew(@x, @y);
|
261
|
+
}
|
262
|
+
.translate3d(@x; @y; @z) {
|
263
|
+
-webkit-transform: translate3d(@x, @y, @z);
|
264
|
+
transform: translate3d(@x, @y, @z);
|
265
|
+
}
|
266
|
+
|
267
|
+
.rotateX(@degrees) {
|
268
|
+
-webkit-transform: rotateX(@degrees);
|
269
|
+
-ms-transform: rotateX(@degrees); // IE9 only
|
270
|
+
transform: rotateX(@degrees);
|
271
|
+
}
|
272
|
+
.rotateY(@degrees) {
|
273
|
+
-webkit-transform: rotateY(@degrees);
|
274
|
+
-ms-transform: rotateY(@degrees); // IE9 only
|
275
|
+
transform: rotateY(@degrees);
|
276
|
+
}
|
277
|
+
.perspective(@perspective) {
|
278
|
+
-webkit-perspective: @perspective;
|
279
|
+
-moz-perspective: @perspective;
|
280
|
+
perspective: @perspective;
|
281
|
+
}
|
282
|
+
.perspective-origin(@perspective) {
|
283
|
+
-webkit-perspective-origin: @perspective;
|
284
|
+
-moz-perspective-origin: @perspective;
|
285
|
+
perspective-origin: @perspective;
|
286
|
+
}
|
287
|
+
.transform-origin(@origin) {
|
288
|
+
-webkit-transform-origin: @origin;
|
289
|
+
-moz-transform-origin: @origin;
|
290
|
+
-ms-transform-origin: @origin; // IE9 only
|
291
|
+
transform-origin: @origin;
|
292
|
+
}
|
293
|
+
{% endhighlight %}
|
294
|
+
|
295
|
+
<h3 id="less-mixins-animations">Animations</h3>
|
296
|
+
<p>A single mixin for using all of CSS3's animation properties in one declaration and other mixins for individual properties.</p>
|
297
|
+
<p>The mixins are <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixins internally until Bootstrap v4.</p>
|
298
|
+
{% highlight scss %}
|
299
|
+
.animation(@animation) {
|
300
|
+
-webkit-animation: @animation;
|
301
|
+
animation: @animation;
|
302
|
+
}
|
303
|
+
.animation-name(@name) {
|
304
|
+
-webkit-animation-name: @name;
|
305
|
+
animation-name: @name;
|
306
|
+
}
|
307
|
+
.animation-duration(@duration) {
|
308
|
+
-webkit-animation-duration: @duration;
|
309
|
+
animation-duration: @duration;
|
310
|
+
}
|
311
|
+
.animation-timing-function(@timing-function) {
|
312
|
+
-webkit-animation-timing-function: @timing-function;
|
313
|
+
animation-timing-function: @timing-function;
|
314
|
+
}
|
315
|
+
.animation-delay(@delay) {
|
316
|
+
-webkit-animation-delay: @delay;
|
317
|
+
animation-delay: @delay;
|
318
|
+
}
|
319
|
+
.animation-iteration-count(@iteration-count) {
|
320
|
+
-webkit-animation-iteration-count: @iteration-count;
|
321
|
+
animation-iteration-count: @iteration-count;
|
322
|
+
}
|
323
|
+
.animation-direction(@direction) {
|
324
|
+
-webkit-animation-direction: @direction;
|
325
|
+
animation-direction: @direction;
|
326
|
+
}
|
327
|
+
{% endhighlight %}
|
328
|
+
|
329
|
+
<h3 id="less-mixins-opacity">Opacity</h3>
|
330
|
+
<p>Set the opacity for all browsers and provide a <code>filter</code> fallback for IE8.</p>
|
331
|
+
{% highlight scss %}
|
332
|
+
.opacity(@opacity) {
|
333
|
+
opacity: @opacity;
|
334
|
+
// IE8 filter
|
335
|
+
@opacity-ie: (@opacity * 100);
|
336
|
+
filter: ~"alpha(opacity=@{opacity-ie})";
|
337
|
+
}
|
338
|
+
{% endhighlight %}
|
339
|
+
|
340
|
+
<h3 id="less-mixins-placeholder">Placeholder text</h3>
|
341
|
+
<p>Provide context for form controls within each field.</p>
|
342
|
+
{% highlight scss %}
|
343
|
+
.placeholder(@color: @input-color-placeholder) {
|
344
|
+
&::-moz-placeholder { color: @color; } // Firefox
|
345
|
+
&:-ms-input-placeholder { color: @color; } // Internet Explorer 10+
|
346
|
+
&::-webkit-input-placeholder { color: @color; } // Safari and Chrome
|
347
|
+
}
|
348
|
+
{% endhighlight %}
|
349
|
+
|
350
|
+
<h3 id="less-mixins-columns">Columns</h3>
|
351
|
+
<p>Generate columns via CSS within a single element.</p>
|
352
|
+
{% highlight scss %}
|
353
|
+
.content-columns(@width; @count; @gap) {
|
354
|
+
-webkit-column-width: @width;
|
355
|
+
-moz-column-width: @width;
|
356
|
+
column-width: @width;
|
357
|
+
-webkit-column-count: @count;
|
358
|
+
-moz-column-count: @count;
|
359
|
+
column-count: @count;
|
360
|
+
-webkit-column-gap: @gap;
|
361
|
+
-moz-column-gap: @gap;
|
362
|
+
column-gap: @gap;
|
363
|
+
}
|
364
|
+
{% endhighlight %}
|
365
|
+
|
366
|
+
<h3 id="less-mixins-gradients">Gradients</h3>
|
367
|
+
<p>Easily turn any two colors into a background gradient. Get more advanced and set a direction, use three colors, or use a radial gradient. With a single mixin you get all the prefixed syntaxes you'll need.</p>
|
368
|
+
{% highlight scss %}
|
369
|
+
#gradient > .vertical(#333; #000);
|
370
|
+
#gradient > .horizontal(#333; #000);
|
371
|
+
#gradient > .radial(#333; #000);
|
372
|
+
{% endhighlight %}
|
373
|
+
<p>You can also specify the angle of a standard two-color, linear gradient:</p>
|
374
|
+
{% highlight scss %}
|
375
|
+
#gradient > .directional(#333; #000; 45deg);
|
376
|
+
{% endhighlight %}
|
377
|
+
<p>If you need a barber-stripe style gradient, that's easy, too. Just specify a single color and we'll overlay a translucent white stripe.</p>
|
378
|
+
{% highlight scss %}
|
379
|
+
#gradient > .striped(#333; 45deg);
|
380
|
+
{% endhighlight %}
|
381
|
+
<p>Up the ante and use three colors instead. Set the first color, the second color, the second color's color stop (a percentage value like 25%), and the third color with these mixins:</p>
|
382
|
+
{% highlight scss %}
|
383
|
+
#gradient > .vertical-three-colors(#777; #333; 25%; #000);
|
384
|
+
#gradient > .horizontal-three-colors(#777; #333; 25%; #000);
|
385
|
+
{% endhighlight %}
|
386
|
+
<p><strong>Heads up!</strong> Should you ever need to remove a gradient, be sure to remove any IE-specific <code>filter</code> you may have added. You can do that by using the <code>.reset-filter()</code> mixin alongside <code>background-image: none;</code>.</p>
|
387
|
+
|
388
|
+
|
389
|
+
<h2 id="less-mixins-utility">Utility mixins</h2>
|
390
|
+
<p>Utility mixins are mixins that combine otherwise unrelated CSS properties to achieve a specific goal or task.</p>
|
391
|
+
|
392
|
+
<h3 id="less-mixins-clearfix">Clearfix</h3>
|
393
|
+
<p>Forget adding <code>class="clearfix"</code> to any element and instead add the <code>.clearfix()</code> mixin where appropriate. Uses the <a href="http://nicolasgallagher.com/micro-clearfix-hack/" target="_blank">micro clearfix</a> from <a href="https://twitter.com/necolas" target="_blank">Nicolas Gallagher</a>.</p>
|
394
|
+
{% highlight scss %}
|
395
|
+
// Mixin
|
396
|
+
.clearfix() {
|
397
|
+
&:before,
|
398
|
+
&:after {
|
399
|
+
content: " ";
|
400
|
+
display: table;
|
401
|
+
}
|
402
|
+
&:after {
|
403
|
+
clear: both;
|
404
|
+
}
|
405
|
+
}
|
406
|
+
|
407
|
+
// Usage
|
408
|
+
.container {
|
409
|
+
.clearfix();
|
410
|
+
}
|
411
|
+
{% endhighlight %}
|
412
|
+
|
413
|
+
<h3 id="less-mixins-centering">Horizontal centering</h3>
|
414
|
+
<p>Quickly center any element within its parent. <strong>Requires <code>width</code> or <code>max-width</code> to be set.</strong></p>
|
415
|
+
{% highlight scss %}
|
416
|
+
// Mixin
|
417
|
+
.center-block() {
|
418
|
+
display: block;
|
419
|
+
margin-left: auto;
|
420
|
+
margin-right: auto;
|
421
|
+
}
|
422
|
+
|
423
|
+
// Usage
|
424
|
+
.container {
|
425
|
+
width: 940px;
|
426
|
+
.center-block();
|
427
|
+
}
|
428
|
+
{% endhighlight %}
|
429
|
+
|
430
|
+
<h3 id="less-mixins-sizing">Sizing helpers</h3>
|
431
|
+
<p>Specify the dimensions of an object more easily.</p>
|
432
|
+
{% highlight scss %}
|
433
|
+
// Mixins
|
434
|
+
.size(@width; @height) {
|
435
|
+
width: @width;
|
436
|
+
height: @height;
|
437
|
+
}
|
438
|
+
.square(@size) {
|
439
|
+
.size(@size; @size);
|
440
|
+
}
|
441
|
+
|
442
|
+
// Usage
|
443
|
+
.image { .size(400px; 300px); }
|
444
|
+
.avatar { .square(48px); }
|
445
|
+
{% endhighlight %}
|
446
|
+
|
447
|
+
<h3 id="less-mixins-resizable">Resizable textareas</h3>
|
448
|
+
<p>Easily configure the resize options for any textarea, or any other element. Defaults to normal browser behavior (<code>both</code>).</p>
|
449
|
+
{% highlight scss %}
|
450
|
+
.resizable(@direction: both) {
|
451
|
+
// Options: horizontal, vertical, both
|
452
|
+
resize: @direction;
|
453
|
+
// Safari fix
|
454
|
+
overflow: auto;
|
455
|
+
}
|
456
|
+
{% endhighlight %}
|
457
|
+
|
458
|
+
<h3 id="less-mixins-truncating">Truncating text</h3>
|
459
|
+
<p>Easily truncate text with an ellipsis with a single mixin. <strong>Requires element to be <code>block</code> or <code>inline-block</code> level.</strong></p>
|
460
|
+
{% highlight scss %}
|
461
|
+
// Mixin
|
462
|
+
.text-overflow() {
|
463
|
+
overflow: hidden;
|
464
|
+
text-overflow: ellipsis;
|
465
|
+
white-space: nowrap;
|
466
|
+
}
|
467
|
+
|
468
|
+
// Usage
|
469
|
+
.branch-name {
|
470
|
+
display: inline-block;
|
471
|
+
max-width: 200px;
|
472
|
+
.text-overflow();
|
473
|
+
}
|
474
|
+
{% endhighlight %}
|
475
|
+
|
476
|
+
<h3 id="less-mixins-retina-images">Retina images</h3>
|
477
|
+
<p>Specify two image paths and the @1x image dimensions, and Bootstrap will provide an @2x media query. <strong>If you have many images to serve, consider writing your retina image CSS manually in a single media query.</strong></p>
|
478
|
+
{% highlight scss %}
|
479
|
+
.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
|
480
|
+
background-image: url("@{file-1x}");
|
481
|
+
|
482
|
+
@media
|
483
|
+
only screen and (-webkit-min-device-pixel-ratio: 2),
|
484
|
+
only screen and ( min--moz-device-pixel-ratio: 2),
|
485
|
+
only screen and ( -o-min-device-pixel-ratio: 2/1),
|
486
|
+
only screen and ( min-device-pixel-ratio: 2),
|
487
|
+
only screen and ( min-resolution: 192dpi),
|
488
|
+
only screen and ( min-resolution: 2dppx) {
|
489
|
+
background-image: url("@{file-2x}");
|
490
|
+
background-size: @width-1x @height-1x;
|
491
|
+
}
|
492
|
+
}
|
493
|
+
|
494
|
+
// Usage
|
495
|
+
.jumbotron {
|
496
|
+
.img-retina("/img/bg-1x.png", "/img/bg-2x.png", 100px, 100px);
|
497
|
+
}
|
498
|
+
{% endhighlight %}
|
499
|
+
</div>
|