luca 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +49 -0
- data/Gemfile +8 -1
- data/Gemfile.lock +97 -53
- data/Guardfile +3 -25
- data/README.md +5 -16
- data/ROADMAP +15 -9
- data/Rakefile +24 -75
- data/app.rb +10 -42
- data/app/assets/javascripts/luca/basic.coffee +1 -1
- data/app/assets/javascripts/luca/components/application.coffee +187 -104
- data/app/assets/javascripts/luca/components/collection_view.coffee +115 -51
- data/app/assets/javascripts/luca/components/controller.coffee +87 -10
- data/app/assets/javascripts/luca/components/fields/base.coffee +74 -13
- data/app/assets/javascripts/luca/components/fields/button_field.coffee +60 -13
- data/app/assets/javascripts/luca/components/fields/checkbox_array.coffee +12 -7
- data/app/assets/javascripts/luca/components/fields/select_field.coffee +82 -23
- data/app/assets/javascripts/luca/components/fields/text_area_field.coffee +25 -10
- data/app/assets/javascripts/luca/components/fields/text_field.coffee +9 -3
- data/app/assets/javascripts/luca/components/form_view.coffee +105 -33
- data/app/assets/javascripts/luca/components/grid_layout_view.coffee +42 -0
- data/app/assets/javascripts/luca/components/index.coffee +6 -0
- data/app/assets/javascripts/luca/components/nav_bar.coffee +60 -6
- data/app/assets/javascripts/luca/components/page.coffee +70 -0
- data/app/assets/javascripts/luca/components/simple_collection_view.coffee +10 -0
- data/app/assets/javascripts/luca/components/table_view.coffee +7 -3
- data/app/assets/javascripts/luca/components/table_view_scrollable.coffee +23 -0
- data/app/assets/javascripts/luca/concerns/collection_event_bindings.coffee +4 -1
- data/app/assets/javascripts/luca/concerns/development_tool_helpers.coffee +23 -14
- data/app/assets/javascripts/luca/concerns/dom_helpers.coffee +2 -2
- data/app/assets/javascripts/luca/concerns/filterable.coffee +8 -11
- data/app/assets/javascripts/luca/concerns/form_model_bindings.coffee +20 -0
- data/app/assets/javascripts/luca/concerns/modal_view.coffee +40 -15
- data/app/assets/javascripts/luca/concerns/query_collection_bindings.coffee +7 -1
- data/app/assets/javascripts/luca/concerns/state_model.coffee +40 -26
- data/app/assets/javascripts/luca/concerns/templating.coffee +3 -1
- data/app/assets/javascripts/luca/config.coffee +5 -0
- data/app/assets/javascripts/luca/containers/card_view.coffee +87 -52
- data/app/assets/javascripts/luca/containers/container.coffee +305 -108
- data/app/assets/javascripts/luca/containers/modal_view.coffee +9 -9
- data/app/assets/javascripts/luca/containers/page_controller.coffee +25 -0
- data/app/assets/javascripts/luca/containers/panel_toolbar.coffee +5 -6
- data/app/assets/javascripts/luca/containers/tab_view.coffee +19 -10
- data/app/assets/javascripts/luca/containers/viewport.coffee +12 -16
- data/app/assets/javascripts/luca/core/collection.coffee +19 -5
- data/app/assets/javascripts/luca/core/events.coffee +5 -5
- data/app/assets/javascripts/luca/core/model.coffee +1 -1
- data/app/assets/javascripts/luca/core/panel.coffee +18 -6
- data/app/assets/javascripts/luca/core/registry/component_definition.coffee +2 -1
- data/app/assets/javascripts/luca/core/registry/meta_data.coffee +2 -0
- data/app/assets/javascripts/luca/core/registry/registry.coffee +14 -11
- data/app/assets/javascripts/luca/core/templates.coffee +5 -1
- data/app/assets/javascripts/luca/core/view.coffee +200 -47
- data/app/assets/javascripts/luca/dependencies.coffee +2 -0
- data/app/assets/javascripts/luca/development/code_sync_manager.coffee +173 -0
- data/app/assets/javascripts/luca/development/component.coffee +76 -0
- data/app/assets/javascripts/luca/development/components.coffee +57 -0
- data/app/assets/javascripts/luca/development/console.coffee +1 -1
- data/app/assets/javascripts/luca/development/index.coffee +4 -1
- data/app/assets/javascripts/luca/framework.coffee +7 -3
- data/app/assets/javascripts/luca/index.coffee +2 -1
- data/app/assets/javascripts/luca/managers/collection_manager.coffee +2 -3
- data/app/assets/javascripts/luca/managers/index.coffee +1 -1
- data/app/assets/javascripts/luca/managers/socket_manager.coffee +31 -8
- data/app/assets/javascripts/luca/templates/components/nav_bar.jst.ejs +16 -1
- data/app/assets/javascripts/luca/templates/containers/tab_view.jst.ejs +1 -1
- data/app/assets/javascripts/luca/util/index.coffee +1 -0
- data/app/assets/javascripts/luca/util/keybindings.coffee +24 -0
- data/app/assets/javascripts/luca/util/logging.coffee +15 -0
- data/app/assets/javascripts/luca/util/luca.coffee +9 -1
- data/app/assets/stylesheets/luca/components/table_view.scss +85 -0
- data/app/assets/stylesheets/luca/components/viewport.scss +0 -4
- data/app/assets/stylesheets/luca/containers/container.scss +8 -0
- data/app/assets/stylesheets/luca/index.css +2 -2
- data/bin/luca +14 -0
- data/config.ru +1 -2
- data/docs/framework.json +1 -0
- data/docs/luca-framework-documentation.js +1 -0
- data/docs/{application.md → old/application.md} +0 -0
- data/docs/{collection.md → old/collection.md} +0 -0
- data/docs/{collection_manager.md → old/collection_manager.md} +0 -0
- data/docs/{container_philosophy.md → old/container_philosophy.md} +0 -0
- data/docs/{event_binding_helpers.md → old/event_binding_helpers.md} +0 -0
- data/docs/{method_caching_and_computed_properties.md → old/method_caching_and_computed_properties.md} +0 -0
- data/docs/{view.md → old/view.md} +0 -0
- data/lib/generators/luca/application/templates/javascripts/dependencies.coffee +2 -5
- data/lib/guard/luca.rb +84 -0
- data/lib/luca.rb +25 -1
- data/lib/luca/asset_compiler.rb +117 -0
- data/lib/luca/cli.rb +68 -0
- data/lib/luca/cli/generate.rb +37 -0
- data/lib/luca/cli/server.rb +20 -0
- data/lib/luca/cli/sync.rb +40 -0
- data/lib/luca/cli/watch.rb +16 -0
- data/lib/luca/collection.rb +64 -0
- data/lib/luca/collection/endpoint.rb +38 -0
- data/lib/luca/collection/file_backend.rb +121 -0
- data/lib/luca/collection/redis_backend.rb +153 -0
- data/lib/luca/compiled_asset.rb +61 -0
- data/lib/luca/component_definition.rb +356 -0
- data/lib/luca/luca_application.rb +258 -0
- data/lib/luca/project.rb +73 -0
- data/lib/luca/project_harness.rb +96 -0
- data/lib/luca/rails.rb +5 -3
- data/lib/luca/rails/engine.rb +8 -0
- data/lib/luca/rails/version.rb +1 -2
- data/lib/luca/server.rb +7 -0
- data/lib/luca/stylesheet.rb +35 -0
- data/lib/luca/template.rb +2 -0
- data/lib/luca/template_asset.rb +64 -0
- data/lib/luca/version.rb +3 -0
- data/lib/luca/watcher.rb +72 -0
- data/lib/railties/luca/tasks.rake +7 -0
- data/site/.bundle/config +2 -0
- data/site/.gitignore +5 -0
- data/site/.rvmrc +1 -0
- data/site/CHANGELOG.md +41 -0
- data/site/DOCS.md +41 -0
- data/site/Gemfile +8 -0
- data/site/Gemfile.lock +134 -0
- data/site/LICENSE.md +19 -0
- data/site/config.rb +84 -0
- data/site/helpers/site_helpers.rb +20 -0
- data/site/html5bp-docs/README.md +38 -0
- data/site/html5bp-docs/contribute.md +104 -0
- data/site/html5bp-docs/crossdomain.md +21 -0
- data/site/html5bp-docs/css.md +135 -0
- data/site/html5bp-docs/extend.md +507 -0
- data/site/html5bp-docs/faq.md +77 -0
- data/site/html5bp-docs/htaccess.md +323 -0
- data/site/html5bp-docs/html.md +170 -0
- data/site/html5bp-docs/js.md +31 -0
- data/site/html5bp-docs/misc.md +25 -0
- data/site/html5bp-docs/usage.md +109 -0
- data/site/readme.md +47 -0
- data/site/source/.htaccess +540 -0
- data/site/source/404.html +157 -0
- data/site/source/app/assets/javascripts/dependencies.js.coffee +6 -0
- data/site/source/app/assets/javascripts/docs-docs.js +1 -0
- data/site/source/app/assets/javascripts/docs/application.coffee +64 -0
- data/site/source/app/assets/javascripts/docs/collections/docs_documentation.coffee +17 -0
- data/site/source/app/assets/javascripts/docs/collections/github_repositories.coffee +7 -0
- data/site/source/app/assets/javascripts/docs/collections/index.coffee +1 -0
- data/site/source/app/assets/javascripts/docs/collections/luca_documentation.coffee +17 -0
- data/site/source/app/assets/javascripts/docs/collections/public_gists.coffee +4 -0
- data/site/source/app/assets/javascripts/docs/config.coffee +5 -0
- data/site/source/app/assets/javascripts/docs/index.coffee +12 -0
- data/site/source/app/assets/javascripts/docs/lib/router.coffee +3 -0
- data/{spec/components/application_spec.coffee → site/source/app/assets/javascripts/docs/lib/util.coffee} +0 -0
- data/site/source/app/assets/javascripts/docs/models/component.coffee +99 -0
- data/site/source/app/assets/javascripts/docs/models/github_repository.coffee +3 -0
- data/site/source/app/assets/javascripts/docs/models/index.coffee +1 -0
- data/site/source/app/assets/javascripts/docs/templates/component_documentation.jst.ejs +55 -0
- data/site/source/app/assets/javascripts/docs/templates/examples_browser/overview.jst.ejs +4 -0
- data/site/source/app/assets/javascripts/docs/templates/examples_browser/selector.jst.ejs +11 -0
- data/site/source/app/assets/javascripts/docs/templates/github_repository.jst.ejs +4 -0
- data/site/source/app/assets/javascripts/docs/templates/layouts/main.jst.ejs +4 -0
- data/site/source/app/assets/javascripts/docs/templates/left_navigation.jst.ejs +5 -0
- data/site/source/app/assets/javascripts/docs/templates/pages/getting_started.jst.ejs +78 -0
- data/site/source/app/assets/javascripts/docs/templates/pages/home.jst.ejs +57 -0
- data/site/source/app/assets/javascripts/docs/views/components/code_editor.coffee +45 -0
- data/{spec/components/collection_loader_view_spec.coffee → site/source/app/assets/javascripts/docs/views/components/code_editor/index.coffee} +0 -0
- data/site/source/app/assets/javascripts/docs/views/components/component_documentation.coffee +72 -0
- data/site/source/app/assets/javascripts/docs/views/index.coffee +3 -0
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source.coffee +46 -0
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source/details.coffee +37 -0
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source/list.coffee +31 -0
- data/site/source/app/assets/javascripts/docs/views/pages/component_editor.coffee +10 -0
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser.coffee +102 -0
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/docs.coffee +12 -0
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/source.coffee +13 -0
- data/site/source/app/assets/javascripts/docs/views/pages/home.coffee +10 -0
- data/site/source/app/assets/javascripts/docs/views/views/api_browser/index.coffee +43 -0
- data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/grid_layout_view_example.coffee +14 -0
- data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/table_view_example.coffee +39 -0
- data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/basic_example.coffee +38 -0
- data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/complex_layout.coffee +110 -0
- data/site/source/app/assets/javascripts/docs/views/views/top_navigation.coffee +6 -0
- data/site/source/app/assets/javascripts/luca-docs.js +1 -0
- data/site/source/app/assets/javascripts/luca-framework-documentation.js +1 -0
- data/site/source/app/assets/javascripts/site.js.coffee +4 -0
- data/site/source/app/assets/javascripts/vendor/codemirror.js +4786 -0
- data/site/source/app/assets/javascripts/vendor/coffeescript.js +346 -0
- data/site/source/app/assets/javascripts/vendor/css.js +465 -0
- data/site/source/app/assets/javascripts/vendor/htmlmixed.js +84 -0
- data/site/source/app/assets/javascripts/vendor/javascript.js +422 -0
- data/site/source/app/assets/javascripts/vendor/js-beautify.js +1353 -0
- data/site/source/app/assets/javascripts/vendor/modernizr-2.6.1.min.js +4 -0
- data/site/source/app/assets/javascripts/vendor/vim.js +2511 -0
- data/site/source/app/assets/stylesheets/docs/api-browser.css.scss +5 -0
- data/site/source/app/assets/stylesheets/docs/application.css.scss +35 -0
- data/site/source/app/assets/stylesheets/docs/browse-source.css.scss +5 -0
- data/site/source/app/assets/stylesheets/docs/scrollable-table.css.scss +5 -0
- data/site/source/app/assets/stylesheets/site.css.scss +2 -0
- data/site/source/app/assets/stylesheets/vendor/codemirror.css +240 -0
- data/site/source/app/assets/stylesheets/vendor/prettify-tomorrow-night-bright.css +160 -0
- data/site/source/app/assets/stylesheets/vendor/twilight.css +26 -0
- data/site/source/crossdomain.xml +15 -0
- data/site/source/documentation.html.haml +1 -0
- data/site/source/favicon_base.png +0 -0
- data/site/source/humans.txt +15 -0
- data/site/source/images/background.png +0 -0
- data/site/source/images/middleman.png +0 -0
- data/site/source/index.html.haml +1 -0
- data/site/source/layouts/layout.haml +55 -0
- data/site/source/readme.md +63 -0
- data/site/source/robots.txt +3 -0
- data/spec/{components/grid_view_spec.coffee → javascripts/components/application_spec.coffee} +0 -0
- data/spec/{components/pagination_control_spec.coffee → javascripts/components/collection_loader_view_spec.coffee} +0 -0
- data/spec/{components → javascripts/components}/collection_view_spec.coffee +1 -1
- data/spec/{components → javascripts/components}/controller_spec.coffee +0 -0
- data/spec/{components → javascripts/components}/fields/checkbox_array_spec.coffee +0 -0
- data/spec/javascripts/components/form_view_spec.coffee +162 -0
- data/spec/{components/record_manager_spec.coffee → javascripts/components/grid_view_spec.coffee} +0 -0
- data/spec/{components → javascripts/components}/multi_collection_view_spec.coffee +0 -0
- data/spec/{components/template_spec.coffee → javascripts/components/pagination_control_spec.coffee} +0 -0
- data/spec/{concerns/paginatable_spec.coffee → javascripts/components/record_manager_spec.coffee} +0 -0
- data/spec/{components → javascripts/components}/table_view_spec.coffee +0 -0
- data/spec/{containers/modal_view_spec.coffee → javascripts/components/template_spec.coffee} +0 -0
- data/spec/{concerns → javascripts/concerns}/collection_event_bindings_spec.coffee +0 -0
- data/spec/{concerns → javascripts/concerns}/dom_helpers_spec.coffee +0 -0
- data/spec/{concerns → javascripts/concerns}/filterable_spec.coffee +0 -0
- data/spec/{concerns → javascripts/concerns}/model_presenter_spec.coffee +0 -0
- data/spec/{containers/panel_view_spec.coffee → javascripts/concerns/paginatable_spec.coffee} +0 -0
- data/spec/{concerns → javascripts/concerns}/state_model_spec.coffee +5 -0
- data/spec/javascripts/containers/card_view_spec.coffee +108 -0
- data/spec/{containers/tab_view_spec.coffee → javascripts/containers/modal_view_spec.coffee} +0 -0
- data/spec/{containers/viewport_spec.coffee → javascripts/containers/panel_view_spec.coffee} +0 -0
- data/spec/{core/observer_spec.coffee → javascripts/containers/tab_view_spec.coffee} +0 -0
- data/spec/{managers/socket_manager_spec.coffee → javascripts/containers/viewport_spec.coffee} +0 -0
- data/spec/{core → javascripts/core}/collection_spec.coffee +1 -1
- data/spec/{core → javascripts/core}/concerns_spec.coffee +0 -0
- data/spec/{core → javascripts/core}/container_spec.coffee +0 -0
- data/spec/{core → javascripts/core}/define_spec.coffee +0 -0
- data/spec/{core → javascripts/core}/events_spec.coffee +0 -0
- data/spec/{core → javascripts/core}/field_spec.coffee +0 -0
- data/spec/{core → javascripts/core}/framework_spec.coffee +0 -0
- data/spec/{core → javascripts/core}/model_spec.coffee +0 -0
- data/spec/javascripts/core/observer_spec.coffee +0 -0
- data/spec/{core → javascripts/core}/util_spec.coffee +0 -0
- data/spec/{core → javascripts/core}/view_spec.coffee +51 -39
- data/spec/{dependencies → javascripts/dependencies}/index.coffee +0 -0
- data/spec/{dependencies → javascripts/dependencies}/jasmine-html.js +0 -0
- data/spec/{dependencies → javascripts/dependencies}/jasmine.js +0 -0
- data/spec/{dependencies → javascripts/dependencies}/sinon.js +0 -0
- data/spec/{helper.coffee → javascripts/helper.coffee} +0 -0
- data/spec/{managers → javascripts/managers}/collection_manager_spec.coffee +0 -0
- data/spec/javascripts/managers/socket_manager_spec.coffee +0 -0
- data/spec/lib/component_definition_spec.rb +63 -0
- data/spec/lib/input_compiler_spec.rb +9 -0
- data/spec/lib/luca_application_spec.rb +30 -0
- data/spec/support/fixtures/application.coffee +45 -0
- data/spec/support/fixtures/component.coffee +34 -0
- data/tutorials/component-definitions.md +0 -0
- data/tutorials/component-definitions/01_intro.md +0 -0
- data/tutorials/component-driven-design.md +140 -0
- data/tutorials/structure-of-a-project.md +63 -0
- data/vendor/assets/javascripts/backbone-min.js +37 -33
- data/vendor/assets/javascripts/backbone-query.min.js +1 -1
- data/vendor/assets/javascripts/hogan.js +707 -0
- data/vendor/assets/javascripts/jquery.js +5 -4
- data/vendor/assets/javascripts/keymaster.min.js +4 -0
- data/vendor/assets/javascripts/luca-dependencies.min.js +8 -0
- data/vendor/assets/javascripts/luca-development.min.js +1 -0
- data/vendor/assets/javascripts/luca-spec.js +6 -6
- data/vendor/assets/javascripts/luca-ui.js +7386 -0
- data/vendor/assets/javascripts/luca-ui.min.js +5 -0
- data/vendor/assets/javascripts/luca.full.min.js +12 -0
- data/vendor/assets/javascripts/luca.min.js +5 -0
- data/vendor/assets/javascripts/underscore-min.js +1 -5
- data/vendor/assets/javascripts/underscore-string.min.js +1 -1
- data/vendor/assets/stylesheets/luca-components.css +202 -0
- data/vendor/assets/stylesheets/luca-development.css +23 -0
- data/vendor/assets/stylesheets/luca-ui.css +198 -0
- metadata +324 -94
- data/app/assets/javascripts/luca/components/base_toolbar.coffee +0 -17
- data/app/assets/javascripts/luca/components/form_button_toolbar.coffee +0 -28
- data/app/assets/javascripts/luca/components/grid_view.coffee +0 -269
- data/app/assets/javascripts/luca/components/page_controller.coffee +0 -7
- data/app/assets/javascripts/luca/components/template.coffee +0 -5
- data/app/assets/javascripts/luca/components/toolbar_dialog.coffee +0 -25
- data/lib/luca/code_browser.rb +0 -55
- data/lib/luca/command_line.rb +0 -69
- data/lib/luca/component_documentation.rb +0 -72
- data/site/assets/bootstrap.min.js +0 -7
- data/site/assets/dependencies.js +0 -94
- data/site/assets/glyphicons-halflings-white.png +0 -0
- data/site/assets/glyphicons-halflings.png +0 -0
- data/site/assets/luca-ui-bootstrap.css +0 -1331
- data/site/assets/luca-ui-bootstrap.js +0 -9
- data/site/assets/luca-ui-development-tools.css +0 -234
- data/site/assets/luca-ui-development-tools.js +0 -18561
- data/site/assets/luca-ui-development-tools.min.js +0 -15
- data/site/assets/luca-ui-full.min.js +0 -8
- data/site/assets/luca-ui.min.js +0 -4
- data/site/assets/sandbox.css +0 -62
- data/site/assets/sandbox.js +0 -469
- data/site/docs/application.html +0 -41
- data/site/docs/caching.html +0 -43
- data/site/docs/collection.html +0 -75
- data/site/docs/collection_manager.html +0 -71
- data/site/docs/containers.html +0 -118
- data/site/docs/events.html +0 -153
- data/site/docs/view.html +0 -128
- data/site/img/glyphicons-halflings-white.png +0 -0
- data/site/img/glyphicons-halflings.png +0 -0
- data/site/index.html +0 -20
- data/site/source-map.js +0 -1
- data/spec/components/form_view_spec.coffee +0 -84
- data/spec/containers/card_view_spec.coffee +0 -50
- data/spec/luca-spec.coffee +0 -9
@@ -0,0 +1,35 @@
|
|
1
|
+
.docs-application > .luca-controller {
|
2
|
+
padding-top: 20px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.docs-browse-source {
|
6
|
+
line-height: 2;
|
7
|
+
}
|
8
|
+
|
9
|
+
.docs-examples-browser {
|
10
|
+
.panel-selector {
|
11
|
+
padding-top: 5px;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.hero-unit {
|
16
|
+
ul.links {
|
17
|
+
margin-left: 0px;
|
18
|
+
}
|
19
|
+
h1 {
|
20
|
+
margin-bottom: 30px;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.docs-home {
|
25
|
+
.hero-unit {
|
26
|
+
.links {
|
27
|
+
margin-top: 25px;
|
28
|
+
}
|
29
|
+
.links li {
|
30
|
+
list-style-type:none;
|
31
|
+
display: inline;
|
32
|
+
padding-right: 25px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,240 @@
|
|
1
|
+
/* BASICS */
|
2
|
+
|
3
|
+
.CodeMirror {
|
4
|
+
/* Set height, width, borders, and global font properties here */
|
5
|
+
font-family: monospace;
|
6
|
+
height: 300px;
|
7
|
+
}
|
8
|
+
.CodeMirror-scroll {
|
9
|
+
/* Set scrolling behaviour here */
|
10
|
+
overflow: auto;
|
11
|
+
}
|
12
|
+
|
13
|
+
/* PADDING */
|
14
|
+
|
15
|
+
.CodeMirror-lines {
|
16
|
+
padding: 4px 0; /* Vertical padding around content */
|
17
|
+
}
|
18
|
+
.CodeMirror pre {
|
19
|
+
padding: 0 4px; /* Horizontal padding of content */
|
20
|
+
}
|
21
|
+
|
22
|
+
.CodeMirror-scrollbar-filler {
|
23
|
+
background-color: white; /* The little square between H and V scrollbars */
|
24
|
+
}
|
25
|
+
|
26
|
+
/* GUTTER */
|
27
|
+
|
28
|
+
.CodeMirror-gutters {
|
29
|
+
border-right: 1px solid #ddd;
|
30
|
+
background-color: #f7f7f7;
|
31
|
+
}
|
32
|
+
.CodeMirror-linenumbers {}
|
33
|
+
.CodeMirror-linenumber {
|
34
|
+
padding: 0 3px 0 5px;
|
35
|
+
min-width: 20px;
|
36
|
+
text-align: right;
|
37
|
+
color: #999;
|
38
|
+
}
|
39
|
+
|
40
|
+
/* CURSOR */
|
41
|
+
|
42
|
+
.CodeMirror div.CodeMirror-cursor {
|
43
|
+
border-left: 1px solid black;
|
44
|
+
}
|
45
|
+
/* Shown when moving in bi-directional text */
|
46
|
+
.CodeMirror div.CodeMirror-secondarycursor {
|
47
|
+
border-left: 1px solid silver;
|
48
|
+
}
|
49
|
+
.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
|
50
|
+
width: auto;
|
51
|
+
border: 0;
|
52
|
+
background: transparent;
|
53
|
+
background: rgba(0, 200, 0, .4);
|
54
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6600c800, endColorstr=#4c00c800);
|
55
|
+
}
|
56
|
+
/* Kludge to turn off filter in ie9+, which also accepts rgba */
|
57
|
+
.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor:not(#nonsense_id) {
|
58
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
59
|
+
}
|
60
|
+
/* Can style cursor different in overwrite (non-insert) mode */
|
61
|
+
.CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {}
|
62
|
+
|
63
|
+
/* DEFAULT THEME */
|
64
|
+
|
65
|
+
.cm-s-default .cm-keyword {color: #708;}
|
66
|
+
.cm-s-default .cm-atom {color: #219;}
|
67
|
+
.cm-s-default .cm-number {color: #164;}
|
68
|
+
.cm-s-default .cm-def {color: #00f;}
|
69
|
+
.cm-s-default .cm-variable {color: black;}
|
70
|
+
.cm-s-default .cm-variable-2 {color: #05a;}
|
71
|
+
.cm-s-default .cm-variable-3 {color: #085;}
|
72
|
+
.cm-s-default .cm-property {color: black;}
|
73
|
+
.cm-s-default .cm-operator {color: black;}
|
74
|
+
.cm-s-default .cm-comment {color: #a50;}
|
75
|
+
.cm-s-default .cm-string {color: #a11;}
|
76
|
+
.cm-s-default .cm-string-2 {color: #f50;}
|
77
|
+
.cm-s-default .cm-meta {color: #555;}
|
78
|
+
.cm-s-default .cm-error {color: #f00;}
|
79
|
+
.cm-s-default .cm-qualifier {color: #555;}
|
80
|
+
.cm-s-default .cm-builtin {color: #30a;}
|
81
|
+
.cm-s-default .cm-bracket {color: #997;}
|
82
|
+
.cm-s-default .cm-tag {color: #170;}
|
83
|
+
.cm-s-default .cm-attribute {color: #00c;}
|
84
|
+
.cm-s-default .cm-header {color: blue;}
|
85
|
+
.cm-s-default .cm-quote {color: #090;}
|
86
|
+
.cm-s-default .cm-hr {color: #999;}
|
87
|
+
.cm-s-default .cm-link {color: #00c;}
|
88
|
+
|
89
|
+
.cm-negative {color: #d44;}
|
90
|
+
.cm-positive {color: #292;}
|
91
|
+
.cm-header, .cm-strong {font-weight: bold;}
|
92
|
+
.cm-em {font-style: italic;}
|
93
|
+
.cm-emstrong {font-style: italic; font-weight: bold;}
|
94
|
+
.cm-link {text-decoration: underline;}
|
95
|
+
|
96
|
+
.cm-invalidchar {color: #f00;}
|
97
|
+
|
98
|
+
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
99
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
100
|
+
|
101
|
+
/* STOP */
|
102
|
+
|
103
|
+
/* The rest of this file contains styles related to the mechanics of
|
104
|
+
the editor. You probably shouldn't touch them. */
|
105
|
+
|
106
|
+
.CodeMirror {
|
107
|
+
line-height: 1;
|
108
|
+
position: relative;
|
109
|
+
overflow: hidden;
|
110
|
+
}
|
111
|
+
|
112
|
+
.CodeMirror-scroll {
|
113
|
+
/* 30px is the magic margin used to hide the element's real scrollbars */
|
114
|
+
/* See overflow: hidden in .CodeMirror, and the paddings in .CodeMirror-sizer */
|
115
|
+
margin-bottom: -30px; margin-right: -30px;
|
116
|
+
padding-bottom: 30px; padding-right: 30px;
|
117
|
+
height: 100%;
|
118
|
+
outline: none; /* Prevent dragging from highlighting the element */
|
119
|
+
position: relative;
|
120
|
+
}
|
121
|
+
.CodeMirror-sizer {
|
122
|
+
position: relative;
|
123
|
+
}
|
124
|
+
|
125
|
+
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
126
|
+
before actuall scrolling happens, thus preventing shaking and
|
127
|
+
flickering artifacts. */
|
128
|
+
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler {
|
129
|
+
position: absolute;
|
130
|
+
z-index: 6;
|
131
|
+
display: none;
|
132
|
+
}
|
133
|
+
.CodeMirror-vscrollbar {
|
134
|
+
right: 0; top: 0;
|
135
|
+
overflow-x: hidden;
|
136
|
+
overflow-y: scroll;
|
137
|
+
}
|
138
|
+
.CodeMirror-hscrollbar {
|
139
|
+
bottom: 0; left: 0;
|
140
|
+
overflow-y: hidden;
|
141
|
+
overflow-x: scroll;
|
142
|
+
}
|
143
|
+
.CodeMirror-scrollbar-filler {
|
144
|
+
right: 0; bottom: 0;
|
145
|
+
z-index: 6;
|
146
|
+
}
|
147
|
+
|
148
|
+
.CodeMirror-gutters {
|
149
|
+
position: absolute; left: 0; top: 0;
|
150
|
+
height: 100%;
|
151
|
+
z-index: 3;
|
152
|
+
}
|
153
|
+
.CodeMirror-gutter {
|
154
|
+
height: 100%;
|
155
|
+
display: inline-block;
|
156
|
+
/* Hack to make IE7 behave */
|
157
|
+
*zoom:1;
|
158
|
+
*display:inline;
|
159
|
+
}
|
160
|
+
.CodeMirror-gutter-elt {
|
161
|
+
position: absolute;
|
162
|
+
cursor: default;
|
163
|
+
z-index: 4;
|
164
|
+
}
|
165
|
+
|
166
|
+
.CodeMirror-lines {
|
167
|
+
cursor: text;
|
168
|
+
}
|
169
|
+
.CodeMirror pre {
|
170
|
+
/* Reset some styles that the rest of the page might have set */
|
171
|
+
-moz-border-radius: 0; -webkit-border-radius: 0; -o-border-radius: 0; border-radius: 0;
|
172
|
+
border-width: 0;
|
173
|
+
background: transparent;
|
174
|
+
font-family: inherit;
|
175
|
+
font-size: inherit;
|
176
|
+
margin: 0;
|
177
|
+
white-space: pre;
|
178
|
+
word-wrap: normal;
|
179
|
+
line-height: inherit;
|
180
|
+
color: inherit;
|
181
|
+
z-index: 2;
|
182
|
+
position: relative;
|
183
|
+
overflow: visible;
|
184
|
+
}
|
185
|
+
.CodeMirror-wrap pre {
|
186
|
+
word-wrap: break-word;
|
187
|
+
white-space: pre-wrap;
|
188
|
+
word-break: normal;
|
189
|
+
}
|
190
|
+
.CodeMirror-linebackground {
|
191
|
+
position: absolute;
|
192
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
193
|
+
z-index: 0;
|
194
|
+
}
|
195
|
+
|
196
|
+
.CodeMirror-linewidget {
|
197
|
+
position: relative;
|
198
|
+
z-index: 2;
|
199
|
+
overflow: auto;
|
200
|
+
}
|
201
|
+
|
202
|
+
.CodeMirror-wrap .CodeMirror-scroll {
|
203
|
+
overflow-x: hidden;
|
204
|
+
}
|
205
|
+
|
206
|
+
.CodeMirror-measure {
|
207
|
+
position: absolute;
|
208
|
+
width: 100%; height: 0px;
|
209
|
+
overflow: hidden;
|
210
|
+
visibility: hidden;
|
211
|
+
}
|
212
|
+
.CodeMirror-measure pre { position: static; }
|
213
|
+
|
214
|
+
.CodeMirror div.CodeMirror-cursor {
|
215
|
+
position: absolute;
|
216
|
+
visibility: hidden;
|
217
|
+
border-right: none;
|
218
|
+
width: 0;
|
219
|
+
}
|
220
|
+
.CodeMirror-focused div.CodeMirror-cursor {
|
221
|
+
visibility: visible;
|
222
|
+
}
|
223
|
+
|
224
|
+
.CodeMirror-selected { background: #d9d9d9; }
|
225
|
+
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
226
|
+
|
227
|
+
.cm-searching {
|
228
|
+
background: #ffa;
|
229
|
+
background: rgba(255, 255, 0, .4);
|
230
|
+
}
|
231
|
+
|
232
|
+
/* IE7 hack to prevent it from returning funny offsetTops on the spans */
|
233
|
+
.CodeMirror span { *vertical-align: text-bottom; }
|
234
|
+
|
235
|
+
@media print {
|
236
|
+
/* Hide the cursor when printing */
|
237
|
+
.CodeMirror div.CodeMirror-cursor {
|
238
|
+
visibility: hidden;
|
239
|
+
}
|
240
|
+
}
|
@@ -0,0 +1,160 @@
|
|
1
|
+
/* Tomorrow Night Bright Theme */
|
2
|
+
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
3
|
+
/* Pretty printing styles. Used with prettify.js. */
|
4
|
+
/* SPAN elements with the classes below are added by prettyprint. */
|
5
|
+
/* plain text */
|
6
|
+
.pln {
|
7
|
+
color: #eaeaea;
|
8
|
+
}
|
9
|
+
|
10
|
+
@media screen {
|
11
|
+
/* string content */
|
12
|
+
.str {
|
13
|
+
color: #b9ca4a;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* a keyword */
|
17
|
+
.kwd {
|
18
|
+
color: #c397d8;
|
19
|
+
}
|
20
|
+
|
21
|
+
/* a comment */
|
22
|
+
.com {
|
23
|
+
color: #969896;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* a type name */
|
27
|
+
.typ {
|
28
|
+
color: #7aa6da;
|
29
|
+
}
|
30
|
+
|
31
|
+
/* a literal value */
|
32
|
+
.lit {
|
33
|
+
color: #e78c45;
|
34
|
+
}
|
35
|
+
|
36
|
+
/* punctuation */
|
37
|
+
.pun {
|
38
|
+
color: #eaeaea;
|
39
|
+
}
|
40
|
+
|
41
|
+
/* lisp open bracket */
|
42
|
+
.opn {
|
43
|
+
color: #eaeaea;
|
44
|
+
}
|
45
|
+
|
46
|
+
/* lisp close bracket */
|
47
|
+
.clo {
|
48
|
+
color: #eaeaea;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* a markup tag name */
|
52
|
+
.tag {
|
53
|
+
color: #d54e53;
|
54
|
+
}
|
55
|
+
|
56
|
+
/* a markup attribute name */
|
57
|
+
.atn {
|
58
|
+
color: #e78c45;
|
59
|
+
}
|
60
|
+
|
61
|
+
/* a markup attribute value */
|
62
|
+
.atv {
|
63
|
+
color: #70c0b1;
|
64
|
+
}
|
65
|
+
|
66
|
+
/* a declaration */
|
67
|
+
.dec {
|
68
|
+
color: #e78c45;
|
69
|
+
}
|
70
|
+
|
71
|
+
/* a variable name */
|
72
|
+
.var {
|
73
|
+
color: #d54e53;
|
74
|
+
}
|
75
|
+
|
76
|
+
/* a function name */
|
77
|
+
.fun {
|
78
|
+
color: #7aa6da;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
/* Use higher contrast and text-weight for printable form. */
|
82
|
+
@media print, projection {
|
83
|
+
.str {
|
84
|
+
color: #006600;
|
85
|
+
}
|
86
|
+
|
87
|
+
.kwd {
|
88
|
+
color: #006;
|
89
|
+
font-weight: bold;
|
90
|
+
}
|
91
|
+
|
92
|
+
.com {
|
93
|
+
color: #600;
|
94
|
+
font-style: italic;
|
95
|
+
}
|
96
|
+
|
97
|
+
.typ {
|
98
|
+
color: #404;
|
99
|
+
font-weight: bold;
|
100
|
+
}
|
101
|
+
|
102
|
+
.lit {
|
103
|
+
color: #004444;
|
104
|
+
}
|
105
|
+
|
106
|
+
.pun, .opn, .clo {
|
107
|
+
color: #444400;
|
108
|
+
}
|
109
|
+
|
110
|
+
.tag {
|
111
|
+
color: #006;
|
112
|
+
font-weight: bold;
|
113
|
+
}
|
114
|
+
|
115
|
+
.atn {
|
116
|
+
color: #440044;
|
117
|
+
}
|
118
|
+
|
119
|
+
.atv {
|
120
|
+
color: #006600;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
/* Style */
|
124
|
+
pre.prettyprint {
|
125
|
+
background: black;
|
126
|
+
font-family: Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace;
|
127
|
+
font-size: 12px;
|
128
|
+
line-height: 1.5;
|
129
|
+
border: 1px solid #cccccc;
|
130
|
+
padding: 10px;
|
131
|
+
}
|
132
|
+
|
133
|
+
/* Specify class=linenums on a pre to get line numbering */
|
134
|
+
ol.linenums {
|
135
|
+
margin-top: 0;
|
136
|
+
margin-bottom: 0;
|
137
|
+
}
|
138
|
+
|
139
|
+
/* IE indents via margin-left */
|
140
|
+
li.L0,
|
141
|
+
li.L1,
|
142
|
+
li.L2,
|
143
|
+
li.L3,
|
144
|
+
li.L4,
|
145
|
+
li.L5,
|
146
|
+
li.L6,
|
147
|
+
li.L7,
|
148
|
+
li.L8,
|
149
|
+
li.L9 {
|
150
|
+
/* */
|
151
|
+
}
|
152
|
+
|
153
|
+
/* Alternate shading for lines */
|
154
|
+
li.L1,
|
155
|
+
li.L3,
|
156
|
+
li.L5,
|
157
|
+
li.L7,
|
158
|
+
li.L9 {
|
159
|
+
/* */
|
160
|
+
}
|