luca 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +17 -0
  3. data/Gemfile.lock +77 -0
  4. data/Guardfile +22 -0
  5. data/README.md +291 -0
  6. data/Rakefile +28 -0
  7. data/app.rb +46 -0
  8. data/assets/images/glyphicons-halflings-white.png +0 -0
  9. data/assets/images/glyphicons-halflings.png +0 -0
  10. data/assets/javascripts/dependencies/backbone-min.js +37 -0
  11. data/assets/javascripts/dependencies/backbone-query.min.js +1 -0
  12. data/assets/javascripts/dependencies/bootstrap.min.js +1 -0
  13. data/assets/javascripts/dependencies/jasmine-html.js +190 -0
  14. data/assets/javascripts/dependencies/jasmine.js +2476 -0
  15. data/assets/javascripts/dependencies/jquery.js +4 -0
  16. data/assets/javascripts/dependencies/modal.js +698 -0
  17. data/assets/javascripts/dependencies/modernizr.min.js +30 -0
  18. data/assets/javascripts/dependencies/prettify.js +28 -0
  19. data/assets/javascripts/dependencies/sinon.js +3469 -0
  20. data/assets/javascripts/dependencies/spin-min.js +2 -0
  21. data/assets/javascripts/dependencies/underscore-min.js +31 -0
  22. data/assets/javascripts/dependencies/underscore-string.min.js +14 -0
  23. data/assets/javascripts/dependencies.coffee +7 -0
  24. data/assets/javascripts/luca-ui-base.coffee +12 -0
  25. data/assets/javascripts/luca-ui-spec.coffee +2 -0
  26. data/assets/javascripts/luca-ui.coffee +3 -0
  27. data/assets/javascripts/sandbox/collections/sample.coffee +0 -0
  28. data/assets/javascripts/sandbox/config.coffee +7 -0
  29. data/assets/javascripts/sandbox/sandbox.coffee +16 -0
  30. data/assets/javascripts/sandbox/templates/features/collection_helpers.luca +33 -0
  31. data/assets/javascripts/sandbox/templates/features/form_demo_code.luca +48 -0
  32. data/assets/javascripts/sandbox/templates/features/grid_demo_code.luca +24 -0
  33. data/assets/javascripts/sandbox/templates/features/introduction.luca +11 -0
  34. data/assets/javascripts/sandbox/templates/features/view_helpers.luca +43 -0
  35. data/assets/javascripts/sandbox/templates/navigation.luca +8 -0
  36. data/assets/javascripts/sandbox/views/form_demo.coffee +47 -0
  37. data/assets/javascripts/sandbox/views/grid_demo.coffee +23 -0
  38. data/assets/javascripts/sandbox/views/pages/collection_events_sample.coffee +1 -0
  39. data/assets/javascripts/sandbox/views/pages/pages_controller.coffee +28 -0
  40. data/assets/javascripts/sandbox.coffee +4 -0
  41. data/assets/javascripts/spec-dependencies.coffee +4 -0
  42. data/assets/stylesheets/bootstrap-responsive.min.css +3 -0
  43. data/assets/stylesheets/bootstrap.min.css +610 -0
  44. data/assets/stylesheets/jasmine.css +166 -0
  45. data/assets/stylesheets/luca-ui-bootstrap.css +5 -0
  46. data/assets/stylesheets/luca-ui-spec.css +3 -0
  47. data/assets/stylesheets/luca-ui.css +3 -0
  48. data/assets/stylesheets/prettify.css +40 -0
  49. data/assets/stylesheets/sandbox/sandbox.scss +4 -0
  50. data/assets/stylesheets/sandbox.css +3 -0
  51. data/config.ru +11 -0
  52. data/lib/luca/command_line.rb +69 -0
  53. data/lib/luca/rails/engine.rb +12 -0
  54. data/lib/luca/rails/version.rb +6 -0
  55. data/lib/luca/rails.rb +9 -0
  56. data/lib/luca/template.rb +51 -0
  57. data/lib/luca/test_harness.rb +106 -0
  58. data/lib/luca.rb +1 -0
  59. data/lib/sprockets/luca_template.rb +49 -0
  60. data/lib/templates/spec_manifest_javascripts.erb +7 -0
  61. data/lib/templates/spec_manifest_stylesheets.erb +11 -0
  62. data/luca.gemspec +26 -0
  63. data/public/jasmine/index.html +26 -0
  64. data/public/sandbox/api.js +1 -0
  65. data/spec/components/application_spec.coffee +0 -0
  66. data/spec/components/collection_loader_view_spec.coffee +0 -0
  67. data/spec/components/controller_spec.coffee +0 -0
  68. data/spec/components/form_view_spec.coffee +13 -0
  69. data/spec/components/grid_view_spec.coffee +0 -0
  70. data/spec/components/record_manager_spec.coffee +0 -0
  71. data/spec/components/template_spec.coffee +0 -0
  72. data/spec/containers/card_view_spec.coffee +1 -0
  73. data/spec/containers/column_view_spec.coffee +0 -0
  74. data/spec/containers/modal_view_spec.coffee +0 -0
  75. data/spec/containers/panel_view_spec.coffee +0 -0
  76. data/spec/containers/split_view_spec.coffee +0 -0
  77. data/spec/containers/tab_view_spec.coffee +0 -0
  78. data/spec/containers/viewport_spec.coffee +0 -0
  79. data/spec/core/collection_spec.coffee +215 -0
  80. data/spec/core/container_spec.coffee +0 -0
  81. data/spec/core/field_spec.coffee +0 -0
  82. data/spec/core/observer_spec.coffee +0 -0
  83. data/spec/core/view_spec.coffee +87 -0
  84. data/spec/framework_spec.coffee +48 -0
  85. data/spec/helper.coffee +120 -0
  86. data/spec/managers/collection_manager_spec.coffee +95 -0
  87. data/spec/managers/socket_manager_spec.coffee +0 -0
  88. data/src/components/application.coffee +83 -0
  89. data/src/components/base_toolbar.coffee +16 -0
  90. data/src/components/collection_loader_view.coffee +37 -0
  91. data/src/components/controller.coffee +41 -0
  92. data/src/components/fields/button_field.coffee +40 -0
  93. data/src/components/fields/checkbox_field.coffee +41 -0
  94. data/src/components/fields/file_upload_field.coffee +15 -0
  95. data/src/components/fields/hidden_field.coffee +18 -0
  96. data/src/components/fields/select_field.coffee +100 -0
  97. data/src/components/fields/text_area_field.coffee +43 -0
  98. data/src/components/fields/text_field.coffee +42 -0
  99. data/src/components/fields/type_ahead_field.coffee +10 -0
  100. data/src/components/form_button_toolbar.coffee +26 -0
  101. data/src/components/form_view.coffee +205 -0
  102. data/src/components/grid_view.coffee +208 -0
  103. data/src/components/record_manager.coffee +215 -0
  104. data/src/components/router.coffee +34 -0
  105. data/src/components/template.coffee +19 -0
  106. data/src/containers/card_view.coffee +89 -0
  107. data/src/containers/column_view.coffee +48 -0
  108. data/src/containers/modal_view.coffee +85 -0
  109. data/src/containers/panel_view.coffee +24 -0
  110. data/src/containers/split_view.coffee +12 -0
  111. data/src/containers/tab_view.coffee +77 -0
  112. data/src/containers/viewport.coffee +16 -0
  113. data/src/core/collection.coffee +319 -0
  114. data/src/core/container.coffee +256 -0
  115. data/src/core/field.coffee +68 -0
  116. data/src/core/observer.coffee +17 -0
  117. data/src/core/view.coffee +190 -0
  118. data/src/framework.coffee +110 -0
  119. data/src/index.coffee +255 -0
  120. data/src/managers/collection_manager.coffee +168 -0
  121. data/src/managers/socket_manager.coffee +54 -0
  122. data/src/modules/deferrable.coffee +18 -0
  123. data/src/modules/local_storage.coffee +50 -0
  124. data/src/stylesheets/base.scss +78 -0
  125. data/src/stylesheets/components/form_view.scss +54 -0
  126. data/src/stylesheets/components/grid_view.scss +111 -0
  127. data/src/stylesheets/components/toolbar.scss +15 -0
  128. data/src/stylesheets/containers/container.scss +7 -0
  129. data/src/stylesheets/containers/modal_view.scss +0 -0
  130. data/src/stylesheets/containers/tab_view.scss +33 -0
  131. data/src/stylesheets/normalize.scss +430 -0
  132. data/src/templates/components/bootstrap_form_controls.luca +7 -0
  133. data/src/templates/components/collection_loader_view.luca +5 -0
  134. data/src/templates/components/form_view.luca +15 -0
  135. data/src/templates/components/grid_view.luca +9 -0
  136. data/src/templates/components/grid_view_empty_text.luca +3 -0
  137. data/src/templates/containers/basic.luca +1 -0
  138. data/src/templates/containers/tab_selector_container.luca +8 -0
  139. data/src/templates/containers/tab_view.luca +1 -0
  140. data/src/templates/containers/toolbar_wrapper.luca +1 -0
  141. data/src/templates/fields/button_field.luca +2 -0
  142. data/src/templates/fields/button_field_link.luca +5 -0
  143. data/src/templates/fields/checkbox_field.luca +9 -0
  144. data/src/templates/fields/file_upload_field.luca +8 -0
  145. data/src/templates/fields/hidden_field.luca +1 -0
  146. data/src/templates/fields/select_field.luca +7 -0
  147. data/src/templates/fields/text_area_field.luca +8 -0
  148. data/src/templates/fields/text_field.luca +13 -0
  149. data/src/templates/sample/contents.luca +1 -0
  150. data/src/templates/sample/welcome.luca +1 -0
  151. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  152. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  153. data/vendor/assets/javascripts/luca-spec-dependencies.js +6135 -0
  154. data/vendor/assets/javascripts/luca-ui-base.js +1527 -0
  155. data/vendor/assets/javascripts/luca-ui-spec.js +3654 -0
  156. data/vendor/assets/javascripts/luca-ui.js +2763 -0
  157. data/vendor/assets/luca-ui/base.css +85 -0
  158. data/vendor/assets/luca-ui/components/application.js +91 -0
  159. data/vendor/assets/luca-ui/components/base_toolbar.js +23 -0
  160. data/vendor/assets/luca-ui/components/controller.js +38 -0
  161. data/vendor/assets/luca-ui/components/fields/button_field.js +45 -0
  162. data/vendor/assets/luca-ui/components/fields/checkbox_field.js +43 -0
  163. data/vendor/assets/luca-ui/components/fields/file_upload_field.js +20 -0
  164. data/vendor/assets/luca-ui/components/fields/hidden_field.js +20 -0
  165. data/vendor/assets/luca-ui/components/fields/select_field.js +97 -0
  166. data/vendor/assets/luca-ui/components/fields/text_area_field.js +48 -0
  167. data/vendor/assets/luca-ui/components/fields/text_field.js +46 -0
  168. data/vendor/assets/luca-ui/components/fields/type_ahead_field.js +13 -0
  169. data/vendor/assets/luca-ui/components/form_button_toolbar.js +32 -0
  170. data/vendor/assets/luca-ui/components/form_view.css +32 -0
  171. data/vendor/assets/luca-ui/components/form_view.js +207 -0
  172. data/vendor/assets/luca-ui/components/grid_view.css +76 -0
  173. data/vendor/assets/luca-ui/components/grid_view.js +202 -0
  174. data/vendor/assets/luca-ui/components/record_manager.js +207 -0
  175. data/vendor/assets/luca-ui/components/router.js +36 -0
  176. data/vendor/assets/luca-ui/components/template.js +26 -0
  177. data/vendor/assets/luca-ui/components/toolbar.css +11 -0
  178. data/vendor/assets/luca-ui/containers/card_view.js +98 -0
  179. data/vendor/assets/luca-ui/containers/column_view.js +52 -0
  180. data/vendor/assets/luca-ui/containers/container.css +3 -0
  181. data/vendor/assets/luca-ui/containers/modal_view.css +0 -0
  182. data/vendor/assets/luca-ui/containers/modal_view.js +87 -0
  183. data/vendor/assets/luca-ui/containers/panel_view.js +34 -0
  184. data/vendor/assets/luca-ui/containers/split_view.js +13 -0
  185. data/vendor/assets/luca-ui/containers/tab_view.css +16 -0
  186. data/vendor/assets/luca-ui/containers/tab_view.js +80 -0
  187. data/vendor/assets/luca-ui/containers/viewport.js +18 -0
  188. data/vendor/assets/luca-ui/core/collection.js +221 -0
  189. data/vendor/assets/luca-ui/core/container.js +205 -0
  190. data/vendor/assets/luca-ui/core/field.js +59 -0
  191. data/vendor/assets/luca-ui/core/observer.js +42 -0
  192. data/vendor/assets/luca-ui/core/view.js +127 -0
  193. data/vendor/assets/luca-ui/framework.js +110 -0
  194. data/vendor/assets/luca-ui/index.js +5 -0
  195. data/vendor/assets/luca-ui/managers/collection_manager.js +98 -0
  196. data/vendor/assets/luca-ui/managers/socket_manager.js +52 -0
  197. data/vendor/assets/luca-ui/modules/deferrable.js +21 -0
  198. data/vendor/assets/luca-ui/modules/local_storage.js +81 -0
  199. data/vendor/assets/luca-ui/normalize.css +359 -0
  200. data/vendor/assets/luca-ui/stylesheets/base.css +85 -0
  201. data/vendor/assets/luca-ui/stylesheets/components/form_view.css +32 -0
  202. data/vendor/assets/luca-ui/stylesheets/components/grid_view.css +76 -0
  203. data/vendor/assets/luca-ui/stylesheets/components/toolbar.css +11 -0
  204. data/vendor/assets/luca-ui/stylesheets/containers/container.css +3 -0
  205. data/vendor/assets/luca-ui/stylesheets/containers/modal_view.css +0 -0
  206. data/vendor/assets/luca-ui/stylesheets/containers/tab_view.css +16 -0
  207. data/vendor/assets/luca-ui/stylesheets/normalize.css +359 -0
  208. data/vendor/assets/luca-ui/templates/components/bootstrap_form_controls.js +4 -0
  209. data/vendor/assets/luca-ui/templates/components/form_view.js +4 -0
  210. data/vendor/assets/luca-ui/templates/components/grid_view.js +4 -0
  211. data/vendor/assets/luca-ui/templates/components/grid_view_empty_text.js +4 -0
  212. data/vendor/assets/luca-ui/templates/containers/basic.js +4 -0
  213. data/vendor/assets/luca-ui/templates/containers/tab_selector_container.js +4 -0
  214. data/vendor/assets/luca-ui/templates/containers/tab_view.js +4 -0
  215. data/vendor/assets/luca-ui/templates/containers/toolbar_wrapper.js +4 -0
  216. data/vendor/assets/luca-ui/templates/fields/button_field.js +4 -0
  217. data/vendor/assets/luca-ui/templates/fields/button_field_link.js +4 -0
  218. data/vendor/assets/luca-ui/templates/fields/checkbox_field.js +4 -0
  219. data/vendor/assets/luca-ui/templates/fields/file_upload_field.js +4 -0
  220. data/vendor/assets/luca-ui/templates/fields/hidden_field.js +4 -0
  221. data/vendor/assets/luca-ui/templates/fields/select_field.js +4 -0
  222. data/vendor/assets/luca-ui/templates/fields/text_area_field.js +4 -0
  223. data/vendor/assets/luca-ui/templates/fields/text_field.js +4 -0
  224. data/vendor/assets/luca-ui/templates/sample/contents.js +4 -0
  225. data/vendor/assets/luca-ui/templates/sample/welcome.js +4 -0
  226. data/vendor/assets/stylesheets/luca-spec-dependencies.css +166 -0
  227. data/vendor/assets/stylesheets/luca-ui-bootstrap.css +1201 -0
  228. data/vendor/assets/stylesheets/luca-ui-spec.css +586 -0
  229. data/vendor/assets/stylesheets/luca-ui.css +586 -0
  230. data/views/index.erb +20 -0
  231. data/views/jasmine.erb +22 -0
  232. data/views/spec_harness.erb +29 -0
  233. 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
