sproutcore 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. data/History.txt +233 -0
  2. data/Manifest.txt +67 -34
  3. data/bin/sc-build +12 -1
  4. data/bin/sc-gen +1 -1
  5. data/bin/sproutcore +14 -0
  6. data/clients/sc_docs/controllers/docs.js +38 -8
  7. data/clients/sc_docs/english.lproj/body.css +80 -127
  8. data/clients/sc_docs/english.lproj/body.rhtml +43 -23
  9. data/clients/sc_docs/english.lproj/no_docs.rhtml +2 -1
  10. data/clients/sc_docs/english.lproj/tabs.rhtml +16 -0
  11. data/clients/sc_docs/main.js +14 -9
  12. data/clients/sc_docs/models/doc.js +1 -1
  13. data/clients/sc_docs/tests/controllers/docs.rhtml +1 -2
  14. data/clients/sc_docs/tests/models/doc.rhtml +1 -2
  15. data/clients/sc_docs/tests/views/doc_frame.rhtml +1 -2
  16. data/clients/sc_docs/tests/views/doc_label_view.rhtml +1 -2
  17. data/clients/sc_docs/views/doc_frame.js +1 -1
  18. data/clients/sc_test_runner/controllers/runner.js +31 -8
  19. data/clients/sc_test_runner/english.lproj/body.css +62 -122
  20. data/clients/sc_test_runner/english.lproj/body.rhtml +62 -26
  21. data/clients/sc_test_runner/main.js +1 -6
  22. data/clients/sc_test_runner/models/test.js +14 -1
  23. data/clients/sc_test_runner/views/runner_frame.js +4 -2
  24. data/clients/view_builder/builders/builder.js +339 -0
  25. data/clients/view_builder/builders/button.js +81 -0
  26. data/clients/view_builder/controllers/document.js +21 -0
  27. data/clients/view_builder/core.js +19 -0
  28. data/clients/view_builder/english.lproj/body.css +77 -0
  29. data/clients/view_builder/english.lproj/body.rhtml +41 -0
  30. data/clients/{sc_docs → view_builder}/english.lproj/controls.css +0 -0
  31. data/clients/view_builder/english.lproj/strings.js +14 -0
  32. data/clients/view_builder/main.js +38 -0
  33. data/clients/view_builder/tests/controllers/document.rhtml +20 -0
  34. data/clients/view_builder/tests/views/builder.rhtml +20 -0
  35. data/clients/view_builder/views/builder.js +23 -0
  36. data/frameworks/prototype/prototype.js +1 -1
  37. data/frameworks/sproutcore/Core.js +32 -7
  38. data/frameworks/sproutcore/README +1 -1
  39. data/frameworks/sproutcore/animation/animation.js +411 -0
  40. data/frameworks/sproutcore/controllers/array.js +17 -9
  41. data/frameworks/sproutcore/controllers/collection.js +9 -110
  42. data/frameworks/sproutcore/controllers/controller.js +1 -1
  43. data/frameworks/sproutcore/controllers/object.js +2 -1
  44. data/frameworks/sproutcore/drag/drag.js +267 -56
  45. data/frameworks/sproutcore/drag/drag_data_source.js +24 -16
  46. data/frameworks/sproutcore/drag/drag_source.js +53 -42
  47. data/frameworks/sproutcore/drag/drop_target.js +2 -2
  48. data/frameworks/sproutcore/english.lproj/buttons.css +337 -236
  49. data/frameworks/sproutcore/english.lproj/core.css +115 -0
  50. data/frameworks/sproutcore/english.lproj/icons.css +227 -0
  51. data/{clients/sc_docs → frameworks/sproutcore}/english.lproj/images/indicator.gif +0 -0
  52. data/frameworks/sproutcore/english.lproj/images/sc-theme-sprite.png +0 -0
  53. data/frameworks/sproutcore/english.lproj/images/sc-theme-ysprite.png +0 -0
  54. data/frameworks/sproutcore/english.lproj/images/shared-icons.png +0 -0
  55. data/frameworks/sproutcore/english.lproj/menu.css +1 -1
  56. data/frameworks/sproutcore/english.lproj/strings.js +1 -1
  57. data/frameworks/sproutcore/english.lproj/theme.css +405 -31
  58. data/frameworks/sproutcore/foundation/application.js +15 -11
  59. data/frameworks/sproutcore/foundation/benchmark.js +1 -1
  60. data/frameworks/sproutcore/foundation/binding.js +2 -2
  61. data/frameworks/sproutcore/foundation/date.js +1 -1
  62. data/frameworks/sproutcore/foundation/error.js +1 -1
  63. data/frameworks/sproutcore/foundation/input_manager.js +32 -21
  64. data/frameworks/sproutcore/foundation/mock.js +1 -1
  65. data/frameworks/sproutcore/foundation/node_descriptor.js +9 -6
  66. data/frameworks/sproutcore/foundation/object.js +249 -177
  67. data/frameworks/sproutcore/foundation/page.js +5 -2
  68. data/frameworks/sproutcore/foundation/path_module.js +11 -10
  69. data/frameworks/sproutcore/foundation/responder.js +5 -2
  70. data/frameworks/sproutcore/foundation/routes.js +17 -13
  71. data/frameworks/sproutcore/foundation/run_loop.js +249 -11
  72. data/frameworks/sproutcore/foundation/server.js +1 -1
  73. data/frameworks/sproutcore/foundation/set.js +3 -3
  74. data/frameworks/sproutcore/foundation/string.js +5 -3
  75. data/frameworks/sproutcore/foundation/timer.js +371 -0
  76. data/frameworks/sproutcore/foundation/undo_manager.js +1 -1
  77. data/frameworks/sproutcore/foundation/unittest.js +3 -3
  78. data/frameworks/sproutcore/foundation/utils.js +161 -2
  79. data/frameworks/sproutcore/globals/panels.js +1 -1
  80. data/frameworks/sproutcore/globals/popups.js +4 -3
  81. data/frameworks/sproutcore/globals/window.js +44 -4
  82. data/frameworks/sproutcore/lib/button_views.rb +328 -0
  83. data/frameworks/sproutcore/lib/collection_view.rb +80 -0
  84. data/frameworks/sproutcore/lib/core_views.rb +281 -0
  85. data/frameworks/sproutcore/lib/form_views.rb +253 -0
  86. data/frameworks/sproutcore/lib/index.rhtml +2 -0
  87. data/frameworks/sproutcore/lib/menu_views.rb +88 -0
  88. data/frameworks/sproutcore/{foundation → mixins}/array.js +60 -29
  89. data/frameworks/sproutcore/mixins/control.js +265 -0
  90. data/frameworks/sproutcore/mixins/delegate_support.js +66 -0
  91. data/frameworks/sproutcore/{foundation → mixins}/observable.js +176 -6
  92. data/frameworks/sproutcore/mixins/scrollable.js +245 -0
  93. data/frameworks/sproutcore/mixins/selection_support.js +148 -0
  94. data/frameworks/sproutcore/mixins/validatable.js +152 -0
  95. data/frameworks/sproutcore/models/collection.js +5 -5
  96. data/frameworks/sproutcore/models/record.js +1 -1
  97. data/frameworks/sproutcore/models/store.js +1 -1
  98. data/frameworks/sproutcore/panes/dialog.js +1 -1
  99. data/frameworks/sproutcore/panes/manager.js +1 -1
  100. data/frameworks/sproutcore/panes/menu.js +1 -1
  101. data/frameworks/sproutcore/panes/overlay.js +2 -2
  102. data/frameworks/sproutcore/panes/panel.js +1 -1
  103. data/frameworks/sproutcore/panes/picker.js +1 -1
  104. data/frameworks/sproutcore/tests/controllers/array.rhtml +44 -4
  105. data/frameworks/sproutcore/tests/foundation/timer/invalidate.rhtml +33 -0
  106. data/frameworks/sproutcore/tests/foundation/timer/invokeLater.rhtml +145 -0
  107. data/frameworks/sproutcore/tests/foundation/timer/isPaused.rhtml +70 -0
  108. data/frameworks/sproutcore/tests/foundation/timer/schedule.rhtml +145 -0
  109. data/frameworks/sproutcore/tests/views/{scroll.rhtml → checkbox.rhtml} +3 -3
  110. data/frameworks/sproutcore/tests/views/{collection.rhtml → collection/base.rhtml} +33 -32
  111. data/frameworks/sproutcore/tests/views/collection/incremental_rendering.rhtml +260 -0
  112. data/frameworks/sproutcore/tests/views/image_cell.rhtml +19 -0
  113. data/frameworks/sproutcore/tests/views/label_item.rhtml +2 -4
  114. data/frameworks/sproutcore/tests/views/list.rhtml +2 -3
  115. data/frameworks/sproutcore/tests/views/list_item.rhtml +20 -0
  116. data/frameworks/sproutcore/tests/views/slider.rhtml +20 -0
  117. data/frameworks/sproutcore/tests/views/text_cell.rhtml +19 -0
  118. data/frameworks/sproutcore/tests/views/view/clippingFrame.rhtml +395 -0
  119. data/frameworks/sproutcore/tests/views/view/frame.rhtml +353 -0
  120. data/frameworks/sproutcore/tests/views/view/innerFrame.rhtml +347 -0
  121. data/frameworks/sproutcore/tests/views/view/isVisibleInWindow.rhtml +148 -0
  122. data/frameworks/sproutcore/tests/views/view/scrollFrame.rhtml +468 -0
  123. data/frameworks/sproutcore/validators/credit_card.js +33 -13
  124. data/frameworks/sproutcore/validators/date.js +26 -6
  125. data/frameworks/sproutcore/validators/email.js +21 -3
  126. data/frameworks/sproutcore/validators/not_empty.js +11 -1
  127. data/frameworks/sproutcore/validators/number.js +18 -4
  128. data/frameworks/sproutcore/validators/password.js +12 -1
  129. data/frameworks/sproutcore/validators/validator.js +204 -194
  130. data/frameworks/sproutcore/views/{button.js → button/button.js} +96 -94
  131. data/frameworks/sproutcore/views/button/checkbox.js +29 -0
  132. data/frameworks/sproutcore/views/button/disclosure.js +42 -0
  133. data/frameworks/sproutcore/views/button/radio.js +29 -0
  134. data/frameworks/sproutcore/views/{collection.js → collection/collection.js} +1373 -1024
  135. data/frameworks/sproutcore/views/collection/grid.js +124 -46
  136. data/frameworks/sproutcore/views/collection/image_cell.js +17 -46
  137. data/frameworks/sproutcore/views/collection/list.js +45 -35
  138. data/frameworks/sproutcore/views/collection/source_list.js +386 -0
  139. data/frameworks/sproutcore/views/collection/table.js +118 -0
  140. data/frameworks/sproutcore/views/container.js +7 -2
  141. data/frameworks/sproutcore/views/error_explanation.js +23 -10
  142. data/frameworks/sproutcore/views/{checkbox_field.js → field/checkbox_field.js} +16 -6
  143. data/frameworks/sproutcore/views/field/field.js +219 -0
  144. data/frameworks/sproutcore/views/{radio_field.js → field/radio_field.js} +27 -12
  145. data/frameworks/sproutcore/views/{select_field.js → field/select_field.js} +116 -90
  146. data/frameworks/sproutcore/views/{text_field.js → field/text_field.js} +57 -8
  147. data/frameworks/sproutcore/views/{textarea_field.js → field/textarea_field.js} +13 -3
  148. data/frameworks/sproutcore/views/filter_button.js +2 -2
  149. data/frameworks/sproutcore/views/form.js +3 -3
  150. data/frameworks/sproutcore/views/image.js +128 -21
  151. data/frameworks/sproutcore/views/inline_text_editor.js +1 -1
  152. data/frameworks/sproutcore/views/label.js +149 -92
  153. data/frameworks/sproutcore/views/list_item.js +225 -0
  154. data/frameworks/sproutcore/views/menu_item.js +10 -4
  155. data/frameworks/sproutcore/views/pagination.js +11 -4
  156. data/frameworks/sproutcore/views/popup_button.js +25 -21
  157. data/frameworks/sproutcore/views/popup_menu.js +10 -4
  158. data/frameworks/sproutcore/views/progress.js +29 -16
  159. data/frameworks/sproutcore/views/radio_group.js +1 -1
  160. data/frameworks/sproutcore/views/scroll.js +60 -20
  161. data/frameworks/sproutcore/views/segmented.js +1 -1
  162. data/frameworks/sproutcore/views/slider.js +132 -0
  163. data/frameworks/sproutcore/views/source_list_group.js +130 -0
  164. data/frameworks/sproutcore/views/spinner.js +1 -1
  165. data/frameworks/sproutcore/views/split.js +292 -0
  166. data/frameworks/sproutcore/views/split_divider.js +109 -0
  167. data/frameworks/sproutcore/views/tab.js +1 -1
  168. data/frameworks/sproutcore/views/toolbar.js +1 -1
  169. data/frameworks/sproutcore/views/view.js +1272 -591
  170. data/generators/client/templates/english.lproj/body.css +1 -1
  171. data/generators/controller/controller_generator.rb +1 -1
  172. data/generators/controller/templates/test.rhtml +2 -1
  173. data/generators/model/templates/test.rhtml +1 -1
  174. data/generators/test/templates/test.rhtml +1 -1
  175. data/generators/view/templates/test.rhtml +1 -1
  176. data/jsdoc/templates/sproutcore/class.tmpl +241 -338
  177. data/jsdoc/templates/sproutcore/default.css +105 -155
  178. data/jsdoc/templates/sproutcore/index.tmpl +43 -8
  179. data/jsdoc/templates/sproutcore/publish.js +9 -4
  180. data/lib/sproutcore/build_tools/html_builder.rb +29 -13
  181. data/lib/sproutcore/build_tools/resource_builder.rb +1 -1
  182. data/lib/sproutcore/bundle.rb +86 -25
  183. data/lib/sproutcore/jsdoc.rb +2 -0
  184. data/lib/sproutcore/version.rb +1 -1
  185. data/lib/sproutcore/view_helpers.rb +36 -3
  186. data/tasks/deployment.rake +1 -1
  187. metadata +69 -36
  188. data/clients/sc_docs/english.lproj/icons/small/next.png +0 -0
  189. data/clients/sc_docs/english.lproj/icons/small/reset.png +0 -0
  190. data/clients/sc_docs/english.lproj/images/gradients.png +0 -0
  191. data/clients/sc_docs/english.lproj/images/toolbar.png +0 -0
  192. data/clients/sc_docs/english.lproj/warning.rhtml +0 -6
  193. data/clients/sc_test_runner/english.lproj/warning.rhtml +0 -6
  194. data/frameworks/sproutcore/english.lproj/buttons.png +0 -0
  195. data/frameworks/sproutcore/english.lproj/collections.css +0 -82
  196. data/frameworks/sproutcore/english.lproj/images/buttons-sprite.png +0 -0
  197. data/frameworks/sproutcore/views/collection/collection_item.js +0 -36
  198. data/frameworks/sproutcore/views/collection/text_cell.js +0 -128
  199. data/frameworks/sproutcore/views/field.js +0 -214
  200. data/frameworks/sproutcore/views/workspace.js +0 -170
  201. data/generators/client/templates/english.lproj/controls.css +0 -0
  202. data/generators/framework/templates/english.lproj/body.css +0 -0
  203. data/generators/framework/templates/english.lproj/body.rhtml +0 -3
  204. data/generators/framework/templates/english.lproj/controls.css +0 -0
  205. data/lib/sproutcore/view_helpers/button_views.rb +0 -302
  206. data/lib/sproutcore/view_helpers/core_views.rb +0 -292
  207. data/lib/sproutcore/view_helpers/form_views.rb +0 -258
  208. data/lib/sproutcore/view_helpers/menu_views.rb +0 -94
