luca 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +5 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +77 -0
- data/Guardfile +22 -0
- data/README.md +291 -0
- data/Rakefile +28 -0
- data/app.rb +46 -0
- data/assets/images/glyphicons-halflings-white.png +0 -0
- data/assets/images/glyphicons-halflings.png +0 -0
- data/assets/javascripts/dependencies/backbone-min.js +37 -0
- data/assets/javascripts/dependencies/backbone-query.min.js +1 -0
- data/assets/javascripts/dependencies/bootstrap.min.js +1 -0
- data/assets/javascripts/dependencies/jasmine-html.js +190 -0
- data/assets/javascripts/dependencies/jasmine.js +2476 -0
- data/assets/javascripts/dependencies/jquery.js +4 -0
- data/assets/javascripts/dependencies/modal.js +698 -0
- data/assets/javascripts/dependencies/modernizr.min.js +30 -0
- data/assets/javascripts/dependencies/prettify.js +28 -0
- data/assets/javascripts/dependencies/sinon.js +3469 -0
- data/assets/javascripts/dependencies/spin-min.js +2 -0
- data/assets/javascripts/dependencies/underscore-min.js +31 -0
- data/assets/javascripts/dependencies/underscore-string.min.js +14 -0
- data/assets/javascripts/dependencies.coffee +7 -0
- data/assets/javascripts/luca-ui-base.coffee +12 -0
- data/assets/javascripts/luca-ui-spec.coffee +2 -0
- data/assets/javascripts/luca-ui.coffee +3 -0
- data/assets/javascripts/sandbox/collections/sample.coffee +0 -0
- data/assets/javascripts/sandbox/config.coffee +7 -0
- data/assets/javascripts/sandbox/sandbox.coffee +16 -0
- data/assets/javascripts/sandbox/templates/features/collection_helpers.luca +33 -0
- data/assets/javascripts/sandbox/templates/features/form_demo_code.luca +48 -0
- data/assets/javascripts/sandbox/templates/features/grid_demo_code.luca +24 -0
- data/assets/javascripts/sandbox/templates/features/introduction.luca +11 -0
- data/assets/javascripts/sandbox/templates/features/view_helpers.luca +43 -0
- data/assets/javascripts/sandbox/templates/navigation.luca +8 -0
- data/assets/javascripts/sandbox/views/form_demo.coffee +47 -0
- data/assets/javascripts/sandbox/views/grid_demo.coffee +23 -0
- data/assets/javascripts/sandbox/views/pages/collection_events_sample.coffee +1 -0
- data/assets/javascripts/sandbox/views/pages/pages_controller.coffee +28 -0
- data/assets/javascripts/sandbox.coffee +4 -0
- data/assets/javascripts/spec-dependencies.coffee +4 -0
- data/assets/stylesheets/bootstrap-responsive.min.css +3 -0
- data/assets/stylesheets/bootstrap.min.css +610 -0
- data/assets/stylesheets/jasmine.css +166 -0
- data/assets/stylesheets/luca-ui-bootstrap.css +5 -0
- data/assets/stylesheets/luca-ui-spec.css +3 -0
- data/assets/stylesheets/luca-ui.css +3 -0
- data/assets/stylesheets/prettify.css +40 -0
- data/assets/stylesheets/sandbox/sandbox.scss +4 -0
- data/assets/stylesheets/sandbox.css +3 -0
- data/config.ru +11 -0
- data/lib/luca/command_line.rb +69 -0
- data/lib/luca/rails/engine.rb +12 -0
- data/lib/luca/rails/version.rb +6 -0
- data/lib/luca/rails.rb +9 -0
- data/lib/luca/template.rb +51 -0
- data/lib/luca/test_harness.rb +106 -0
- data/lib/luca.rb +1 -0
- data/lib/sprockets/luca_template.rb +49 -0
- data/lib/templates/spec_manifest_javascripts.erb +7 -0
- data/lib/templates/spec_manifest_stylesheets.erb +11 -0
- data/luca.gemspec +26 -0
- data/public/jasmine/index.html +26 -0
- data/public/sandbox/api.js +1 -0
- data/spec/components/application_spec.coffee +0 -0
- data/spec/components/collection_loader_view_spec.coffee +0 -0
- data/spec/components/controller_spec.coffee +0 -0
- data/spec/components/form_view_spec.coffee +13 -0
- data/spec/components/grid_view_spec.coffee +0 -0
- data/spec/components/record_manager_spec.coffee +0 -0
- data/spec/components/template_spec.coffee +0 -0
- data/spec/containers/card_view_spec.coffee +1 -0
- data/spec/containers/column_view_spec.coffee +0 -0
- data/spec/containers/modal_view_spec.coffee +0 -0
- data/spec/containers/panel_view_spec.coffee +0 -0
- data/spec/containers/split_view_spec.coffee +0 -0
- data/spec/containers/tab_view_spec.coffee +0 -0
- data/spec/containers/viewport_spec.coffee +0 -0
- data/spec/core/collection_spec.coffee +215 -0
- data/spec/core/container_spec.coffee +0 -0
- data/spec/core/field_spec.coffee +0 -0
- data/spec/core/observer_spec.coffee +0 -0
- data/spec/core/view_spec.coffee +87 -0
- data/spec/framework_spec.coffee +48 -0
- data/spec/helper.coffee +120 -0
- data/spec/managers/collection_manager_spec.coffee +95 -0
- data/spec/managers/socket_manager_spec.coffee +0 -0
- data/src/components/application.coffee +83 -0
- data/src/components/base_toolbar.coffee +16 -0
- data/src/components/collection_loader_view.coffee +37 -0
- data/src/components/controller.coffee +41 -0
- data/src/components/fields/button_field.coffee +40 -0
- data/src/components/fields/checkbox_field.coffee +41 -0
- data/src/components/fields/file_upload_field.coffee +15 -0
- data/src/components/fields/hidden_field.coffee +18 -0
- data/src/components/fields/select_field.coffee +100 -0
- data/src/components/fields/text_area_field.coffee +43 -0
- data/src/components/fields/text_field.coffee +42 -0
- data/src/components/fields/type_ahead_field.coffee +10 -0
- data/src/components/form_button_toolbar.coffee +26 -0
- data/src/components/form_view.coffee +205 -0
- data/src/components/grid_view.coffee +208 -0
- data/src/components/record_manager.coffee +215 -0
- data/src/components/router.coffee +34 -0
- data/src/components/template.coffee +19 -0
- data/src/containers/card_view.coffee +89 -0
- data/src/containers/column_view.coffee +48 -0
- data/src/containers/modal_view.coffee +85 -0
- data/src/containers/panel_view.coffee +24 -0
- data/src/containers/split_view.coffee +12 -0
- data/src/containers/tab_view.coffee +77 -0
- data/src/containers/viewport.coffee +16 -0
- data/src/core/collection.coffee +319 -0
- data/src/core/container.coffee +256 -0
- data/src/core/field.coffee +68 -0
- data/src/core/observer.coffee +17 -0
- data/src/core/view.coffee +190 -0
- data/src/framework.coffee +110 -0
- data/src/index.coffee +255 -0
- data/src/managers/collection_manager.coffee +168 -0
- data/src/managers/socket_manager.coffee +54 -0
- data/src/modules/deferrable.coffee +18 -0
- data/src/modules/local_storage.coffee +50 -0
- data/src/stylesheets/base.scss +78 -0
- data/src/stylesheets/components/form_view.scss +54 -0
- data/src/stylesheets/components/grid_view.scss +111 -0
- data/src/stylesheets/components/toolbar.scss +15 -0
- data/src/stylesheets/containers/container.scss +7 -0
- data/src/stylesheets/containers/modal_view.scss +0 -0
- data/src/stylesheets/containers/tab_view.scss +33 -0
- data/src/stylesheets/normalize.scss +430 -0
- data/src/templates/components/bootstrap_form_controls.luca +7 -0
- data/src/templates/components/collection_loader_view.luca +5 -0
- data/src/templates/components/form_view.luca +15 -0
- data/src/templates/components/grid_view.luca +9 -0
- data/src/templates/components/grid_view_empty_text.luca +3 -0
- data/src/templates/containers/basic.luca +1 -0
- data/src/templates/containers/tab_selector_container.luca +8 -0
- data/src/templates/containers/tab_view.luca +1 -0
- data/src/templates/containers/toolbar_wrapper.luca +1 -0
- data/src/templates/fields/button_field.luca +2 -0
- data/src/templates/fields/button_field_link.luca +5 -0
- data/src/templates/fields/checkbox_field.luca +9 -0
- data/src/templates/fields/file_upload_field.luca +8 -0
- data/src/templates/fields/hidden_field.luca +1 -0
- data/src/templates/fields/select_field.luca +7 -0
- data/src/templates/fields/text_area_field.luca +8 -0
- data/src/templates/fields/text_field.luca +13 -0
- data/src/templates/sample/contents.luca +1 -0
- data/src/templates/sample/welcome.luca +1 -0
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/luca-spec-dependencies.js +6135 -0
- data/vendor/assets/javascripts/luca-ui-base.js +1527 -0
- data/vendor/assets/javascripts/luca-ui-spec.js +3654 -0
- data/vendor/assets/javascripts/luca-ui.js +2763 -0
- data/vendor/assets/luca-ui/base.css +85 -0
- data/vendor/assets/luca-ui/components/application.js +91 -0
- data/vendor/assets/luca-ui/components/base_toolbar.js +23 -0
- data/vendor/assets/luca-ui/components/controller.js +38 -0
- data/vendor/assets/luca-ui/components/fields/button_field.js +45 -0
- data/vendor/assets/luca-ui/components/fields/checkbox_field.js +43 -0
- data/vendor/assets/luca-ui/components/fields/file_upload_field.js +20 -0
- data/vendor/assets/luca-ui/components/fields/hidden_field.js +20 -0
- data/vendor/assets/luca-ui/components/fields/select_field.js +97 -0
- data/vendor/assets/luca-ui/components/fields/text_area_field.js +48 -0
- data/vendor/assets/luca-ui/components/fields/text_field.js +46 -0
- data/vendor/assets/luca-ui/components/fields/type_ahead_field.js +13 -0
- data/vendor/assets/luca-ui/components/form_button_toolbar.js +32 -0
- data/vendor/assets/luca-ui/components/form_view.css +32 -0
- data/vendor/assets/luca-ui/components/form_view.js +207 -0
- data/vendor/assets/luca-ui/components/grid_view.css +76 -0
- data/vendor/assets/luca-ui/components/grid_view.js +202 -0
- data/vendor/assets/luca-ui/components/record_manager.js +207 -0
- data/vendor/assets/luca-ui/components/router.js +36 -0
- data/vendor/assets/luca-ui/components/template.js +26 -0
- data/vendor/assets/luca-ui/components/toolbar.css +11 -0
- data/vendor/assets/luca-ui/containers/card_view.js +98 -0
- data/vendor/assets/luca-ui/containers/column_view.js +52 -0
- data/vendor/assets/luca-ui/containers/container.css +3 -0
- data/vendor/assets/luca-ui/containers/modal_view.css +0 -0
- data/vendor/assets/luca-ui/containers/modal_view.js +87 -0
- data/vendor/assets/luca-ui/containers/panel_view.js +34 -0
- data/vendor/assets/luca-ui/containers/split_view.js +13 -0
- data/vendor/assets/luca-ui/containers/tab_view.css +16 -0
- data/vendor/assets/luca-ui/containers/tab_view.js +80 -0
- data/vendor/assets/luca-ui/containers/viewport.js +18 -0
- data/vendor/assets/luca-ui/core/collection.js +221 -0
- data/vendor/assets/luca-ui/core/container.js +205 -0
- data/vendor/assets/luca-ui/core/field.js +59 -0
- data/vendor/assets/luca-ui/core/observer.js +42 -0
- data/vendor/assets/luca-ui/core/view.js +127 -0
- data/vendor/assets/luca-ui/framework.js +110 -0
- data/vendor/assets/luca-ui/index.js +5 -0
- data/vendor/assets/luca-ui/managers/collection_manager.js +98 -0
- data/vendor/assets/luca-ui/managers/socket_manager.js +52 -0
- data/vendor/assets/luca-ui/modules/deferrable.js +21 -0
- data/vendor/assets/luca-ui/modules/local_storage.js +81 -0
- data/vendor/assets/luca-ui/normalize.css +359 -0
- data/vendor/assets/luca-ui/stylesheets/base.css +85 -0
- data/vendor/assets/luca-ui/stylesheets/components/form_view.css +32 -0
- data/vendor/assets/luca-ui/stylesheets/components/grid_view.css +76 -0
- data/vendor/assets/luca-ui/stylesheets/components/toolbar.css +11 -0
- data/vendor/assets/luca-ui/stylesheets/containers/container.css +3 -0
- data/vendor/assets/luca-ui/stylesheets/containers/modal_view.css +0 -0
- data/vendor/assets/luca-ui/stylesheets/containers/tab_view.css +16 -0
- data/vendor/assets/luca-ui/stylesheets/normalize.css +359 -0
- data/vendor/assets/luca-ui/templates/components/bootstrap_form_controls.js +4 -0
- data/vendor/assets/luca-ui/templates/components/form_view.js +4 -0
- data/vendor/assets/luca-ui/templates/components/grid_view.js +4 -0
- data/vendor/assets/luca-ui/templates/components/grid_view_empty_text.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/basic.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/tab_selector_container.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/tab_view.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/toolbar_wrapper.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/button_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/button_field_link.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/checkbox_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/file_upload_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/hidden_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/select_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/text_area_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/text_field.js +4 -0
- data/vendor/assets/luca-ui/templates/sample/contents.js +4 -0
- data/vendor/assets/luca-ui/templates/sample/welcome.js +4 -0
- data/vendor/assets/stylesheets/luca-spec-dependencies.css +166 -0
- data/vendor/assets/stylesheets/luca-ui-bootstrap.css +1201 -0
- data/vendor/assets/stylesheets/luca-ui-spec.css +586 -0
- data/vendor/assets/stylesheets/luca-ui.css +586 -0
- data/views/index.erb +20 -0
- data/views/jasmine.erb +22 -0
- data/views/spec_harness.erb +29 -0
- metadata +361 -0
|
@@ -0,0 +1,586 @@
|
|
|
1
|
+
html.luca-ui-fullscreen {
|
|
2
|
+
height: 100%; }
|
|
3
|
+
html.luca-ui-fullscreen body {
|
|
4
|
+
height: 100%;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0; }
|
|
7
|
+
html.luca-ui-fullscreen .luca-ui-viewport {
|
|
8
|
+
height: 100%;
|
|
9
|
+
padding: 0;
|
|
10
|
+
margin: 0; }
|
|
11
|
+
|
|
12
|
+
.luca-ui-viewport li {
|
|
13
|
+
list-style-type: none; }
|
|
14
|
+
.luca-ui-viewport li.nav {
|
|
15
|
+
cursor: pointer; }
|
|
16
|
+
|
|
17
|
+
/*http://csswizardry.com/fluid-grids/#generated-grids*/
|
|
18
|
+
.wrapper {
|
|
19
|
+
max-width: 1208px;
|
|
20
|
+
/* max-width:894px;*/
|
|
21
|
+
padding: 0 15px;
|
|
22
|
+
margin: 0 auto; }
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
Column container
|
|
26
|
+
*/
|
|
27
|
+
.grids {
|
|
28
|
+
width: auto;
|
|
29
|
+
max-width: 924px;
|
|
30
|
+
clear: both;
|
|
31
|
+
margin: 0 0 0 -3.247%;
|
|
32
|
+
list-style: none;
|
|
33
|
+
/* So we can make grids out of lists. */
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
/* Clear the floats */ }
|
|
36
|
+
|
|
37
|
+
[class*="grid-"] {
|
|
38
|
+
float: left;
|
|
39
|
+
margin: 0 3.247% 0 0; }
|
|
40
|
+
|
|
41
|
+
.grid-margin {
|
|
42
|
+
margin: 0 3.247% 0 0; }
|
|
43
|
+
|
|
44
|
+
.grids .grid-margin {
|
|
45
|
+
margin: 0 0 0 3.247%; }
|
|
46
|
+
|
|
47
|
+
.grids [class*="grid-"] {
|
|
48
|
+
margin: 0 0 0 3.247%; }
|
|
49
|
+
|
|
50
|
+
.grid-1 {
|
|
51
|
+
width: 5.087%; }
|
|
52
|
+
|
|
53
|
+
.grid-2 {
|
|
54
|
+
width: 13.42%; }
|
|
55
|
+
|
|
56
|
+
.grid-3 {
|
|
57
|
+
width: 21.753%; }
|
|
58
|
+
|
|
59
|
+
.grid-4 {
|
|
60
|
+
width: 30.087%; }
|
|
61
|
+
|
|
62
|
+
.grid-5 {
|
|
63
|
+
width: 38.42%; }
|
|
64
|
+
|
|
65
|
+
.grid-6 {
|
|
66
|
+
width: 46.753%; }
|
|
67
|
+
|
|
68
|
+
.grid-7 {
|
|
69
|
+
width: 55.087%; }
|
|
70
|
+
|
|
71
|
+
.grid-8 {
|
|
72
|
+
width: 63.42%; }
|
|
73
|
+
|
|
74
|
+
.grid-9 {
|
|
75
|
+
width: 71.753%; }
|
|
76
|
+
|
|
77
|
+
.grid-10 {
|
|
78
|
+
width: 80.087%; }
|
|
79
|
+
|
|
80
|
+
.grid-11 {
|
|
81
|
+
width: 88.42%; }
|
|
82
|
+
|
|
83
|
+
.grid-12 {
|
|
84
|
+
width: 96.753%;
|
|
85
|
+
margin: 0; }
|
|
86
|
+
.luca-ui-form-view-wrapper {
|
|
87
|
+
width: 100%;
|
|
88
|
+
float: left;
|
|
89
|
+
display: block;
|
|
90
|
+
clear: both;
|
|
91
|
+
margin: 10px 0px; }
|
|
92
|
+
|
|
93
|
+
.luca-ui-form-view .luca-ui-field {
|
|
94
|
+
margin: 5px;
|
|
95
|
+
padding: 5px; }
|
|
96
|
+
.luca-ui-form-view .luca-ui-field .helper-text {
|
|
97
|
+
font-size: 0.75em;
|
|
98
|
+
font-color: #ccc; }
|
|
99
|
+
|
|
100
|
+
.luca-ui-form-view.label-align-top .luca-ui-field label, .luca-ui-form-view.label-align-top .luca-ui-field input, .luca-ui-form-view.label-align-top .luca-ui-field select, .luca-ui-form-view.label-align-top .luca-ui-field textarea {
|
|
101
|
+
margin: 5px 0px;
|
|
102
|
+
display: block; }
|
|
103
|
+
|
|
104
|
+
.luca-ui-form-view.column-layout .luca-ui-field {
|
|
105
|
+
float: left; }
|
|
106
|
+
|
|
107
|
+
.form-view-footer .toolbar-container {
|
|
108
|
+
float: left;
|
|
109
|
+
width: 100%;
|
|
110
|
+
clear: both;
|
|
111
|
+
display: block; }
|
|
112
|
+
.form-view-footer .toolbar-container .luca-ui-form-toolbar, .form-view-footer .toolbar-container .luca-ui-toolbar {
|
|
113
|
+
width: 50%;
|
|
114
|
+
display: block;
|
|
115
|
+
margin: 0px auto; }
|
|
116
|
+
.form-view-footer .toolbar-container .luca-ui-form-toolbar .luca-ui-field, .form-view-footer .toolbar-container .luca-ui-toolbar .luca-ui-field {
|
|
117
|
+
float: left; }
|
|
118
|
+
.scrollable-grid-view {
|
|
119
|
+
/* define height and width of scrollable area. Add 16px to width for scrollbar */
|
|
120
|
+
/* Reset overflow value to hidden for all non-IE browsers. */
|
|
121
|
+
/* define width of table. IE browsers only */
|
|
122
|
+
/* define width of table. Add 16px to width for scrollbar. */
|
|
123
|
+
/* All other non-IE browsers. */
|
|
124
|
+
/* set table header to a fixed position. WinIE 6.x only */
|
|
125
|
+
/* In WinIE 6.x, any element with a position property set to relative and is a child of */
|
|
126
|
+
/* an element that has an overflow property set, the relative value translates into fixed. */
|
|
127
|
+
/* Ex: parent element DIV with a class of tableContainer has an overflow property set to auto */
|
|
128
|
+
/* set THEAD element to have block level attributes. All other non-IE browsers */
|
|
129
|
+
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
|
|
130
|
+
/* make the TH elements pretty */
|
|
131
|
+
/* make the A elements pretty. makes for nice clickable headers */
|
|
132
|
+
/* make the A elements pretty. makes for nice clickable headers */
|
|
133
|
+
/* WARNING: swapping the background on hover may cause problems in WinIE 6.x */
|
|
134
|
+
/* define the table content to be scrollable */
|
|
135
|
+
/* set TBODY element to have block level attributes. All other non-IE browsers */
|
|
136
|
+
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
|
|
137
|
+
/* induced side effect is that child TDs no longer accept width: auto */
|
|
138
|
+
/* define width of TH elements: 1st, 2nd, and 3rd respectively. */
|
|
139
|
+
/* Add 16px to last TH for scrollbar padding. All other non-IE browsers. */
|
|
140
|
+
/* http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors */
|
|
141
|
+
/* define width of TD elements: 1st, 2nd, and 3rd respectively. */
|
|
142
|
+
/* All other non-IE browsers. */
|
|
143
|
+
/* http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors */ }
|
|
144
|
+
.scrollable-grid-view .grid-view-body {
|
|
145
|
+
clear: both;
|
|
146
|
+
overflow: auto; }
|
|
147
|
+
.scrollable-grid-view .grid-view-body {
|
|
148
|
+
overflow: hidden; }
|
|
149
|
+
.scrollable-grid-view .grid-view-body .empty-text-wrapper {
|
|
150
|
+
display: block;
|
|
151
|
+
margin: 10px auto;
|
|
152
|
+
width: 30%;
|
|
153
|
+
padding: 50px;
|
|
154
|
+
text-align: center; }
|
|
155
|
+
.scrollable-grid-view .grid-view-body .empty-text-wrapper p {
|
|
156
|
+
color: #aaa; }
|
|
157
|
+
.scrollable-grid-view thead.fixed tr {
|
|
158
|
+
position: relative; }
|
|
159
|
+
.scrollable-grid-view thead.fixed tr {
|
|
160
|
+
display: block; }
|
|
161
|
+
.scrollable-grid-view thead.fixed th {
|
|
162
|
+
font-weight: bold;
|
|
163
|
+
text-align: left; }
|
|
164
|
+
.scrollable-grid-view thead.fixed a, .scrollable-grid-view thead.fixed a:link, .scrollable-grid-view thead.fixed a:visited {
|
|
165
|
+
color: #FFF;
|
|
166
|
+
display: block;
|
|
167
|
+
text-decoration: none;
|
|
168
|
+
width: 100%; }
|
|
169
|
+
.scrollable-grid-view thead.fixed a:hover {
|
|
170
|
+
color: #FFF;
|
|
171
|
+
display: block;
|
|
172
|
+
text-decoration: underline;
|
|
173
|
+
width: 100%; }
|
|
174
|
+
.scrollable-grid-view tbody.scrollable {
|
|
175
|
+
display: block;
|
|
176
|
+
overflow: auto;
|
|
177
|
+
width: 100%; }
|
|
178
|
+
.scrollable-grid-view thead.fixed th {
|
|
179
|
+
padding: 5px; }
|
|
180
|
+
.scrollable-grid-view tbody.scrollable td {
|
|
181
|
+
padding: 5px; }
|
|
182
|
+
|
|
183
|
+
.grid-view-footer .toolbar-container {
|
|
184
|
+
float: left;
|
|
185
|
+
width: 100%;
|
|
186
|
+
clear: both;
|
|
187
|
+
display: block; }
|
|
188
|
+
.grid-view-footer .toolbar-container .luca-ui-toolbar {
|
|
189
|
+
display: block;
|
|
190
|
+
float: right;
|
|
191
|
+
clear: right; }
|
|
192
|
+
.grid-view-footer .toolbar-container .luca-ui-toolbar .luca-ui-field {
|
|
193
|
+
float: left; }
|
|
194
|
+
.luca-ui-toolbar-wrapper {
|
|
195
|
+
clear: both;
|
|
196
|
+
display: block;
|
|
197
|
+
float: left;
|
|
198
|
+
width: 100%; }
|
|
199
|
+
.luca-ui-toolbar-wrapper .luca-ui-form-toolbar, .luca-ui-toolbar-wrapper .luca-ui-toolbar {
|
|
200
|
+
clear: both;
|
|
201
|
+
margin: 5px auto; }
|
|
202
|
+
.luca-ui-toolbar-wrapper .luca-ui-form-toolbar .luca-ui-field, .luca-ui-toolbar-wrapper .luca-ui-toolbar .luca-ui-field {
|
|
203
|
+
float: left;
|
|
204
|
+
margin: 5px; }
|
|
205
|
+
.luca-ui-card {
|
|
206
|
+
padding: 5px;
|
|
207
|
+
width: 100%; }
|
|
208
|
+
.luca-ui-tab-view .luca-ui-card .luca-ui-grid-view, .luca-ui-tab-view .luca-ui-card .luca-ui-form-view, .luca-ui-tab-view .luca-ui-card .luca-ui-card {
|
|
209
|
+
overflow: hidden; }
|
|
210
|
+
|
|
211
|
+
.luca-ui-tab-view.tabs-below .tab-selector-container, .luca-ui-tab-view.tabs-right .tab-selector-container {
|
|
212
|
+
display: block;
|
|
213
|
+
clear: both; }
|
|
214
|
+
|
|
215
|
+
.luca-ui-tab-view.tabs-left .tab-selector-container {
|
|
216
|
+
float: left; }
|
|
217
|
+
.luca-ui-tab-view.tabs-left .tab-content {
|
|
218
|
+
float: left; }
|
|
219
|
+
|
|
220
|
+
.luca-ui-tab-view.tabs-right .tab-selector-container {
|
|
221
|
+
float: right; }
|
|
222
|
+
.luca-ui-tab-view.tabs-right .tab-content {
|
|
223
|
+
float: left; }
|
|
224
|
+
/* normalize.css 2011-11-04T15:38 UTC - http://github.com/necolas/normalize.css */
|
|
225
|
+
/* =============================================================================
|
|
226
|
+
HTML5 display definitions
|
|
227
|
+
========================================================================== */
|
|
228
|
+
/*
|
|
229
|
+
* Corrects block display not defined in IE6/7/8/9 & FF3
|
|
230
|
+
*/
|
|
231
|
+
article,
|
|
232
|
+
aside,
|
|
233
|
+
details,
|
|
234
|
+
figcaption,
|
|
235
|
+
figure,
|
|
236
|
+
footer,
|
|
237
|
+
header,
|
|
238
|
+
hgroup,
|
|
239
|
+
nav,
|
|
240
|
+
section {
|
|
241
|
+
display: block; }
|
|
242
|
+
|
|
243
|
+
/*
|
|
244
|
+
* Corrects inline-block display not defined in IE6/7/8/9 & FF3
|
|
245
|
+
*/
|
|
246
|
+
audio,
|
|
247
|
+
canvas,
|
|
248
|
+
video {
|
|
249
|
+
display: inline-block;
|
|
250
|
+
*display: inline;
|
|
251
|
+
*zoom: 1; }
|
|
252
|
+
|
|
253
|
+
/*
|
|
254
|
+
* Prevents modern browsers from displaying 'audio' without controls
|
|
255
|
+
*/
|
|
256
|
+
audio:not([controls]) {
|
|
257
|
+
display: none; }
|
|
258
|
+
|
|
259
|
+
/*
|
|
260
|
+
* Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
|
|
261
|
+
* Known issue: no IE6 support
|
|
262
|
+
*/
|
|
263
|
+
[hidden] {
|
|
264
|
+
display: none; }
|
|
265
|
+
|
|
266
|
+
/* =============================================================================
|
|
267
|
+
Base
|
|
268
|
+
========================================================================== */
|
|
269
|
+
/*
|
|
270
|
+
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
|
|
271
|
+
* http://clagnut.com/blog/348/#c790
|
|
272
|
+
* 2. Keeps page centred in all browsers regardless of content height
|
|
273
|
+
* 3. Prevents iOS text size adjust after orientation change, without disabling user zoom
|
|
274
|
+
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
|
|
275
|
+
*/
|
|
276
|
+
html {
|
|
277
|
+
font-size: 100%;
|
|
278
|
+
/* 1 */
|
|
279
|
+
overflow-y: scroll;
|
|
280
|
+
/* 2 */
|
|
281
|
+
-webkit-text-size-adjust: 100%;
|
|
282
|
+
/* 3 */
|
|
283
|
+
-ms-text-size-adjust: 100%;
|
|
284
|
+
/* 3 */ }
|
|
285
|
+
|
|
286
|
+
/*
|
|
287
|
+
* Addresses margins handled incorrectly in IE6/7
|
|
288
|
+
*/
|
|
289
|
+
body {
|
|
290
|
+
margin: 0; }
|
|
291
|
+
|
|
292
|
+
/*
|
|
293
|
+
* Addresses font-family inconsistency between 'textarea' and other form elements.
|
|
294
|
+
*/
|
|
295
|
+
body,
|
|
296
|
+
button,
|
|
297
|
+
input,
|
|
298
|
+
select,
|
|
299
|
+
textarea {
|
|
300
|
+
font-family: sans-serif; }
|
|
301
|
+
|
|
302
|
+
/* =============================================================================
|
|
303
|
+
Links
|
|
304
|
+
========================================================================== */
|
|
305
|
+
/*
|
|
306
|
+
* Addresses outline displayed oddly in Chrome
|
|
307
|
+
*/
|
|
308
|
+
a:focus {
|
|
309
|
+
outline: thin dotted; }
|
|
310
|
+
|
|
311
|
+
/*
|
|
312
|
+
* Improves readability when focused and also mouse hovered in all browsers
|
|
313
|
+
* people.opera.com/patrickl/experiments/keyboard/test
|
|
314
|
+
*/
|
|
315
|
+
a:hover,
|
|
316
|
+
a:active {
|
|
317
|
+
outline: 0; }
|
|
318
|
+
|
|
319
|
+
/* =============================================================================
|
|
320
|
+
Typography
|
|
321
|
+
========================================================================== */
|
|
322
|
+
/*
|
|
323
|
+
* Neutralise smaller font-size in 'section' and 'article' in FF4+, Chrome, S5
|
|
324
|
+
*/
|
|
325
|
+
h1 {
|
|
326
|
+
font-size: 2em; }
|
|
327
|
+
|
|
328
|
+
/*
|
|
329
|
+
* Addresses styling not present in IE7/8/9, S5, Chrome
|
|
330
|
+
*/
|
|
331
|
+
abbr[title] {
|
|
332
|
+
border-bottom: 1px dotted; }
|
|
333
|
+
|
|
334
|
+
/*
|
|
335
|
+
* Addresses style set to 'bolder' in FF3+, S4/5, Chrome
|
|
336
|
+
*/
|
|
337
|
+
b,
|
|
338
|
+
strong {
|
|
339
|
+
font-weight: bold; }
|
|
340
|
+
|
|
341
|
+
blockquote {
|
|
342
|
+
margin: 1em 40px; }
|
|
343
|
+
|
|
344
|
+
/*
|
|
345
|
+
* Addresses styling not present in S5, Chrome
|
|
346
|
+
*/
|
|
347
|
+
dfn {
|
|
348
|
+
font-style: italic; }
|
|
349
|
+
|
|
350
|
+
/*
|
|
351
|
+
* Addresses styling not present in IE6/7/8/9
|
|
352
|
+
*/
|
|
353
|
+
mark {
|
|
354
|
+
background: #ff0;
|
|
355
|
+
color: #000; }
|
|
356
|
+
|
|
357
|
+
/*
|
|
358
|
+
* Corrects font family set oddly in IE6, S4/5, Chrome
|
|
359
|
+
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
|
|
360
|
+
*/
|
|
361
|
+
pre,
|
|
362
|
+
code,
|
|
363
|
+
kbd,
|
|
364
|
+
samp {
|
|
365
|
+
font-family: monospace, serif;
|
|
366
|
+
_font-family: 'courier new', monospace;
|
|
367
|
+
font-size: 1em; }
|
|
368
|
+
|
|
369
|
+
/*
|
|
370
|
+
* Improves readability of pre-formatted text in all browsers
|
|
371
|
+
*/
|
|
372
|
+
pre {
|
|
373
|
+
white-space: pre;
|
|
374
|
+
white-space: pre-wrap;
|
|
375
|
+
word-wrap: break-word; }
|
|
376
|
+
|
|
377
|
+
/*
|
|
378
|
+
* 1. Addresses CSS quotes not supported in IE6/7
|
|
379
|
+
* 2. Addresses quote property not supported in S4
|
|
380
|
+
*/
|
|
381
|
+
/* 1 */
|
|
382
|
+
q {
|
|
383
|
+
quotes: none; }
|
|
384
|
+
|
|
385
|
+
/* 2 */
|
|
386
|
+
q:before,
|
|
387
|
+
q:after {
|
|
388
|
+
content: '';
|
|
389
|
+
content: none; }
|
|
390
|
+
|
|
391
|
+
small {
|
|
392
|
+
font-size: 75%; }
|
|
393
|
+
|
|
394
|
+
/*
|
|
395
|
+
* Prevents sub and sup affecting line-height in all browsers
|
|
396
|
+
* gist.github.com/413930
|
|
397
|
+
*/
|
|
398
|
+
sub,
|
|
399
|
+
sup {
|
|
400
|
+
font-size: 75%;
|
|
401
|
+
line-height: 0;
|
|
402
|
+
position: relative;
|
|
403
|
+
vertical-align: baseline; }
|
|
404
|
+
|
|
405
|
+
sup {
|
|
406
|
+
top: -0.5em; }
|
|
407
|
+
|
|
408
|
+
sub {
|
|
409
|
+
bottom: -0.25em; }
|
|
410
|
+
|
|
411
|
+
/* =============================================================================
|
|
412
|
+
Lists
|
|
413
|
+
========================================================================== */
|
|
414
|
+
ul,
|
|
415
|
+
ol {
|
|
416
|
+
margin-left: 0;
|
|
417
|
+
padding: 0 0 0 40px; }
|
|
418
|
+
|
|
419
|
+
dd {
|
|
420
|
+
margin: 0 0 0 40px; }
|
|
421
|
+
|
|
422
|
+
nav ul,
|
|
423
|
+
nav ol {
|
|
424
|
+
list-style: none;
|
|
425
|
+
list-style-image: none; }
|
|
426
|
+
|
|
427
|
+
/* =============================================================================
|
|
428
|
+
Embedded content
|
|
429
|
+
========================================================================== */
|
|
430
|
+
/*
|
|
431
|
+
* 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
|
|
432
|
+
* 2. Improves image quality when scaled in IE7
|
|
433
|
+
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
|
|
434
|
+
*/
|
|
435
|
+
img {
|
|
436
|
+
border: 0;
|
|
437
|
+
/* 1 */
|
|
438
|
+
-ms-interpolation-mode: bicubic;
|
|
439
|
+
/* 2 */ }
|
|
440
|
+
|
|
441
|
+
/*
|
|
442
|
+
* Corrects overflow displayed oddly in IE9
|
|
443
|
+
*/
|
|
444
|
+
svg:not(:root) {
|
|
445
|
+
overflow: hidden; }
|
|
446
|
+
|
|
447
|
+
/* =============================================================================
|
|
448
|
+
Figures
|
|
449
|
+
========================================================================== */
|
|
450
|
+
/*
|
|
451
|
+
* Addresses margin not present in IE6/7/8/9, S5, O11
|
|
452
|
+
*/
|
|
453
|
+
figure {
|
|
454
|
+
margin: 0; }
|
|
455
|
+
|
|
456
|
+
/* =============================================================================
|
|
457
|
+
Forms
|
|
458
|
+
========================================================================== */
|
|
459
|
+
/*
|
|
460
|
+
* Corrects margin displayed oddly in IE6/7
|
|
461
|
+
*/
|
|
462
|
+
form {
|
|
463
|
+
margin: 0; }
|
|
464
|
+
|
|
465
|
+
/*
|
|
466
|
+
* Define consistent border, margin, and padding
|
|
467
|
+
*/
|
|
468
|
+
fieldset {
|
|
469
|
+
border: 1px solid #c0c0c0;
|
|
470
|
+
margin: 0 2px;
|
|
471
|
+
padding: 0.35em 0.625em 0.75em; }
|
|
472
|
+
|
|
473
|
+
/*
|
|
474
|
+
* 1. Corrects color not being inherited in IE6/7/8/9
|
|
475
|
+
* 2. Corrects alignment displayed oddly in IE6/7
|
|
476
|
+
*/
|
|
477
|
+
legend {
|
|
478
|
+
border: 0;
|
|
479
|
+
/* 1 */
|
|
480
|
+
*margin-left: -7px;
|
|
481
|
+
/* 2 */ }
|
|
482
|
+
|
|
483
|
+
/*
|
|
484
|
+
* 1. Corrects font size not being inherited in all browsers
|
|
485
|
+
* 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
|
|
486
|
+
* 3. Improves appearance and consistency in all browsers
|
|
487
|
+
*/
|
|
488
|
+
button,
|
|
489
|
+
input,
|
|
490
|
+
select,
|
|
491
|
+
textarea {
|
|
492
|
+
font-size: 100%;
|
|
493
|
+
/* 1 */
|
|
494
|
+
margin: 0;
|
|
495
|
+
/* 2 */
|
|
496
|
+
vertical-align: baseline;
|
|
497
|
+
/* 3 */
|
|
498
|
+
*vertical-align: middle;
|
|
499
|
+
/* 3 */ }
|
|
500
|
+
|
|
501
|
+
/*
|
|
502
|
+
* Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
|
|
503
|
+
*/
|
|
504
|
+
button,
|
|
505
|
+
input {
|
|
506
|
+
line-height: normal;
|
|
507
|
+
/* 1 */ }
|
|
508
|
+
|
|
509
|
+
/*
|
|
510
|
+
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
|
|
511
|
+
* 2. Corrects inability to style clickable 'input' types in iOS
|
|
512
|
+
* 3. Removes inner spacing in IE7 without affecting normal text inputs
|
|
513
|
+
* Known issue: inner spacing remains in IE6
|
|
514
|
+
*/
|
|
515
|
+
button,
|
|
516
|
+
input[type="button"],
|
|
517
|
+
input[type="reset"],
|
|
518
|
+
input[type="submit"] {
|
|
519
|
+
cursor: pointer;
|
|
520
|
+
/* 1 */
|
|
521
|
+
-webkit-appearance: button;
|
|
522
|
+
/* 2 */
|
|
523
|
+
*overflow: visible;
|
|
524
|
+
/* 3 */ }
|
|
525
|
+
|
|
526
|
+
/*
|
|
527
|
+
* 1. Addresses box sizing set to content-box in IE8/9
|
|
528
|
+
* 2. Removes excess padding in IE8/9
|
|
529
|
+
*/
|
|
530
|
+
input[type="checkbox"],
|
|
531
|
+
input[type="radio"] {
|
|
532
|
+
box-sizing: border-box;
|
|
533
|
+
/* 1 */
|
|
534
|
+
padding: 0;
|
|
535
|
+
/* 2 */ }
|
|
536
|
+
|
|
537
|
+
/*
|
|
538
|
+
* 1. Addresses appearance set to searchfield in S5, Chrome
|
|
539
|
+
* 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
|
|
540
|
+
*/
|
|
541
|
+
input[type="search"] {
|
|
542
|
+
-webkit-appearance: textfield;
|
|
543
|
+
/* 1 */
|
|
544
|
+
-moz-box-sizing: content-box;
|
|
545
|
+
-webkit-box-sizing: content-box;
|
|
546
|
+
/* 2 */
|
|
547
|
+
box-sizing: content-box; }
|
|
548
|
+
|
|
549
|
+
/*
|
|
550
|
+
* Removes inner padding that is displayed in S5, Chrome on OS X
|
|
551
|
+
*/
|
|
552
|
+
input[type="search"]::-webkit-search-decoration {
|
|
553
|
+
-webkit-appearance: none; }
|
|
554
|
+
|
|
555
|
+
/*
|
|
556
|
+
* Removes inner padding and border in FF3+
|
|
557
|
+
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
|
|
558
|
+
*/
|
|
559
|
+
button::-moz-focus-inner,
|
|
560
|
+
input::-moz-focus-inner {
|
|
561
|
+
border: 0;
|
|
562
|
+
padding: 0; }
|
|
563
|
+
|
|
564
|
+
/*
|
|
565
|
+
* 1. Removes default vertical scrollbar in IE6/7/8/9
|
|
566
|
+
* 2. Improves readability and alignment in all browsers
|
|
567
|
+
*/
|
|
568
|
+
textarea {
|
|
569
|
+
overflow: auto;
|
|
570
|
+
/* 1 */
|
|
571
|
+
vertical-align: top;
|
|
572
|
+
/* 2 */ }
|
|
573
|
+
|
|
574
|
+
/* =============================================================================
|
|
575
|
+
Tables
|
|
576
|
+
========================================================================== */
|
|
577
|
+
/*
|
|
578
|
+
* Remove most spacing between table cells
|
|
579
|
+
*/
|
|
580
|
+
table {
|
|
581
|
+
border-collapse: collapse;
|
|
582
|
+
border-spacing: 0; }
|
|
583
|
+
/*
|
|
584
|
+
|
|
585
|
+
*/
|
|
586
|
+
|
data/views/index.erb
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
6
|
+
<title>Luca. Container Framework For Backbone Views</title>
|
|
7
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
8
|
+
<link rel="stylesheet" href="<%= asset_path('luca-ui-bootstrap.css') %>">
|
|
9
|
+
<link rel="stylesheet" href="<%= asset_path('sandbox.css') %>">
|
|
10
|
+
<link rel="stylesheet" href="<%= asset_path('prettify.css') %>">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div id="container">
|
|
14
|
+
<div id="viewport"></div>
|
|
15
|
+
</div>
|
|
16
|
+
<script src="<%= asset_path('dependencies.js') %>"></script>
|
|
17
|
+
<script src="<%= asset_path('luca-ui.js') %>"></script>
|
|
18
|
+
<script src="<%= asset_path('sandbox.js') %>"></script>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
data/views/jasmine.erb
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
6
|
+
<title>Luca. Container Framework For Backbone Views</title>
|
|
7
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
8
|
+
|
|
9
|
+
<link rel="stylesheet" href="<%= asset_path('jasmine.css') %>" />
|
|
10
|
+
<script src="<%= asset_path('spec-dependencies.js') %>"></script>
|
|
11
|
+
<script src="<%= asset_path('luca-ui-spec.js') %>"></script>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="container">
|
|
15
|
+
<div id="viewport"></div>
|
|
16
|
+
</div>
|
|
17
|
+
<script type="text/javascript">
|
|
18
|
+
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
|
|
19
|
+
jasmine.getEnv().execute();
|
|
20
|
+
</script>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
6
|
+
<title>Spec Harness - Jasmine specs for <%= params[:application] %></title>
|
|
7
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
8
|
+
<link rel="stylesheet" href="/assets/luca-spec-dependencies.css" />
|
|
9
|
+
<link rel="stylesheet" href="<%= params[:application] %>/manifest.css" />
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="/assets/luca-spec-dependencies.js"></script>
|
|
12
|
+
<script type="text/javascript" src="<%= params[:application] %>/manifest.js"></script>
|
|
13
|
+
|
|
14
|
+
<% for asset in @assets %>
|
|
15
|
+
<script type="text/javascript" src="/assets/<%= asset %>"></script>
|
|
16
|
+
<% end %>
|
|
17
|
+
|
|
18
|
+
<script type="text/javascript" src="<%= params[:application] %>/specs_manifest.js"></script>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<div id="container">
|
|
22
|
+
<div id="viewport"></div>
|
|
23
|
+
</div>
|
|
24
|
+
<script type="text/javascript">
|
|
25
|
+
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
|
|
26
|
+
jasmine.getEnv().execute();
|
|
27
|
+
</script>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|