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,36 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Stylish::Developer::Path do
|
4
|
+
describe "Meta Requests" do
|
5
|
+
subject { Stylish::Developer::Path.new("app/assets/javascripts/test.coffee", "meta") }
|
6
|
+
|
7
|
+
it { is_expected.to be_meta }
|
8
|
+
it { is_expected.to be_success }
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "Content Requests" do
|
12
|
+
subject { Stylish::Developer::Path.new("app/assets/javascripts/test.coffee", "content") }
|
13
|
+
it { is_expected.not_to be_meta }
|
14
|
+
it { is_expected.not_to be_not_found }
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "Responses for paths" do
|
18
|
+
let(:not_found) { Stylish::Developer::Path.new("/stylish/content/whatever") }
|
19
|
+
let(:coffeescript) { Stylish::Developer::Path.new("app/assets/javascripts/test.coffee", "meta") }
|
20
|
+
let(:scss) { Stylish::Developer::Path.new("app/assets/stylesheets/test.css.scss", "meta") }
|
21
|
+
|
22
|
+
it "should recognize requests for paths which are not found" do
|
23
|
+
expect(not_found).to be_not_found
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should recognize the file types of given requests" do
|
27
|
+
expect(coffeescript.extension).to eq(".coffee")
|
28
|
+
expect(coffeescript.content_type).to eq("application/javascript")
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should recognize the file types of given requests" do
|
32
|
+
expect(scss.extension).to eq(".scss")
|
33
|
+
expect(scss.content_type).to eq("text/css")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Stylish::Manifest do
|
4
|
+
let(:json) do
|
5
|
+
Stylish::Manifest.new(Stylish.fixtures_path.join("test-theme","manifest.json"))
|
6
|
+
end
|
7
|
+
|
8
|
+
let(:yaml) do
|
9
|
+
Stylish::Manifest.new(Stylish.fixtures_path.join("test-theme","manifest.yml"))
|
10
|
+
end
|
11
|
+
|
12
|
+
let(:manifest) { json }
|
13
|
+
|
14
|
+
it "accepts a path to a JSON file" do
|
15
|
+
expect(json.path).to be_exist
|
16
|
+
expect(json.format).to eq("json")
|
17
|
+
end
|
18
|
+
|
19
|
+
it "accepts a path to a YAML file" do
|
20
|
+
expect(yaml.path).to be_exist
|
21
|
+
expect(yaml.format).to eq("yml")
|
22
|
+
end
|
23
|
+
|
24
|
+
it "reads the manifest" do
|
25
|
+
expect(manifest.name).to eq("Stylish test theme")
|
26
|
+
expect(manifest.categories).to include("Headers","Footers","Landing Page Blocks")
|
27
|
+
end
|
28
|
+
|
29
|
+
it "has a root folder" do
|
30
|
+
expect(manifest.root).to be_exist
|
31
|
+
expect(manifest.root).to be_directory
|
32
|
+
end
|
33
|
+
|
34
|
+
it "has a templates folder" do
|
35
|
+
expect(manifest.templates).to be_directory
|
36
|
+
expect(manifest.templates).to be_exist
|
37
|
+
end
|
38
|
+
|
39
|
+
it "has a stylesheets folder" do
|
40
|
+
expect(manifest.stylesheets).to be_exist
|
41
|
+
expect(manifest.stylesheets).to be_directory
|
42
|
+
end
|
43
|
+
|
44
|
+
it "has a scripts folder" do
|
45
|
+
expect(manifest.scripts).to be_exist
|
46
|
+
expect(manifest.scripts).to be_directory
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Stylish::Library do
|
4
|
+
let(:library) do
|
5
|
+
Stylish::Library.load_from_disk(Stylish.fixtures_path, reset: true)
|
6
|
+
Stylish::Library.loaded.first
|
7
|
+
end
|
8
|
+
|
9
|
+
it "has some libraries loaded" do
|
10
|
+
needle = library
|
11
|
+
haystack = Stylish::Library.loaded
|
12
|
+
expect(haystack).to include(needle)
|
13
|
+
end
|
14
|
+
|
15
|
+
it "lists all of the packages in the library" do
|
16
|
+
expect(library.packages).not_to be_empty
|
17
|
+
expect(library.packages.first).to be_a(Stylish::Package)
|
18
|
+
end
|
19
|
+
|
20
|
+
it "has a name of the packages" do
|
21
|
+
expect(library.packages.map(&:name)).to include("Stylish test theme")
|
22
|
+
end
|
23
|
+
|
24
|
+
it "lets me find a package by name" do
|
25
|
+
expect(library.find_package("Stylish test theme")).to be_a(Stylish::Package)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "lets me find a package by slug" do
|
29
|
+
pkg = library.find_package("stylish-test-theme")
|
30
|
+
expect(pkg).to be_a(Stylish::Package)
|
31
|
+
end
|
32
|
+
|
33
|
+
it "lets me find a package by the root" do
|
34
|
+
lib = Stylish::Library.find_by_root(Stylish.fixtures_path.join('test-theme'))
|
35
|
+
expect(lib).to be_present
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Stylish::Package do
|
4
|
+
let(:library) do
|
5
|
+
Stylish::Library.load_from_disk(Stylish.fixtures_path)
|
6
|
+
Stylish::Library.loaded.first
|
7
|
+
end
|
8
|
+
|
9
|
+
let(:package) do
|
10
|
+
library.packages.first
|
11
|
+
end
|
12
|
+
|
13
|
+
it "has a manifest" do
|
14
|
+
expect(package.manifest.root).to eq(package.root)
|
15
|
+
end
|
16
|
+
|
17
|
+
it "has information about the footer components" do
|
18
|
+
end
|
19
|
+
|
20
|
+
it "has a relationship to the library" do
|
21
|
+
expect(package.library).to eq(library)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "creates the folder structure it needs for new packages" do
|
25
|
+
begin
|
26
|
+
created_package = Stylish::Package.new(name: "Created Theme", library: library)
|
27
|
+
created_package.initialize_folder_structure
|
28
|
+
|
29
|
+
expect(created_package.manifest).to be_present
|
30
|
+
expect(created_package.root).to be_exist
|
31
|
+
ensure
|
32
|
+
FileUtils.rm_rf(created_package.root) rescue nil
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Stylish::Models do
|
4
|
+
it "has a list of types" do
|
5
|
+
expect(Stylish::Models::Types).not_to be_empty
|
6
|
+
end
|
7
|
+
|
8
|
+
it "lets me lookup a model" do
|
9
|
+
expect(Stylish::Models.lookup("packages")).to eq(Stylish::Package)
|
10
|
+
expect(Stylish::Models.lookup("package")).to eq(Stylish::Package)
|
11
|
+
end
|
12
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
|
5
|
+
require 'rspec/rails'
|
6
|
+
require 'rack/test'
|
7
|
+
require 'pry'
|
8
|
+
|
9
|
+
Rails.backtrace_cleaner.remove_silencers!
|
10
|
+
|
11
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
12
|
+
|
13
|
+
module Stylish
|
14
|
+
def self.fixtures_path
|
15
|
+
Pathname(File.dirname(__FILE__)).join("fixtures")
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.test_javascript_path
|
19
|
+
Pathname(File.dirname(__FILE__)).join("dummy","app","assets","javascripts")
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
Stylish::Developer.config.library_root = Stylish.fixtures_path
|
25
|
+
|
26
|
+
RSpec.configure do |config|
|
27
|
+
config.mock_with :rspec
|
28
|
+
config.use_transactional_fixtures = true
|
29
|
+
config.infer_base_class_for_anonymous_controllers = false
|
30
|
+
config.order = "random"
|
31
|
+
|
32
|
+
config.include Rack::Test
|
33
|
+
config.include Requests::JsonHelpers, type: :request
|
34
|
+
|
35
|
+
config.after(:suite) do
|
36
|
+
`git checkout spec/fixtures spec/dummy` rescue nil
|
37
|
+
end
|
38
|
+
end
|
data/spec/test.css.scss
ADDED
data/stylish.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Stylish::VERSION
|
9
9
|
spec.authors = ["Jonathan Soeder"]
|
10
10
|
spec.email = ["jonathan.soeder@gmail.com"]
|
11
|
-
spec.description = %q{Stylish is a
|
12
|
-
spec.summary = %q{Stylish is a
|
11
|
+
spec.description = %q{Stylish is a theming toolkit based on semantic-ui}
|
12
|
+
spec.summary = %q{Stylish is a theming toolkit for building bootstrap and semantic-ui themes}
|
13
13
|
spec.homepage = "http://stylish.io"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -17,7 +17,22 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency 'hashie'
|
22
|
+
spec.add_dependency 'sprockets', '>= 2.0.0'
|
23
|
+
spec.add_dependency 'commander'
|
24
|
+
spec.add_dependency 'github-fs'
|
25
|
+
spec.add_dependency 'virtus', '>= 1.0.3'
|
26
|
+
spec.add_dependency 'inflecto'
|
20
27
|
|
21
28
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
29
|
spec.add_development_dependency "rake"
|
30
|
+
spec.add_development_dependency "pry"
|
31
|
+
spec.add_development_dependency "pry-nav"
|
32
|
+
spec.add_development_dependency "rack-test"
|
33
|
+
spec.add_development_dependency 'rails', '~> 4.1.1'
|
34
|
+
spec.add_development_dependency 'rspec-rails'
|
35
|
+
spec.add_development_dependency 'sqlite3'
|
36
|
+
spec.add_development_dependency 'sass-rails', '>= 4.0.1'
|
37
|
+
spec.add_development_dependency 'coffee-rails', '>= 4.0.0'
|
23
38
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"name": "architects-toolkit",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"description": "\"The JS Environment for the Architects App\"",
|
5
|
+
"main": "index.html",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"webpack": "latest",
|
11
|
+
"coffee-loader": "latest",
|
12
|
+
"expose-loader": "latest",
|
13
|
+
"cjsx-loader": "latest",
|
14
|
+
"sass-loader": "latest",
|
15
|
+
"style-loader": "latest",
|
16
|
+
"css-loader": "latest",
|
17
|
+
"file-loader": "latest",
|
18
|
+
"underscore": "latest",
|
19
|
+
"underscore.string": "latest",
|
20
|
+
"bower": "latest",
|
21
|
+
"react": "latest",
|
22
|
+
"react-treeview": "latest",
|
23
|
+
"react-draggable": "latest",
|
24
|
+
"react-router-component": "latest",
|
25
|
+
"react-tools": "latest"
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
@@ -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
|
+
|