luca 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- 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,111 @@
|
|
1
|
+
|
2
|
+
.scrollable-grid-view {
|
3
|
+
/* define height and width of scrollable area. Add 16px to width for scrollbar */
|
4
|
+
.grid-view-body {
|
5
|
+
clear: both;
|
6
|
+
overflow: auto;
|
7
|
+
}
|
8
|
+
|
9
|
+
/* Reset overflow value to hidden for all non-IE browsers. */
|
10
|
+
.grid-view-body {
|
11
|
+
overflow: hidden;
|
12
|
+
}
|
13
|
+
|
14
|
+
.grid-view-body .empty-text-wrapper {
|
15
|
+
display: block;
|
16
|
+
margin: 10px auto;
|
17
|
+
width: 30%;
|
18
|
+
padding: 50px;
|
19
|
+
text-align: center;
|
20
|
+
p {
|
21
|
+
color: #aaa;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
/* define width of table. IE browsers only */
|
25
|
+
.grid-view-body table {
|
26
|
+
}
|
27
|
+
|
28
|
+
/* define width of table. Add 16px to width for scrollbar. */
|
29
|
+
/* All other non-IE browsers. */
|
30
|
+
.grid-view-body table {
|
31
|
+
}
|
32
|
+
|
33
|
+
/* set table header to a fixed position. WinIE 6.x only */
|
34
|
+
/* In WinIE 6.x, any element with a position property set to relative and is a child of */
|
35
|
+
/* an element that has an overflow property set, the relative value translates into fixed. */
|
36
|
+
/* Ex: parent element DIV with a class of tableContainer has an overflow property set to auto */
|
37
|
+
thead.fixed tr {
|
38
|
+
position: relative
|
39
|
+
}
|
40
|
+
|
41
|
+
/* set THEAD element to have block level attributes. All other non-IE browsers */
|
42
|
+
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
|
43
|
+
thead.fixed tr {
|
44
|
+
display: block
|
45
|
+
}
|
46
|
+
|
47
|
+
/* make the TH elements pretty */
|
48
|
+
thead.fixed th {
|
49
|
+
font-weight: bold;
|
50
|
+
text-align: left
|
51
|
+
}
|
52
|
+
|
53
|
+
/* make the A elements pretty. makes for nice clickable headers */
|
54
|
+
thead.fixed a, thead.fixed a:link, thead.fixed a:visited {
|
55
|
+
color: #FFF;
|
56
|
+
display: block;
|
57
|
+
text-decoration: none;
|
58
|
+
width: 100%
|
59
|
+
}
|
60
|
+
|
61
|
+
/* make the A elements pretty. makes for nice clickable headers */
|
62
|
+
/* WARNING: swapping the background on hover may cause problems in WinIE 6.x */
|
63
|
+
thead.fixed a:hover {
|
64
|
+
color: #FFF;
|
65
|
+
display: block;
|
66
|
+
text-decoration: underline;
|
67
|
+
width: 100%
|
68
|
+
}
|
69
|
+
|
70
|
+
/* define the table content to be scrollable */
|
71
|
+
/* set TBODY element to have block level attributes. All other non-IE browsers */
|
72
|
+
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
|
73
|
+
/* induced side effect is that child TDs no longer accept width: auto */
|
74
|
+
tbody.scrollable {
|
75
|
+
display: block;
|
76
|
+
overflow: auto;
|
77
|
+
width: 100%
|
78
|
+
}
|
79
|
+
|
80
|
+
/* define width of TH elements: 1st, 2nd, and 3rd respectively. */
|
81
|
+
/* Add 16px to last TH for scrollbar padding. All other non-IE browsers. */
|
82
|
+
/* http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors */
|
83
|
+
thead.fixed th {
|
84
|
+
padding: 5px;
|
85
|
+
}
|
86
|
+
|
87
|
+
/* define width of TD elements: 1st, 2nd, and 3rd respectively. */
|
88
|
+
/* All other non-IE browsers. */
|
89
|
+
/* http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors */
|
90
|
+
tbody.scrollable td {
|
91
|
+
padding: 5px;
|
92
|
+
}
|
93
|
+
|
94
|
+
}
|
95
|
+
|
96
|
+
.grid-view-footer {
|
97
|
+
.toolbar-container {
|
98
|
+
float: left;
|
99
|
+
width: 100%;
|
100
|
+
clear: both;
|
101
|
+
display: block;
|
102
|
+
.luca-ui-toolbar {
|
103
|
+
display: block;
|
104
|
+
float: right;
|
105
|
+
clear: right;
|
106
|
+
.luca-ui-field {
|
107
|
+
float: left;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
File without changes
|
@@ -0,0 +1,33 @@
|
|
1
|
+
.luca-ui-tab-view {
|
2
|
+
.luca-ui-card {
|
3
|
+
.luca-ui-grid-view, .luca-ui-form-view, .luca-ui-card {
|
4
|
+
overflow: hidden;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
.luca-ui-tab-view.tabs-below, .luca-ui-tab-view.tabs-right {
|
10
|
+
.tab-selector-container {
|
11
|
+
display: block;
|
12
|
+
clear: both;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
.luca-ui-tab-view.tabs-left {
|
17
|
+
.tab-selector-container {
|
18
|
+
float: left;
|
19
|
+
}
|
20
|
+
.tab-content {
|
21
|
+
float: left;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.luca-ui-tab-view.tabs-right {
|
26
|
+
.tab-selector-container {
|
27
|
+
float: right;
|
28
|
+
}
|
29
|
+
.tab-content {
|
30
|
+
float: left;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
@@ -0,0 +1,430 @@
|
|
1
|
+
/*! normalize.css 2011-11-04T15:38 UTC - http://github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
/* =============================================================================
|
4
|
+
HTML5 display definitions
|
5
|
+
========================================================================== */
|
6
|
+
|
7
|
+
/*
|
8
|
+
* Corrects block display not defined in IE6/7/8/9 & FF3
|
9
|
+
*/
|
10
|
+
article,
|
11
|
+
aside,
|
12
|
+
details,
|
13
|
+
figcaption,
|
14
|
+
figure,
|
15
|
+
footer,
|
16
|
+
header,
|
17
|
+
hgroup,
|
18
|
+
nav,
|
19
|
+
section {
|
20
|
+
display: block;
|
21
|
+
}
|
22
|
+
|
23
|
+
/*
|
24
|
+
* Corrects inline-block display not defined in IE6/7/8/9 & FF3
|
25
|
+
*/
|
26
|
+
|
27
|
+
audio,
|
28
|
+
canvas,
|
29
|
+
video {
|
30
|
+
display: inline-block;
|
31
|
+
*display: inline;
|
32
|
+
*zoom: 1;
|
33
|
+
}
|
34
|
+
|
35
|
+
/*
|
36
|
+
* Prevents modern browsers from displaying 'audio' without controls
|
37
|
+
*/
|
38
|
+
|
39
|
+
audio:not([controls]) {
|
40
|
+
display: none;
|
41
|
+
}
|
42
|
+
|
43
|
+
/*
|
44
|
+
* Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
|
45
|
+
* Known issue: no IE6 support
|
46
|
+
*/
|
47
|
+
|
48
|
+
[hidden] {
|
49
|
+
display: none;
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
/* =============================================================================
|
54
|
+
Base
|
55
|
+
========================================================================== */
|
56
|
+
|
57
|
+
/*
|
58
|
+
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
|
59
|
+
* http://clagnut.com/blog/348/#c790
|
60
|
+
* 2. Keeps page centred in all browsers regardless of content height
|
61
|
+
* 3. Prevents iOS text size adjust after orientation change, without disabling user zoom
|
62
|
+
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
|
63
|
+
*/
|
64
|
+
|
65
|
+
html {
|
66
|
+
font-size: 100%; /* 1 */
|
67
|
+
overflow-y: scroll; /* 2 */
|
68
|
+
-webkit-text-size-adjust: 100%; /* 3 */
|
69
|
+
-ms-text-size-adjust: 100%; /* 3 */
|
70
|
+
}
|
71
|
+
|
72
|
+
/*
|
73
|
+
* Addresses margins handled incorrectly in IE6/7
|
74
|
+
*/
|
75
|
+
|
76
|
+
body {
|
77
|
+
margin: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
/*
|
81
|
+
* Addresses font-family inconsistency between 'textarea' and other form elements.
|
82
|
+
*/
|
83
|
+
|
84
|
+
body,
|
85
|
+
button,
|
86
|
+
input,
|
87
|
+
select,
|
88
|
+
textarea {
|
89
|
+
font-family: sans-serif;
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
/* =============================================================================
|
94
|
+
Links
|
95
|
+
========================================================================== */
|
96
|
+
|
97
|
+
/*
|
98
|
+
* Addresses outline displayed oddly in Chrome
|
99
|
+
*/
|
100
|
+
|
101
|
+
a:focus {
|
102
|
+
outline: thin dotted;
|
103
|
+
}
|
104
|
+
|
105
|
+
/*
|
106
|
+
* Improves readability when focused and also mouse hovered in all browsers
|
107
|
+
* people.opera.com/patrickl/experiments/keyboard/test
|
108
|
+
*/
|
109
|
+
|
110
|
+
a:hover,
|
111
|
+
a:active {
|
112
|
+
outline: 0;
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
/* =============================================================================
|
117
|
+
Typography
|
118
|
+
========================================================================== */
|
119
|
+
|
120
|
+
/*
|
121
|
+
* Neutralise smaller font-size in 'section' and 'article' in FF4+, Chrome, S5
|
122
|
+
*/
|
123
|
+
|
124
|
+
h1 {
|
125
|
+
font-size: 2em;
|
126
|
+
}
|
127
|
+
|
128
|
+
/*
|
129
|
+
* Addresses styling not present in IE7/8/9, S5, Chrome
|
130
|
+
*/
|
131
|
+
|
132
|
+
abbr[title] {
|
133
|
+
border-bottom: 1px dotted;
|
134
|
+
}
|
135
|
+
|
136
|
+
/*
|
137
|
+
* Addresses style set to 'bolder' in FF3+, S4/5, Chrome
|
138
|
+
*/
|
139
|
+
|
140
|
+
b,
|
141
|
+
strong {
|
142
|
+
font-weight: bold;
|
143
|
+
}
|
144
|
+
|
145
|
+
blockquote {
|
146
|
+
margin: 1em 40px;
|
147
|
+
}
|
148
|
+
|
149
|
+
/*
|
150
|
+
* Addresses styling not present in S5, Chrome
|
151
|
+
*/
|
152
|
+
|
153
|
+
dfn {
|
154
|
+
font-style: italic;
|
155
|
+
}
|
156
|
+
|
157
|
+
/*
|
158
|
+
* Addresses styling not present in IE6/7/8/9
|
159
|
+
*/
|
160
|
+
|
161
|
+
mark {
|
162
|
+
background: #ff0;
|
163
|
+
color: #000;
|
164
|
+
}
|
165
|
+
|
166
|
+
/*
|
167
|
+
* Corrects font family set oddly in IE6, S4/5, Chrome
|
168
|
+
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
|
169
|
+
*/
|
170
|
+
|
171
|
+
pre,
|
172
|
+
code,
|
173
|
+
kbd,
|
174
|
+
samp {
|
175
|
+
font-family: monospace, serif;
|
176
|
+
_font-family: 'courier new', monospace;
|
177
|
+
font-size: 1em;
|
178
|
+
}
|
179
|
+
|
180
|
+
/*
|
181
|
+
* Improves readability of pre-formatted text in all browsers
|
182
|
+
*/
|
183
|
+
|
184
|
+
pre {
|
185
|
+
white-space: pre;
|
186
|
+
white-space: pre-wrap;
|
187
|
+
word-wrap: break-word;
|
188
|
+
}
|
189
|
+
|
190
|
+
/*
|
191
|
+
* 1. Addresses CSS quotes not supported in IE6/7
|
192
|
+
* 2. Addresses quote property not supported in S4
|
193
|
+
*/
|
194
|
+
|
195
|
+
/* 1 */
|
196
|
+
|
197
|
+
q {
|
198
|
+
quotes: none;
|
199
|
+
}
|
200
|
+
|
201
|
+
/* 2 */
|
202
|
+
|
203
|
+
q:before,
|
204
|
+
q:after {
|
205
|
+
content: '';
|
206
|
+
content: none;
|
207
|
+
}
|
208
|
+
|
209
|
+
small {
|
210
|
+
font-size: 75%;
|
211
|
+
}
|
212
|
+
|
213
|
+
/*
|
214
|
+
* Prevents sub and sup affecting line-height in all browsers
|
215
|
+
* gist.github.com/413930
|
216
|
+
*/
|
217
|
+
|
218
|
+
sub,
|
219
|
+
sup {
|
220
|
+
font-size: 75%;
|
221
|
+
line-height: 0;
|
222
|
+
position: relative;
|
223
|
+
vertical-align: baseline;
|
224
|
+
}
|
225
|
+
|
226
|
+
sup {
|
227
|
+
top: -0.5em;
|
228
|
+
}
|
229
|
+
|
230
|
+
sub {
|
231
|
+
bottom: -0.25em;
|
232
|
+
}
|
233
|
+
|
234
|
+
|
235
|
+
/* =============================================================================
|
236
|
+
Lists
|
237
|
+
========================================================================== */
|
238
|
+
|
239
|
+
ul,
|
240
|
+
ol {
|
241
|
+
margin-left: 0;
|
242
|
+
padding: 0 0 0 40px;
|
243
|
+
}
|
244
|
+
|
245
|
+
dd {
|
246
|
+
margin: 0 0 0 40px;
|
247
|
+
}
|
248
|
+
|
249
|
+
nav ul,
|
250
|
+
nav ol {
|
251
|
+
list-style: none;
|
252
|
+
list-style-image: none;
|
253
|
+
}
|
254
|
+
|
255
|
+
|
256
|
+
/* =============================================================================
|
257
|
+
Embedded content
|
258
|
+
========================================================================== */
|
259
|
+
|
260
|
+
/*
|
261
|
+
* 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
|
262
|
+
* 2. Improves image quality when scaled in IE7
|
263
|
+
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
|
264
|
+
*/
|
265
|
+
|
266
|
+
img {
|
267
|
+
border: 0; /* 1 */
|
268
|
+
-ms-interpolation-mode: bicubic; /* 2 */
|
269
|
+
}
|
270
|
+
|
271
|
+
/*
|
272
|
+
* Corrects overflow displayed oddly in IE9
|
273
|
+
*/
|
274
|
+
|
275
|
+
svg:not(:root) {
|
276
|
+
overflow: hidden;
|
277
|
+
}
|
278
|
+
|
279
|
+
|
280
|
+
/* =============================================================================
|
281
|
+
Figures
|
282
|
+
========================================================================== */
|
283
|
+
|
284
|
+
/*
|
285
|
+
* Addresses margin not present in IE6/7/8/9, S5, O11
|
286
|
+
*/
|
287
|
+
|
288
|
+
figure {
|
289
|
+
margin: 0;
|
290
|
+
}
|
291
|
+
|
292
|
+
|
293
|
+
/* =============================================================================
|
294
|
+
Forms
|
295
|
+
========================================================================== */
|
296
|
+
|
297
|
+
/*
|
298
|
+
* Corrects margin displayed oddly in IE6/7
|
299
|
+
*/
|
300
|
+
|
301
|
+
form {
|
302
|
+
margin: 0;
|
303
|
+
}
|
304
|
+
|
305
|
+
/*
|
306
|
+
* Define consistent border, margin, and padding
|
307
|
+
*/
|
308
|
+
|
309
|
+
fieldset {
|
310
|
+
border: 1px solid #c0c0c0;
|
311
|
+
margin: 0 2px;
|
312
|
+
padding: 0.35em 0.625em 0.75em;
|
313
|
+
}
|
314
|
+
|
315
|
+
/*
|
316
|
+
* 1. Corrects color not being inherited in IE6/7/8/9
|
317
|
+
* 2. Corrects alignment displayed oddly in IE6/7
|
318
|
+
*/
|
319
|
+
|
320
|
+
legend {
|
321
|
+
border: 0; /* 1 */
|
322
|
+
*margin-left: -7px; /* 2 */
|
323
|
+
}
|
324
|
+
|
325
|
+
/*
|
326
|
+
* 1. Corrects font size not being inherited in all browsers
|
327
|
+
* 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
|
328
|
+
* 3. Improves appearance and consistency in all browsers
|
329
|
+
*/
|
330
|
+
|
331
|
+
button,
|
332
|
+
input,
|
333
|
+
select,
|
334
|
+
textarea {
|
335
|
+
font-size: 100%; /* 1 */
|
336
|
+
margin: 0; /* 2 */
|
337
|
+
vertical-align: baseline; /* 3 */
|
338
|
+
*vertical-align: middle; /* 3 */
|
339
|
+
}
|
340
|
+
|
341
|
+
/*
|
342
|
+
* Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
|
343
|
+
*/
|
344
|
+
|
345
|
+
button,
|
346
|
+
input {
|
347
|
+
line-height: normal; /* 1 */
|
348
|
+
}
|
349
|
+
|
350
|
+
/*
|
351
|
+
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
|
352
|
+
* 2. Corrects inability to style clickable 'input' types in iOS
|
353
|
+
* 3. Removes inner spacing in IE7 without affecting normal text inputs
|
354
|
+
* Known issue: inner spacing remains in IE6
|
355
|
+
*/
|
356
|
+
|
357
|
+
button,
|
358
|
+
input[type="button"],
|
359
|
+
input[type="reset"],
|
360
|
+
input[type="submit"] {
|
361
|
+
cursor: pointer; /* 1 */
|
362
|
+
-webkit-appearance: button; /* 2 */
|
363
|
+
*overflow: visible; /* 3 */
|
364
|
+
}
|
365
|
+
|
366
|
+
/*
|
367
|
+
* 1. Addresses box sizing set to content-box in IE8/9
|
368
|
+
* 2. Removes excess padding in IE8/9
|
369
|
+
*/
|
370
|
+
|
371
|
+
input[type="checkbox"],
|
372
|
+
input[type="radio"] {
|
373
|
+
box-sizing: border-box; /* 1 */
|
374
|
+
padding: 0; /* 2 */
|
375
|
+
}
|
376
|
+
|
377
|
+
/*
|
378
|
+
* 1. Addresses appearance set to searchfield in S5, Chrome
|
379
|
+
* 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
|
380
|
+
*/
|
381
|
+
|
382
|
+
input[type="search"] {
|
383
|
+
-webkit-appearance: textfield; /* 1 */
|
384
|
+
-moz-box-sizing: content-box;
|
385
|
+
-webkit-box-sizing: content-box; /* 2 */
|
386
|
+
box-sizing: content-box;
|
387
|
+
}
|
388
|
+
|
389
|
+
/*
|
390
|
+
* Removes inner padding that is displayed in S5, Chrome on OS X
|
391
|
+
*/
|
392
|
+
|
393
|
+
input[type="search"]::-webkit-search-decoration {
|
394
|
+
-webkit-appearance: none;
|
395
|
+
}
|
396
|
+
|
397
|
+
/*
|
398
|
+
* Removes inner padding and border in FF3+
|
399
|
+
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
|
400
|
+
*/
|
401
|
+
|
402
|
+
button::-moz-focus-inner,
|
403
|
+
input::-moz-focus-inner {
|
404
|
+
border: 0;
|
405
|
+
padding: 0;
|
406
|
+
}
|
407
|
+
|
408
|
+
/*
|
409
|
+
* 1. Removes default vertical scrollbar in IE6/7/8/9
|
410
|
+
* 2. Improves readability and alignment in all browsers
|
411
|
+
*/
|
412
|
+
|
413
|
+
textarea {
|
414
|
+
overflow: auto; /* 1 */
|
415
|
+
vertical-align: top; /* 2 */
|
416
|
+
}
|
417
|
+
|
418
|
+
|
419
|
+
/* =============================================================================
|
420
|
+
Tables
|
421
|
+
========================================================================== */
|
422
|
+
|
423
|
+
/*
|
424
|
+
* Remove most spacing between table cells
|
425
|
+
*/
|
426
|
+
|
427
|
+
table {
|
428
|
+
border-collapse: collapse;
|
429
|
+
border-spacing: 0;
|
430
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.luca-ui-form-view-wrapper{:id=>"<%= cid %>-wrapper"}
|
2
|
+
.form-view-header
|
3
|
+
.toolbar-container.top{:id=>"<%= cid %>-top-toolbar-container"}
|
4
|
+
<% if(legend){ %>
|
5
|
+
%fieldset
|
6
|
+
%legend
|
7
|
+
<%= legend %>
|
8
|
+
.form-view-flash-container
|
9
|
+
.form-view-body
|
10
|
+
<% } else { %>
|
11
|
+
%ul.form-view-flash-container
|
12
|
+
.form-view-body
|
13
|
+
<% } %>
|
14
|
+
.form-view-footer
|
15
|
+
.toolbar-container.bottom{:id=>"<%= cid %>-bottom-toolbar-container"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.luca-ui-grid-view-wrapper
|
2
|
+
.grid-view-header
|
3
|
+
.toolbar-container.top
|
4
|
+
.grid-view-body
|
5
|
+
%table.luca-ui-grid-view.scrollable-table{:width=>"100%",:cellpadding=>0,:cellspacing=>0}
|
6
|
+
%thead.fixed
|
7
|
+
%tbody.scrollable
|
8
|
+
.grid-view-footer
|
9
|
+
.toolbar-container.bottom
|
@@ -0,0 +1 @@
|
|
1
|
+
%div{:id=>"<%= id %>",:class=>"<%= classes %>",:style=>"<%= style %>"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
%div{:id=>"<%= cid %>-tab-selector",:class=>"tab-selector-container"}
|
2
|
+
%ul{:id=>"<%= cid %>-tabs-nav",:class=>"nav nav-tabs"}
|
3
|
+
<% for(var i = 0; i < components.length; i++ ) { %>
|
4
|
+
<% var component = components[i];%>
|
5
|
+
%li.tab-selector{:data=>{:target=>"<%= i %>"}}
|
6
|
+
%a{:data=>{:target=>"<%= i %>"}}
|
7
|
+
<%= component.title %>
|
8
|
+
<% } %>
|
@@ -0,0 +1 @@
|
|
1
|
+
%div{:id=>"<%= cid %>-tab-view-content",:class=>"tab-content"}
|
@@ -0,0 +1 @@
|
|
1
|
+
%div{:class=>"luca-ui-toolbar-wrapper",:id=>"<%= id %>"}
|
@@ -0,0 +1 @@
|
|
1
|
+
%input{:id=>"<%= input_id %>",:type=>"hidden",:name=>"<%= input_name %>",:value=>"<%= input_value %>"}
|