stylish 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +7 -10
- data/ARCHITECTURE.md +96 -0
- data/Gemfile +8 -0
- data/README.md +25 -29
- data/Rakefile +24 -0
- data/bin/stylish +33 -0
- data/lib/stylish.rb +36 -1
- data/lib/stylish/configuration.rb +37 -0
- data/lib/stylish/core_ext.rb +20 -0
- data/lib/stylish/developer.rb +13 -0
- data/lib/stylish/developer/config.rb +19 -0
- data/lib/stylish/developer/environment.rb +75 -0
- data/lib/stylish/developer/listing.rb +85 -0
- data/lib/stylish/developer/model_delegator.rb +51 -0
- data/lib/stylish/developer/modification.rb +139 -0
- data/lib/stylish/developer/path.rb +168 -0
- data/lib/stylish/developer/route.rb +97 -0
- data/lib/stylish/developer/server.rb +40 -0
- data/lib/stylish/engine.rb +12 -0
- data/lib/stylish/fs.rb +59 -0
- data/lib/stylish/manifest.rb +100 -0
- data/lib/stylish/models.rb +119 -0
- data/lib/stylish/models/component.rb +19 -0
- data/lib/stylish/models/layout.rb +19 -0
- data/lib/stylish/models/library.rb +134 -0
- data/lib/stylish/models/package.rb +156 -0
- data/lib/stylish/models/script.rb +10 -0
- data/lib/stylish/models/stylesheet.rb +9 -0
- data/lib/stylish/models/template.rb +9 -0
- data/lib/stylish/models/theme.rb +8 -0
- data/lib/stylish/util.rb +20 -0
- data/lib/stylish/version.rb +1 -1
- data/library/config.json +4 -0
- data/library/second-theme/manifest.json +8 -0
- data/library/second-theme/manifest.yml +6 -0
- data/library/second-theme/templates/footers/footer-01.html +3 -0
- data/library/second-theme/templates/footers/footer-02.html +3 -0
- data/library/second-theme/templates/headers/header-01.html +3 -0
- data/library/second-theme/templates/headers/header-02.html +3 -0
- data/library/second-theme/templates/landing-page-blocks/landing-page-block-01.html +3 -0
- data/library/second-theme/templates/landing-page-blocks/landing-page-block-02.html +3 -0
- data/library/test-theme/components/footers/footer-01.json +5 -0
- data/library/test-theme/components/footers/footer-02.json +5 -0
- data/library/test-theme/components/headers/header-01.json +5 -0
- data/library/test-theme/components/headers/header-02.json +5 -0
- data/library/test-theme/components/landing-page-blocks/landing-page-01.json +5 -0
- data/library/test-theme/components/landing-page-blocks/landing-page-02.json +5 -0
- data/library/test-theme/manifest.json +8 -0
- data/library/test-theme/manifest.yml +6 -0
- data/library/test-theme/pages/page-01.json +11 -0
- data/library/test-theme/templates/footers/footer-01.html +3 -0
- data/library/test-theme/templates/footers/footer-02.html +3 -0
- data/library/test-theme/templates/headers/header-01.html +3 -0
- data/library/test-theme/templates/headers/header-02.html +3 -0
- data/library/test-theme/templates/landing-page-blocks/landing-page-block-01.html +3 -0
- data/library/test-theme/templates/landing-page-blocks/landing-page-block-02.html +3 -0
- data/library/test-theme/templates/layouts/standard-layout.html +10 -0
- data/spec/acceptance/listing_assets_spec.rb +20 -0
- data/spec/acceptance/model_browsing_spec.rb +21 -0
- data/spec/acceptance/model_creation_spec.rb +16 -0
- data/spec/acceptance/model_deleting_spec.rb +10 -0
- data/spec/acceptance/model_updating_spec.rb +12 -0
- data/spec/acceptance/modifying_assets_spec.rb +50 -0
- data/spec/acceptance/server_info_spec.rb +10 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/test.coffee +4 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/assets/stylesheets/test.css.scss +6 -0
- data/spec/dummy/app/assets/stylesheets/writable/existing.scss.css +0 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +30 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +82 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20140822065900_create_books.rb +11 -0
- data/spec/dummy/db/migrate/20140822065916_create_authors.rb +9 -0
- data/spec/dummy/db/migrate/20140824215902_create_users.rb +10 -0
- data/spec/dummy/db/migrate/20140826193259_create_libraries.rb +10 -0
- data/spec/dummy/db/schema.rb +37 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/fixtures/config.json +3 -0
- data/spec/fixtures/test-theme/components/footers/footer-01.json +5 -0
- data/spec/fixtures/test-theme/components/footers/footer-02.json +5 -0
- data/spec/fixtures/test-theme/components/headers/header-01.json +5 -0
- data/spec/fixtures/test-theme/components/headers/header-02.json +5 -0
- data/spec/fixtures/test-theme/components/landing-page-blocks/landing-page-01.json +5 -0
- data/spec/fixtures/test-theme/components/landing-page-blocks/landing-page-02.json +5 -0
- data/spec/fixtures/test-theme/manifest.json +8 -0
- data/spec/fixtures/test-theme/manifest.yml +6 -0
- data/spec/fixtures/test-theme/pages/page-01.json +11 -0
- data/spec/fixtures/test-theme/templates/footers/footer-01.html +3 -0
- data/spec/fixtures/test-theme/templates/footers/footer-02.html +3 -0
- data/spec/fixtures/test-theme/templates/headers/header-01.html +3 -0
- data/spec/fixtures/test-theme/templates/headers/header-02.html +3 -0
- data/spec/fixtures/test-theme/templates/landing-page-blocks/landing-page-block-01.html +3 -0
- data/spec/fixtures/test-theme/templates/landing-page-blocks/landing-page-block-02.html +3 -0
- data/spec/fixtures/test-theme/templates/layouts/standard-01.html +9 -0
- data/spec/lib/stylish/configuration_spec.rb +8 -0
- data/spec/lib/stylish/developer/path_spec.rb +36 -0
- data/spec/lib/stylish/developer/route_spec.rb +5 -0
- data/spec/lib/stylish/manifest_spec.rb +48 -0
- data/spec/lib/stylish/models/library_spec.rb +38 -0
- data/spec/lib/stylish/models/package_spec.rb +35 -0
- data/spec/lib/stylish/models_spec.rb +12 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/support/json_helper.rb +7 -0
- data/spec/test.css.scss +6 -0
- data/stylish.gemspec +17 -2
- data/support/editor-app/.gitignore +2 -0
- data/support/editor-app/development/bower.json +9 -0
- data/support/editor-app/development/package.json +28 -0
- data/support/editor-app/development/semantic/components/accordion.css +257 -0
- data/support/editor-app/development/semantic/components/accordion.js +558 -0
- data/support/editor-app/development/semantic/components/accordion.min.css +11 -0
- data/support/editor-app/development/semantic/components/accordion.min.js +11 -0
- data/support/editor-app/development/semantic/components/ad.css +277 -0
- data/support/editor-app/development/semantic/components/ad.min.css +11 -0
- data/support/editor-app/development/semantic/components/api.js +851 -0
- data/support/editor-app/development/semantic/components/api.min.js +11 -0
- data/support/editor-app/development/semantic/components/breadcrumb.css +125 -0
- data/support/editor-app/development/semantic/components/breadcrumb.min.css +11 -0
- data/support/editor-app/development/semantic/components/button.css +2391 -0
- data/support/editor-app/development/semantic/components/button.min.css +11 -0
- data/support/editor-app/development/semantic/components/card.css +758 -0
- data/support/editor-app/development/semantic/components/card.min.css +11 -0
- data/support/editor-app/development/semantic/components/checkbox.css +514 -0
- data/support/editor-app/development/semantic/components/checkbox.js +507 -0
- data/support/editor-app/development/semantic/components/checkbox.min.css +11 -0
- data/support/editor-app/development/semantic/components/checkbox.min.js +11 -0
- data/support/editor-app/development/semantic/components/comment.css +260 -0
- data/support/editor-app/development/semantic/components/comment.min.css +11 -0
- data/support/editor-app/development/semantic/components/dimmer.css +187 -0
- data/support/editor-app/development/semantic/components/dimmer.js +627 -0
- data/support/editor-app/development/semantic/components/dimmer.min.css +11 -0
- data/support/editor-app/development/semantic/components/dimmer.min.js +11 -0
- data/support/editor-app/development/semantic/components/divider.css +244 -0
- data/support/editor-app/development/semantic/components/divider.min.css +11 -0
- data/support/editor-app/development/semantic/components/dropdown.css +1085 -0
- data/support/editor-app/development/semantic/components/dropdown.js +1757 -0
- data/support/editor-app/development/semantic/components/dropdown.min.css +11 -0
- data/support/editor-app/development/semantic/components/dropdown.min.js +11 -0
- data/support/editor-app/development/semantic/components/feed.css +277 -0
- data/support/editor-app/development/semantic/components/feed.min.css +11 -0
- data/support/editor-app/development/semantic/components/flag.css +1017 -0
- data/support/editor-app/development/semantic/components/flag.min.css +11 -0
- data/support/editor-app/development/semantic/components/form.css +875 -0
- data/support/editor-app/development/semantic/components/form.js +1039 -0
- data/support/editor-app/development/semantic/components/form.min.css +11 -0
- data/support/editor-app/development/semantic/components/form.min.js +11 -0
- data/support/editor-app/development/semantic/components/grid.css +1816 -0
- data/support/editor-app/development/semantic/components/grid.min.css +11 -0
- data/support/editor-app/development/semantic/components/header.css +572 -0
- data/support/editor-app/development/semantic/components/header.min.css +11 -0
- data/support/editor-app/development/semantic/components/icon.css +2127 -0
- data/support/editor-app/development/semantic/components/icon.min.css +11 -0
- data/support/editor-app/development/semantic/components/image.css +275 -0
- data/support/editor-app/development/semantic/components/image.min.css +11 -0
- data/support/editor-app/development/semantic/components/input.css +455 -0
- data/support/editor-app/development/semantic/components/input.min.css +11 -0
- data/support/editor-app/development/semantic/components/item.css +458 -0
- data/support/editor-app/development/semantic/components/item.min.css +11 -0
- data/support/editor-app/development/semantic/components/label.css +930 -0
- data/support/editor-app/development/semantic/components/label.min.css +11 -0
- data/support/editor-app/development/semantic/components/list.css +879 -0
- data/support/editor-app/development/semantic/components/list.min.css +11 -0
- data/support/editor-app/development/semantic/components/loader.css +279 -0
- data/support/editor-app/development/semantic/components/loader.min.css +11 -0
- data/support/editor-app/development/semantic/components/menu.css +1596 -0
- data/support/editor-app/development/semantic/components/menu.min.css +11 -0
- data/support/editor-app/development/semantic/components/message.css +422 -0
- data/support/editor-app/development/semantic/components/message.min.css +11 -0
- data/support/editor-app/development/semantic/components/modal.css +431 -0
- data/support/editor-app/development/semantic/components/modal.js +860 -0
- data/support/editor-app/development/semantic/components/modal.min.css +11 -0
- data/support/editor-app/development/semantic/components/modal.min.js +11 -0
- data/support/editor-app/development/semantic/components/nag.css +149 -0
- data/support/editor-app/development/semantic/components/nag.js +477 -0
- data/support/editor-app/development/semantic/components/nag.min.css +11 -0
- data/support/editor-app/development/semantic/components/nag.min.js +11 -0
- data/support/editor-app/development/semantic/components/popup.css +294 -0
- data/support/editor-app/development/semantic/components/popup.js +1187 -0
- data/support/editor-app/development/semantic/components/popup.min.css +11 -0
- data/support/editor-app/development/semantic/components/popup.min.js +11 -0
- data/support/editor-app/development/semantic/components/progress.css +449 -0
- data/support/editor-app/development/semantic/components/progress.js +785 -0
- data/support/editor-app/development/semantic/components/progress.min.css +11 -0
- data/support/editor-app/development/semantic/components/progress.min.js +11 -0
- data/support/editor-app/development/semantic/components/rail.css +125 -0
- data/support/editor-app/development/semantic/components/rail.min.css +11 -0
- data/support/editor-app/development/semantic/components/rating.css +262 -0
- data/support/editor-app/development/semantic/components/rating.js +451 -0
- data/support/editor-app/development/semantic/components/rating.min.css +11 -0
- data/support/editor-app/development/semantic/components/rating.min.js +11 -0
- data/support/editor-app/development/semantic/components/reset.css +430 -0
- data/support/editor-app/development/semantic/components/reset.min.css +11 -0
- data/support/editor-app/development/semantic/components/reveal.css +294 -0
- data/support/editor-app/development/semantic/components/reveal.min.css +11 -0
- data/support/editor-app/development/semantic/components/search.css +330 -0
- data/support/editor-app/development/semantic/components/search.js +1055 -0
- data/support/editor-app/development/semantic/components/search.min.css +11 -0
- data/support/editor-app/development/semantic/components/search.min.js +11 -0
- data/support/editor-app/development/semantic/components/segment.css +590 -0
- data/support/editor-app/development/semantic/components/segment.min.css +11 -0
- data/support/editor-app/development/semantic/components/shape.css +155 -0
- data/support/editor-app/development/semantic/components/shape.js +830 -0
- data/support/editor-app/development/semantic/components/shape.min.css +11 -0
- data/support/editor-app/development/semantic/components/shape.min.js +11 -0
- data/support/editor-app/development/semantic/components/sidebar.css +621 -0
- data/support/editor-app/development/semantic/components/sidebar.js +1084 -0
- data/support/editor-app/development/semantic/components/sidebar.min.css +11 -0
- data/support/editor-app/development/semantic/components/sidebar.min.js +11 -0
- data/support/editor-app/development/semantic/components/site.css +147 -0
- data/support/editor-app/development/semantic/components/site.js +487 -0
- data/support/editor-app/development/semantic/components/site.min.css +11 -0
- data/support/editor-app/development/semantic/components/site.min.js +11 -0
- data/support/editor-app/development/semantic/components/state.js +690 -0
- data/support/editor-app/development/semantic/components/state.min.js +11 -0
- data/support/editor-app/development/semantic/components/statistic.css +410 -0
- data/support/editor-app/development/semantic/components/statistic.min.css +11 -0
- data/support/editor-app/development/semantic/components/step.css +433 -0
- data/support/editor-app/development/semantic/components/step.min.css +11 -0
- data/support/editor-app/development/semantic/components/sticky.css +80 -0
- data/support/editor-app/development/semantic/components/sticky.js +775 -0
- data/support/editor-app/development/semantic/components/sticky.min.css +11 -0
- data/support/editor-app/development/semantic/components/sticky.min.js +11 -0
- data/support/editor-app/development/semantic/components/tab.css +93 -0
- data/support/editor-app/development/semantic/components/tab.js +787 -0
- data/support/editor-app/development/semantic/components/tab.min.css +11 -0
- data/support/editor-app/development/semantic/components/tab.min.js +11 -0
- data/support/editor-app/development/semantic/components/table.css +999 -0
- data/support/editor-app/development/semantic/components/table.min.css +11 -0
- data/support/editor-app/development/semantic/components/transition.css +2152 -0
- data/support/editor-app/development/semantic/components/transition.js +936 -0
- data/support/editor-app/development/semantic/components/transition.min.css +11 -0
- data/support/editor-app/development/semantic/components/transition.min.js +11 -0
- data/support/editor-app/development/semantic/components/video.css +126 -0
- data/support/editor-app/development/semantic/components/video.js +540 -0
- data/support/editor-app/development/semantic/components/video.min.css +11 -0
- data/support/editor-app/development/semantic/components/video.min.js +11 -0
- data/support/editor-app/development/semantic/components/visibility.js +970 -0
- data/support/editor-app/development/semantic/components/visibility.min.js +11 -0
- data/support/editor-app/development/semantic/semantic.css +31768 -0
- data/support/editor-app/development/semantic/semantic.js +18317 -0
- data/support/editor-app/development/semantic/semantic.min.css +11 -0
- data/support/editor-app/development/semantic/semantic.min.js +17 -0
- data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.eot +0 -0
- data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.svg +450 -0
- data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.ttf +0 -0
- data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.woff +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.eot +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.otf +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.svg +504 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.ttf +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.woff +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/images/flags.png +0 -0
- data/support/editor-app/development/src/apis/index.coffee +35 -0
- data/support/editor-app/development/src/components/editor.cjsx +58 -0
- data/support/editor-app/development/src/components/editor_drawer.cjsx +7 -0
- data/support/editor-app/development/src/components/header.cjsx +12 -0
- data/support/editor-app/development/src/components/index.coffee +9 -0
- data/support/editor-app/development/src/components/menus/icon_grid.cjsx +0 -0
- data/support/editor-app/development/src/components/sidebar.cjsx +24 -0
- data/support/editor-app/development/src/components/tiled_grid.cjsx +35 -0
- data/support/editor-app/development/src/index.cjsx +82 -0
- data/support/editor-app/development/src/lib/util.coffee +48 -0
- data/support/editor-app/development/src/pages/home.cjsx +46 -0
- data/support/editor-app/development/src/pages/index.coffee +6 -0
- data/support/editor-app/development/src/pages/package_details.cjsx +55 -0
- data/support/editor-app/development/src/registry.coffee +35 -0
- data/support/editor-app/development/src/styles/components/tiled_grid.css.scss +5 -0
- data/support/editor-app/development/src/styles/index.css.scss +240 -0
- data/support/editor-app/development/src/sugar.cjsx +126 -0
- data/support/editor-app/development/webpack.config.js +53 -0
- data/support/editor-app/dist/base.css +0 -0
- data/support/editor-app/dist/toolit.js +62 -0
- data/support/editor-app/dist/toolkit.js +44573 -0
- data/support/editor-app/index.html +50 -0
- data/support/editor-app/package.json +15 -0
- data/support/editor-app/semantic/components/accordion.css +257 -0
- data/support/editor-app/semantic/components/accordion.js +558 -0
- data/support/editor-app/semantic/components/accordion.min.css +11 -0
- data/support/editor-app/semantic/components/accordion.min.js +11 -0
- data/support/editor-app/semantic/components/ad.css +277 -0
- data/support/editor-app/semantic/components/ad.min.css +11 -0
- data/support/editor-app/semantic/components/api.js +851 -0
- data/support/editor-app/semantic/components/api.min.js +11 -0
- data/support/editor-app/semantic/components/breadcrumb.css +125 -0
- data/support/editor-app/semantic/components/breadcrumb.min.css +11 -0
- data/support/editor-app/semantic/components/button.css +2391 -0
- data/support/editor-app/semantic/components/button.min.css +11 -0
- data/support/editor-app/semantic/components/card.css +758 -0
- data/support/editor-app/semantic/components/card.min.css +11 -0
- data/support/editor-app/semantic/components/checkbox.css +514 -0
- data/support/editor-app/semantic/components/checkbox.js +507 -0
- data/support/editor-app/semantic/components/checkbox.min.css +11 -0
- data/support/editor-app/semantic/components/checkbox.min.js +11 -0
- data/support/editor-app/semantic/components/comment.css +260 -0
- data/support/editor-app/semantic/components/comment.min.css +11 -0
- data/support/editor-app/semantic/components/dimmer.css +187 -0
- data/support/editor-app/semantic/components/dimmer.js +627 -0
- data/support/editor-app/semantic/components/dimmer.min.css +11 -0
- data/support/editor-app/semantic/components/dimmer.min.js +11 -0
- data/support/editor-app/semantic/components/divider.css +244 -0
- data/support/editor-app/semantic/components/divider.min.css +11 -0
- data/support/editor-app/semantic/components/dropdown.css +1085 -0
- data/support/editor-app/semantic/components/dropdown.js +1757 -0
- data/support/editor-app/semantic/components/dropdown.min.css +11 -0
- data/support/editor-app/semantic/components/dropdown.min.js +11 -0
- data/support/editor-app/semantic/components/feed.css +277 -0
- data/support/editor-app/semantic/components/feed.min.css +11 -0
- data/support/editor-app/semantic/components/flag.css +1017 -0
- data/support/editor-app/semantic/components/flag.min.css +11 -0
- data/support/editor-app/semantic/components/form.css +875 -0
- data/support/editor-app/semantic/components/form.js +1039 -0
- data/support/editor-app/semantic/components/form.min.css +11 -0
- data/support/editor-app/semantic/components/form.min.js +11 -0
- data/support/editor-app/semantic/components/grid.css +1816 -0
- data/support/editor-app/semantic/components/grid.min.css +11 -0
- data/support/editor-app/semantic/components/header.css +572 -0
- data/support/editor-app/semantic/components/header.min.css +11 -0
- data/support/editor-app/semantic/components/icon.css +2127 -0
- data/support/editor-app/semantic/components/icon.min.css +11 -0
- data/support/editor-app/semantic/components/image.css +275 -0
- data/support/editor-app/semantic/components/image.min.css +11 -0
- data/support/editor-app/semantic/components/input.css +455 -0
- data/support/editor-app/semantic/components/input.min.css +11 -0
- data/support/editor-app/semantic/components/item.css +458 -0
- data/support/editor-app/semantic/components/item.min.css +11 -0
- data/support/editor-app/semantic/components/label.css +930 -0
- data/support/editor-app/semantic/components/label.min.css +11 -0
- data/support/editor-app/semantic/components/list.css +879 -0
- data/support/editor-app/semantic/components/list.min.css +11 -0
- data/support/editor-app/semantic/components/loader.css +279 -0
- data/support/editor-app/semantic/components/loader.min.css +11 -0
- data/support/editor-app/semantic/components/menu.css +1596 -0
- data/support/editor-app/semantic/components/menu.min.css +11 -0
- data/support/editor-app/semantic/components/message.css +422 -0
- data/support/editor-app/semantic/components/message.min.css +11 -0
- data/support/editor-app/semantic/components/modal.css +431 -0
- data/support/editor-app/semantic/components/modal.js +860 -0
- data/support/editor-app/semantic/components/modal.min.css +11 -0
- data/support/editor-app/semantic/components/modal.min.js +11 -0
- data/support/editor-app/semantic/components/nag.css +149 -0
- data/support/editor-app/semantic/components/nag.js +477 -0
- data/support/editor-app/semantic/components/nag.min.css +11 -0
- data/support/editor-app/semantic/components/nag.min.js +11 -0
- data/support/editor-app/semantic/components/popup.css +294 -0
- data/support/editor-app/semantic/components/popup.js +1187 -0
- data/support/editor-app/semantic/components/popup.min.css +11 -0
- data/support/editor-app/semantic/components/popup.min.js +11 -0
- data/support/editor-app/semantic/components/progress.css +449 -0
- data/support/editor-app/semantic/components/progress.js +785 -0
- data/support/editor-app/semantic/components/progress.min.css +11 -0
- data/support/editor-app/semantic/components/progress.min.js +11 -0
- data/support/editor-app/semantic/components/rail.css +125 -0
- data/support/editor-app/semantic/components/rail.min.css +11 -0
- data/support/editor-app/semantic/components/rating.css +262 -0
- data/support/editor-app/semantic/components/rating.js +451 -0
- data/support/editor-app/semantic/components/rating.min.css +11 -0
- data/support/editor-app/semantic/components/rating.min.js +11 -0
- data/support/editor-app/semantic/components/reset.css +430 -0
- data/support/editor-app/semantic/components/reset.min.css +11 -0
- data/support/editor-app/semantic/components/reveal.css +294 -0
- data/support/editor-app/semantic/components/reveal.min.css +11 -0
- data/support/editor-app/semantic/components/search.css +330 -0
- data/support/editor-app/semantic/components/search.js +1055 -0
- data/support/editor-app/semantic/components/search.min.css +11 -0
- data/support/editor-app/semantic/components/search.min.js +11 -0
- data/support/editor-app/semantic/components/segment.css +590 -0
- data/support/editor-app/semantic/components/segment.min.css +11 -0
- data/support/editor-app/semantic/components/shape.css +155 -0
- data/support/editor-app/semantic/components/shape.js +830 -0
- data/support/editor-app/semantic/components/shape.min.css +11 -0
- data/support/editor-app/semantic/components/shape.min.js +11 -0
- data/support/editor-app/semantic/components/sidebar.css +621 -0
- data/support/editor-app/semantic/components/sidebar.js +1084 -0
- data/support/editor-app/semantic/components/sidebar.min.css +11 -0
- data/support/editor-app/semantic/components/sidebar.min.js +11 -0
- data/support/editor-app/semantic/components/site.css +147 -0
- data/support/editor-app/semantic/components/site.js +487 -0
- data/support/editor-app/semantic/components/site.min.css +11 -0
- data/support/editor-app/semantic/components/site.min.js +11 -0
- data/support/editor-app/semantic/components/state.js +690 -0
- data/support/editor-app/semantic/components/state.min.js +11 -0
- data/support/editor-app/semantic/components/statistic.css +410 -0
- data/support/editor-app/semantic/components/statistic.min.css +11 -0
- data/support/editor-app/semantic/components/step.css +433 -0
- data/support/editor-app/semantic/components/step.min.css +11 -0
- data/support/editor-app/semantic/components/sticky.css +80 -0
- data/support/editor-app/semantic/components/sticky.js +775 -0
- data/support/editor-app/semantic/components/sticky.min.css +11 -0
- data/support/editor-app/semantic/components/sticky.min.js +11 -0
- data/support/editor-app/semantic/components/tab.css +93 -0
- data/support/editor-app/semantic/components/tab.js +787 -0
- data/support/editor-app/semantic/components/tab.min.css +11 -0
- data/support/editor-app/semantic/components/tab.min.js +11 -0
- data/support/editor-app/semantic/components/table.css +999 -0
- data/support/editor-app/semantic/components/table.min.css +11 -0
- data/support/editor-app/semantic/components/transition.css +2152 -0
- data/support/editor-app/semantic/components/transition.js +936 -0
- data/support/editor-app/semantic/components/transition.min.css +11 -0
- data/support/editor-app/semantic/components/transition.min.js +11 -0
- data/support/editor-app/semantic/components/video.css +126 -0
- data/support/editor-app/semantic/components/video.js +540 -0
- data/support/editor-app/semantic/components/video.min.css +11 -0
- data/support/editor-app/semantic/components/video.min.js +11 -0
- data/support/editor-app/semantic/components/visibility.js +970 -0
- data/support/editor-app/semantic/components/visibility.min.js +11 -0
- data/support/editor-app/semantic/semantic.css +31768 -0
- data/support/editor-app/semantic/semantic.js +18317 -0
- data/support/editor-app/semantic/semantic.min.css +11 -0
- data/support/editor-app/semantic/semantic.min.js +17 -0
- data/support/editor-app/semantic/themes/basic/assets/fonts/icons.eot +0 -0
- data/support/editor-app/semantic/themes/basic/assets/fonts/icons.svg +450 -0
- data/support/editor-app/semantic/themes/basic/assets/fonts/icons.ttf +0 -0
- data/support/editor-app/semantic/themes/basic/assets/fonts/icons.woff +0 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.eot +0 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.otf +0 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.svg +504 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.ttf +0 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.woff +0 -0
- data/support/editor-app/semantic/themes/default/assets/images/flags.png +0 -0
- data/support/editor-app/vendor/jquery.js +8829 -0
- data/support/library-server/Gemfile +0 -0
- data/support/library-server/config.ru +4 -0
- metadata +740 -7
@@ -0,0 +1,50 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<!-- Standard Meta -->
|
5
|
+
<meta charset="utf-8" />
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
8
|
+
|
9
|
+
<!-- Site Properities -->
|
10
|
+
<title>Architects Toolkit</title>
|
11
|
+
|
12
|
+
<link rel="stylesheet" type="text/css" href="semantic/semantic.css">
|
13
|
+
<link rel="stylesheet" type="text/css" href="dist/base.css">
|
14
|
+
<script src="vendor/jquery.js"></script>
|
15
|
+
<script src="semantic/semantic.js"></script>
|
16
|
+
<script>
|
17
|
+
if(typeof(process) !== "undefined") {
|
18
|
+
window.NODE_WEBKIT = true
|
19
|
+
}
|
20
|
+
</script>
|
21
|
+
<script>
|
22
|
+
try {
|
23
|
+
var path = './dist';
|
24
|
+
var fs = require('fs');
|
25
|
+
|
26
|
+
fs.watch(path, function() {
|
27
|
+
if (location)
|
28
|
+
location.reload();
|
29
|
+
});
|
30
|
+
} catch(e) {
|
31
|
+
console.log(e)
|
32
|
+
}
|
33
|
+
</script>
|
34
|
+
<script src="dist/toolkit.js"></script>
|
35
|
+
</head>
|
36
|
+
<body id="main" class="pushable">
|
37
|
+
<div id="sidebar" class="ui very thin inverted vertical sidebar"></div>
|
38
|
+
|
39
|
+
<div class="pusher">
|
40
|
+
<div class="ui grey right attached fixed button launch">
|
41
|
+
<i class="content icon" ></i>
|
42
|
+
<span class="text">Menu</span>
|
43
|
+
</div>
|
44
|
+
<div id="app">
|
45
|
+
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</body>
|
49
|
+
|
50
|
+
</html>
|
@@ -0,0 +1,257 @@
|
|
1
|
+
/*
|
2
|
+
* # Semantic UI - 1.8.1
|
3
|
+
* https://github.com/Semantic-Org/Semantic-UI
|
4
|
+
* http://www.semantic-ui.com/
|
5
|
+
*
|
6
|
+
* Copyright 2014 Contributors
|
7
|
+
* Released under the MIT license
|
8
|
+
* http://opensource.org/licenses/MIT
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
/*******************************
|
15
|
+
Accordion
|
16
|
+
*******************************/
|
17
|
+
|
18
|
+
.ui.accordion,
|
19
|
+
.ui.accordion .accordion {
|
20
|
+
max-width: 100%;
|
21
|
+
font-size: 1em;
|
22
|
+
}
|
23
|
+
.ui.accordion .accordion {
|
24
|
+
margin: 1em 0em 0em;
|
25
|
+
padding: 0em;
|
26
|
+
}
|
27
|
+
|
28
|
+
/* Title */
|
29
|
+
.ui.accordion .title,
|
30
|
+
.ui.accordion .accordion .title {
|
31
|
+
cursor: pointer;
|
32
|
+
}
|
33
|
+
|
34
|
+
/* Default Styling */
|
35
|
+
.ui.accordion .title:not(.ui) {
|
36
|
+
padding: 0.5em 0em;
|
37
|
+
font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
38
|
+
font-size: 1em;
|
39
|
+
color: rgba(0, 0, 0, 0.8);
|
40
|
+
}
|
41
|
+
|
42
|
+
/* Content */
|
43
|
+
.ui.accordion .title ~ .content,
|
44
|
+
.ui.accordion .accordion .title ~ .content {
|
45
|
+
display: none;
|
46
|
+
}
|
47
|
+
|
48
|
+
/* Default Styling */
|
49
|
+
.ui.accordion:not(.styled) .title ~ .content:not(.ui),
|
50
|
+
.ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui) {
|
51
|
+
margin: 0em;
|
52
|
+
padding: 0.5em 0em 1em;
|
53
|
+
}
|
54
|
+
.ui.accordion:not(.styled) .title ~ .content:not(.ui):last-child {
|
55
|
+
padding-bottom: 0em;
|
56
|
+
}
|
57
|
+
|
58
|
+
/* Arrow */
|
59
|
+
.ui.accordion .title .dropdown.icon,
|
60
|
+
.ui.accordion .accordion .title .dropdown.icon {
|
61
|
+
display: inline-block;
|
62
|
+
float: none;
|
63
|
+
opacity: 1;
|
64
|
+
width: 1.25em;
|
65
|
+
height: 1em;
|
66
|
+
margin: 0em 0.25rem 0em 0rem;
|
67
|
+
padding: 0em;
|
68
|
+
font-size: 1em;
|
69
|
+
-webkit-transition: -webkit-transform 0.2s ease, opacity 0.2s ease;
|
70
|
+
transition: transform 0.2s ease, opacity 0.2s ease;
|
71
|
+
vertical-align: baseline;
|
72
|
+
-webkit-transform: none;
|
73
|
+
-ms-transform: none;
|
74
|
+
transform: none;
|
75
|
+
}
|
76
|
+
|
77
|
+
/*--------------
|
78
|
+
Coupling
|
79
|
+
---------------*/
|
80
|
+
|
81
|
+
|
82
|
+
/* Menu */
|
83
|
+
.ui.accordion.menu .item .title {
|
84
|
+
display: block;
|
85
|
+
padding: 0em;
|
86
|
+
}
|
87
|
+
.ui.accordion.menu .item .title > .dropdown.icon {
|
88
|
+
float: right;
|
89
|
+
margin: 0.165em 0em 0em 1em;
|
90
|
+
-webkit-transform: rotate(180deg);
|
91
|
+
-ms-transform: rotate(180deg);
|
92
|
+
transform: rotate(180deg);
|
93
|
+
}
|
94
|
+
|
95
|
+
/* Header */
|
96
|
+
.ui.accordion .ui.header .dropdown.icon {
|
97
|
+
font-size: 1em;
|
98
|
+
margin: 0em 0.25rem 0em 0rem;
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
/*******************************
|
103
|
+
States
|
104
|
+
*******************************/
|
105
|
+
|
106
|
+
.ui.accordion .active.title .dropdown.icon,
|
107
|
+
.ui.accordion .accordion .active.title .dropdown.icon {
|
108
|
+
-webkit-transform: rotate(90deg);
|
109
|
+
-ms-transform: rotate(90deg);
|
110
|
+
transform: rotate(90deg);
|
111
|
+
}
|
112
|
+
.ui.accordion.menu .item .active.title > .dropdown.icon {
|
113
|
+
-webkit-transform: rotate(90deg);
|
114
|
+
-ms-transform: rotate(90deg);
|
115
|
+
transform: rotate(90deg);
|
116
|
+
}
|
117
|
+
|
118
|
+
|
119
|
+
/*******************************
|
120
|
+
Types
|
121
|
+
*******************************/
|
122
|
+
|
123
|
+
|
124
|
+
/*--------------
|
125
|
+
Styled
|
126
|
+
---------------*/
|
127
|
+
|
128
|
+
.ui.styled.accordion {
|
129
|
+
width: 600px;
|
130
|
+
}
|
131
|
+
.ui.styled.accordion,
|
132
|
+
.ui.styled.accordion .accordion {
|
133
|
+
border-radius: 0.2857rem;
|
134
|
+
background: #ffffff;
|
135
|
+
box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(39, 41, 43, 0.15);
|
136
|
+
}
|
137
|
+
.ui.styled.accordion .title,
|
138
|
+
.ui.styled.accordion .accordion .title {
|
139
|
+
margin: 0em;
|
140
|
+
padding: 0.75em 1em;
|
141
|
+
color: rgba(0, 0, 0, 0.4);
|
142
|
+
font-weight: bold;
|
143
|
+
border-top: 1px solid rgba(39, 41, 43, 0.15);
|
144
|
+
-webkit-transition: background 0.2s ease, color 0.2s ease;
|
145
|
+
transition: background 0.2s ease, color 0.2s ease;
|
146
|
+
}
|
147
|
+
.ui.styled.accordion > .title:first-child,
|
148
|
+
.ui.styled.accordion > .accordion .title:first-child {
|
149
|
+
border-top: none;
|
150
|
+
}
|
151
|
+
|
152
|
+
/* Content */
|
153
|
+
.ui.styled.accordion .content,
|
154
|
+
.ui.styled.accordion .accordion .content {
|
155
|
+
margin: 0em;
|
156
|
+
padding: 0.5em 1em 1.5em;
|
157
|
+
}
|
158
|
+
.ui.styled.accordion .accordion .content {
|
159
|
+
padding: 0em;
|
160
|
+
padding: 0.5em 1em 1.5em;
|
161
|
+
}
|
162
|
+
|
163
|
+
/* Hover */
|
164
|
+
.ui.styled.accordion .title:hover,
|
165
|
+
.ui.styled.accordion .active.title,
|
166
|
+
.ui.styled.accordion .accordion .title:hover,
|
167
|
+
.ui.styled.accordion .accordion .active.title {
|
168
|
+
background: transparent;
|
169
|
+
color: rgba(0, 0, 0, 0.8);
|
170
|
+
}
|
171
|
+
.ui.styled.accordion .accordion .title:hover,
|
172
|
+
.ui.styled.accordion .accordion .active.title {
|
173
|
+
background: transparent;
|
174
|
+
color: rgba(0, 0, 0, 0.8);
|
175
|
+
}
|
176
|
+
|
177
|
+
/* Active */
|
178
|
+
.ui.styled.accordion .active.title {
|
179
|
+
background: transparent;
|
180
|
+
color: rgba(0, 0, 0, 0.8);
|
181
|
+
}
|
182
|
+
.ui.styled.accordion .accordion .active.title {
|
183
|
+
background: transparent;
|
184
|
+
color: rgba(0, 0, 0, 0.8);
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
/*******************************
|
189
|
+
States
|
190
|
+
*******************************/
|
191
|
+
|
192
|
+
|
193
|
+
/*--------------
|
194
|
+
Active
|
195
|
+
---------------*/
|
196
|
+
|
197
|
+
.ui.accordion .active.content,
|
198
|
+
.ui.accordion .accordion .active.content {
|
199
|
+
display: block;
|
200
|
+
}
|
201
|
+
|
202
|
+
|
203
|
+
/*******************************
|
204
|
+
Variations
|
205
|
+
*******************************/
|
206
|
+
|
207
|
+
|
208
|
+
/*--------------
|
209
|
+
Fluid
|
210
|
+
---------------*/
|
211
|
+
|
212
|
+
.ui.fluid.accordion,
|
213
|
+
.ui.fluid.accordion .accordion {
|
214
|
+
width: 100%;
|
215
|
+
}
|
216
|
+
|
217
|
+
/*--------------
|
218
|
+
Inverted
|
219
|
+
---------------*/
|
220
|
+
|
221
|
+
.ui.inverted.accordion .title:not(.ui) {
|
222
|
+
color: #ffffff;
|
223
|
+
}
|
224
|
+
|
225
|
+
|
226
|
+
/*******************************
|
227
|
+
Theme Overrides
|
228
|
+
*******************************/
|
229
|
+
|
230
|
+
@font-face {
|
231
|
+
font-family: 'Accordion';
|
232
|
+
src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjB5AAAAC8AAAAYGNtYXAPfOIKAAABHAAAAExnYXNwAAAAEAAAAWgAAAAIZ2x5Zryj6HgAAAFwAAAAyGhlYWT/0IhHAAACOAAAADZoaGVhApkB5wAAAnAAAAAkaG10eAJuABIAAAKUAAAAGGxvY2EAjABWAAACrAAAAA5tYXhwAAgAFgAAArwAAAAgbmFtZfC1n04AAALcAAABPHBvc3QAAwAAAAAEGAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADw2gHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAIPDa//3//wAAAAAAIPDZ//3//wAB/+MPKwADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQASAEkAtwFuABMAADc0PwE2FzYXFh0BFAcGJwYvASY1EgaABQgHBQYGBQcIBYAG2wcGfwcBAQcECf8IBAcBAQd/BgYAAAAAAQAAAEkApQFuABMAADcRNDc2MzIfARYVFA8BBiMiJyY1AAUGBwgFgAYGgAUIBwYFWwEACAUGBoAFCAcFgAYGBQcAAAABAAAAAQAAqWYls18PPPUACwIAAAAAAM/9o+4AAAAAz/2j7gAAAAAAtwFuAAAACAACAAAAAAAAAAEAAAHg/+AAAAIAAAAAAAC3AAEAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAQAAAAC3ABIAtwAAAAAAAAAKABQAHgBCAGQAAAABAAAABgAUAAEAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEADAAAAAEAAAAAAAIADgBAAAEAAAAAAAMADAAiAAEAAAAAAAQADABOAAEAAAAAAAUAFgAMAAEAAAAAAAYABgAuAAEAAAAAAAoANABaAAMAAQQJAAEADAAAAAMAAQQJAAIADgBAAAMAAQQJAAMADAAiAAMAAQQJAAQADABOAAMAAQQJAAUAFgAMAAMAAQQJAAYADAA0AAMAAQQJAAoANABaAHIAYQB0AGkAbgBnAFYAZQByAHMAaQBvAG4AIAAxAC4AMAByAGEAdABpAG4AZ3JhdGluZwByAGEAdABpAG4AZwBSAGUAZwB1AGwAYQByAHIAYQB0AGkAbgBnAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype'), url(data:application/font-woff;charset=utf-8;base64,d09GRk9UVE8AAASwAAoAAAAABGgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAAA9AAAAS0AAAEtFpovuE9TLzIAAAIkAAAAYAAAAGAIIweQY21hcAAAAoQAAABMAAAATA984gpnYXNwAAAC0AAAAAgAAAAIAAAAEGhlYWQAAALYAAAANgAAADb/0IhHaGhlYQAAAxAAAAAkAAAAJAKZAedobXR4AAADNAAAABgAAAAYAm4AEm1heHAAAANMAAAABgAAAAYABlAAbmFtZQAAA1QAAAE8AAABPPC1n05wb3N0AAAEkAAAACAAAAAgAAMAAAEABAQAAQEBB3JhdGluZwABAgABADr4HAL4GwP4GAQeCgAZU/+Lix4KABlT/4uLDAeLa/iU+HQFHQAAAHkPHQAAAH4RHQAAAAkdAAABJBIABwEBBw0PERQZHnJhdGluZ3JhdGluZ3UwdTF1MjB1RjBEOXVGMERBAAACAYkABAAGAQEEBwoNVp38lA78lA78lA77lA773Z33bxWLkI2Qj44I9xT3FAWOj5CNkIuQi4+JjoePiI2Gi4YIi/uUBYuGiYeHiIiHh4mGi4aLho2Ijwj7FPcUBYeOiY+LkAgO+92L5hWL95QFi5CNkI6Oj4+PjZCLkIuQiY6HCPcU+xQFj4iNhouGi4aJh4eICPsU+xQFiIeGiYaLhouHjYePiI6Jj4uQCA74lBT4lBWLDAoAAAAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADw2gHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAIPDa//3//wAAAAAAIPDZ//3//wAB/+MPKwADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAEAADfYOJZfDzz1AAsCAAAAAADP/aPuAAAAAM/9o+4AAAAAALcBbgAAAAgAAgAAAAAAAAABAAAB4P/gAAACAAAAAAAAtwABAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAEAAAAAtwASALcAAAAAUAAABgAAAAAADgCuAAEAAAAAAAEADAAAAAEAAAAAAAIADgBAAAEAAAAAAAMADAAiAAEAAAAAAAQADABOAAEAAAAAAAUAFgAMAAEAAAAAAAYABgAuAAEAAAAAAAoANABaAAMAAQQJAAEADAAAAAMAAQQJAAIADgBAAAMAAQQJAAMADAAiAAMAAQQJAAQADABOAAMAAQQJAAUAFgAMAAMAAQQJAAYADAA0AAMAAQQJAAoANABaAHIAYQB0AGkAbgBnAFYAZQByAHMAaQBvAG4AIAAxAC4AMAByAGEAdABpAG4AZ3JhdGluZwByAGEAdABpAG4AZwBSAGUAZwB1AGwAYQByAHIAYQB0AGkAbgBnAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('woff');
|
233
|
+
font-weight: normal;
|
234
|
+
font-style: normal;
|
235
|
+
}
|
236
|
+
|
237
|
+
/* Dropdown Icon */
|
238
|
+
.ui.accordion .title .dropdown.icon,
|
239
|
+
.ui.accordion .accordion .title .dropdown.icon {
|
240
|
+
font-family: Accordion;
|
241
|
+
line-height: 1;
|
242
|
+
-webkit-backface-visibility: hidden;
|
243
|
+
backface-visibility: hidden;
|
244
|
+
font-weight: normal;
|
245
|
+
font-style: normal;
|
246
|
+
text-align: center;
|
247
|
+
}
|
248
|
+
.ui.accordion .title .dropdown.icon:before,
|
249
|
+
.ui.accordion .accordion .title .dropdown.icon:before {
|
250
|
+
content: '\f0da' /*rtl:'\f0d9'*/;
|
251
|
+
}
|
252
|
+
|
253
|
+
|
254
|
+
/*******************************
|
255
|
+
User Overrides
|
256
|
+
*******************************/
|
257
|
+
|
@@ -0,0 +1,558 @@
|
|
1
|
+
/*
|
2
|
+
* # Semantic - Accordion
|
3
|
+
* http://github.com/semantic-org/semantic-ui/
|
4
|
+
*
|
5
|
+
*
|
6
|
+
* Copyright 2014 Contributor
|
7
|
+
* Released under the MIT license
|
8
|
+
* http://opensource.org/licenses/MIT
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
;(function ($, window, document, undefined) {
|
13
|
+
|
14
|
+
"use strict";
|
15
|
+
|
16
|
+
$.fn.accordion = function(parameters) {
|
17
|
+
var
|
18
|
+
$allModules = $(this),
|
19
|
+
|
20
|
+
time = new Date().getTime(),
|
21
|
+
performance = [],
|
22
|
+
|
23
|
+
query = arguments[0],
|
24
|
+
methodInvoked = (typeof query == 'string'),
|
25
|
+
queryArguments = [].slice.call(arguments, 1),
|
26
|
+
|
27
|
+
requestAnimationFrame = window.requestAnimationFrame
|
28
|
+
|| window.mozRequestAnimationFrame
|
29
|
+
|| window.webkitRequestAnimationFrame
|
30
|
+
|| window.msRequestAnimationFrame
|
31
|
+
|| function(callback) { setTimeout(callback, 0); },
|
32
|
+
|
33
|
+
returnedValue
|
34
|
+
;
|
35
|
+
$allModules
|
36
|
+
.each(function() {
|
37
|
+
var
|
38
|
+
settings = ( $.isPlainObject(parameters) )
|
39
|
+
? $.extend(true, {}, $.fn.accordion.settings, parameters)
|
40
|
+
: $.extend({}, $.fn.accordion.settings),
|
41
|
+
|
42
|
+
className = settings.className,
|
43
|
+
namespace = settings.namespace,
|
44
|
+
selector = settings.selector,
|
45
|
+
error = settings.error,
|
46
|
+
|
47
|
+
eventNamespace = '.' + namespace,
|
48
|
+
moduleNamespace = 'module-' + namespace,
|
49
|
+
moduleSelector = $allModules.selector || '',
|
50
|
+
|
51
|
+
$module = $(this),
|
52
|
+
$title = $module.find(selector.title),
|
53
|
+
$content = $module.find(selector.content),
|
54
|
+
|
55
|
+
element = this,
|
56
|
+
instance = $module.data(moduleNamespace),
|
57
|
+
observer,
|
58
|
+
module
|
59
|
+
;
|
60
|
+
|
61
|
+
module = {
|
62
|
+
|
63
|
+
initialize: function() {
|
64
|
+
module.debug('Initializing accordion with bound events', $module);
|
65
|
+
$module
|
66
|
+
.on('click' + eventNamespace, selector.title, module.event.click)
|
67
|
+
;
|
68
|
+
module.observeChanges();
|
69
|
+
module.instantiate();
|
70
|
+
},
|
71
|
+
|
72
|
+
instantiate: function() {
|
73
|
+
instance = module;
|
74
|
+
$module
|
75
|
+
.data(moduleNamespace, module)
|
76
|
+
;
|
77
|
+
},
|
78
|
+
|
79
|
+
destroy: function() {
|
80
|
+
module.debug('Destroying previous accordion for', $module);
|
81
|
+
$module
|
82
|
+
.removeData(moduleNamespace)
|
83
|
+
;
|
84
|
+
$title
|
85
|
+
.off(eventNamespace)
|
86
|
+
;
|
87
|
+
},
|
88
|
+
|
89
|
+
refresh: function() {
|
90
|
+
$title = $module.find(selector.title);
|
91
|
+
$content = $module.find(selector.content);
|
92
|
+
},
|
93
|
+
|
94
|
+
observeChanges: function() {
|
95
|
+
if('MutationObserver' in window) {
|
96
|
+
observer = new MutationObserver(function(mutations) {
|
97
|
+
module.debug('DOM tree modified, updating selector cache');
|
98
|
+
module.refresh();
|
99
|
+
});
|
100
|
+
observer.observe(element, {
|
101
|
+
childList : true,
|
102
|
+
subtree : true
|
103
|
+
});
|
104
|
+
module.debug('Setting up mutation observer', observer);
|
105
|
+
}
|
106
|
+
},
|
107
|
+
|
108
|
+
|
109
|
+
event: {
|
110
|
+
click: function() {
|
111
|
+
module.toggle.call(this);
|
112
|
+
}
|
113
|
+
},
|
114
|
+
|
115
|
+
toggle: function(query) {
|
116
|
+
var
|
117
|
+
$activeTitle = (query !== undefined)
|
118
|
+
? (typeof query === 'number')
|
119
|
+
? $title.eq(query)
|
120
|
+
: $(query)
|
121
|
+
: $(this),
|
122
|
+
$activeContent = $activeTitle.next($content),
|
123
|
+
contentIsOpen = $activeContent.is(':visible')
|
124
|
+
;
|
125
|
+
module.debug('Toggling visibility of content', $activeTitle);
|
126
|
+
if(contentIsOpen) {
|
127
|
+
if(settings.collapsible) {
|
128
|
+
module.close.call($activeTitle);
|
129
|
+
}
|
130
|
+
else {
|
131
|
+
module.debug('Cannot close accordion content collapsing is disabled');
|
132
|
+
}
|
133
|
+
}
|
134
|
+
else {
|
135
|
+
module.open.call($activeTitle);
|
136
|
+
}
|
137
|
+
},
|
138
|
+
|
139
|
+
open: function(query) {
|
140
|
+
var
|
141
|
+
$activeTitle = (query !== undefined)
|
142
|
+
? (typeof query === 'number')
|
143
|
+
? $title.eq(query)
|
144
|
+
: $(query)
|
145
|
+
: $(this),
|
146
|
+
$activeContent = $activeTitle.next($content),
|
147
|
+
currentlyAnimating = $activeContent.is(':animated'),
|
148
|
+
currentlyActive = $activeContent.hasClass(className.active)
|
149
|
+
;
|
150
|
+
if(!currentlyAnimating && !currentlyActive) {
|
151
|
+
module.debug('Opening accordion content', $activeTitle);
|
152
|
+
if(settings.exclusive) {
|
153
|
+
module.closeOthers.call($activeTitle);
|
154
|
+
}
|
155
|
+
$activeTitle
|
156
|
+
.addClass(className.active)
|
157
|
+
;
|
158
|
+
if(settings.animateChildren) {
|
159
|
+
if($.fn.transition !== undefined && $module.transition('is supported')) {
|
160
|
+
$activeContent
|
161
|
+
.children()
|
162
|
+
.transition({
|
163
|
+
animation : 'fade in',
|
164
|
+
useFailSafe : true,
|
165
|
+
debug : settings.debug,
|
166
|
+
verbose : settings.verbose,
|
167
|
+
duration : settings.duration
|
168
|
+
})
|
169
|
+
;
|
170
|
+
}
|
171
|
+
else {
|
172
|
+
$activeContent
|
173
|
+
.children()
|
174
|
+
.stop()
|
175
|
+
.animate({
|
176
|
+
opacity: 1
|
177
|
+
}, settings.duration, module.resetOpacity)
|
178
|
+
;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
$activeContent
|
182
|
+
.stop()
|
183
|
+
.slideDown(settings.duration, settings.easing, function() {
|
184
|
+
$activeContent
|
185
|
+
.addClass(className.active)
|
186
|
+
;
|
187
|
+
module.reset.display.call(this);
|
188
|
+
settings.onOpen.call(this);
|
189
|
+
settings.onChange.call(this);
|
190
|
+
})
|
191
|
+
;
|
192
|
+
}
|
193
|
+
},
|
194
|
+
|
195
|
+
close: function(query) {
|
196
|
+
var
|
197
|
+
$activeTitle = (query !== undefined)
|
198
|
+
? (typeof query === 'number')
|
199
|
+
? $title.eq(query)
|
200
|
+
: $(query)
|
201
|
+
: $(this),
|
202
|
+
$activeContent = $activeTitle.next($content),
|
203
|
+
isActive = $activeContent.hasClass(className.active)
|
204
|
+
;
|
205
|
+
if(isActive) {
|
206
|
+
module.debug('Closing accordion content', $activeContent);
|
207
|
+
$activeTitle
|
208
|
+
.removeClass(className.active)
|
209
|
+
;
|
210
|
+
$activeContent
|
211
|
+
.removeClass(className.active)
|
212
|
+
.show()
|
213
|
+
;
|
214
|
+
if(settings.animateChildren) {
|
215
|
+
if($.fn.transition !== undefined && $module.transition('is supported')) {
|
216
|
+
$activeContent
|
217
|
+
.children()
|
218
|
+
.transition({
|
219
|
+
animation : 'fade out',
|
220
|
+
useFailSafe : true,
|
221
|
+
debug : settings.debug,
|
222
|
+
verbose : settings.verbose,
|
223
|
+
duration : settings.duration
|
224
|
+
})
|
225
|
+
;
|
226
|
+
}
|
227
|
+
else {
|
228
|
+
$activeContent
|
229
|
+
.children()
|
230
|
+
.stop()
|
231
|
+
.animate({
|
232
|
+
opacity: 0
|
233
|
+
}, settings.duration, module.resetOpacity)
|
234
|
+
;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
$activeContent
|
238
|
+
.stop()
|
239
|
+
.slideUp(settings.duration, settings.easing, function() {
|
240
|
+
module.reset.display.call(this);
|
241
|
+
settings.onClose.call(this);
|
242
|
+
settings.onChange.call(this);
|
243
|
+
})
|
244
|
+
;
|
245
|
+
}
|
246
|
+
},
|
247
|
+
|
248
|
+
closeOthers: function(index) {
|
249
|
+
var
|
250
|
+
$activeTitle = (index !== undefined)
|
251
|
+
? $title.eq(index)
|
252
|
+
: $(this),
|
253
|
+
$parentTitles = $activeTitle.parents(selector.content).prev(selector.title),
|
254
|
+
$activeAccordion = $activeTitle.closest(selector.accordion),
|
255
|
+
activeSelector = selector.title + '.' + className.active + ':visible',
|
256
|
+
activeContent = selector.content + '.' + className.active + ':visible',
|
257
|
+
$openTitles,
|
258
|
+
$nestedTitles,
|
259
|
+
$openContents
|
260
|
+
;
|
261
|
+
if(settings.closeNested) {
|
262
|
+
$openTitles = $activeAccordion.find(activeSelector).not($parentTitles);
|
263
|
+
$openContents = $openTitles.next($content);
|
264
|
+
}
|
265
|
+
else {
|
266
|
+
$openTitles = $activeAccordion.find(activeSelector).not($parentTitles);
|
267
|
+
$nestedTitles = $activeAccordion.find(activeContent).find(activeSelector).not($parentTitles);
|
268
|
+
$openTitles = $openTitles.not($nestedTitles);
|
269
|
+
$openContents = $openTitles.next($content);
|
270
|
+
}
|
271
|
+
if( ($openTitles.length > 0) ) {
|
272
|
+
module.debug('Exclusive enabled, closing other content', $openTitles);
|
273
|
+
$openTitles
|
274
|
+
.removeClass(className.active)
|
275
|
+
;
|
276
|
+
if(settings.animateChildren) {
|
277
|
+
if($.fn.transition !== undefined && $module.transition('is supported')) {
|
278
|
+
$openContents
|
279
|
+
.children()
|
280
|
+
.transition({
|
281
|
+
animation : 'fade out',
|
282
|
+
useFailSafe : true,
|
283
|
+
debug : settings.debug,
|
284
|
+
verbose : settings.verbose,
|
285
|
+
duration : settings.duration
|
286
|
+
})
|
287
|
+
;
|
288
|
+
}
|
289
|
+
else {
|
290
|
+
$openContents
|
291
|
+
.children()
|
292
|
+
.stop()
|
293
|
+
.animate({
|
294
|
+
opacity: 0
|
295
|
+
}, settings.duration, module.resetOpacity)
|
296
|
+
;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
$openContents
|
300
|
+
.stop()
|
301
|
+
.slideUp(settings.duration , settings.easing, function() {
|
302
|
+
$(this).removeClass(className.active);
|
303
|
+
module.reset.display.call(this);
|
304
|
+
})
|
305
|
+
;
|
306
|
+
}
|
307
|
+
},
|
308
|
+
|
309
|
+
reset: {
|
310
|
+
|
311
|
+
display: function() {
|
312
|
+
module.verbose('Removing inline display from element', this);
|
313
|
+
$(this).css('display', '');
|
314
|
+
if( $(this).attr('style') === '') {
|
315
|
+
$(this)
|
316
|
+
.attr('style', '')
|
317
|
+
.removeAttr('style')
|
318
|
+
;
|
319
|
+
}
|
320
|
+
},
|
321
|
+
|
322
|
+
opacity: function() {
|
323
|
+
module.verbose('Removing inline opacity from element', this);
|
324
|
+
$(this).css('opacity', '');
|
325
|
+
if( $(this).attr('style') === '') {
|
326
|
+
$(this)
|
327
|
+
.attr('style', '')
|
328
|
+
.removeAttr('style')
|
329
|
+
;
|
330
|
+
}
|
331
|
+
},
|
332
|
+
|
333
|
+
},
|
334
|
+
|
335
|
+
setting: function(name, value) {
|
336
|
+
module.debug('Changing setting', name, value);
|
337
|
+
if( $.isPlainObject(name) ) {
|
338
|
+
$.extend(true, settings, name);
|
339
|
+
}
|
340
|
+
else if(value !== undefined) {
|
341
|
+
settings[name] = value;
|
342
|
+
}
|
343
|
+
else {
|
344
|
+
return settings[name];
|
345
|
+
}
|
346
|
+
},
|
347
|
+
internal: function(name, value) {
|
348
|
+
module.debug('Changing internal', name, value);
|
349
|
+
if(value !== undefined) {
|
350
|
+
if( $.isPlainObject(name) ) {
|
351
|
+
$.extend(true, module, name);
|
352
|
+
}
|
353
|
+
else {
|
354
|
+
module[name] = value;
|
355
|
+
}
|
356
|
+
}
|
357
|
+
else {
|
358
|
+
return module[name];
|
359
|
+
}
|
360
|
+
},
|
361
|
+
debug: function() {
|
362
|
+
if(settings.debug) {
|
363
|
+
if(settings.performance) {
|
364
|
+
module.performance.log(arguments);
|
365
|
+
}
|
366
|
+
else {
|
367
|
+
module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
368
|
+
module.debug.apply(console, arguments);
|
369
|
+
}
|
370
|
+
}
|
371
|
+
},
|
372
|
+
verbose: function() {
|
373
|
+
if(settings.verbose && settings.debug) {
|
374
|
+
if(settings.performance) {
|
375
|
+
module.performance.log(arguments);
|
376
|
+
}
|
377
|
+
else {
|
378
|
+
module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
379
|
+
module.verbose.apply(console, arguments);
|
380
|
+
}
|
381
|
+
}
|
382
|
+
},
|
383
|
+
error: function() {
|
384
|
+
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
|
385
|
+
module.error.apply(console, arguments);
|
386
|
+
},
|
387
|
+
performance: {
|
388
|
+
log: function(message) {
|
389
|
+
var
|
390
|
+
currentTime,
|
391
|
+
executionTime,
|
392
|
+
previousTime
|
393
|
+
;
|
394
|
+
if(settings.performance) {
|
395
|
+
currentTime = new Date().getTime();
|
396
|
+
previousTime = time || currentTime;
|
397
|
+
executionTime = currentTime - previousTime;
|
398
|
+
time = currentTime;
|
399
|
+
performance.push({
|
400
|
+
'Name' : message[0],
|
401
|
+
'Arguments' : [].slice.call(message, 1) || '',
|
402
|
+
'Element' : element,
|
403
|
+
'Execution Time' : executionTime
|
404
|
+
});
|
405
|
+
}
|
406
|
+
clearTimeout(module.performance.timer);
|
407
|
+
module.performance.timer = setTimeout(module.performance.display, 100);
|
408
|
+
},
|
409
|
+
display: function() {
|
410
|
+
var
|
411
|
+
title = settings.name + ':',
|
412
|
+
totalTime = 0
|
413
|
+
;
|
414
|
+
time = false;
|
415
|
+
clearTimeout(module.performance.timer);
|
416
|
+
$.each(performance, function(index, data) {
|
417
|
+
totalTime += data['Execution Time'];
|
418
|
+
});
|
419
|
+
title += ' ' + totalTime + 'ms';
|
420
|
+
if(moduleSelector) {
|
421
|
+
title += ' \'' + moduleSelector + '\'';
|
422
|
+
}
|
423
|
+
if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
|
424
|
+
console.groupCollapsed(title);
|
425
|
+
if(console.table) {
|
426
|
+
console.table(performance);
|
427
|
+
}
|
428
|
+
else {
|
429
|
+
$.each(performance, function(index, data) {
|
430
|
+
console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
|
431
|
+
});
|
432
|
+
}
|
433
|
+
console.groupEnd();
|
434
|
+
}
|
435
|
+
performance = [];
|
436
|
+
}
|
437
|
+
},
|
438
|
+
invoke: function(query, passedArguments, context) {
|
439
|
+
var
|
440
|
+
object = instance,
|
441
|
+
maxDepth,
|
442
|
+
found,
|
443
|
+
response
|
444
|
+
;
|
445
|
+
passedArguments = passedArguments || queryArguments;
|
446
|
+
context = element || context;
|
447
|
+
if(typeof query == 'string' && object !== undefined) {
|
448
|
+
query = query.split(/[\. ]/);
|
449
|
+
maxDepth = query.length - 1;
|
450
|
+
$.each(query, function(depth, value) {
|
451
|
+
var camelCaseValue = (depth != maxDepth)
|
452
|
+
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
453
|
+
: query
|
454
|
+
;
|
455
|
+
if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {
|
456
|
+
object = object[camelCaseValue];
|
457
|
+
}
|
458
|
+
else if( object[camelCaseValue] !== undefined ) {
|
459
|
+
found = object[camelCaseValue];
|
460
|
+
return false;
|
461
|
+
}
|
462
|
+
else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {
|
463
|
+
object = object[value];
|
464
|
+
}
|
465
|
+
else if( object[value] !== undefined ) {
|
466
|
+
found = object[value];
|
467
|
+
return false;
|
468
|
+
}
|
469
|
+
else {
|
470
|
+
module.error(error.method, query);
|
471
|
+
return false;
|
472
|
+
}
|
473
|
+
});
|
474
|
+
}
|
475
|
+
if ( $.isFunction( found ) ) {
|
476
|
+
response = found.apply(context, passedArguments);
|
477
|
+
}
|
478
|
+
else if(found !== undefined) {
|
479
|
+
response = found;
|
480
|
+
}
|
481
|
+
if($.isArray(returnedValue)) {
|
482
|
+
returnedValue.push(response);
|
483
|
+
}
|
484
|
+
else if(returnedValue !== undefined) {
|
485
|
+
returnedValue = [returnedValue, response];
|
486
|
+
}
|
487
|
+
else if(response !== undefined) {
|
488
|
+
returnedValue = response;
|
489
|
+
}
|
490
|
+
return found;
|
491
|
+
}
|
492
|
+
};
|
493
|
+
if(methodInvoked) {
|
494
|
+
if(instance === undefined) {
|
495
|
+
module.initialize();
|
496
|
+
}
|
497
|
+
module.invoke(query);
|
498
|
+
}
|
499
|
+
else {
|
500
|
+
if(instance !== undefined) {
|
501
|
+
module.destroy();
|
502
|
+
}
|
503
|
+
module.initialize();
|
504
|
+
}
|
505
|
+
})
|
506
|
+
;
|
507
|
+
return (returnedValue !== undefined)
|
508
|
+
? returnedValue
|
509
|
+
: this
|
510
|
+
;
|
511
|
+
};
|
512
|
+
|
513
|
+
$.fn.accordion.settings = {
|
514
|
+
|
515
|
+
name : 'Accordion',
|
516
|
+
namespace : 'accordion',
|
517
|
+
|
518
|
+
debug : false,
|
519
|
+
verbose : true,
|
520
|
+
performance : true,
|
521
|
+
|
522
|
+
exclusive : true,
|
523
|
+
collapsible : true,
|
524
|
+
closeNested : false,
|
525
|
+
animateChildren : true,
|
526
|
+
|
527
|
+
duration : 500,
|
528
|
+
easing : 'easeOutQuint',
|
529
|
+
|
530
|
+
onOpen : function(){},
|
531
|
+
onClose : function(){},
|
532
|
+
onChange : function(){},
|
533
|
+
|
534
|
+
error: {
|
535
|
+
method : 'The method you called is not defined'
|
536
|
+
},
|
537
|
+
|
538
|
+
className : {
|
539
|
+
active : 'active'
|
540
|
+
},
|
541
|
+
|
542
|
+
selector : {
|
543
|
+
accordion : '.accordion',
|
544
|
+
title : '.title',
|
545
|
+
content : '.content'
|
546
|
+
}
|
547
|
+
|
548
|
+
};
|
549
|
+
|
550
|
+
// Adds easing
|
551
|
+
$.extend( $.easing, {
|
552
|
+
easeOutQuint: function (x, t, b, c, d) {
|
553
|
+
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
554
|
+
}
|
555
|
+
});
|
556
|
+
|
557
|
+
})( jQuery, window , document );
|
558
|
+
|