rhodes 3.3.3.beta.1 → 3.3.3.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/CHANGELOG +3 -0
  2. data/Manifest.txt +23 -9
  3. data/Rakefile +13 -2
  4. data/doc/build.txt +18 -11
  5. data/doc/device-caps.txt +4 -68
  6. data/doc/rhom.txt +33 -0
  7. data/doc/test-log-debug.txt +18 -42
  8. data/lib/framework/rho/render.rb +1 -1
  9. data/lib/framework/rho/rho.rb +31 -1
  10. data/lib/framework/rho/rhocontroller.rb +2 -2
  11. data/lib/framework/rhodes.rb +1 -1
  12. data/lib/framework/rhoframework.rb +4 -0
  13. data/lib/framework/rholang/localization_simplified.rb +1 -1
  14. data/lib/framework/rhom/rhom_object_factory.rb +22 -1
  15. data/lib/framework/version.rb +1 -1
  16. data/lib/rhodes.rb +1 -1
  17. data/platform/android/Rhodes/AndroidManifest.xml +2 -2
  18. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_RhodesService.h +25 -9
  19. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_extmanager_RhoExtManagerImpl.h +21 -0
  20. data/platform/android/Rhodes/jni/src/extmanager.cpp +36 -0
  21. data/platform/android/Rhodes/jni/src/nativeview.cpp +1 -1
  22. data/platform/android/Rhodes/jni/src/rhodesapp.cpp +14 -5
  23. data/platform/android/Rhodes/jni/src/rhodessystem.cpp +5 -0
  24. data/platform/android/Rhodes/jni/src/signature.cpp +29 -3
  25. data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeBar.java +3 -3
  26. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +4 -0
  27. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +42 -7
  28. data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +61 -10
  29. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtData.java +6 -0
  30. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtManager.java +39 -0
  31. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtension.java +18 -0
  32. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtDataImpl.java +18 -0
  33. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +142 -0
  34. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerSingleton.java +15 -0
  35. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/MainView.java +6 -3
  36. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +25 -13
  37. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SplashScreen.java +15 -9
  38. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +15 -5
  39. data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoNativeViewManager.java +3 -3
  40. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/ImageCapture.java +14 -8
  41. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/Signature.java +218 -51
  42. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/SignatureProperties.java +94 -0
  43. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/SignatureView.java +122 -37
  44. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +6 -2
  45. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/{WebView.java → IRhoWebView.java} +2 -1
  46. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +4 -0
  47. data/platform/android/build/RhodesSRC_build.files +8 -1
  48. data/platform/android/build/android.rake +5 -1
  49. data/platform/android/build/librhodes_build.files +1 -0
  50. data/platform/bb/RubyVM/src/com/rho/RhodesApp.java +22 -1
  51. data/platform/bb/RubyVM/src/com/rho/sync/SyncSource.java +15 -0
  52. data/platform/bb/RubyVM/src/com/xruby/runtime/lang/RhoSupport.java +4 -0
  53. data/platform/bb/RubyVM/src/com/xruby/runtime/lang/RubyRuntime.java +4 -2
  54. data/platform/bb/build/rhodes_build.files +2 -0
  55. data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +1 -1
  56. data/platform/bb/rhodes/src/com/rho/rubyext/PNGEncoder.java +613 -0
  57. data/platform/bb/rhodes/src/com/rho/rubyext/SignatureCapture.java +314 -0
  58. data/platform/bb/rhodes/src/com/rho/rubyext/WebView.java +1 -1
  59. data/platform/iphone/Classes/AppManager/AppManager.m +11 -0
  60. data/platform/iphone/Classes/Rhodes.m +1 -1
  61. data/platform/iphone/Classes/Signature/SignatureDelegate.h +5 -1
  62. data/platform/iphone/Classes/Signature/SignatureDelegate.m +186 -5
  63. data/platform/iphone/Classes/Signature/SignatureView.h +12 -0
  64. data/platform/iphone/Classes/Signature/SignatureView.m +11 -3
  65. data/platform/iphone/Classes/SimpleMainView.m +4 -0
  66. data/platform/iphone/Classes/rho/net/NetRequestImpl.m +98 -3
  67. data/platform/iphone/Info.plist +1 -1
  68. data/platform/iphone/rbuild/iphone.rake +18 -5
  69. data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +1 -1
  70. data/platform/shared/common/ExtManager.h +64 -9
  71. data/platform/shared/common/RhoSimConf.h +1 -0
  72. data/platform/shared/common/RhodesApp.cpp +77 -28
  73. data/platform/shared/common/RhodesApp.h +9 -4
  74. data/platform/shared/common/RhodesAppBase.cpp +4 -3
  75. data/platform/shared/common/RhodesAppBase.h +5 -3
  76. data/platform/shared/net/HttpServer.cpp +4 -4
  77. data/platform/shared/net/HttpServer.h +2 -2
  78. data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +1 -1
  79. data/platform/shared/qt/rhodes/main.cpp +1 -1
  80. data/platform/shared/ruby/ext/rho/rhoruby.c +12 -2
  81. data/platform/shared/ruby/ext/rho/rhosupport.c +11 -1
  82. data/platform/shared/ruby/thread_win32.c +2 -1
  83. data/platform/shared/rubyext/System.cpp +6 -0
  84. data/platform/shared/sync/SyncSource.cpp +15 -0
  85. data/platform/wm/RhoLib/RhoLib.vcproj +0 -4
  86. data/platform/wm/build/build_inf.js +34 -4
  87. data/platform/wm/build/wm.rake +75 -25
  88. data/platform/wm/rhodes/AppManager.cpp +14 -3
  89. data/platform/wm/rhodes/IBrowserEngine.h +7 -0
  90. data/platform/wm/rhodes/IEBrowserEngine.cpp +43 -0
  91. data/platform/wm/rhodes/IEBrowserEngine.h +7 -0
  92. data/platform/wm/rhodes/LogOptionsDlg.cpp +1 -1
  93. data/platform/wm/rhodes/MainWindow.cpp +92 -7
  94. data/platform/wm/rhodes/MainWindow.h +28 -1
  95. data/platform/wm/rhodes/MapView/MapViewManager.cpp +4 -4
  96. data/platform/wm/rhodes/Rhodes.cpp +149 -10
  97. data/platform/wm/rhodes/resource.h +5 -1
  98. data/platform/wm/rhodes/rho/common/ExtManager.cpp +307 -0
  99. data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +1 -1
  100. data/platform/wm/rhodes/rho/rubyext/RhoSignature.cpp +1 -1
  101. data/platform/wm/rhodes/rho/rubyext/RhoSignature.h +1 -1
  102. data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +14 -2
  103. data/platform/wm/rhodes/rho/rubyext/WebView.cpp +6 -3
  104. data/platform/wm/rhodes/rhodes.vcproj +5 -1
  105. data/platform/wm/rhodes/simulator/MainWindowQt.cpp +22 -1
  106. data/platform/wm/rhodes/simulator/MainWindowQt.h +4 -0
  107. data/platform/wp7/RhoRubyExtGen/RhoWebView.cs +1 -1
  108. data/platform/wp7/RhoRubyLib/Initializers.Generated.cs +1 -1
  109. data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +33 -38
  110. data/platform/wp7/RhoRubyLib/net/HttpServer.cs +134 -29
  111. data/platform/wp7/RhoRubyLib/rubyext/RhoWebView.cs +12 -2
  112. data/platform/wp7/RhoRubyLib/sync/SyncSource.cs +17 -1
  113. data/platform/wp7/RhoRubyLib/views/RhoTabHeader.xaml +3 -3
  114. data/platform/wp7/RhoRubyLib/views/RhoView.xaml.cs +48 -8
  115. data/rakefile.rb +13 -2
  116. data/res/build-tools/iphonesim/build/Release/iphonesim_43 +0 -0
  117. data/res/build-tools/iphonesim/iphonesim.xcodeproj/project.pbxproj +158 -0
  118. data/res/generators/rhogen.rb +33 -28
  119. data/res/generators/templates/application/app/layout.erb +6 -5
  120. data/res/generators/templates/application/public/css/android.css +21 -315
  121. data/res/generators/templates/application/public/css/iphone.css +1 -499
  122. data/res/generators/templates/application/public/css/jqmobile-patch.css +18 -5
  123. data/res/generators/templates/application/public/css/windows_phone7.css +378 -0
  124. data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
  125. data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
  126. data/res/generators/templates/application/public/jqmobile/{jquery.mobile-1.0.css → jquery.mobile-1.0.1.css} +33 -11
  127. data/res/generators/templates/application/public/jqmobile/{jquery.mobile-1.0.js → jquery.mobile-1.0.1.js} +249 -125
  128. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.1.min.css +2 -0
  129. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.1.min.js +177 -0
  130. data/res/generators/templates/application/public/jqmobile/{jquery.mobile.structure-1.0.css → jquery.mobile.structure-1.0.1.css} +33 -11
  131. data/res/generators/templates/application/public/jqmobile/jquery.mobile.structure-1.0.1.min.css +2 -0
  132. data/res/generators/templates/application/public/jquery/jquery.json-2.3.js +193 -0
  133. data/res/generators/templates/application/public/jquery/jquery.json-2.3.min.js +23 -0
  134. data/res/generators/templates/application/public/js/jquery-wp7-patch.js +68 -20
  135. data/spec/phone_spec/app/Case/case.rb +22 -0
  136. data/spec/phone_spec/app/Customer/customer.rb +16 -0
  137. data/spec/phone_spec/app/spec/rhom_object_spec.rb +108 -11
  138. data/spec/phone_spec/app/spec/syncengine_spec.rb +43 -1
  139. data/spec/phone_spec/build.yml +2 -1
  140. data/version +1 -1
  141. metadata +27 -13
  142. data/platform/shared/common/ExtManager.cpp +0 -103
  143. data/res/generators/templates/application/public/jqmobile/jquery-mobile-iphone.css +0 -9
  144. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.min.css +0 -2
  145. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.min.js +0 -172
  146. data/res/generators/templates/application/public/jqmobile/jquery.mobile.structure-1.0.min.css +0 -2
