card 0.0.1 → 1.15.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (514) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +4 -0
  3. data/GPL +331 -0
  4. data/LICENSE +16 -0
  5. data/VERSION +1 -0
  6. data/card.gemspec +48 -19
  7. data/config/initializers/01_init_ruby_extensions.rb +7 -0
  8. data/config/initializers/inflections.rb +13 -0
  9. data/config/initializers/mime_types.rb +13 -0
  10. data/config/initializers/notification.rb +4 -0
  11. data/config/initializers/recaptcha.rb +6 -0
  12. data/config/initializers/uuid_state_file.rb +3 -0
  13. data/db/bootstrap/card_actions.yml +3872 -0
  14. data/db/bootstrap/card_acts.yml +7 -0
  15. data/db/bootstrap/card_changes.yml +11909 -0
  16. data/db/bootstrap/card_references.yml +3970 -0
  17. data/db/bootstrap/cards.yml +10805 -0
  18. data/db/migrate/20110511221913_require_earlier_migrations.rb +19 -0
  19. data/db/migrate/20120105203350_require_1_8_migrations.rb +15 -0
  20. data/db/migrate/20121111025347_require_1_10_migrations.rb +15 -0
  21. data/db/migrate/20121118114000_split_link_type.rb +16 -0
  22. data/db/migrate/20121118115000_update_link_type.rb +19 -0
  23. data/db/migrate/20130106052640_table_cleanup.rb +25 -0
  24. data/db/migrate/20130109015336_trunk_left.rb +14 -0
  25. data/db/migrate/20130411210957_update_codenames.rb +14 -0
  26. data/db/migrate/20140822073704_create_new_revision_tables.rb +43 -0
  27. data/db/migrate/20141001105348_move_revisions_to_actions.rb +62 -0
  28. data/db/migrate/20141121172918_rename_card_migration_table.rb +15 -0
  29. data/db/migrate/20141208132159_remove_present_from_reference_table.rb +9 -0
  30. data/db/migrate/20141216053032_better_index_names.rb +24 -0
  31. data/db/migrate_core_cards/20130411191151_renaming_for_menu.rb +49 -0
  32. data/db/migrate_core_cards/20130411211600_delete_old_related_tab_cards.rb +18 -0
  33. data/db/migrate_core_cards/20130419215612_import_help_text.rb +13 -0
  34. data/db/migrate_core_cards/20130823192433_add_style_cards.rb +87 -0
  35. data/db/migrate_core_cards/20130910183318_move_styles_to_content.rb +11 -0
  36. data/db/migrate_core_cards/20130920214038_jsonize_tinymce.rb +15 -0
  37. data/db/migrate_core_cards/20130920291703_update_stylesheets.rb +18 -0
  38. data/db/migrate_core_cards/20130927191728_account_events.rb +21 -0
  39. data/db/migrate_core_cards/20131016172445_common_css_patch.rb +12 -0
  40. data/db/migrate_core_cards/20140110193325_reset_account_request_type.rb +11 -0
  41. data/db/migrate_core_cards/20140307231621_user_data_to_cards.rb +73 -0
  42. data/db/migrate_core_cards/20140317035504_account_requests_to_signups.rb +51 -0
  43. data/db/migrate_core_cards/20140512155840_add_script_cards.rb +83 -0
  44. data/db/migrate_core_cards/20140629222005_add_email_cards.rb +134 -0
  45. data/db/migrate_core_cards/20140725180118_config_card_updates.rb +9 -0
  46. data/db/migrate_core_cards/20141111083921_delete_machine_output.rb +9 -0
  47. data/db/migrate_core_cards/20141115034214_config_descriptions_etc.rb +14 -0
  48. data/db/migrate_core_cards/20141119001955_make_symlinks_relative.rb +15 -0
  49. data/db/migrate_core_cards/20141120120605_fix_notification_html_message.rb +10 -0
  50. data/db/migrate_core_cards/20141204061304_watchers_to_following.rb +38 -0
  51. data/db/migrate_core_cards/20141208132416_partial_reference_type.rb +7 -0
  52. data/db/migrate_core_cards/20141208162106_add_ace_script.rb +12 -0
  53. data/db/migrate_core_cards/20141216155251_add_more_following_cards.rb +24 -0
  54. data/db/migrate_core_cards/20141230204340_uri_codename.rb +13 -0
  55. data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +17 -0
  56. data/db/migrate_core_cards/20150220134731_following_to_follow_rule.rb +18 -0
  57. data/db/migrate_core_cards/data/1.11_help_text.json +410 -0
  58. data/db/migrate_core_cards/data/1.12_stylesheets/classic_cards.scss +100 -0
  59. data/db/migrate_core_cards/data/1.12_stylesheets/common.scss +226 -0
  60. data/db/migrate_core_cards/data/1.12_stylesheets/right_sidebar.scss +27 -0
  61. data/db/migrate_core_cards/data/1.12_stylesheets/traditional.scss +152 -0
  62. data/db/migrate_core_cards/data/1.13_config_text.json +32 -0
  63. data/db/migrate_core_cards/data/1.14_config_descriptions_etc.json +77 -0
  64. data/db/migrate_core_cards/data/bootstrap_layout.json +81 -0
  65. data/db/migrate_core_cards/data/mailer/follower_notification_email.html +9 -0
  66. data/db/migrate_core_cards/data/mailer/follower_notification_email.txt +11 -0
  67. data/db/migrate_core_cards/data/mailer/mail_config.json +22 -0
  68. data/db/migrate_core_cards/data/mailer/password_reset_email.html +10 -0
  69. data/db/migrate_core_cards/data/mailer/password_reset_email.txt +11 -0
  70. data/db/migrate_core_cards/data/mailer/signup_alert_email.html +7 -0
  71. data/db/migrate_core_cards/data/mailer/signup_alert_email.txt +5 -0
  72. data/db/migrate_core_cards/data/mailer/verification_email.html +9 -0
  73. data/db/migrate_core_cards/data/mailer/verification_email.txt +8 -0
  74. data/db/schema.rb +128 -0
  75. data/db/seeds.rb +8 -0
  76. data/db/version.txt +1 -0
  77. data/db/version_core_cards.txt +1 -0
  78. data/lib/card.rb +46 -3
  79. data/lib/card/active_record_ext.rb +77 -0
  80. data/lib/card/auth.rb +181 -0
  81. data/lib/card/cache.rb +199 -0
  82. data/lib/card/chunk.rb +104 -0
  83. data/lib/card/codename.rb +72 -0
  84. data/lib/card/content.rb +211 -0
  85. data/lib/card/core_ext.rb +105 -0
  86. data/lib/card/core_migration.rb +6 -0
  87. data/lib/card/diff.rb +430 -0
  88. data/lib/card/env.rb +52 -0
  89. data/lib/card/exceptions.rb +44 -0
  90. data/lib/card/format.rb +563 -0
  91. data/lib/card/loader.rb +165 -0
  92. data/lib/card/log.rb +450 -0
  93. data/lib/card/mailer.rb +37 -0
  94. data/lib/card/migration.rb +145 -0
  95. data/lib/card/name.rb +45 -0
  96. data/lib/card/query.rb +81 -0
  97. data/lib/card/query/card_clause.rb +527 -0
  98. data/lib/card/query/clause.rb +21 -0
  99. data/lib/card/query/ref_clause.rb +47 -0
  100. data/lib/card/query/value_clause.rb +65 -0
  101. data/lib/card/reference.rb +63 -0
  102. data/lib/card/set.rb +369 -0
  103. data/lib/card/set_pattern.rb +168 -0
  104. data/lib/card/simplecov_helper.rb +61 -0
  105. data/lib/card/spec_helper.rb +68 -0
  106. data/lib/card/version.rb +9 -2
  107. data/lib/cardio.rb +145 -0
  108. data/lib/generators/card.rb +32 -0
  109. data/lib/generators/card/format/USAGE +9 -0
  110. data/lib/generators/card/format/format_generator.rb +27 -0
  111. data/lib/generators/card/format/templates/format_spec_template.erb +5 -0
  112. data/lib/generators/card/format/templates/format_template.erb +3 -0
  113. data/lib/generators/card/migration/USAGE +24 -0
  114. data/lib/generators/card/migration/migration_generator.rb +38 -0
  115. data/lib/generators/card/migration/templates/card_migration.erb +10 -0
  116. data/lib/generators/card/set/USAGE +15 -0
  117. data/lib/generators/card/set/set_generator.rb +29 -0
  118. data/lib/generators/card/set/templates/set_spec_template.erb +5 -0
  119. data/lib/generators/card/set/templates/set_template.erb +1 -0
  120. data/mod/01_core/chunk/include.rb +85 -0
  121. data/mod/01_core/chunk/link.rb +87 -0
  122. data/mod/01_core/chunk/literal.rb +24 -0
  123. data/mod/01_core/chunk/reference.rb +53 -0
  124. data/mod/01_core/chunk/uri.rb +135 -0
  125. data/mod/01_core/format/data_format.rb +2 -0
  126. data/mod/01_core/format/html_format.rb +129 -0
  127. data/mod/01_core/format/text_format.rb +10 -0
  128. data/mod/01_core/layout/blank.html +5 -0
  129. data/mod/01_core/layout/default.html +20 -0
  130. data/mod/01_core/layout/noside.html +16 -0
  131. data/mod/01_core/layout/pre.html +2 -0
  132. data/mod/01_core/layout/simple.html +5 -0
  133. data/mod/01_core/set/all/active_card.rb +35 -0
  134. data/mod/01_core/set/all/collection.rb +142 -0
  135. data/mod/01_core/set/all/content.rb +64 -0
  136. data/mod/01_core/set/all/erb.rb +11 -0
  137. data/mod/01_core/set/all/fetch.rb +228 -0
  138. data/mod/01_core/set/all/haml.rb +7 -0
  139. data/mod/01_core/set/all/initialize.rb +49 -0
  140. data/mod/01_core/set/all/name.rb +275 -0
  141. data/mod/01_core/set/all/pattern.rb +56 -0
  142. data/mod/01_core/set/all/permissions.rb +284 -0
  143. data/mod/01_core/set/all/phases.rb +185 -0
  144. data/mod/01_core/set/all/references.rb +118 -0
  145. data/mod/01_core/set/all/rules.rb +315 -0
  146. data/mod/01_core/set/all/states.rb +16 -0
  147. data/mod/01_core/set/all/templating.rb +120 -0
  148. data/mod/01_core/set/all/tracked_attributes.rb +114 -0
  149. data/mod/01_core/set/all/trash.rb +50 -0
  150. data/mod/01_core/set/all/type.rb +85 -0
  151. data/mod/01_core/set/all/utils.rb +85 -0
  152. data/mod/01_core/set_pattern/01_all.rb +11 -0
  153. data/mod/01_core/set_pattern/02_all_plus.rb +13 -0
  154. data/mod/01_core/set_pattern/03_type.rb +23 -0
  155. data/mod/01_core/set_pattern/04_star.rb +15 -0
  156. data/mod/01_core/set_pattern/05_rstar.rb +17 -0
  157. data/mod/01_core/set_pattern/06_right.rb +20 -0
  158. data/mod/01_core/set_pattern/07_type_plus_right.rb +23 -0
  159. data/mod/01_core/set_pattern/08_self.rb +19 -0
  160. data/mod/01_core/spec/chunk/literal_spec.rb +14 -0
  161. data/mod/01_core/spec/chunk/uri_spec.rb +292 -0
  162. data/mod/01_core/spec/format/data_format_spec.rb +5 -0
  163. data/mod/01_core/spec/format/html_format_spec.rb +140 -0
  164. data/mod/01_core/spec/format/text_format_spec.rb +5 -0
  165. data/mod/01_core/spec/set/all/active_card_spec.rb +5 -0
  166. data/mod/01_core/spec/set/all/attribute_tracking_spec.rb +21 -0
  167. data/mod/01_core/spec/set/all/collection_spec.rb +65 -0
  168. data/mod/01_core/spec/set/all/content_spec.rb +15 -0
  169. data/mod/01_core/spec/set/all/fetch_spec.rb +204 -0
  170. data/mod/01_core/spec/set/all/initialize_spec.rb +58 -0
  171. data/mod/01_core/spec/set/all/name_spec.rb +61 -0
  172. data/mod/01_core/spec/set/all/pattern_spec.rb +81 -0
  173. data/mod/01_core/spec/set/all/permissions_spec.rb +505 -0
  174. data/mod/01_core/spec/set/all/phases_spec.rb +6 -0
  175. data/mod/01_core/spec/set/all/references_spec.rb +8 -0
  176. data/mod/01_core/spec/set/all/rules2_spec.rb +250 -0
  177. data/mod/01_core/spec/set/all/rules_spec.rb +130 -0
  178. data/mod/01_core/spec/set/all/states_spec.rb +5 -0
  179. data/mod/01_core/spec/set/all/templating_spec.rb +111 -0
  180. data/mod/01_core/spec/set/all/tracked_attributes_spec.rb +328 -0
  181. data/mod/01_core/spec/set/all/trash_spec.rb +34 -0
  182. data/mod/01_core/spec/set/all/type_spec.rb +71 -0
  183. data/mod/01_core/spec/set/all/utils_spec.rb +5 -0
  184. data/mod/01_history/lib/card/act.rb +60 -0
  185. data/mod/01_history/lib/card/action.rb +176 -0
  186. data/mod/01_history/lib/card/change.rb +29 -0
  187. data/mod/01_history/set/all/actions.rb +47 -0
  188. data/mod/01_history/set/all/content_history.rb +131 -0
  189. data/mod/01_history/set/all/history.rb +296 -0
  190. data/mod/02_basic_types/format/css_format.rb +6 -0
  191. data/mod/02_basic_types/format/csv_format.rb +6 -0
  192. data/mod/02_basic_types/format/file_format.rb +3 -0
  193. data/mod/02_basic_types/format/js_format.rb +6 -0
  194. data/mod/02_basic_types/format/json_format.rb +6 -0
  195. data/mod/02_basic_types/format/rss_format.rb +11 -0
  196. data/mod/02_basic_types/format/xml_format.rb +6 -0
  197. data/mod/02_basic_types/set/all/all_css.rb +42 -0
  198. data/mod/02_basic_types/set/all/all_csv.rb +52 -0
  199. data/mod/02_basic_types/set/all/all_js.rb +7 -0
  200. data/mod/02_basic_types/set/all/base.rb +122 -0
  201. data/mod/02_basic_types/set/all/file.rb +13 -0
  202. data/mod/02_basic_types/set/all/json.rb +66 -0
  203. data/mod/02_basic_types/set/all/rss.rb +72 -0
  204. data/mod/02_basic_types/set/all/text.rb +8 -0
  205. data/mod/02_basic_types/set/type/plain_text.rb +10 -0
  206. data/mod/02_basic_types/set/type/pointer.rb +323 -0
  207. data/mod/02_basic_types/spec/set/all/all_css_spec.rb +10 -0
  208. data/mod/02_basic_types/spec/set/all/all_csv_spec.rb +9 -0
  209. data/mod/02_basic_types/spec/set/all/base_spec.rb +57 -0
  210. data/mod/02_basic_types/spec/set/all/file_spec.rb +5 -0
  211. data/mod/02_basic_types/spec/set/all/json_spec.rb +26 -0
  212. data/mod/02_basic_types/spec/set/all/rss_spec.rb +8 -0
  213. data/mod/02_basic_types/spec/set/all/text_spec.rb +5 -0
  214. data/mod/02_basic_types/spec/set/type/plain_text_spec.rb +11 -0
  215. data/mod/02_basic_types/spec/set/type/pointer_spec.rb +103 -0
  216. data/mod/03_machines/lib/card/machine.rb +185 -0
  217. data/mod/03_machines/lib/card/machine_input.rb +40 -0
  218. data/mod/03_machines/lib/javascript/ace.js +18204 -0
  219. data/mod/03_machines/lib/javascript/html5shiv-printshiv.js +1 -0
  220. data/mod/03_machines/lib/javascript/jquery-ui.js +14913 -0
  221. data/mod/03_machines/lib/javascript/jquery.autosize.js +274 -0
  222. data/mod/03_machines/lib/javascript/jquery.fileupload.js +1114 -0
  223. data/mod/03_machines/lib/javascript/jquery.iframe-transport.js +185 -0
  224. data/mod/03_machines/lib/javascript/jquery.js +4 -0
  225. data/mod/03_machines/lib/javascript/jquery.ui.autocomplete.html.js +41 -0
  226. data/mod/03_machines/lib/javascript/jquery_ujs.js +469 -0
  227. data/mod/03_machines/lib/javascript/jquerymobile.js +15454 -0
  228. data/mod/03_machines/lib/javascript/theme-textmate.js +130 -0
  229. data/mod/03_machines/lib/javascript/tinymce.js +13 -0
  230. data/mod/03_machines/lib/javascript/wagn.js.coffee +336 -0
  231. data/mod/03_machines/lib/javascript/wagn_menu.js +72 -0
  232. data/mod/03_machines/lib/javascript/wagn_mod.js.coffee +446 -0
  233. data/mod/03_machines/lib/stylesheets/functional.scss +184 -0
  234. data/mod/03_machines/lib/stylesheets/jquery-ui-smoothness.css +1178 -0
  235. data/mod/03_machines/lib/stylesheets/standard.scss +760 -0
  236. data/mod/03_machines/set/right/machine_output.rb +20 -0
  237. data/mod/03_machines/set/self/script_ace.rb +8 -0
  238. data/mod/03_machines/set/self/script_card_menu.rb +8 -0
  239. data/mod/03_machines/set/self/script_html5shiv_printshiv.rb +7 -0
  240. data/mod/03_machines/set/self/script_jquery.rb +8 -0
  241. data/mod/03_machines/set/self/script_jquery_helper.rb +14 -0
  242. data/mod/03_machines/set/self/script_slot.rb +9 -0
  243. data/mod/03_machines/set/self/script_tinymce.rb +8 -0
  244. data/mod/03_machines/set/self/style_functional.rb +8 -0
  245. data/mod/03_machines/set/self/style_jquery_ui_smoothness.rb +8 -0
  246. data/mod/03_machines/set/self/style_standard.rb +8 -0
  247. data/mod/03_machines/set/type/coffee_script.rb +61 -0
  248. data/mod/03_machines/set/type/css.rb +45 -0
  249. data/mod/03_machines/set/type/java_script.rb +38 -0
  250. data/mod/03_machines/set/type/scss.rb +23 -0
  251. data/mod/03_machines/set/type/skin.rb +12 -0
  252. data/mod/03_machines/spec/lib/shared_machine_examples.rb +175 -0
  253. data/mod/03_machines/spec/lib/shared_machine_input_examples.rb +65 -0
  254. data/mod/03_machines/spec/set/right/machine_output_spec.rb +5 -0
  255. data/mod/03_machines/spec/set/self/style_functional_spec.rb +5 -0
  256. data/mod/03_machines/spec/set/self/style_jquery_ui_smoothness_spec.rb +5 -0
  257. data/mod/03_machines/spec/set/self/style_standard_spec.rb +5 -0
  258. data/mod/03_machines/spec/set/type/coffeescript_spec.rb +29 -0
  259. data/mod/03_machines/spec/set/type/css_spec.rb +34 -0
  260. data/mod/03_machines/spec/set/type/javascript_spec.rb +28 -0
  261. data/mod/03_machines/spec/set/type/scss_spec.rb +56 -0
  262. data/mod/03_machines/spec/set/type/skin_spec.rb +70 -0
  263. data/mod/04_settings/lib/card/setting.rb +65 -0
  264. data/mod/04_settings/set/right/add_help.rb +11 -0
  265. data/mod/04_settings/set/right/comment.rb +91 -0
  266. data/mod/04_settings/set/right/create.rb +3 -0
  267. data/mod/04_settings/set/right/default.rb +3 -0
  268. data/mod/04_settings/set/right/delete.rb +4 -0
  269. data/mod/04_settings/set/right/help.rb +3 -0
  270. data/mod/04_settings/set/right/read.rb +2 -0
  271. data/mod/04_settings/set/right/script.rb +10 -0
  272. data/mod/04_settings/set/right/structure.rb +4 -0
  273. data/mod/04_settings/set/right/style.rb +10 -0
  274. data/mod/04_settings/set/right/update.rb +2 -0
  275. data/mod/04_settings/set/self/accountable.rb +3 -0
  276. data/mod/04_settings/set/self/add_help.rb +2 -0
  277. data/mod/04_settings/set/self/autoname.rb +2 -0
  278. data/mod/04_settings/set/self/captcha.rb +2 -0
  279. data/mod/04_settings/set/self/comment.rb +2 -0
  280. data/mod/04_settings/set/self/create.rb +2 -0
  281. data/mod/04_settings/set/self/default.rb +2 -0
  282. data/mod/04_settings/set/self/delete.rb +2 -0
  283. data/mod/04_settings/set/self/help.rb +2 -0
  284. data/mod/04_settings/set/self/input.rb +2 -0
  285. data/mod/04_settings/set/self/layout.rb +2 -0
  286. data/mod/04_settings/set/self/on_create.rb +2 -0
  287. data/mod/04_settings/set/self/on_delete.rb +2 -0
  288. data/mod/04_settings/set/self/on_update.rb +2 -0
  289. data/mod/04_settings/set/self/options.rb +2 -0
  290. data/mod/04_settings/set/self/options_label.rb +2 -0
  291. data/mod/04_settings/set/self/read.rb +2 -0
  292. data/mod/04_settings/set/self/script.rb +2 -0
  293. data/mod/04_settings/set/self/structure.rb +2 -0
  294. data/mod/04_settings/set/self/style.rb +2 -0
  295. data/mod/04_settings/set/self/table_of_contents.rb +2 -0
  296. data/mod/04_settings/set/self/thanks.rb +2 -0
  297. data/mod/04_settings/set/self/update.rb +2 -0
  298. data/mod/04_settings/set/type/setting.rb +82 -0
  299. data/mod/04_settings/spec/set/right/add_help_spec.rb +5 -0
  300. data/mod/04_settings/spec/set/right/comment_spec.rb +41 -0
  301. data/mod/04_settings/spec/set/right/create_spec.rb +10 -0
  302. data/mod/04_settings/spec/set/right/default_spec.rb +5 -0
  303. data/mod/04_settings/spec/set/right/delete_spec.rb +5 -0
  304. data/mod/04_settings/spec/set/right/help_spec.rb +5 -0
  305. data/mod/04_settings/spec/set/right/read_spec.rb +5 -0
  306. data/mod/04_settings/spec/set/right/script_spec.rb +24 -0
  307. data/mod/04_settings/spec/set/right/structure_spec.rb +17 -0
  308. data/mod/04_settings/spec/set/right/style_spec.rb +29 -0
  309. data/mod/04_settings/spec/set/right/update_spec.rb +5 -0
  310. data/mod/04_settings/spec/set/type/setting_spec.rb +10 -0
  311. data/mod/05_email/format/email_html_format.rb +9 -0
  312. data/mod/05_email/format/email_text_format.rb +11 -0
  313. data/mod/05_email/lib/card/follow_option.rb +90 -0
  314. data/mod/05_email/set/all/email_html.rb +5 -0
  315. data/mod/05_email/set/all/email_text.rb +5 -0
  316. data/mod/05_email/set/all/follow.rb +256 -0
  317. data/mod/05_email/set/all/notify.rb +223 -0
  318. data/mod/05_email/set/all/observer.rb +27 -0
  319. data/mod/05_email/set/right/bcc.rb +45 -0
  320. data/mod/05_email/set/right/cc.rb +3 -0
  321. data/mod/05_email/set/right/follow.rb +9 -0
  322. data/mod/05_email/set/right/follow_fields.rb +3 -0
  323. data/mod/05_email/set/right/followers.rb +30 -0
  324. data/mod/05_email/set/right/following.rb +52 -0
  325. data/mod/05_email/set/right/from.rb +3 -0
  326. data/mod/05_email/set/right/html_message.rb +3 -0
  327. data/mod/05_email/set/right/to.rb +3 -0
  328. data/mod/05_email/set/self/always.rb +14 -0
  329. data/mod/05_email/set/self/created.rb +21 -0
  330. data/mod/05_email/set/self/edited.rb +24 -0
  331. data/mod/05_email/set/self/follow.rb +2 -0
  332. data/mod/05_email/set/self/follow_defaults.rb +66 -0
  333. data/mod/05_email/set/self/never.rb +15 -0
  334. data/mod/05_email/set/type/email_template.rb +113 -0
  335. data/mod/05_email/set/type_plus_right/user/follow.rb +176 -0
  336. data/mod/05_email/spec/set/all/follow_spec.rb +133 -0
  337. data/mod/05_email/spec/set/all/notify_spec.rb +364 -0
  338. data/mod/05_email/spec/set/all/observer_spec.rb +76 -0
  339. data/mod/05_email/spec/set/right/followers_spec.rb +126 -0
  340. data/mod/05_email/spec/set/right/following_spec.rb +4 -0
  341. data/mod/05_email/spec/set/self/follow_defaults_spec.rb +18 -0
  342. data/mod/05_standard/file/103/icon-6566.ico +0 -0
  343. data/mod/05_standard/file/103/large-6566.ico +0 -0
  344. data/mod/05_standard/file/103/medium-6566.ico +0 -0
  345. data/mod/05_standard/file/103/original-6566.ico +0 -0
  346. data/mod/05_standard/file/103/small-6566.ico +0 -0
  347. data/mod/05_standard/file/79/icon-6556.png +0 -0
  348. data/mod/05_standard/file/79/large-6556.png +0 -0
  349. data/mod/05_standard/file/79/medium-6556.png +0 -0
  350. data/mod/05_standard/file/79/original-6556.png +0 -0
  351. data/mod/05_standard/file/79/small-6556.png +0 -0
  352. data/mod/05_standard/file/790/icon-6419.png +0 -0
  353. data/mod/05_standard/file/790/large-6419.png +0 -0
  354. data/mod/05_standard/file/790/medium-6419.png +0 -0
  355. data/mod/05_standard/file/790/original-6419.png +0 -0
  356. data/mod/05_standard/file/790/small-6419.png +0 -0
  357. data/mod/05_standard/set/all/account.rb +67 -0
  358. data/mod/05_standard/set/all/attach.rb +152 -0
  359. data/mod/05_standard/set/all/comment.rb +39 -0
  360. data/mod/05_standard/set/all/error.rb +214 -0
  361. data/mod/05_standard/set/all/event_viz.rb +62 -0
  362. data/mod/05_standard/set/all/links.rb +110 -0
  363. data/mod/05_standard/set/all/rich_html/content.rb +173 -0
  364. data/mod/05_standard/set/all/rich_html/editing.rb +145 -0
  365. data/mod/05_standard/set/all/rich_html/form.rb +234 -0
  366. data/mod/05_standard/set/all/rich_html/header.rb +64 -0
  367. data/mod/05_standard/set/all/rich_html/wrapper.rb +105 -0
  368. data/mod/05_standard/set/right/account.rb +180 -0
  369. data/mod/05_standard/set/right/email.rb +52 -0
  370. data/mod/05_standard/set/right/password.rb +39 -0
  371. data/mod/05_standard/set/right/salt.rb +5 -0
  372. data/mod/05_standard/set/right/stats.rb +35 -0
  373. data/mod/05_standard/set/right/status.rb +9 -0
  374. data/mod/05_standard/set/right/token.rb +5 -0
  375. data/mod/05_standard/set/right/when_created.rb +5 -0
  376. data/mod/05_standard/set/right/when_last_edited.rb +5 -0
  377. data/mod/05_standard/set/rstar/rules.rb +407 -0
  378. data/mod/05_standard/set/self/account_links.rb +61 -0
  379. data/mod/05_standard/set/self/alerts.rb +5 -0
  380. data/mod/05_standard/set/self/all.rb +21 -0
  381. data/mod/05_standard/set/self/foot.rb +8 -0
  382. data/mod/05_standard/set/self/head.rb +121 -0
  383. data/mod/05_standard/set/self/navbox.rb +20 -0
  384. data/mod/05_standard/set/self/now.rb +6 -0
  385. data/mod/05_standard/set/self/recent.rb +48 -0
  386. data/mod/05_standard/set/self/search.rb +43 -0
  387. data/mod/05_standard/set/self/signin.rb +121 -0
  388. data/mod/05_standard/set/self/stats.rb +91 -0
  389. data/mod/05_standard/set/self/version.rb +9 -0
  390. data/mod/05_standard/set/type/basic.rb +46 -0
  391. data/mod/05_standard/set/type/cardtype.rb +43 -0
  392. data/mod/05_standard/set/type/date.rb +8 -0
  393. data/mod/05_standard/set/type/file.rb +85 -0
  394. data/mod/05_standard/set/type/html.rb +22 -0
  395. data/mod/05_standard/set/type/image.rb +67 -0
  396. data/mod/05_standard/set/type/layout_type.rb +14 -0
  397. data/mod/05_standard/set/type/number.rb +19 -0
  398. data/mod/05_standard/set/type/phrase.rb +3 -0
  399. data/mod/05_standard/set/type/search_type.rb +243 -0
  400. data/mod/05_standard/set/type/set.rb +198 -0
  401. data/mod/05_standard/set/type/signup.rb +144 -0
  402. data/mod/05_standard/set/type/toggle.rb +12 -0
  403. data/mod/05_standard/set/type/uri.rb +11 -0
  404. data/mod/05_standard/set/type/user.rb +72 -0
  405. data/mod/05_standard/spec/chunk/include_spec.rb +186 -0
  406. data/mod/05_standard/spec/chunk/link_spec.rb +61 -0
  407. data/mod/05_standard/spec/format/css_format_spec.rb +5 -0
  408. data/mod/05_standard/spec/format/csv_format_spec.rb +5 -0
  409. data/mod/05_standard/spec/format/email_html_format_spec.rb +5 -0
  410. data/mod/05_standard/spec/format/file_format_spec.rb +5 -0
  411. data/mod/05_standard/spec/format/js_format_spec.rb +5 -0
  412. data/mod/05_standard/spec/format/json_format_spec.rb +5 -0
  413. data/mod/05_standard/spec/format/rss_format_spec.rb +5 -0
  414. data/mod/05_standard/spec/format/xml_format_spec.rb +5 -0
  415. data/mod/05_standard/spec/set/all/account_spec.rb +137 -0
  416. data/mod/05_standard/spec/set/all/attach_spec.rb +9 -0
  417. data/mod/05_standard/spec/set/all/comment_spec.rb +5 -0
  418. data/mod/05_standard/spec/set/all/email_html_spec.rb +15 -0
  419. data/mod/05_standard/spec/set/all/error_spec.rb +9 -0
  420. data/mod/05_standard/spec/set/all/event_viz_spec.rb +9 -0
  421. data/mod/05_standard/spec/set/all/history_spec.rb +173 -0
  422. data/mod/05_standard/spec/set/all/rich_html/form_spec.rb +43 -0
  423. data/mod/05_standard/spec/set/all/rich_html/wrapper_spec.rb +28 -0
  424. data/mod/05_standard/spec/set/right/account_spec.rb +162 -0
  425. data/mod/05_standard/spec/set/right/email_spec.rb +55 -0
  426. data/mod/05_standard/spec/set/right/password_spec.rb +45 -0
  427. data/mod/05_standard/spec/set/right/salt_spec.rb +5 -0
  428. data/mod/05_standard/spec/set/right/stats_spec.rb +13 -0
  429. data/mod/05_standard/spec/set/right/status_spec.rb +5 -0
  430. data/mod/05_standard/spec/set/right/token_spec.rb +5 -0
  431. data/mod/05_standard/spec/set/right/when_created_spec.rb +7 -0
  432. data/mod/05_standard/spec/set/right/when_last_edited_spec.rb +7 -0
  433. data/mod/05_standard/spec/set/rstar/rules_spec.rb +25 -0
  434. data/mod/05_standard/spec/set/self/account_links_spec.rb +9 -0
  435. data/mod/05_standard/spec/set/self/alerts_spec.rb +5 -0
  436. data/mod/05_standard/spec/set/self/all_spec.rb +48 -0
  437. data/mod/05_standard/spec/set/self/foot_spec.rb +5 -0
  438. data/mod/05_standard/spec/set/self/head_spec.rb +17 -0
  439. data/mod/05_standard/spec/set/self/navbox_spec.rb +7 -0
  440. data/mod/05_standard/spec/set/self/now_spec.rb +7 -0
  441. data/mod/05_standard/spec/set/self/recent_spec.rb +5 -0
  442. data/mod/05_standard/spec/set/self/search_spec.rb +5 -0
  443. data/mod/05_standard/spec/set/self/signin_spec.rb +73 -0
  444. data/mod/05_standard/spec/set/self/stats_spec.rb +12 -0
  445. data/mod/05_standard/spec/set/self/version_spec.rb +7 -0
  446. data/mod/05_standard/spec/set/type/basic_spec.rb +5 -0
  447. data/mod/05_standard/spec/set/type/cardtype_spec.rb +5 -0
  448. data/mod/05_standard/spec/set/type/date_spec.rb +7 -0
  449. data/mod/05_standard/spec/set/type/email_template_spec.rb +208 -0
  450. data/mod/05_standard/spec/set/type/file_spec.rb +5 -0
  451. data/mod/05_standard/spec/set/type/html_spec.rb +23 -0
  452. data/mod/05_standard/spec/set/type/image_spec.rb +16 -0
  453. data/mod/05_standard/spec/set/type/layout_type_spec.rb +7 -0
  454. data/mod/05_standard/spec/set/type/number_spec.rb +7 -0
  455. data/mod/05_standard/spec/set/type/phrase_spec.rb +7 -0
  456. data/mod/05_standard/spec/set/type/search_type_spec.rb +27 -0
  457. data/mod/05_standard/spec/set/type/set_spec.rb +26 -0
  458. data/mod/05_standard/spec/set/type/signup_spec.rb +228 -0
  459. data/mod/05_standard/spec/set/type/toggle_spec.rb +12 -0
  460. data/mod/05_standard/spec/set/type/uri_spec.rb +41 -0
  461. data/mod/05_standard/spec/set/type/user_spec.rb +5 -0
  462. data/mod/06_bootstrap/lib/javascript/bootstrap.js +2306 -0
  463. data/mod/06_bootstrap/lib/javascript/bootstrap.min.js +7 -0
  464. data/mod/06_bootstrap/lib/stylesheets/bootstrap-theme.css +476 -0
  465. data/mod/06_bootstrap/lib/stylesheets/bootstrap.css +6565 -0
  466. data/mod/06_bootstrap/lib/stylesheets/darkly.css +6583 -0
  467. data/mod/06_bootstrap/set/all/bootstrap/form.rb +37 -0
  468. data/mod/06_bootstrap/set/all/bootstrap/header.rb +29 -0
  469. data/mod/06_bootstrap/set/all/bootstrap/wrapper.rb +12 -0
  470. data/mod/06_bootstrap/set/all/rich_bootstrap.rb +28 -0
  471. data/mod/06_bootstrap/set/self/bootstrap_css.rb +7 -0
  472. data/mod/06_bootstrap/set/self/bootstrap_js.rb +7 -0
  473. data/mod/06_bootstrap/set/self/bootstrap_theme_css.rb +7 -0
  474. data/mod/06_bootstrap/set/self/navbox.rb +32 -0
  475. data/mod/06_bootstrap/set/type/search_type.rb +79 -0
  476. data/mod/06_bootstrap/spec/set/all/bootstrap/form_spec.rb +13 -0
  477. data/spec/lib/card/action_spec.rb +14 -0
  478. data/spec/lib/card/auth_spec.rb +17 -0
  479. data/spec/lib/card/cache_spec.rb +122 -0
  480. data/spec/lib/card/chunk_spec.rb +17 -0
  481. data/spec/lib/card/codename_spec.rb +25 -0
  482. data/spec/lib/card/content_spec.rb +314 -0
  483. data/spec/lib/card/diff_spec.rb +210 -0
  484. data/spec/lib/card/format_spec.rb +82 -0
  485. data/spec/lib/card/loader_spec.rb +39 -0
  486. data/spec/lib/card/log_spec.rb +270 -0
  487. data/spec/lib/card/name_spec.rb +279 -0
  488. data/spec/lib/card/query_spec.rb +456 -0
  489. data/spec/lib/card/reference_spec.rb +213 -0
  490. data/spec/lib/card/set_pattern_spec.rb +56 -0
  491. data/spec/lib/card/set_spec.rb +88 -0
  492. data/spec/mailers/mailer_spec.rb +64 -0
  493. data/spec/models/card/cardtype_spec.rb +216 -0
  494. data/spec/models/card/create_spec.rb +82 -0
  495. data/spec/models/card/trash_spec.rb +260 -0
  496. data/spec/models/card/type_transition_spec.rb +161 -0
  497. data/spec/models/card/validation_spec.rb +36 -0
  498. data/spec/models/card_spec.rb +177 -0
  499. data/spec/spec_helper.rb +130 -0
  500. data/test/fixtures/.gitkeep +0 -0
  501. data/test/fixtures/card_actions.yml +5706 -0
  502. data/test/fixtures/card_acts.yml +835 -0
  503. data/test/fixtures/card_changes.yml +17182 -0
  504. data/test/fixtures/card_references.yml +5405 -0
  505. data/test/fixtures/cards.yml +15533 -0
  506. data/test/fixtures/mao2.jpg +0 -0
  507. data/test/fixtures/rails.gif +0 -0
  508. data/test/seed.rb +201 -0
  509. metadata +762 -38
  510. data/.gitignore +0 -17
  511. data/Gemfile +0 -4
  512. data/LICENSE.txt +0 -22
  513. data/README.md +0 -29
  514. data/Rakefile +0 -1