+ }
@@ -0,0 +1,15 @@
1
+ .luca-ui-toolbar-wrapper {
2
+ clear: both;
3
+ display: block;
4
+ float: left;
5
+ width: 100%;
6
+
7
+ .luca-ui-form-toolbar, .luca-ui-toolbar {
8
+ clear: both;
9
+ margin: 5px auto;
10
+ .luca-ui-field {
11
+ float: left;
12
+ margin: 5px;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,7 @@
1
+ .luca-ui-container {
2
+ }
3
+
4
+ .luca-ui-card {
5
+ padding: 5px;
6
+ width: 100%;
7
+ }
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,7 @@
1
+ .form-actions
2
+ %a.btn.btn-primary.submit-button
3
+ %i.icon-ok.icon-white
4
+ Save Changes
5
+ %a.btn.reset-button.cancel-button
6
+ %i.icon-remove
7
+ Cancel
@@ -0,0 +1,5 @@
1
+ %div#progress-model.modal{:stype =>"display: none;"}
2
+ .progress.progress-info.progress-striped.active
3
+ .bar{:style => "width: 0%;" }
4
+ .message
5
+ Initializing...
@@ -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,3 @@
1
+ .empty-text-wrapper
2
+ %p
3
+ <%= text %>
@@ -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,2 @@
1
+ %label &nbsp
2
+ %input{:style=>"<%= inputStyles %>",:class=>"btn <%= input_class %>",:value=>"<%= input_value %>",:type=>"<%= input_type %>",:id=>"<%= input_id %>"}
@@ -0,0 +1,5 @@
1
+ %a{:class=>"btn <%= input_class %>"}
2
+ <% if(icon_class.length) { %>
3
+ %i{:class=>"<%= icon_class %>"}
4
+ <% } %>
5
+ <%= input_value %>
@@ -0,0 +1,9 @@
1
+ %label{:for=>"<%= input_id %>"}
2
+ <%= label %>
3
+ %input{:style=>"<%= inputStyles %>",:type=>"checkbox",:name=>"<%= input_name %>",:value=>"<%= input_value %>"}
4
+
5
+ <% if(helperText) { %>
6
+ %p.helper-text.help-block
7
+ <%= helperText %>
8
+ <% } %>
9
+
@@ -0,0 +1,8 @@
1
+ %label{:for=>"<%= input_id %>"}
2
+ <%= label %>
3
+ %input{:style=>"<%= inputStyles %>",:id=>"<%= input_id %>",:type=>"file",:name=>"<%= input_name %>"}
4
+ <% if(helperText) { %>
5
+ %p.helper-text.help-block
6
+ <%= helperText %>
7
+ <% } %>
8
+
@@ -0,0 +1 @@
1
+ %input{:id=>"<%= input_id %>",:type=>"hidden",:name=>"<%= input_name %>",:value=>"<%= input_value %>"}