@@ -0,0 +1,115 @@
1
+ /* @override
2
+ http://localhost:4020/static/sproutcore/en/_cache/core-1207528979.css
3
+ http://localhost:4020/static/sproutcore/en/_cache/core-1207680408.css
4
+ */
5
+
6
+ /* =============================================
7
+ Core Styles
8
+
9
+ These styles are required by various views. You should keep these in your views even if you write your own theme.
10
+ */
11
+
12
+ /* @group SC.Drag */
13
+
14
+ .sc-ghost-view {
15
+ position: absolute;
16
+ -moz-user-select: none;
17
+ -khtml-user-select: none;
18
+ user-select: none;
19
+ opacity: 0.45;
20
+ -moz-opacity: .45 ;
21
+ z-index: 1000000;
22
+ cursor: default ;
23
+ }
24
+
25
+ /* @end */
26
+
27
+ /* @group SC.ScrollView */
28
+
29
+ .sc-scroll-view {
30
+ overflow: hidden;
31
+ position: relative;
32
+ }
33
+
34
+ .sc-scroll-view.sc-scroll-vertical {
35
+ overflow-y: auto ;
36
+ }
37
+
38
+ .sc-scroll-view.sc-scroll-horizontal {
39
+ overflow-x: auto ;
40
+ }
41
+
42
+ /* Always absolutely position children of a scroll view since the scroll view will lay them out. */
43
+ .sc-scroll-view > * {
44
+ position: absolute ;
45
+ }
46
+
47
+ /* @end */
48
+
49
+
50
+ /* @group SC.CollectionView */
51
+
52
+ .sc-collection-view .sc-collection-item {
53
+ cursor: pointer ;
54
+ position: absolute ;
55
+ }
56
+
57
+ /* @end */
58
+
59
+ /* @group SC.ListItemView */
60
+
61
+ .sc-list-item-view .sc-icon {
62
+ width: 16px;
63
+ height: 16px;
64
+ vertical-align: middle ;
65
+ position: relative ;
66
+ top: -1px;
67
+ margin-right: 5px;
68
+ }
69
+
70
+ .sc-list-item-view .sc-count {
71
+ position: absolute ;
72
+ right: 3px ;
73
+ margin-right: 2px;
74
+ }
75
+
76
+ .sc-list-item-view .sc-branch {
77
+ position: absolute;
78
+ display: block;
79
+ right: 0;
80
+ width: 14px;
81
+ top: 0;
82
+ }
83
+
84
+ .sc-list-item-view.sc-has-branch .sc-count {
85
+ right: 14px;
86
+ }
87
+
88
+ /* @end */
89
+
90
+ /* @group SC.SourceListView */
91
+
92
+ .sc-source-list-group .sc-source-list-label.no-disclosure img {
93
+ display: none ;
94
+ }
95
+
96
+ /* @end */
97
+
98
+ /* @group SC.SplitView */
99
+
100
+ .sc-split_view > * {
101
+ position: absolute ;
102
+ }
103
+
104
+ .sc-split-view.horizontal .sc-split-divider-view {
105
+ cursor: ew-resize;
106
+ }
107
+
108
+ .sc-split-view.vertical .sc-split-divider-view {
109
+ cursor: ns-resize;
110
+ }
111
+
112
+ /* @end */
113
+
114
+
115
+
@@ -0,0 +1,227 @@
1
+ /* @override
2
+ http://localhost:4020/static/sproutcore/en/_cache/icons-1208151762.css
3
+ http://localhost:4020/static/sproutcore/en/_cache/icons-1208151807.css
4
+ */
5
+
6
+ /* @group General */
7
+
8
+ .sc-icon {
9
+ background-image: static_url('shared-icons');
10
+ }
11
+
12
+ /* @end */
13
+
14
+ /* @group 48-Pixel Icons */
15
+
16
+ .sc-icon-alert-48 {
17
+ width: 48px;
18
+ height: 48px;
19
+ background: no-repeat static_url('shared-icons') left top;
20
+ }
21
+
22
+ .sc-icon-info-48 {
23
+ width: 48px;
24
+ height: 48px;
25
+ background: no-repeat static_url('shared-icons') left -48px;
26
+ }
27
+
28
+ .sc-icon-error-48 {
29
+ width: 48px;
30
+ height: 48px;
31
+ background: no-repeat static_url('shared-icons') left -96px;
32
+ }
33
+
34
+
35
+ /* @end */
36
+
37
+ /* @group 24-Pixel Icons */
38
+
39
+ .sc-icon-tools-24 {
40
+ width: 24px;
41
+ height: 24px;
42
+ background: no-repeat static_url('shared-icons') 0px -144px;
43
+ }
44
+
45
+ .sc-icon-bookmark-24 {
46
+ width: 24px;
47
+ height: 24px;
48
+ background: no-repeat static_url('shared-icons') -24px -144px;
49
+ }
50
+
51
+ .sc-icon-info-24 {
52
+ width: 24px;
53
+ height: 24px;
54
+ background: no-repeat static_url('shared-icons') 0px -168px;
55
+ }
56
+
57
+ .sc-icon-help-24 {
58
+ width: 24px;
59
+ height: 24px;
60
+ background: no-repeat static_url('shared-icons') -0px -192px;
61
+ }
62
+
63
+ .sc-icon-alert-24 {
64
+ width: 24px;
65
+ height: 24px;
66
+ background: no-repeat static_url('shared-icons') -24px -192px;
67
+ }
68
+
69
+ .sc-icon-left-24 {
70
+ width: 24px;
71
+ height: 24px;
72
+ background: no-repeat static_url('shared-icons') 0px -216px;
73
+ }
74
+
75
+ .sc-icon-right-24 {
76
+ width: 24px;
77
+ height: 24px;
78
+ background: no-repeat static_url('shared-icons') -24px -216px;
79
+ }
80
+
81
+ .sc-icon-up-24 {
82
+ width: 24px;
83
+ height: 24px;
84
+ background: no-repeat static_url('shared-icons') 0px -240px;
85
+ }
86
+
87
+ .sc-icon-down-24 {
88
+ width: 24px;
89
+ height: 24px;
90
+ background: no-repeat static_url('shared-icons') -24px -240px;
91
+ }
92
+
93
+ .sc-icon-undo-24 {
94
+ width: 24px;
95
+ height: 24px;
96
+ background: no-repeat static_url('shared-icons') 0px -264px;
97
+ }
98
+
99
+ .sc-icon-redo-24 {
100
+ width: 24px;
101
+ height: 24px;
102
+ background: no-repeat static_url('shared-icons') -24px -264px;
103
+ }
104
+
105
+ .sc-icon-group-24 {
106
+ width: 24px;
107
+ height: 24px;
108
+ background: no-repeat static_url('shared-icons') 0px -288px;
109
+ }
110
+
111
+ .sc-icon-user-24 {
112
+ width: 24px;
113
+ height: 24px;
114
+ background: no-repeat static_url('shared-icons') -24px -288px;
115
+ }
116
+
117
+ .sc-icon-cancel-24 {
118
+ width: 24px;
119
+ height: 24px;
120
+ background: no-repeat static_url('shared-icons') 0px -312px;
121
+ }
122
+
123
+ .sc-icon-options-24 {
124
+ width: 24px;
125
+ height: 24px;
126
+ background: no-repeat static_url('shared-icons') -24px -312px;
127
+ }
128
+
129
+ .sc-icon-folder-24 {
130
+ width: 24px;
131
+ height: 24px;
132
+ background: no-repeat static_url('shared-icons') 0px -336px;
133
+ }
134
+
135
+ .sc-icon-trash-24 {
136
+ width: 24px;
137
+ height: 24px;
138
+ background: no-repeat static_url('shared-icons') -24px -336px;
139
+ }
140
+
141
+ .sc-icon-document-24 {
142
+ width: 24px;
143
+ height: 24px;
144
+ background: no-repeat static_url('shared-icons') 0px -360px;
145
+ }
146
+
147
+ .sc-icon-favorite-24 {
148
+ width: 24px;
149
+ height: 24px;
150
+ background: no-repeat static_url('shared-icons') -24px -360px;
151
+ }
152
+
153
+ /* @end */
154
+
155
+ /* @group 16-Pixel Icons */
156
+
157
+ .sc-icon-bookmark-16 {
158
+ width: 16px;
159
+ height: 16px;
160
+ background: no-repeat static_url('shared-icons') -16px -384px;
161
+ }
162
+
163
+ .sc-icon-info-16 {
164
+ width: 16px;
165
+ height: 16px;
166
+ background: no-repeat static_url('shared-icons') -32px -384px;
167
+ }
168
+
169
+ .sc-icon-help-16 {
170
+ width: 16px;
171
+ height: 16px;
172
+ background: no-repeat static_url('shared-icons') -16px -400px;
173
+ }
174
+
175
+ .sc-icon-alert-16 {
176
+ width: 16px;
177
+ height: 16px;
178
+ background: no-repeat static_url('shared-icons') -32px -400px;
179
+ }
180
+
181
+ .sc-icon-group-16 {
182
+ width: 16px;
183
+ height: 16px;
184
+ background: no-repeat static_url('shared-icons') -0px -448px;
185
+ }
186
+
187
+ .sc-icon-user-16 {
188
+ width: 16px;
189
+ height: 16px;
190
+ background: no-repeat static_url('shared-icons') -16px -448px;
191
+ }
192
+
193
+ .sc-icon-options-16 {
194
+ width: 16px;
195
+ height: 16px;
196
+ background: no-repeat static_url('shared-icons') -0px -464px;
197
+ }
198
+
199
+ .sc-icon-folder-16 {
200
+ width: 16px;
201
+ height: 16px;
202
+ background: no-repeat static_url('shared-icons') -16px -464px;
203
+ }
204
+
205
+ .sc-icon-trash-16 {
206
+ width: 16px;
207
+ height: 16px;
208
+ background: no-repeat static_url('shared-icons') -32px -464px;
209
+ }
210
+
211
+ .sc-icon-document-16 {
212
+ width: 16px;
213
+ height: 16px;
214
+ background: no-repeat static_url('shared-icons') -0px -480px;
215
+ }
216
+
217
+ .sc-icon-favorite-16 {
218
+ width: 16px;
219
+ height: 16px;
220
+ background: no-repeat static_url('shared-icons') -16px -480px;
221
+ }
222
+
223
+ /* @end */
224
+
225
+
226
+
227
+
@@ -49,7 +49,7 @@
49
49
  }