@@ -2,36 +2,6 @@ a {
2
2
  text-decoration: none;
3
3
  }
4
4
 
5
- .content {
6
- width: inherit;
7
- height: 100%;
8
- }
9
-
10
- .toolbar .noButton {
11
- display: none;
12
- }
13
-
14
- .content ul {
15
- -webkit-padding-start: 0;
16
- margin: 0;
17
- padding: 0;
18
- list-style-type: none;
19
- }
20
-
21
- .content ul li {
22
- overflow: hidden;
23
- clear: both;
24
- }
25
-
26
- .content ul li span {
27
- display: block;
28
- }
29
-
30
- .content ul.settings li div.itemLabel span.title {
31
- padding: 0;
32
- margin: 0;
33
- }
34
-
35
5
  body {
36
6
  margin: 0;
37
7
  font-family: Helvetica;
@@ -41,470 +11,8 @@ h1 {
41
11
  font-size: 1.4em;
42
12
  }
43
13
 
44
- /* header */
45
-
46
- .pageTitle h1 {
47
- position: absolute;
48
- text-align: center;
49
- width: 100%;
50
- margin: 0 auto 0 auto;
51
- line-height: 50px;
52
- color: white;
53
- text-shadow: 1px 1px 1px #000;
54
- }
55
-
56
- /* toolbar */
57
-
58
- .toolbar {
59
- width: 100%;
60
- height: 50px;
61
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #aebbcb), color-stop(0.5, #8094ae), color-stop(1.0, #6e84a2));
62
- }
63
-
64
- .toolbar div {
65
- position: absolute;
66
- overflow: hidden;
67
- text-align: center;
68
- }
69
-
70
- .toolbar .leftItem {
71
- top: 10px;
72
- left: 10px;
73
- width: 50px;
74
- }
75
-
76
- .toolbar .centerItem {
77
- bottom: 20px;
78
- width: 100%;
79
- margin-left: 10px;
80
- height: 30px;
81
- }
82
-
83
- .toolbar .rightItem {
84
- top: 10px;
85
- right: 10px;
86
- width: 50px;
87
- }
88
-
89
- .toolbar a {
90
- color: white;
91
- display: block;
92
- line-height: 30px;
93
- }
94
-
95
- .toolbar .backButton {
96
- -webkit-border-bottom-left-radius: 16px 16px;
97
- -webkit-border-bottom-right-radius: 6px 6px;
98
- -webkit-border-image: url(/public/images/backButton.png) 0 5 0 13 stretch stretch;
99
- -webkit-border-top-left-radius: 16px 16px;
100
- -webkit-border-top-right-radius: 6px 6px;
101
- border-width: 0 5px 0 13px;
102
- width: auto;
103
- font-size: .9em;
104
- z-index: 3;
105
- }
106
-
107
- .toolbar .deleteButton,
108
- .toolbar .regularButton,
109
- .toolbar .blueButton {
110
- -webkit-border-radius: 5px;
111
- overflow: hidden;
112
- text-align: center;
113
- width: auto;
114
- height: 30px;
115
- font-size: .9em;
116
- border-left: #5e7088 1px solid;
117
- border-right: #5e7088 1px solid;
118
- border-top: #34404e 1px solid;
119
- border-bottom: #34404e 1px solid;
120
- padding: 0 2px 0 2px;
121
- }
122
-
123
- .toolbar .deleteButton {
124
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #aebbcb), color-stop(0.5, #8094ae), color-stop(1.0, #6e84a2));
125
- }
126
-
127
- .toolbar .regularButton {
128
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #92a4bc), color-stop(0.5, #476997), color-stop(1.0, #4e6c92));
129
- }
130
-
131
- .toolbar .blueButton {
132
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #6f96e9), color-stop(0.5, #3366cc), color-stop(1.0, #3366cc));
133
- border: #1a49b3 1px solid;
134
- }
135
-
136
- .content {
137
- background: url('/public/images/pinstripes.png');
138
- min-height: 480px;
139
- }
140
-
141
- .content form button.createButton {
142
- position: absolute;
143
- bottom: 20px;
144
- height: 35px;
145
- }
146
-
147
- .content .standardButton {
148
- -webkit-appearance: none;
149
- -webkit-border-radius: 8px;
150
- background: white;
151
- color: #436395;
152
- font-size: 15px;
153
- font-weight: bold;
154
- width: 100%;
155
- height: 40px;
156
- border: 1px solid black;
157
- margin-top: 10px;
158
- }
159
-
160
- .content .standardButton a {
161
- display: block;
162
- width: 100%;
163
- color: #436395;
164
- text-align: center;
165
- line-height: 40px;
166
- }
167
-
168
- /* text styles */
169
-
170
- .darkBlue {
171
- color: #7287A4;
172
- }
173
-
174
- .content h2.groupTitle {
175
- font-size: 16px;
176
- margin: 8px;
177
- color: #565E70;
178
- }
179
-
180
- /* lists */
181
-
182
- .content ul {
183
- border-top: 1px solid #848284;
184
- background-color: white;
185
- margin-bottom: 50px;
186
- }
187
-
188
- .content ul li {
189
- border-bottom: 1px solid #848284;
190
- min-height: 40px;
191
- }
192
-
193
- .content ul li a {
194
- display: block;
195
- color: black;
196
- font-size: 20px;
197
- height: 100%;
198
- width: 100%;
199
- padding: 15px 0 15px 0;
200
- }
201
-
202
- .content ul li > span {
203
- padding: 15px 0 15px 0;
204
- }
205
-
206
- .content ul li a:active {
207
- background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(5, 140, 245)), to(rgb(1, 95, 230)));
208
- }
209
-
210
- .content ul li span.title {
211
- padding: 0 10px 0 10px;
212
- font-size: 20px;
213
- font-weight: bold;
214
- display: inline;
215
- }
216
-
217
- .content ul li div.itemLabel {
218
- float: left;
219
- width: 45%;
220
- padding: 15px 0 15px 10px;
221
- }
222
-
223
- .content ul li div.itemValue {
224
- float: right;
225
- width: 45%;
226
- padding: 15px 10px 15px 0;
227
- }
228
-
229
- .content ul li a span.disclosure_indicator {
230
- background: url('/public/images/iphone/disclosure.png') no-repeat center right;
231
- height: 25px;
232
- width: 35px;
233
- float: right;
234
- margin-right: 10px;
235
- display: inline;
236
- }
237
-
238
- .content ul li a span.detail_disclosure {
239
- background: url('/public/images/iphone/disclosure_detail.png') no-repeat center right;
240
- height: 27px;
241
- width: 34px;
242
- float: right;
243
- margin-right: 10px;
244
- display: inline;
245
- }
246
-
247
- .content ul li a img {
248
- float: left;
249
- height: 100%;
250
- max-width: 100px;
251
- }
252
-
253
- /* Forms */
254
-
255
- .content form {
256
- padding: 5px 0 75px 0;
257
- border: none;
258
- width: 300px;
259
- margin: 0 auto;
260
- font-size: medium;
261
- }
262
-
263
- .content form ul {
264
- -webkit-border-radius: 8px;
265
- background-color: white;
266
- border: 1px solid #878787;
267
- display: block;
268
- font-size: 16px;
269
- list-style-type: none;
270
- margin: 0 auto 15px auto;
271
- overflow: hidden;
272
- padding: 0;
273
- }
274
-
275
- .content form ul li {
276
- display: block;
277
- border-bottom: 1px solid #848284;
278
- line-height: 40px;
279
- min-height: 40px;
280
- width: 300px;
281
- overflow: hidden;
282
- }
283
-
284
- .content form ul li:last-child {
285
- border: none;
286
- }
287
-
288
- .content form ul li label {
289
- float: left;
290
- display: block;
291
- color: black;
292
- line-height: 40px;
293
- padding: 0;
294
- margin: 0 20px 0 10px;
295
- width: 40%;
296
- overflow: hidden;
297
- text-overflow: ellipsis;
298
- white-space: nowrap;
299
- font-weight: bold;
300
- }
301
-
302
- .content form ul li label.fieldLabel {
303
- display: none;
304
- }
305
-
306
- .content form input {
307
- -webkit-appearance: none;
308
- width: 45%;
309
- border: 0;
310
- }
311
-
312
- .content form input, .content form select {
313
- height: 40px;
314
- font-size: medium;
315
- font-weight: bold;
316
- }
317
-
318
- .content form input[type="text"], .content form input[type="password"] {
319
- width: 289px;
320
- background: transparent;
321
- padding: 0 5px 0 10px;
322
- }
323
-
324
- .content form input[type="checkbox"] {
325
- background: url('/public/images/iphone/switch.png') no-repeat center;
326
- background-position-y: -27px;
327
- float: right;
328
- display: block;
329
- margin: 7px 10px 7px 10px;
330
- line-height: 40px;
331
- height: 27px;
332
- width: 94px;
333
- }
334
-
335
- .content form input[type="checkbox"]:checked {
336
- background-position-y: 0;
337
- }
338
-
339
- .content form input[type="radio"] {
340
- position: relative;
341
- display: block;
342
- width: 290px;
343
- height: 40px;
344
- line-height: 40px;
345
- margin: 0;
346
- -webkit-border-radius: 8px;
347
- }
348
-
349
- .content form input[type="radio"]:checked {
350
- background: url('/public/images/iphone/radiobutton.png') no-repeat;
351
- background-position-x: 100%;
352
- background-position-y: 50%;
353
- }
354
-
355
- .content form select {
356
- background: url('/public/images/iphone/select.png') no-repeat right;
357
- border: 0px;
358
- width: 100%;
359
- }
360
-
361
- .content form textarea {
362
- -webkit-appearance: none;
363
- border: none;
364
- font-size: medium;
365
- width: 280px;
366
- line-height: 20px;
367
- }
368
-
369
- /* Settings */
370
-
371
- .content ul.settings {
372
- padding: 0;
373
- margin: 0;
374
- }
375
-
376
- .content ul.settings li.alertMessage {
377
- text-align: center;
378
- }
379
-
380
- .content ul.settings li span {
381
- line-height: 40px;
382
- }
383
-
384
- .content ul.settings li.alertMessage span.message {
385
- color: red;
386
- }
387
-
388
- .content ul.settings li span.clientID {
389
- margin-left: 4px;
390
- font-size: 10px;
391
- }
392
-
393
- .content ul.settings li div.itemLabel span.title {
394
- padding: 0;
395
- margin: 0;
396
- }
397
-
398
- .content .reset {
399
- height: 100%;
400
- width: 300px;
401
- padding: 10px;
402
- }
403
-
404
- .content .reset h4 {
405
- width: 100%;
406
- padding: 0;
407
- margin: 0;
408
- margin: 0 8px;
409
- color: #565E70;
410
- }
411
-
412
-
413
-
414
- /* Override some styles provided by iphone.css to make them match the real iPhone more closely. */
415
-
416
- .toolbar {
417
- background: -webkit-gradient( linear, left top, left bottom, color-stop(0, rgb(176,188,205)), color-stop(0.5, rgb(136,155,179)), color-stop(0.51, rgb(129,149,175)), color-stop(1, rgb(109,132,162)));
418
- border-top: 1px solid #CDD5Df;
419
- border-bottom: 1px solid #2D3642;
420
- }
421
-
422
- .toolbar a { font-weight: bold; }
423
-
424
- .pageTitle { width: 50%; margin:0 auto; }
425
-
426
- .pageTitle h1 {
427
- text-shadow: rgba(0,0,0,0.6) 0px -1px 0;
428
- width: 50%; /* Should match pageTitle's width. */
429
- overflow: hidden;
430
- text-overflow: ellipsis;
431
- white-space:nowrap;
432
- }
433
-
434
- /* --- Controls the switcher buttons, trying to emulate the native switcher control. --- */
435
-
436
- /* Use the following pattern in your HTML code to implement it:
437
-
438
- <div class="switcher">
439
- <div class="ls-button ls-pressed ls-left"><a href="#">Left Button</a></div>
440
- <div class="ls-button ls-center"><a href="#">Center Button</a></div>
441
- <div class="ls-button ls-right ls-disabled"><a href="#">Right Button</a></div>
442
- </div>
443
-
444
- */
445
-
446
- /* Use on the div containing your button options. */
447
- .switcher {
448
- text-align:center;
449
- position:relative;
450
- position:relative;
451
- width:250px;
452
- margin:0 auto;
453
- padding-top:10px;
454
- height:30px;
455
- }
456
-
457
- /* All button divs must contain an <a> tag with the button's label in it. */
458
- .switcher a {
459
- color:#fff;
460
- text-shadow: rgba(0,0,0,0.5) 0px -1px 0;
461
- font-weight:bold;
462
- font-size:smaller;
463
- }
464
-
465
- /* Include the .ls-button style on each button div. */
466
- .switcher .ls-button {
467
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(171,185,202)), color-stop(0.5, rgb(130,151,175)), color-stop(0.51, rgb(118,139,167)), color-stop(1, rgb(120,141,169)));
468
- width:80px; /* NOTE: If you only want to use 2 buttons, increase width to something more like 125px, and change margin to 0 -3px. */
469
- height:15px;
470
- display:inline-block;
471
- padding-bottom:8px;
472
- margin:0 -2px;
473
- border:1px solid #000;
474
- text-align:center;
475
- }
476
-
477
- /* Indicates the currently active (pressed) button. */
478
- .switcher .ls-pressed {
479
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(142,164,193)), color-stop(0.5, rgb(88,119,162)), color-stop(0.51, rgb(71,105,153)), color-stop(1, rgb(74,108,152)));
480
- }
481
-
482
- .switcher .ls-left {
483
- -webkit-border-top-left-radius: 4px;
484
- -webkit-border-bottom-left-radius: 4px;
485
- }
486
-
487
- .switcher .ls-center {
488
- border-right:none;
489
- border-left:none;
490
- }
491
-
492
- .switcher .ls-right {
493
- -webkit-border-top-right-radius: 4px;
494
- -webkit-border-bottom-right-radius: 4px;
495
- }
496
-
497
- /* If an option should not be available, you can use the .ls-disabled class to gray it out. */
498
- .switcher .ls-disabled {
499
- background:-webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(158,158,158)), color-stop(0.95, rgb(204,204,204)))
500
- }
501
-
502
- /* However, even with disabled classes you must still include an <a> tag. Just have it go href="#" */
503
- .switcher .ls-disabled a {
504
- color:#f0f0f0;
505
- }
506
-
507
14
  /* ---------- JQM theme customization ------------- */
15
+
508
16
  .ui-bar-a {
509
17
  border: 1px solid #ccc;
510
18
  background: #bbb;
@@ -868,9 +376,3 @@ div.itemValue {
868
376
  color: red;
869
377
  text-align: center
870
378
  }
871
-
872
- .ui-page {
873
- -webkit-transform-style: flat;
874
- -webkit-backface-visibility: hidden;
875
- -webkit-perspective: 800;
876
- }