fesplugas-typus 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. data/.gitignore +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +80 -0
  4. data/Rakefile +61 -0
  5. data/VERSION +1 -0
  6. data/app/controllers/admin/master_controller.rb +324 -0
  7. data/app/controllers/typus_controller.rb +127 -0
  8. data/app/helpers/admin/form_helper.rb +351 -0
  9. data/app/helpers/admin/master_helper.rb +99 -0
  10. data/app/helpers/admin/public_helper.rb +24 -0
  11. data/app/helpers/admin/sidebar_helper.rb +259 -0
  12. data/app/helpers/admin/table_helper.rb +227 -0
  13. data/app/helpers/typus_helper.rb +169 -0
  14. data/app/models/typus_mailer.rb +14 -0
  15. data/app/models/typus_user.rb +5 -0
  16. data/app/views/admin/dashboard/_sidebar.html.erb +9 -0
  17. data/app/views/admin/resources/edit.html.erb +29 -0
  18. data/app/views/admin/resources/index.html.erb +28 -0
  19. data/app/views/admin/resources/new.html.erb +27 -0
  20. data/app/views/admin/resources/show.html.erb +21 -0
  21. data/app/views/admin/shared/_footer.html.erb +1 -0
  22. data/app/views/admin/shared/_pagination.html.erb +28 -0
  23. data/app/views/layouts/admin.html.erb +72 -0
  24. data/app/views/layouts/typus.html.erb +29 -0
  25. data/app/views/typus/dashboard.html.erb +13 -0
  26. data/app/views/typus/recover_password.html.erb +7 -0
  27. data/app/views/typus/reset_password.html.erb +13 -0
  28. data/app/views/typus/sign_in.html.erb +9 -0
  29. data/app/views/typus/sign_up.html.erb +7 -0
  30. data/app/views/typus_mailer/reset_password_link.erb +11 -0
  31. data/config/locales/es.yml +106 -0
  32. data/config/locales/pt-BR.yml +108 -0
  33. data/config/locales/typus_hacks.yml +14 -0
  34. data/config/routes.rb +14 -0
  35. data/generators/typus/templates/config/initializers/typus.rb +27 -0
  36. data/generators/typus/templates/config/typus/application.yml +45 -0
  37. data/generators/typus/templates/config/typus/application_roles.yml +23 -0
  38. data/generators/typus/templates/config/typus/typus.yml +14 -0
  39. data/generators/typus/templates/config/typus/typus_roles.yml +2 -0
  40. data/generators/typus/templates/db/create_typus_users.rb +21 -0
  41. data/generators/typus/templates/public/images/admin/arrow_down.gif +0 -0
  42. data/generators/typus/templates/public/images/admin/arrow_up.gif +0 -0
  43. data/generators/typus/templates/public/images/admin/spinner.gif +0 -0
  44. data/generators/typus/templates/public/images/admin/status_false.gif +0 -0
  45. data/generators/typus/templates/public/images/admin/status_true.gif +0 -0
  46. data/generators/typus/templates/public/images/admin/trash.gif +0 -0
  47. data/generators/typus/templates/public/javascripts/admin/application.js +14 -0
  48. data/generators/typus/templates/public/stylesheets/admin/reset.css +68 -0
  49. data/generators/typus/templates/public/stylesheets/admin/screen.css +709 -0
  50. data/generators/typus/typus_generator.rb +141 -0
  51. data/generators/typus_update_schema_to_01/templates/config/typus.yml +14 -0
  52. data/generators/typus_update_schema_to_01/templates/migration.rb +11 -0
  53. data/generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb +19 -0
  54. data/init.rb +19 -0
  55. data/lib/typus/active_record.rb +298 -0
  56. data/lib/typus/authentication.rb +155 -0
  57. data/lib/typus/configuration.rb +92 -0
  58. data/lib/typus/format.rb +56 -0
  59. data/lib/typus/generator.rb +173 -0
  60. data/lib/typus/hash.rb +10 -0
  61. data/lib/typus/locale.rb +17 -0
  62. data/lib/typus/object.rb +22 -0
  63. data/lib/typus/quick_edit.rb +33 -0
  64. data/lib/typus/reloader.rb +17 -0
  65. data/lib/typus/string.rb +11 -0
  66. data/lib/typus/user.rb +137 -0
  67. data/lib/typus.rb +133 -0
  68. data/lib/vendor/active_record.rb +15 -0
  69. data/lib/vendor/paginator.rb +143 -0
  70. data/tasks/typus_tasks.rake +26 -0
  71. data/test/config/broken/application.yml +68 -0
  72. data/test/config/broken/application_roles.yml +20 -0
  73. data/test/config/broken/empty.yml +0 -0
  74. data/test/config/broken/empty_roles.yml +0 -0
  75. data/test/config/broken/undefined.yml +3 -0
  76. data/test/config/broken/undefined_roles.yml +6 -0
  77. data/test/config/default/typus.yml +14 -0
  78. data/test/config/default/typus_roles.yml +2 -0
  79. data/test/config/empty/empty_01.yml +0 -0
  80. data/test/config/empty/empty_01_roles.yml +0 -0
  81. data/test/config/empty/empty_02.yml +0 -0
  82. data/test/config/empty/empty_02_roles.yml +0 -0
  83. data/test/config/locales/es.yml +10 -0
  84. data/test/config/ordered/001_roles.yml +2 -0
  85. data/test/config/ordered/002_roles.yml +2 -0
  86. data/test/config/unordered/app_one_roles.yml +2 -0
  87. data/test/config/unordered/app_two_roles.yml +2 -0
  88. data/test/config/working/application.yml +67 -0
  89. data/test/config/working/application_roles.yml +22 -0
  90. data/test/config/working/typus.yml +14 -0
  91. data/test/config/working/typus_roles.yml +2 -0
  92. data/test/fixtures/app/controllers/admin/assets_controller.rb +2 -0
  93. data/test/fixtures/app/controllers/admin/categories_controller.rb +2 -0
  94. data/test/fixtures/app/controllers/admin/comments_controller.rb +2 -0
  95. data/test/fixtures/app/controllers/admin/pages_controller.rb +2 -0
  96. data/test/fixtures/app/controllers/admin/posts_controller.rb +2 -0
  97. data/test/fixtures/app/controllers/admin/status_controller.rb +6 -0
  98. data/test/fixtures/app/controllers/admin/typus_users_controller.rb +2 -0
  99. data/test/fixtures/app/controllers/admin/watch_dog_controller.rb +6 -0
  100. data/test/fixtures/app/views/admin/comments/_edit_bottom.html.erb +1 -0
  101. data/test/fixtures/app/views/admin/comments/_edit_sidebar.html.erb +1 -0
  102. data/test/fixtures/app/views/admin/comments/_edit_top.html.erb +1 -0
  103. data/test/fixtures/app/views/admin/comments/_index_bottom.html.erb +1 -0
  104. data/test/fixtures/app/views/admin/comments/_index_sidebar.html.erb +1 -0
  105. data/test/fixtures/app/views/admin/comments/_index_top.html.erb +1 -0
  106. data/test/fixtures/app/views/admin/comments/_new_bottom.html.erb +1 -0
  107. data/test/fixtures/app/views/admin/comments/_new_sidebar.html.erb +1 -0
  108. data/test/fixtures/app/views/admin/comments/_new_top.html.erb +1 -0
  109. data/test/fixtures/app/views/admin/comments/_show_bottom.html.erb +1 -0
  110. data/test/fixtures/app/views/admin/comments/_show_sidebar.html.erb +1 -0
  111. data/test/fixtures/app/views/admin/comments/_show_top.html.erb +1 -0
  112. data/test/fixtures/app/views/admin/dashboard/_bottom.html.erb +1 -0
  113. data/test/fixtures/app/views/admin/dashboard/_sidebar.html.erb +1 -0
  114. data/test/fixtures/app/views/admin/dashboard/_top.html.erb +1 -0
  115. data/test/fixtures/app/views/admin/shared/_footer.html.erb +1 -0
  116. data/test/fixtures/app/views/admin/status/index.html.erb +1 -0
  117. data/test/fixtures/app/views/admin/templates/_datepicker.html.erb +1 -0
  118. data/test/fixtures/assets.yml +11 -0
  119. data/test/fixtures/categories.yml +14 -0
  120. data/test/fixtures/comments.yml +27 -0
  121. data/test/fixtures/pages.yml +41 -0
  122. data/test/fixtures/posts.yml +37 -0
  123. data/test/fixtures/typus_users.yml +54 -0
  124. data/test/functional/admin/assets_controller_test.rb +57 -0
  125. data/test/functional/admin/categories_controller_test.rb +106 -0
  126. data/test/functional/admin/comments_controller_test.rb +121 -0
  127. data/test/functional/admin/master_controller_test.rb +5 -0
  128. data/test/functional/admin/posts_controller_test.rb +278 -0
  129. data/test/functional/admin/status_controller_test.rb +43 -0
  130. data/test/functional/admin/typus_users_controller_test.rb +239 -0
  131. data/test/functional/typus_controller_test.rb +315 -0
  132. data/test/helper.rb +51 -0
  133. data/test/helpers/admin/form_helper_test.rb +316 -0
  134. data/test/helpers/admin/master_helper_test.rb +65 -0
  135. data/test/helpers/admin/public_helper_test.rb +22 -0
  136. data/test/helpers/admin/sidebar_helper_test.rb +351 -0
  137. data/test/helpers/admin/table_helper_test.rb +255 -0
  138. data/test/helpers/typus_helper_test.rb +106 -0
  139. data/test/lib/active_record_test.rb +372 -0
  140. data/test/lib/configuration_test.rb +91 -0
  141. data/test/lib/hash_test.rb +11 -0
  142. data/test/lib/routes_test.rb +82 -0
  143. data/test/lib/string_test.rb +25 -0
  144. data/test/lib/typus_test.rb +105 -0
  145. data/test/models.rb +51 -0
  146. data/test/schema.rb +64 -0
  147. data/test/unit/typus_mailer_test.rb +33 -0
  148. data/test/unit/typus_test.rb +17 -0
  149. data/test/unit/typus_user_roles_test.rb +90 -0
  150. data/test/unit/typus_user_test.rb +177 -0
  151. data/test/vendor/active_record_test.rb +18 -0
  152. data/test/vendor/paginator_test.rb +138 -0
  153. data/typus.gemspec +225 -0
  154. metadata +241 -0