50
50
 
51
51
  .menu-pane li.menu-item.active a {
52
- background: static_url('images/buttons-sprite.png') repeat-x left -67px;
52
+ background: static_url('images/sc-theme-sprite.png') repeat-x left -67px;
53
53
  color: white ;
54
54
  border-top-width: 1px;
55
55
  border-top-color: #a9a9a9;
@@ -1,6 +1,6 @@
1
1
  // ========================================================================
2
2
  // Sprout Core
3
- // copyright 2006-2007 Sprout Systems, Inc.
3
+ // copyright 2006-2008 Sprout Systems, Inc.
4
4
  // ========================================================================
5
5
 
6
6
  // English Strings.
@@ -1,60 +1,258 @@
1
- /* @override http://localhost:4020/static/sproutcore/en/_cache/theme-1205438214.css */
1
+ /* @override
2
+ http://localhost:4020/static/sproutcore/en/_cache/theme-1208227908.css
3
+ http://localhost:4020/static/sproutcore/en/_cache/theme-1208343214.css
4
+ http://localhost:4020/static/sproutcore/en/_cache/theme-1208497760.css
5
+ http://localhost:4020/static/sproutcore/en/_cache/theme-1208500445.css
6
+ http://localhost:4020/static/sproutcore/en/_cache/theme-1208631591.css
7
+ http://localhost:4020/static/sproutcore/en/_cache/theme-1208633924.css
8
+ */
2
9
 
3
- /* @group Root Container */
10
+ /* =========================================
11
+ SproutCore UI Theme
12
+
13
+ All of the rules in this CSS file will be
14
+ applied only if you use the SproutCore theme.
15
+ =========================================
16
+ */
4
17
 
5
- .sc-scroll-view {
6
- overflow: auto ;
18
+ /* @group sc-theme */
19
+
20
+ body.sc-theme {
21
+ font: 13px/18px Helvetica, Verdana, sans-serif;
22
+ background-color: #f0f0f0 ;
23
+ padding: 0px;
24
+ }
25
+
26
+ .sc-theme h1 {
27
+ margin: 0;
28
+ padding: 0 ;
29
+ margin-bottom: 10px;
30
+ }
31
+
32
+ .sc-theme label {
33
+ font-weight: bold ;
7
34
  }
8
35
 
9
36
  /* @end */
10
37
 
11
- /* @group Root Form */
38
+ /* @group SC.ScrollView */
12
39
 
13
- input.show-hint {
14
- color: #888;
40
+ .sc-theme .sc-scroll-view {
41
+ border: 1px #aaa solid;
15
42
  }
16
43
 
17
- .radio.vertical,
18
- .radio.vertical .button.radio {
19
- display: block ;
44
+ /* @end */
45
+
46
+ /* @group SC.CollectionView */
47
+
48
+ .sc-theme .sc-collection-view {
49
+ text-decoration: none ;
50
+ color: #000;
51
+ border-top: 1px white solid;
20
52
  }
21
53
 
22
- .radio.horizontal,
23
- .radio.horizontal .button.radio {
24
- display: inline ;
54
+ .sc-theme .sc-collection-view .sc-collection-item {
55
+ border-top: 1px solid white;
25
56
  }
26
57
 
27
- .radio.vertical {
28
- text-align: left ;
58
+ .sc-theme .sc-collection-view .sel {
59
+ background-color: #ddd;
60
+ border-top: 1px solid #eee;
61
+ }
62
+
63
+ .sc-theme.focus .sc-collection-view.focus .sel {
64
+ background-color: #40007e;
65
+ color: white ;
66
+ border-top: 1px solid #84788f;
29
67
  }
30
68
 
31
69
  /* @end */
32
70
 
33
- /* @group sc-theme */
71
+ /* @group SC.ListView */
34
72
 
35
- body.sc-theme {
36
- font: 13px Helvetica, Verdana, sans-serif;
37
- line-height: 18px;
73
+ .sc-theme .sc-list-view {
74
+ background-color: white ;
75
+ }
76
+
77
+ .sc-theme .sc-list-view .sc-collection-item {
78
+ display: block ;
79
+ padding: 0 6px;
80
+ line-height: 22px;
81
+ }
82
+
83
+ .sc-theme .list-insertion-point {
84
+ border: 1px #4e4977 solid;
85
+ position: absolute ;
86
+ z-index: 1000;
87
+ }
88
+
89
+ .sc-theme .list-insertion-point .anchor {
90
+ position: absolute ;
91
+ width: 7px;
92
+ height: 7px;
93
+ left: -6px;
94
+ top: -4px;
95
+ background: static_url('images/sc-theme-sprite.png') no-repeat -32px -1040px;
96
+ }
97
+
98
+ /* @end */
99
+
100
+ /* @group SC.GridView */
101
+
102
+ .sc-theme .sc-grid-view {
103
+ background-color: white ;
104
+ }
105
+
106
+ .sc-theme .grid-insertion-point {
107
+ border: 1px #4e4977 solid;
108
+ position: absolute ;
109
+ z-index: 1000;
110
+ }
111
+
112
+ .sc-theme .grid-insertion-point .anchor {
113
+ position: absolute ;
114
+ width: 7px;
115
+ height: 7px;
116
+ left: -4px;
117
+ top: -6px;
118
+ background: static_url('images/sc-theme-sprite.png') no-repeat -32px -1040px;
119
+ }
120
+
121
+ /* @end */
122
+
123
+ /* @group SC.SourceListView */
124
+
125
+ .sc-theme .sc-source-list-view {
38
126
  background-color: #f0f0f0 ;
39
- padding: 0px;
127
+ border: none ;
128
+ color: #363636;
40
129
  }
41
130
 
42
- .sc-theme h1 {
43
- margin: 0;
44
- padding: 0 ;
45
- margin-bottom: 10px;
131
+ .sc-theme.focus .sc-source-list-view {
132
+ background-color: #e6e3ef;
133
+ color: black ;
46
134
  }
47
135
 
48
- .sc-theme label {
136
+ .sc-theme .sc-collection-view.sc-source-list-view .sc-collection-item {
137
+ border-top: 1px solid #f0f0f0;
138
+ font-size: 12px;
139
+ }
140
+
141
+ .sc-theme.focus .sc-collection-view.sc-source-list-view .sc-collection-item {
142
+ border-top: 1px solid #e6e3ef;
143
+ }
144
+
145
+ .sc-theme .sc-collection-view.sc-source-list-view .sc-collection-item.sel {
146
+ background-color: #ddd;
147
+ border-top: 1px solid #eee;
49
148
  font-weight: bold ;
50
149
  }
51
150
 
52
- .sc-theme .ghost {
53
- -moz-user-select: none;
54
- -khtml-user-select: none;
55
- user-select: none;
56
- opacity: 0.45;
57
- -moz-opacity: .45 ;
151
+ .sc-theme.focus .sc-collection-view.sc-source-list-view .sc-collection-item.sel {
152
+ background: static_url('images/sc-theme-sprite.png') 0 0px;
153
+ color: white ;
154
+ border-top: 1px solid #5a3f62;
155
+ }
156
+
157
+ .sc-theme .sc-source-list-view .sc-collection-item {
158
+ padding: 0 4px 0 18px;
159
+ line-height: 31px;
160
+ }
161
+
162
+ .sc-theme .sc-source-list-group {
163
+ position: absolute;
164
+ }
165
+
166
+
167
+ .sc-theme .sc-source-list-group .sc-source-list-label {
168
+ line-height: 32px;
169
+ padding-left: 1px;
170
+ text-transform: uppercase;
171
+ font-size: 11px;
172
+ font-weight: bold ;
173
+ }
174
+
175
+ .sc-theme .sc-collection-view .sc-source-list-group .sc-source-list-label.sel {
176
+ background-color: transparent;
177
+ border-top: none ;
178
+ }
179
+
180
+ .sc-theme.focus .sc-source-list-group .sc-source-list-label,
181
+ .sc-theme.focus .sc-collection-view .sc-source-list-group .sc-source-list-label.sel {
182
+ color: #241d38;
183
+ }
184
+
185
+
186
+ /* @end */
187
+
188
+ /* @group SC.ListItemView */
189
+
190
+ .sc-theme .sc-source-list-view .sc-count {
191
+ height: 18px;
192
+ display: block;
193
+ top: 6px;
194
+ padding-left: 9px;
195
+ background: no-repeat static_url('images/sc-theme-sprite.png') left -51px;
196
+ }
197
+
198
+ .sc-theme .sc-source-list-view .sc-count .inner {
199
+ display: block ;
200
+ padding-right: 9px;
201
+ background: no-repeat static_url('images/sc-theme-sprite.png') right -33px;
202
+ min-width: 10px ;
203
+ text-align: center ;
204
+ font-weight: bold ;
205
+ font-size: 11px;
206
+ line-height: 19px;
207
+ vertical-align: middle ;
208
+ height: 18px;
209
+ max-height: 18px;
210
+ color: white;
211
+ }
212
+
213
+ .sc-theme .sc-source-list-view .sel .sc-count,
214
+ .sc-theme.blur .sc-source-list-view .sc-count {
215
+ background: no-repeat static_url('images/sc-theme-sprite.png') left -87px;
216
+ }
217
+
218
+ .sc-theme .sc-source-list-view .sel .sc-count .inner,
219
+ .sc-theme.blur .sc-source-list-view .sc-count .inner {
220
+ color: #372a3c;
221
+ background: no-repeat static_url('images/sc-theme-sprite.png') right -69px;
222
+ }
223
+
224
+ /* @end */
225
+
226
+ /* @group SC.SplitView */
227
+
228
+ .sc-theme .horizontal .sc-split-divider-view {
229
+ background: static_url('images/sc-theme-ysprite.png') repeat-y 0px top;
230
+ border-left: 1px #888 solid;
231
+ border-right: 1px #888 solid ;
232
+ z-index: 5;
233
+ width: 3px;
234
+ }
235
+
236
+ /* @end */
237
+
238
+ /* @group Root Form */
239
+
240
+ input.show-hint {
241
+ color: #888;
242
+ }
243
+
244
+ .radio.vertical,
245
+ .radio.vertical .button.radio {
246
+ display: block ;
247
+ }
248
+
249
+ .radio.horizontal,
250
+ .radio.horizontal .button.radio {
251
+ display: inline ;
252
+ }
253
+
254
+ .radio.vertical {
255
+ text-align: left ;
58
256
  }
59
257
 
60
258
  /* @end */
@@ -83,4 +281,180 @@ body.sc-theme {
83
281
 
84
282
  /* @end */
85
283
 
284
+ /* @group My Group */
285
+
286
+
287
+
288
+ /* @end */
289
+
290
+ /* @group Typical Workspace */
291
+
292
+ .sc-theme .sc-app-workspace {
293
+ position: absolute ;
294
+ left: 0;
295
+ right: 0;
296
+ top: 0;
297
+ bottom: 0;
298
+ overflow: auto ;
299
+ }
300
+
301
+ .sc-theme .sc-app-workspace.header {
302
+ top: 36px;
303
+ }
304
+
305
+ .sc-theme .sc-app-workspace.footer {
306
+ bottom: 36px;
307
+ }
308
+
309
+ .sc-theme .sc-footer {
310
+ position: absolute ;
311
+ bottom: 0;
312
+ left: 0;
313
+ right: 0;
314
+ height: 39px;
315
+ background: static_url('images/sc-theme-sprite.png') repeat-x left -1057px;
316
+ z-index: 10;
317
+ }
318
+
319
+ .sc-theme .sc-header {
320
+ position: absolute ;
321
+ top: 0;
322
+ left: 0;
323
+ right: 0;
324
+ height: 39px;
325
+ background: static_url('images/sc-theme-sprite.png') repeat-x left -1062px;
326
+ z-index: 10;
327
+ }
328
+
329
+ .sc-theme .sc-header > * {
330
+ height: 23px;
331
+ padding-top: 6px;
332
+ padding-bottom: 6px;
333
+ top: 2px;
334
+ }
335
+
336
+ .sc-theme .sc-footer > * {
337
+ height: 23px;
338
+ padding-top: 6px;
339
+ padding-bottom: 6px;
340
+ bottom: 0;
341
+ }
342
+
343
+ .sc-theme .sc-footer .left,
344
+ .sc-theme .sc-header .left {
345
+ left: 0;
346
+ text-align: left ;
347
+ padding-left: 8px;
348
+ position: absolute ;
349
+ }
350
+
351
+ .sc-theme .sc-footer .right,
352
+ .sc-theme .sc-header .right {
353
+ right: 0;
354
+ text-align: left ;
355
+ padding-right: 15px;
356
+ position: absolute ;
357
+ }
358
+
359
+ .sc-theme .sc-footer .center,
360
+ .sc-theme .sc-header .center {
361
+ text-align: center ;
362
+ margin-top: 4px;
363
+ }
364
+
365
+ .sc-theme .sc-footer .sc-label-view,
366
+ .sc-theme .sc-header .sc-label-view {
367
+ line-height: 23px;
368
+ font-size: 12px;
369
+ font-weight: bold;
370
+ }
371
+
372
+ /* @end */
373
+
374
+ /* @group SC.SliderView */
375
+
376
+ .sc-theme .sc-slider-view {
377
+ -moz-user-select: none;
378
+ -khtml-user-select: none;
379
+ user-select: none;
380
+ cursor: default;
381
+ display: -moz-inline-box;
382
+ display: inline-block;
383
+ height: 18px;
384
+ vertical-align: middle ;
385
+ position: relative ;
386
+ padding-left: 48px;
387
+ background: url('/static/sproutcore/_src/english.lproj/images/sc-theme-sprite.png') no-repeat ;
388
+ }
389
+
390
+ .sc-theme.blur .sc-slider-view,
391
+ .sc-theme.focus .sc-slider-view.disabled {
392
+ background-position: left -945px;
393
+ }
394
+
395
+ .sc-theme.focus .sc-slider-view {
396
+ background-position: left -897px;
397
+ }
398
+
399
+ .sc-theme .sc-slider-view .outer {
400
+ display: block;
401
+ height: 18px;
402
+ background: url('/static/sproutcore/_src/english.lproj/images/sc-theme-sprite.png') no-repeat ;
403
+ padding-right: 48px;
404
+ position: relative ;
405
+ }
406
+
407
+ .sc-theme.focus .sc-slider-view .outer {
408
+ background-position: right -929px ;
409
+ }
410
+
411
+ .sc-theme.blur .sc-slider-view .outer,
412
+ .sc-theme.focus .sc-slider-view.disabled .outer {
413
+ background-position: right -977px ;
414
+ }
415
+
416
+ .sc-theme .sc-slider-view .inner {
417
+ display: block;
418
+ height: 18px;
419
+ background: url('/static/sproutcore/_src/english.lproj/images/sc-theme-sprite.png') repeat-x ;
420
+ width: 98px;
421
+ position: relative ;
422
+ }
423
+
424
+ .sc-theme.blur .sc-slider-view .inner,
425
+ .sc-theme.focus .sc-slider-view.disabled .inner {
426
+ background-position: right -961px ;
427
+ }
428
+
429
+ .sc-theme.focus .sc-slider-view .inner {
430
+ background-position: right -913px ;
431
+ }
432
+
433
+ .sc-theme .sc-slider-view .sc-handle {
434
+ height: 18px;
435
+ width: 18px;
436
+ vertical-align: middle ;
437
+ position: absolute ;
438
+ margin-left: -9px;
439
+ left: 50%;
440
+ top: 0;
441
+ background: url('/static/sproutcore/_src/english.lproj/images/sc-theme-sprite.png') no-repeat
442
+ }
443
+
444
+ .sc-theme.focus .sc-slider-view .sc-handle {
445
+ background-position: -24px -825px ;
446
+ }
447
+
448
+ .sc-theme.blur .sc-slider-view .sc-handle,
449
+ .sc-theme.focus .sc-slider-view.disabled .sc-handle {
450
+ background-position: -24px -873px
451
+ }
452
+
453
+ .sc-theme.focus .sc-slider-view.active .sc-handle {
454
+ background-position: -24px -849px ;
455
+ }
456
+
457
+ /* @end */
458
+
459
+
86
460