@@ -0,0 +1,760 @@
1
+
2
+ /*
3
+ This "standard" CSS provides styles for aspects of wagn sites not usually prioritized by skin designers.
4
+
5
+ It includes basic styling for:
6
+
7
+ 1. wagneer interface (sets, settings, rules)
8
+ 2. editor interface (forms, fieldsets, menus, navbox, history)
9
+ 3. views that by definition alter default styling (closed, labeled)
10
+ 4. errors / warnings / notices
11
+ 5. key default content for new installs (home page, sidebar)
12
+
13
+ Most colors are greyscale; any that aren't are explained with comments beginning with "NOTGREY"
14
+
15
+ Note that this CSS is taken from code so that it will be updated automatically with releases.
16
+ If you don't want certain rules, you may (a) override them, or (b) choose not to include this card
17
+ in your skin. Choosing (b) will mean your CSS will not be affected by automated updates.
18
+ */
19
+
20
+ /* -- resets -- */
21
+
22
+ .card-frame {
23
+ text-align: left;
24
+ font-weight: normal;
25
+ font-style: normal;
26
+ }
27
+
28
+
29
+ /*-------------------- */
30
+ /*- DYNAMIC ELEMENTS - */
31
+ /*-------------------- */
32
+
33
+ /* -- card menus -- */
34
+
35
+ .card-menu {
36
+ font-size: 11px;
37
+ li {
38
+ text-align: right;
39
+ a {
40
+ color: #333;
41
+ }
42
+ }
43
+ .ui-menu-icon {
44
+ float: left;
45
+ margin-right: 5px;
46
+ }
47
+ }
48
+ .ui-menu .ui-menu-item {
49
+ padding: 2px 0;
50
+ }
51
+
52
+ .card-menu-tappable {
53
+ font-size: 18px;
54
+ .ui-menu-icon {
55
+ padding: 7px;
56
+ display: inline-block;
57
+ margin-right: 15px;
58
+ background: #666;
59
+ border-radius: 3px;
60
+ -moz-border-radius: 3px;
61
+ color: #fff;
62
+ font-size: 10px;
63
+ }
64
+ .ui-menu-icon:after {
65
+ content: '<';
66
+ }
67
+ }
68
+
69
+
70
+ /* related view (used by many menu items, such as "referred to by") */
71
+
72
+ .related-view > .card-body {
73
+ background: #bbb;
74
+ padding: 5px;
75
+ > .ALL {
76
+ background: #fff;
77
+ > .card-header {
78
+ background: #ddd;
79
+ padding: 5px;
80
+ color: #000;
81
+ }
82
+ > .card-body {
83
+ padding: 8px 2%;
84
+ }
85
+ }
86
+ }
87
+
88
+ /* navboxes */
89
+
90
+ .navbox-item-label {
91
+ font-size: 10px;
92
+ width: 50px;
93
+ padding: 3px 0 3px 5px;
94
+ }
95
+
96
+ .ui-menu-item {
97
+ .glyphicon {
98
+ float: left;
99
+ font-size: 10px;
100
+ padding: 3px 0 3px 0px;
101
+ }
102
+ }
103
+
104
+
105
+
106
+
107
+ /*-------------------- */
108
+ /*- ONE-LINE VIEWS - */
109
+ /*-------------------- */
110
+
111
+ .closed-view {
112
+ margin: 0;
113
+ width: 100%;
114
+ }
115
+ .closed-content {
116
+ table, tbody, tr, th, td, p, h1, h2, h3, h4, h5, h6, ul, li, pre, ol, div, span, a, blockquote, img {
117
+ font-size: 1em !important;
118
+ margin: 0 6px 0 0;
119
+ padding: 0 !important;
120
+ border: 0 !important;
121
+ }
122
+ a {
123
+ margin: 0;
124
+ }
125
+ img {
126
+ max-height: 1em;
127
+ width: auto;
128
+ }
129
+ }
130
+
131
+
132
+ .labeled-view {
133
+ padding: 5px 0;
134
+ label h1,
135
+ .pointer-list,
136
+ .pointer-item,
137
+ .search-result-list,
138
+ .search-result-item {
139
+ font-size: 1em;
140
+ }
141
+ > .card-content {
142
+ padding-left: 10px;
143
+ }
144
+ }
145
+
146
+ .labeled-view label,
147
+ a.missing-labeled {
148
+ display: inline-block;
149
+ min-width: 30%;
150
+ text-align: right;
151
+ }
152
+
153
+ /*-------------------- */
154
+ /*- EDIT INTERFACE - */
155
+ /*-------------------- */
156
+
157
+ fieldset {
158
+ margin: 5px 1px;
159
+ border: 0;
160
+
161
+ > .button-area {
162
+ width: 70%;
163
+ padding: 0 3px;
164
+ input,
165
+ button {
166
+ margin-right: 2%;
167
+ }
168
+ }
169
+
170
+ > .editor {
171
+ width: 70%;
172
+ padding: 3px;
173
+ > input {
174
+ margin-left: 0;
175
+ }
176
+ }
177
+
178
+ > legend {
179
+ text-align:right;
180
+ width: 25%;
181
+ padding: 3px;
182
+ margin: 0;
183
+ > .instruction {
184
+ text-align: right;
185
+ padding: 3px 0;
186
+ }
187
+ }
188
+ }
189
+
190
+ textarea,
191
+ .content-editor > input[type=text],
192
+ .content-editor > input[type=password],
193
+ .name-editor input {
194
+ width: 97.5%;
195
+ }
196
+ /* width + padding = 99.5%, which leaves 0.5% for the borders. This is imprecise, but borders can't be specified as a percentage */
197
+
198
+ textarea {
199
+ max-height: 500px;
200
+ }
201
+ .name-editor.known-name input {
202
+ border: 3px solid #c22; /* NOTGREY - red for warning */
203
+ }
204
+ .name-messages {
205
+ font-style: italic;
206
+ background: #ffd; /* NOTGREY - yellow for highlighting */
207
+ }
208
+
209
+ /* -- template-editor (editing template rule inclusions inline) -- */
210
+
211
+ .template-editor-main {
212
+ width: 85%;
213
+ }
214
+ .template-editor-left,
215
+ .template-editor-right {
216
+ width: 5%;
217
+ text-align: center;
218
+ font-size: 3em;
219
+ line-height: 2em;
220
+ white-space: nowrap;
221
+ }
222
+
223
+
224
+
225
+ .pointer-list-editor {
226
+ margin: 0px;
227
+ padding: 0px;
228
+ input {
229
+ margin-right: 10px;
230
+ width: 65%;
231
+ }
232
+ li {
233
+ list-style: none;
234
+ white-space: nowrap;
235
+ }
236
+ .pointer-item-delete {
237
+ margin-left: 4px;
238
+ vertical-align: middle;
239
+ display: inline-block;
240
+ position: relative;
241
+ }
242
+
243
+ .pointer-item-add {
244
+ margin-top: 10px;
245
+ }
246
+
247
+ .input-group-addon.handle {
248
+ padding-left: 1px;
249
+ padding-right: 1px;
250
+
251
+ .glyphicon-option-vertical.left {
252
+ margin-right: -7px;
253
+ }
254
+ .glyphicon-option-vertical.right {
255
+ margin-left: -7px;
256
+ }
257
+ }
258
+ }
259
+
260
+ .new-account-link {
261
+ text-align: center;
262
+ }
263
+
264
+ /* links to create missing cards */
265
+
266
+ .missing-view a {
267
+ color: #999;
268
+ font-variant: small-caps;
269
+ }
270
+
271
+ .missing-view a:hover {
272
+ color: #069;
273
+ background: #ffc;
274
+ }
275
+
276
+ /*-------------------- */
277
+ /*- SEARCH & POINTER - */
278
+ /*-------------------- */
279
+
280
+ .pointer-radio {
281
+ display: inline-block;
282
+ width: 100%;
283
+ .form-control {
284
+ box-shadow: none;
285
+ }
286
+ input {
287
+ float: left;
288
+ width: auto;
289
+ margin: 0;
290
+ }
291
+ label {
292
+ float: left;
293
+ width: auto;
294
+ margin: 6px 8px;
295
+ }
296
+ }
297
+
298
+
299
+ div.pointer-list,
300
+ div.search-result-list {
301
+ list-style: none;
302
+ padding: 5px 0;
303
+ margin: 0;
304
+ }
305
+ div.pointer-list .pointer-item,
306
+ div.search-result-list .search-result-item {
307
+ margin: 0;
308
+ }
309
+ .search-result-item.item-link,
310
+ .pointer-item.item-link,
311
+ .search-result-item.item-name,
312
+ .pointer-item.item-name {
313
+ text-indent: -15px;
314
+ padding-left: 15px;
315
+ }
316
+ .radio-option-description,
317
+ .checkbox-option-description {
318
+ margin-left: 40px;
319
+ }
320
+
321
+ ul.pointer {
322
+ margin: 0px;
323
+ padding: 0px;
324
+ }
325
+
326
+ /*-------------------- */
327
+ /*- HISTORY - */
328
+ /*-------------------- */
329
+
330
+
331
+
332
+ $diff-green: #41ad41;
333
+ $diff-red: #ff5050;
334
+ $action-white: #fdfdfd;
335
+ $act-gray: #b7b7b7;
336
+ $act-background: #f3f3f3;
337
+
338
+ .history-slot {
339
+ overflow: hidden;
340
+ clear: both;
341
+ }
342
+
343
+ .history-header {
344
+ padding: 10px 10px 10px 10px;
345
+ }
346
+ .history-legend {
347
+ text-align: right;
348
+ float: right;
349
+ }
350
+ .history-header nav.pagination {
351
+ display: inline;
352
+ text-align: left;
353
+ }
354
+
355
+ .act {
356
+ padding: 10px 10px 10px 10px;
357
+ background-color: $act-background;
358
+ margin-bottom: 5px;
359
+
360
+ .head {
361
+ float: left;
362
+ margin-right:10px;
363
+ min-width: 175px;
364
+ }
365
+ .nr {
366
+ float: left;
367
+ }
368
+ .title {
369
+ float: left;
370
+ margin-left: 10px;
371
+ }
372
+ .actor {
373
+ float: left;
374
+ }
375
+ .time {
376
+ font-size: 8pt;
377
+ float:left;
378
+ clear:left;
379
+ }
380
+
381
+ .action-container {
382
+ overflow: hidden;
383
+ }
384
+ .action {
385
+ background-color: $action-white;
386
+ margin: 5px 5px 2px 2px;
387
+ padding: 6px 5px 6px 5px;
388
+ overflow: hidden;
389
+ }
390
+ .ampel {
391
+ margin: 2px 0 0 4px;
392
+ }
393
+ .arrow {
394
+ margin: 0px 10px 0px 10px;
395
+ color: green;
396
+ }
397
+ .toggle {
398
+ float: right;
399
+ margin: 12px 10px 0px 10px;
400
+ width: 20px;
401
+ }
402
+
403
+ .name-diff {
404
+ border-style: solid;
405
+ border-width: 1px;
406
+ border-color: #E4E4E4;
407
+ padding: 3px 8px 3px 8px;
408
+ background-color: #EEEEEE;
409
+ margin-left: 3px;
410
+ }
411
+ .type-diff {
412
+ padding: 1px 0px 1px 3px;
413
+ }
414
+ .content-diff {
415
+ overflow: hidden;
416
+ }
417
+
418
+ .action {
419
+ .expanded {
420
+ clear:left;
421
+ padding: 14px 10px 14px 24px;
422
+ }
423
+ .summary {
424
+ padding: 6px 0px;
425
+ }
426
+ }
427
+
428
+ .arrow-down {
429
+ width: 0;
430
+ height: 0;
431
+ border-left: 7px solid transparent;
432
+ border-right: 7px solid transparent;
433
+ border-top: 11px solid $act-gray;
434
+ display: block;
435
+ }
436
+ .arrow-right {
437
+ width: 0;
438
+ height: 0;
439
+ border-top: 7px solid transparent;
440
+ border-bottom: 7px solid transparent;
441
+ border-left: 11px solid $act-gray;
442
+ display: block;
443
+ }
444
+
445
+ .info {
446
+ font-style: italic;
447
+ color: #888;
448
+ }
449
+ }
450
+
451
+ .diff-red {
452
+ text-decoration: line-through;
453
+ color: $diff-red;
454
+ }
455
+ .diff-green {
456
+ color: $diff-green;
457
+ }
458
+ .diff-invisible {
459
+ color: $action-white;
460
+ }
461
+
462
+ .diff-green,.diff-invisible{
463
+ text-decoration: none;
464
+ }
465
+
466
+
467
+
468
+ /*-------------------- */
469
+ /*- ERRORS / NOTICES - */
470
+ /*-------------------- */
471
+
472
+ /* FIXME - following should be consolidated / simplified */
473
+
474
+ .exception p {
475
+ margin: 15px;
476
+ }
477
+ .errors-view {
478
+ margin: 10px;
479
+ padding: 10px;
480
+ border: 3px solid #966; /* NOTGREY - red for error */
481
+ background: #ffa; /* NOTGREY - yellow for highlighting */
482
+ border-radius: 8px;
483
+ -moz-border-radius: 8px;
484
+ border: 1px solid #777;
485
+ border-bottom: 2px solid #888;
486
+ border-right: 2px solid #888;
487
+ color: #333;
488
+ }
489
+ .render-error {
490
+ background-color: #eaa !important; /* NOTGREY - red for error */
491
+ padding: 1px 20px;
492
+ font-style: italic;
493
+ }
494
+
495
+ .card-notice {
496
+ background: #fff;
497
+ font-weight: bold;
498
+ font-style: italic;
499
+ text-align: center;
500
+ margin: 0 0 4px 0;
501
+ }
502
+
503
+
504
+ #credit, /* these are both deprecated */
505
+ .flash-notice {
506
+ color: #333;
507
+ font-size: 1.1em;
508
+ background: #fff;
509
+ border: 1px solid #888;
510
+ margin-bottom: 15px;
511
+ padding: 5px;
512
+ text-align: center;
513
+ }
514
+
515
+
516
+ .conflict-view {
517
+ text-align: left;
518
+ border: 1px solid grey;
519
+ padding: 10px;
520
+ margin-top: 12px;
521
+ }
522
+
523
+
524
+ /*-------------------------- */
525
+ /*- KEY DEFAULT CONTENT - */
526
+ /*-------------------------- */
527
+
528
+ .SELF-home-original.card-content {
529
+ ul {
530
+ list-style-type: none;
531
+ margin: 1em;
532
+ padding: 0;
533
+ }
534
+ li {
535
+ padding: .8em;
536
+ margin: 0;
537
+ background: #eee
538
+ }
539
+ li:nth-child(even) {
540
+ background: #ddd;
541
+ }
542
+ h1 {
543
+ font-size: 1.5em;
544
+ padding: .6em 0 .3em 0
545
+ }
546
+ aside {
547
+ float: right;
548
+ border: 1px solid #999;
549
+ background: white;
550
+ width: 33%;
551
+ padding: 1em;
552
+ margin: 36px 16px 2px 5px;
553
+ overflow: auto;
554
+ border-radius: 18px;
555
+ -moz-border-radius: 18px;
556
+ text-align: center;
557
+ h2 {
558
+ font-size: .9em;
559
+ }
560
+ p {
561
+ font-size: .8em;
562
+ }
563
+ }
564
+ }
565
+
566
+
567
+ .SELF-wagneer_menu.card-content {
568
+ > p {
569
+ margin-left: 6%;
570
+ text-indent: -6%;
571
+ }
572
+ }
573
+
574
+
575
+
576
+ /*-------------------------- */
577
+ /*- SETS, SETTINGS, RULES - */
578
+ /*-------------------------- */
579
+
580
+
581
+ .setting-rules,
582
+ .set-rules {
583
+ width: 100%;
584
+ }
585
+ .setting-rules th,
586
+ .set-rules th {
587
+ background: #aaa;
588
+ color: #eee;
589
+ padding: 5px 0;
590
+ }
591
+ .setting-rules th,
592
+ .setting-rules td,
593
+ .set-rules th,
594
+ .set-rules td.rule-cell {
595
+ text-align: left;
596
+ padding: 2px 5px;
597
+ }
598
+ .set-rules th,
599
+ .set-rules td.rule-cell {
600
+ border-bottom: 1px solid #eee;
601
+ }
602
+ .setting-klass,
603
+ .rule-setting {
604
+ font-weight: bold;
605
+ }
606
+ td.rule-setting {
607
+ width: 30%;
608
+ }
609
+ .rule-set {
610
+ color: #666;
611
+ white-space: nowrap;
612
+ }
613
+ .rule-type-field {
614
+ max-width: 70%;
615
+ margin-right: 5px;
616
+ }
617
+ .closed-rule {
618
+ height: 30px;
619
+ td {
620
+ vertical-align: middle;
621
+ }
622
+ .rule-content {
623
+ width: 350px;
624
+ }
625
+ }
626
+
627
+ .rule-content-container {
628
+ max-width: 350px;
629
+ overflow: hidden;
630
+ text-overflow: ellipsis;
631
+ line-height: inherit;
632
+ background: inherit;
633
+ white-space: nowrap;
634
+ }
635
+ .rule-content-container {
636
+ .closed-content,
637
+ .closed-content .pointer-list,
638
+ .closed-content .search-list {
639
+ margin: 0;
640
+ }
641
+ }
642
+ td.missing-rule {
643
+ background-color: #eee;
644
+ border-bottom: 1px solid #fff;
645
+ }
646
+ .rule-setting {
647
+ padding-top: 4px;
648
+ }
649
+ .open-rule > .rule-setting {
650
+ width: 28%;
651
+ float: left;
652
+ }
653
+ .open-rule .card-body {
654
+ clear: both;
655
+ }
656
+ .open-rule .instruction {
657
+ float: right;
658
+ text-align: left;
659
+ max-width: 68%;
660
+ }
661
+ .edit-rule {
662
+ .set-editor {
663
+ ul {
664
+ list-style-type: none;
665
+ margin: 0;
666
+ padding: 0;
667
+ }
668
+ .current-set-label {
669
+ font-weight: bold;
670
+ }
671
+ }
672
+ .edit-button-area {
673
+ clear: both;
674
+ padding-top: 5px;
675
+ }
676
+ }
677
+ .attention {
678
+ border: 3px solid red;
679
+ }
680
+ .rule-delete-section {
681
+ float: right;
682
+ }
683
+ .show-rule .rule-set {
684
+ margin-bottom: 10px;
685
+ }
686
+ .klass-row {
687
+ background: #eee;
688
+ border-top: 1px solid #ddd;
689
+ }
690
+ tr.rule-changeover td {
691
+ border-top: 1px solid #eee;
692
+ padding-top: 5px;
693
+ }
694
+ td.rule-anchor {
695
+ padding-left: 30px;
696
+ }
697
+ a.setting-link {
698
+ font-style: italic;
699
+ margin-left: 2%;
700
+ font-weight: normal;
701
+ color: #000;
702
+ white-space: nowrap;
703
+ }
704
+ h2.set-label {
705
+ padding-bottom: 10px;
706
+ }
707
+
708
+ .TYPE_PLUS_RIGHT-user-Xfollow .tab-pane {
709
+ margin-top: 15px;
710
+ }
711
+
712
+ /*------- permissions ------------------*/
713
+
714
+ .perm-section {
715
+ margin-bottom: 20px;
716
+ }
717
+ .perm-section h5 {
718
+ margin: 0 0 10px 0;
719
+ }
720
+
721
+ /*-------------------------- */
722
+ /*- MISCELLANEOUS - */
723
+ /*-------------------------- */
724
+
725
+ .ui-menu-icons .ui-menu-item a {
726
+ padding-left: 0;
727
+ }
728
+
729
+ .ui-icon {
730
+ background-image: url([[/assets/smoothness/ui-icons_454545_256x240.png]])
731
+ }
732
+
733
+ .instruction {
734
+ text-align: center;
735
+ padding: 4px 10px;
736
+ ol,
737
+ ul {
738
+ text-align: left;
739
+ }
740
+ }
741
+
742
+ table.show-cache td {
743
+ padding: 10px;
744
+ border: 1px solid grey;
745
+ }
746
+
747
+ /* note said this is o non-ie browsers do better with image floats. looks over-specified.
748
+ html>body .open-view {
749
+ width: auto;
750
+ }
751
+ */
752
+
753
+ /* the following classes are here because they're scheduled for deprecation */
754
+ .faint {
755
+ color: #bbc;
756
+ }
757
+ .VIEW-type {
758
+ font-style: italic;
759
+ font-size: .85em;
760
+ }