@@ -0,0 +1,709 @@
1
+ /* @group Defaults */
2
+
3
+ html {
4
+ background: #000;
5
+ height: 100%;
6
+ margin-bottom: 1px;
7
+ }
8
+
9
+ body {
10
+ color: #000;
11
+ font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
12
+ font-size: 75%;
13
+ }
14
+
15
+ label {
16
+ display: block;
17
+ font-weight: bold;
18
+ margin-bottom: 5px;
19
+ }
20
+
21
+ strong {
22
+ font-weight: bold;
23
+ }
24
+
25
+ dt {
26
+ float: left;
27
+ font-weight: bold;
28
+ width: 200px;
29
+ }
30
+
31
+ dd {
32
+ margin: 0 0 0 220px;
33
+ }
34
+
35
+ /* @end */
36
+
37
+ /* @group Links */
38
+
39
+ a,
40
+ a:visited,
41
+ a:link {
42
+ color: #000;
43
+ font-weight: normal;
44
+ text-decoration: none;
45
+ }
46
+
47
+ a:hover {
48
+ color: #333;
49
+ text-decoration: underline;
50
+ }
51
+
52
+ a.on {
53
+ color: #333;
54
+ font-weight: bold;
55
+ text-decoration: underline;
56
+ }
57
+
58
+ /* @end */
59
+
60
+ /* @group Wrappers */
61
+
62
+ #header_wrapper {
63
+ background: #000;
64
+ margin: 0 auto;
65
+ padding: 0 10px;
66
+ width: 940px;
67
+ }
68
+
69
+ #wrapper {
70
+ background: #FFF;
71
+ }
72
+
73
+ #content_wrapper {
74
+ background: #FFF;
75
+ min-height: 400px;
76
+ margin: 0 auto;
77
+ padding: 0 10px;
78
+ width: 940px;
79
+ }
80
+
81
+ /* @end */
82
+
83
+ /* @group Header */
84
+
85
+ #header {
86
+ background: #000;
87
+ color: #FFF;
88
+ margin: 0 auto;
89
+ padding: 1em 0;
90
+ }
91
+
92
+ #header h1 {
93
+ font-size: 2em;
94
+ }
95
+
96
+ #header h1 small {
97
+ font-size: 0.5em;
98
+ }
99
+
100
+ #header a {
101
+ color: #FFF;
102
+ }
103
+
104
+ #header .left {
105
+ float: left;
106
+ }
107
+
108
+ #header .right {
109
+ float: right;
110
+ margin-top: 1em;
111
+ }
112
+
113
+ #header .right li {
114
+ display: inline;
115
+ padding-left: 1em;
116
+ }
117
+
118
+ /* @end */
119
+
120
+ /* @group Content */
121
+
122
+ #content {
123
+ width: 700px;
124
+ float: left;
125
+ padding: 1.5em 0;
126
+ }
127
+
128
+ #content h2 {
129
+ font-size: 1.5em;
130
+ font-weight: bold;
131
+ margin: 0em 0em 0.5em 0em;
132
+ }
133
+
134
+ #content h2 a {
135
+ font-weight: bold;
136
+ }
137
+
138
+ #content h2 small {
139
+ font-size: 0.75em;
140
+ }
141
+
142
+ #content h2 small a {
143
+ color: #666;
144
+ }
145
+
146
+ #content h3 {
147
+ font-size: 1.25em;
148
+ font-weight: bold;
149
+ margin: 1em 0em;
150
+ }
151
+
152
+ #content h4 {
153
+ margin: 1em 0em;
154
+ }
155
+
156
+ #content ol {
157
+ margin: 1em 2em;
158
+ }
159
+
160
+ #content ul {
161
+ margin: 0em 1.5em;
162
+ }
163
+
164
+ #content li {
165
+ list-style: square;
166
+ line-height: 20px;
167
+ }
168
+
169
+ #content ul li {
170
+ list-style: square;
171
+ }
172
+
173
+ #content p {
174
+ margin: 1em 0em;
175
+ }
176
+
177
+ #content p a {
178
+ text-decoration: underline;
179
+ }
180
+
181
+ #content p a:hover {
182
+ color: #408BB6;
183
+ }
184
+
185
+ #content pre {
186
+ background: #000;
187
+ color: #FFF;
188
+ font-size: 1.25em;
189
+ margin: 1em 0em;
190
+ overflow: auto;
191
+ padding: 1em;
192
+ }
193
+
194
+ #content blockquote {
195
+ border-left: 1px solid #999;
196
+ font-size: 1.25em;
197
+ font-family: georgia;
198
+ margin: 1em;
199
+ padding: 0em 1em;
200
+ }
201
+
202
+ #content table {
203
+ margin: 1em 0em;
204
+ background: #000;
205
+ }
206
+
207
+ #content h2+table {
208
+ margin: 0em; /* Here we overwrite a preference */
209
+ }
210
+
211
+ /* @end */
212
+
213
+ /* @group Sidebar */
214
+
215
+ #sidebar {
216
+ float: left;
217
+ margin-left: 20px;
218
+ padding: 1.5em 0;
219
+ width: 220px;
220
+ }
221
+
222
+ #sidebar h2 {
223
+ font-size: 1.5em;
224
+ font-weight: bold;
225
+ }
226
+
227
+ #sidebar h3 {
228
+ margin: 1em 0;
229
+ }
230
+
231
+ #sidebar p {
232
+ margin: 1em 0;
233
+ }
234
+
235
+ #sidebar p a {
236
+ text-decoration: underline;
237
+ }
238
+
239
+ #sidebar label {
240
+ font-size: 15px;
241
+ }
242
+
243
+ #sidebar form {
244
+ margin-bottom: 1.25em;
245
+ }
246
+
247
+ #sidebar ul {
248
+ margin: 1em 0em;
249
+ }
250
+
251
+ #sidebar code {
252
+ font-size: 1.25em;
253
+ color: green;
254
+ }
255
+
256
+ #sidebar small {
257
+ font-size: 0.85em;
258
+ }
259
+
260
+ /* @end */
261
+
262
+ /* @group Footer */
263
+
264
+ #footer_wrapper {
265
+ background: #000;
266
+ }
267
+
268
+ #footer {
269
+ background: #000;
270
+ margin: 0 auto;
271
+ width: 940px;
272
+ }
273
+
274
+ #footer .left {
275
+ float: left;
276
+ }
277
+
278
+ #footer .right {
279
+ float: right;
280
+ }
281
+
282
+ #footer p {
283
+ color: #FFF;
284
+ font-size: 0.9em;
285
+ line-height: 18px;
286
+ padding: 1em 0em;
287
+ }
288
+
289
+ #footer a {
290
+ color: #FFF;
291
+ font-weight: normal;
292
+ text-decoration: underline;
293
+ }
294
+
295
+ #footer a:hover {
296
+ color: #408BB6;
297
+ }
298
+
299
+ /* @end */
300
+
301
+ /* @group Content Forms */
302
+
303
+ #content form {
304
+ margin: 1em 0em 2em 0em;
305
+ }
306
+
307
+ #content form ul {
308
+ margin: 0;
309
+ }
310
+
311
+ #content form ul li {
312
+ list-style: none;
313
+ margin: 1em 0;
314
+ }
315
+
316
+ #content form ul li p {
317
+ margin: 0.5em 0;
318
+ }
319
+
320
+ #content form small {
321
+ font-size: 0.9em;
322
+ font-weight: normal;
323
+ }
324
+
325
+ #content input.text {
326
+ border: 1px solid #999;
327
+ font-size: 20px;
328
+ padding: 5px;
329
+ width: 688px;
330
+ }
331
+
332
+ input.button {
333
+ margin: 10px 0 0 0;
334
+ }
335
+
336
+ #content input.text:focus {
337
+ background: #FFFCE1;
338
+ }
339
+
340
+ #content textarea {
341
+ border: 1px solid #999;
342
+ font-family: "Courier";
343
+ font-size: 14px;
344
+ padding: 3px;
345
+ width: 691px;
346
+ }
347
+
348
+ #content textarea:focus {
349
+ background: #FFFCE1;
350
+ }
351
+
352
+ #content select {
353
+ border: 1px solid #999;
354
+ font-size: 1.20em;
355
+ }
356
+
357
+ /* @end */
358
+
359
+ /* @group Content Tables */
360
+
361
+ #content table {
362
+ width: 100%;
363
+ }
364
+
365
+ #content table small {
366
+ font-size: 0.8em;
367
+ }
368
+
369
+ #content table th {
370
+ color: #FFF;
371
+ font-weight: normal;
372
+ padding: 4px;
373
+ }
374
+
375
+ #content table th a {
376
+ color: #FFF!important;
377
+ }
378
+
379
+ #content .asc { background: transparent url(/images/admin/arrow_up.gif) no-repeat right center; }
380
+
381
+ #content .desc { background: transparent url(/images/admin/arrow_down.gif) no-repeat right center; }
382
+
383
+ #content table td.right {
384
+ text-align: right;
385
+ }
386
+
387
+ #content table tr.even {
388
+ background: #FFF!important;
389
+ }
390
+
391
+ #content table tr.even:hover,
392
+ #content table tr.odd:hover {
393
+ background: #000!important;
394
+ color: #FFF;
395
+ }
396
+
397
+ #content table tr.even:hover a,
398
+ #content table tr.odd:hover a {
399
+ color: #FFF!important;
400
+ }
401
+
402
+ #content table tr.odd {
403
+ background: #F5F5F5;
404
+ }
405
+
406
+ #content table td {
407
+ border: none;
408
+ font-weight: normal;
409
+ padding: 3px 4px;
410
+ vertical-align: top;
411
+ }
412
+
413
+ /* @end */
414
+
415
+ /* @group Rails Errors */
416
+
417
+ .fieldWithErrors input {
418
+ background: #FBE3E4;
419
+ border: 1px solid #8A1F11!important;
420
+ }
421
+
422
+ .errorExplanation {
423
+ background: #FBE3E4;
424
+ border: 2px solid #FBC2C4;
425
+ color: #8a1f11;
426
+ padding: 0 10px;
427
+ }
428
+
429
+ .errorExplanation h3 {
430
+ display: none;
431
+ }
432
+
433
+ .errorExplanation p {
434
+ font-weight: bold;
435
+ padding: 0 5px;
436
+ }
437
+
438
+ .errorExplanation ul {
439
+ margin: 0 0 10px 25px!important;
440
+ }
441
+
442
+ .errorExplanation ul li {
443
+ list-style: square!important;
444
+ margin: 0!important;
445
+ }
446
+
447
+ /* @end */
448
+
449
+ /* @group Search Box */
450
+
451
+ input#search {
452
+ border: 1px solid #999;
453
+ font-size: 1.2em;
454
+ padding: 3px;
455
+ }
456
+
457
+ /* @end */
458
+
459
+ /* @group Login Page Dialog */
460
+
461
+ #bottom_dialog {
462
+ color: #FFF;
463
+ font-size: 0.9em;
464
+ line-height: 18px;
465
+ margin: 0em auto;
466
+ padding: 0em 1.5em;
467
+ text-align: center;
468
+ width: 420px;
469
+ }
470
+
471
+ #bottom_dialog a {
472
+ color: #FFF;
473
+ font-weight: bold;
474
+ }
475
+
476
+ #dialog {
477
+ background: #FFF;
478
+ border: 0.5em solid #408BB6;
479
+ margin: 5em auto 1em auto;
480
+ padding: 0em 1.5em;
481
+ width: 35em;
482
+ }
483
+
484
+ #dialog h1 {
485
+ font-size: 2em;
486
+ font-weight: bold;
487
+ margin: 0.5em 0;
488
+ }
489
+
490
+ #dialog h1 a {
491
+ font-weight: bold;
492
+ }
493
+
494
+ #dialog h1 a:hover {
495
+ color: #000;
496
+ text-decoration: underline;
497
+ }
498
+
499
+ #dialog li {
500
+ margin: 1em 0;
501
+ }
502
+
503
+ #dialog li a {
504
+ margin: 0.5em;
505
+ display: inline;
506
+ font-size: 11px;
507
+ }
508
+
509
+ #dialog input.text {
510
+ border: 1px solid #999;
511
+ font-size: 2em;
512
+ padding: 0.25em;
513
+ width: 16.75em;
514
+ }
515
+
516
+ #dialog input.button {
517
+ margin: 0.5em 0em;
518
+ }
519
+
520
+ /* @end */
521
+
522
+ /* @group Pagination */
523
+
524
+ .pagination {
525
+ border-bottom: 1px solid #F5F5F5;
526
+ border-top: 1px solid #F5F5F5;
527
+ margin: 1.5em auto 0em auto;
528
+ padding: 1em;
529
+ text-align: center;
530
+ }
531
+
532
+ .pagination a {
533
+ color: #333;
534
+ margin: 2px;
535
+ padding: 2px 3px;
536
+ text-decoration: none;
537
+ }
538
+
539
+ .pagination a:hover,
540
+ .pagination a:active {
541
+ background: #000;
542
+ color: #FFF;
543
+ }
544
+
545
+ .pagination span.current {
546
+ background-color: #408BB6;
547
+ color: #FFF;
548
+ font-weight: bold;
549
+ margin: 2px;
550
+ padding: 2px 3px;
551
+ }
552
+
553
+ .pagination span.disabled {
554
+ color: #DDD;
555
+ margin: 2px;
556
+ padding: 2px 3px;
557
+ }
558
+
559
+ /* @end */
560
+
561
+ /* @group Success, notice and error boxes */
562
+
563
+ .error,
564
+ .notice,
565
+ .success {
566
+ border: 1px solid #CCC;
567
+ font-weight: bold;
568
+ margin: 0em 0em 1em 0em;
569
+ }
570
+
571
+ .error p,
572
+ .notice p,
573
+ .success p {
574
+ font-weight: bold;
575
+ margin: 0em!important;
576
+ padding: 1em;
577
+ }
578
+
579
+ .error {
580
+ background: #FBE3E4;
581
+ border-color: #FBC2C4;
582
+ color: #8A1F11;
583
+ }
584
+
585
+ .error a {
586
+ color: #8A1F11;
587
+ }
588
+
589
+ .notice {
590
+ background: #FFF6BF;
591
+ border-color: #FFD324;
592
+ color: #514721;
593
+ }
594
+
595
+ .notice a {
596
+ color: #514721;
597
+ }
598
+
599
+ .success {
600
+ background: #E6EFC2;
601
+ border-color: #C6D880;
602
+ color: #264409;
603
+ }
604
+
605
+ .success a {
606
+ color: #264409;
607
+ }
608
+
609
+ /* @end */
610
+
611
+ /* @group Microformats */
612
+
613
+ .box {
614
+ border: 1px solid #D3D3D3;
615
+ margin: 1em 0em;
616
+ padding: 10px;
617
+ }
618
+
619
+ .box:hover {
620
+ border: 1px solid #999;
621
+ }
622
+
623
+ .box .preview {
624
+ float: left;
625
+ margin: 0 15px 0 0;
626
+ width: 200px;
627
+ }
628
+
629
+ .box .content {
630
+ }
631
+
632
+ .box .content h2 {
633
+ font-size: 16px!important;
634
+ margin: 0 0 10px 0!important;
635
+ }
636
+
637
+ .box .content h3 {
638
+ font-size: 14px!important;
639
+ margin: 0 0 10px 0!important;
640
+ }
641
+
642
+ .box .content blockquote p {
643
+ font-size: 16px!important;
644
+ }
645
+
646
+ .box .content p {
647
+ font-size: 12px!important;
648
+ margin: 0 0 10px 0!important;
649
+ }
650
+
651
+ .box .content ul {
652
+ margin: 0 0 10px 20px!important;
653
+ }
654
+
655
+ .box .metadata {
656
+ float: left;
657
+ width: 350px;
658
+ }
659
+
660
+ .box .metadata ul {
661
+ margin: 0!important;
662
+ padding: 0!important;
663
+ }
664
+
665
+ .box .metadata ul li {
666
+ list-style: none!important;
667
+ }
668
+
669
+ .box .actions {
670
+ float: right;
671
+ position: relative;
672
+ top: 0;
673
+ right: 0;
674
+ text-align: right;
675
+ }
676
+
677
+ .box .actions ul {
678
+ margin: 0!important;
679
+ }
680
+
681
+ .box .actions ul li {
682
+ display: inline;
683
+ list-style: none!important;
684
+ }
685
+
686
+ /* @end */
687
+
688
+ /* @group Clean Me */
689
+
690
+ .box_relationships {
691
+ border-top: 1px dotted #D3D3D3;
692
+ padding: 1.5em 0em;
693
+ }
694
+
695
+ /* @end */
696
+
697
+ /* @group Hacks */
698
+
699
+ .clear {
700
+ clear: both;
701
+ }
702
+
703
+ .tip {
704
+ color: #666;
705
+ font-size: 10px;
706
+ margin: -10px 0 10px 0!important;
707
+ }
708
+
709
+ /* @end */