kiteditor 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. data/POST_INSTALL +21 -0
  2. data/{vendor → app}/assets/images/mercury/button.png +0 -0
  3. data/{vendor → app}/assets/images/mercury/close.png +0 -0
  4. data/app/assets/images/mercury/default-snippet.png +0 -0
  5. data/{vendor → app}/assets/images/mercury/loading-dark.gif +0 -0
  6. data/{vendor → app}/assets/images/mercury/loading-light.gif +0 -0
  7. data/{vendor → app}/assets/images/mercury/missing-image.png +0 -0
  8. data/{vendor → app}/assets/images/mercury/search-icon.png +0 -0
  9. data/{vendor → app}/assets/images/mercury/temp-logo.png +0 -0
  10. data/app/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  11. data/app/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  12. data/app/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  13. data/app/assets/images/mercury/toolbar/primary/action.png +0 -0
  14. data/app/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  15. data/app/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  16. data/app/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  17. data/app/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  18. data/app/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  19. data/app/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  20. data/app/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  21. data/app/assets/images/mercury/toolbar/primary/preview.png +0 -0
  22. data/app/assets/images/mercury/toolbar/primary/redo.png +0 -0
  23. data/app/assets/images/mercury/toolbar/primary/save.png +0 -0
  24. data/app/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
  25. data/app/assets/images/mercury/toolbar/primary/tools.png +0 -0
  26. data/app/assets/images/mercury/toolbar/primary/undo.png +0 -0
  27. data/app/assets/images/mercury/toolbar/primary/user.png +0 -0
  28. data/app/assets/images/mercury/toolbar/snippets/buttons.png +0 -0
  29. data/{vendor/assets/javascripts/mercury/dependencies → app/assets/javascripts}/jquery-1.7.js +0 -0
  30. data/{vendor → app}/assets/javascripts/mercury.js +60 -87
  31. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +0 -0
  32. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery.additions.js +103 -13
  33. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +0 -0
  34. data/{vendor → app}/assets/javascripts/mercury/dependencies/liquidmetal.js +0 -0
  35. data/{vendor → app}/assets/javascripts/mercury/dependencies/showdown.js +0 -0
  36. data/{vendor → app}/assets/javascripts/mercury/dialog.js.coffee +0 -0
  37. data/{vendor → app}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
  38. data/{vendor → app}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +1 -1
  39. data/{vendor → app}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
  40. data/{vendor → app}/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +1 -1
  41. data/{vendor → app}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
  42. data/{vendor → app}/assets/javascripts/mercury/finalize.js.coffee +0 -0
  43. data/{vendor → app}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
  44. data/{vendor → app}/assets/javascripts/mercury/lightview.js.coffee +38 -17
  45. data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +201 -0
  46. data/app/assets/javascripts/mercury/locales/da.locale.js.coffee +208 -0
  47. data/{vendor → app}/assets/javascripts/mercury/locales/de.locale.js.coffee +4 -10
  48. data/{vendor → app}/assets/javascripts/mercury/locales/es.locale.js.coffee +3 -9
  49. data/{vendor → app}/assets/javascripts/mercury/locales/example.local.js.coffee +3 -5
  50. data/{vendor → app}/assets/javascripts/mercury/locales/fr.locale.js.coffee +3 -9
  51. data/app/assets/javascripts/mercury/locales/hu.locale.js.coffee +209 -0
  52. data/{vendor → app}/assets/javascripts/mercury/locales/it.locale.js.coffee +3 -9
  53. data/{vendor → app}/assets/javascripts/mercury/locales/ko.local.js.coffee +4 -10
  54. data/{vendor → app}/assets/javascripts/mercury/locales/nl.locale.js.coffee +3 -9
  55. data/app/assets/javascripts/mercury/locales/pl.locale.js.coffee +213 -0
  56. data/{vendor → app}/assets/javascripts/mercury/locales/pt.locale.js.coffee +3 -9
  57. data/app/assets/javascripts/mercury/locales/ru.locale.js.coffee +200 -0
  58. data/{vendor → app}/assets/javascripts/mercury/locales/sv.local.js.coffee +3 -9
  59. data/{vendor → app}/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +3 -9
  60. data/app/assets/javascripts/mercury/locales/uk.locale.js.coffee +200 -0
  61. data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +203 -0
  62. data/app/assets/javascripts/mercury/mercury-compiled.js +10720 -0
  63. data/{vendor → app}/assets/javascripts/mercury/mercury.js.coffee +10 -1
  64. data/{vendor → app}/assets/javascripts/mercury/modal.js.coffee +62 -40
  65. data/{vendor → app}/assets/javascripts/mercury/modals/htmleditor.js.coffee +1 -0
  66. data/{vendor → app}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +1 -0
  67. data/app/assets/javascripts/mercury/modals/insertlink.js.coffee +152 -0
  68. data/app/assets/javascripts/mercury/modals/insertmedia.js.coffee +132 -0
  69. data/{vendor → app}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +2 -0
  70. data/app/assets/javascripts/mercury/modals/inserttable.js.coffee +68 -0
  71. data/{vendor → app}/assets/javascripts/mercury/native_extensions.js.coffee +0 -6
  72. data/{vendor → app}/assets/javascripts/mercury/page_editor.js.coffee +84 -50
  73. data/{vendor → app}/assets/javascripts/mercury/palette.js.coffee +1 -1
  74. data/{vendor → app}/assets/javascripts/mercury/panel.js.coffee +3 -2
  75. data/{vendor → app}/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +2 -2
  76. data/{vendor → app}/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +0 -0
  77. data/{vendor → app}/assets/javascripts/mercury/region.js.coffee +18 -17
  78. data/{vendor/assets/javascripts/mercury/regions/editable.js.coffee → app/assets/javascripts/mercury/regions/full.js.coffee} +41 -31
  79. data/app/assets/javascripts/mercury/regions/image.js.coffee +93 -0
  80. data/{vendor/assets/javascripts/mercury/regions/markupable.js.coffee → app/assets/javascripts/mercury/regions/markdown.js.coffee} +29 -24
  81. data/{vendor → app}/assets/javascripts/mercury/regions/simple.js.coffee +11 -54
  82. data/{vendor/assets/javascripts/mercury/regions/snippetable.js.coffee → app/assets/javascripts/mercury/regions/snippets.js.coffee} +10 -9
  83. data/{vendor → app}/assets/javascripts/mercury/select.js.coffee +1 -1
  84. data/app/assets/javascripts/mercury/snippet.js.coffee +136 -0
  85. data/{vendor → app}/assets/javascripts/mercury/snippet_toolbar.js.coffee +19 -6
  86. data/{vendor → app}/assets/javascripts/mercury/statusbar.js.coffee +0 -0
  87. data/{vendor → app}/assets/javascripts/mercury/support/history.js +0 -0
  88. data/{vendor → app}/assets/javascripts/mercury/table_editor.js.coffee +16 -0
  89. data/{vendor → app}/assets/javascripts/mercury/toolbar.button.js.coffee +45 -30
  90. data/{vendor → app}/assets/javascripts/mercury/toolbar.button_group.js.coffee +2 -2
  91. data/{vendor → app}/assets/javascripts/mercury/toolbar.expander.js.coffee +4 -4
  92. data/{vendor → app}/assets/javascripts/mercury/toolbar.js.coffee +10 -6
  93. data/{vendor → app}/assets/javascripts/mercury/tooltip.js.coffee +0 -0
  94. data/{vendor → app}/assets/javascripts/mercury/uploader.js.coffee +37 -19
  95. data/app/assets/stylesheets/_mercury-bootstrap-overrides.scss +61 -0
  96. data/app/assets/stylesheets/_mercury-sass.scss +33 -0
  97. data/{vendor → app}/assets/stylesheets/mercury.css +1 -5
  98. data/{vendor → app}/assets/stylesheets/mercury/all_images.css.erb +6 -2
  99. data/app/assets/stylesheets/mercury/bootstrap-ish.css +1367 -0
  100. data/app/assets/stylesheets/mercury/bootstrap-overrides.css +61 -0
  101. data/{vendor → app}/assets/stylesheets/mercury/dialog.css +21 -8
  102. data/{vendor → app}/assets/stylesheets/mercury/lightview.css +6 -56
  103. data/app/assets/stylesheets/mercury/mercury.css +43 -0
  104. data/{vendor → app}/assets/stylesheets/mercury/modal.css +15 -32
  105. data/{vendor → app}/assets/stylesheets/mercury/statusbar.css +0 -0
  106. data/{vendor → app}/assets/stylesheets/mercury/toolbar.css +4 -1
  107. data/{vendor → app}/assets/stylesheets/mercury/tooltip.css +0 -0
  108. data/{vendor → app}/assets/stylesheets/mercury/uploader.css +4 -4
  109. data/app/helpers/mercury_helper.rb +7 -0
  110. data/app/views/layouts/mercury.html.erb +10 -20
  111. data/app/views/layouts/mercury.html.haml +19 -0
  112. data/app/views/layouts/mercury.html.slim +19 -0
  113. data/app/views/mercury/modals/character.html +1 -1
  114. data/app/views/mercury/modals/htmleditor.html +3 -7
  115. data/app/views/mercury/modals/link.html +37 -51
  116. data/app/views/mercury/modals/media.html +102 -0
  117. data/app/views/mercury/modals/table.html +79 -73
  118. data/app/views/mercury/panels/snippets.html +6 -1
  119. data/app/views/mercury/snippets/example/options.html.erb +23 -27
  120. data/app/views/mercury/snippets/no_options/preview.html.erb +1 -0
  121. data/config/routes.rb +9 -0
  122. data/features/generators/authentication.feature +10 -0
  123. data/features/generators/images.feature +41 -0
  124. data/features/generators/install.feature +21 -0
  125. data/features/loading/loading.feature +5 -2
  126. data/features/loading/user_interface.feature +9 -7
  127. data/features/regions/{editable → full}/advanced_editing.feature +0 -0
  128. data/features/regions/full/basic_editing.feature +198 -0
  129. data/features/regions/{editable → full}/inserting_links.feature +20 -19
  130. data/features/regions/{editable → full}/inserting_media.feature +36 -18
  131. data/features/regions/{editable → full}/inserting_snippets.feature +28 -18
  132. data/features/regions/{editable → full}/inserting_special_characters.feature +2 -2
  133. data/features/regions/full/inserting_tables.feature +109 -0
  134. data/features/regions/{editable → full}/pasting.feature +0 -0
  135. data/features/regions/{editable → full}/uploading_images.feature +0 -0
  136. data/features/regions/{markupable → image}/uploading_images.feature +0 -0
  137. data/features/regions/{markupable → markdown}/advanced_editing.feature +0 -0
  138. data/features/regions/{markupable → markdown}/basic_editing.feature +0 -0
  139. data/features/regions/{markupable → markdown}/inserting_links.feature +0 -0
  140. data/features/regions/{markupable → markdown}/inserting_media.feature +0 -0
  141. data/features/regions/{markupable → markdown}/inserting_snippets.feature +0 -0
  142. data/features/regions/{markupable → markdown}/inserting_special_characters.feature +0 -0
  143. data/features/regions/{markupable → markdown}/inserting_tables.feature +0 -0
  144. data/features/regions/{snippetable/advanced_editing.feature → markdown/uploading_images.feature} +0 -0
  145. data/features/regions/simple/basic_editing.feature +5 -0
  146. data/features/regions/{snippetable/basic_editing.feature → snippets/advanced_editing.feature} +0 -0
  147. data/features/regions/{snippetable/inserting_snippets.feature → snippets/basic_editing.feature} +0 -0
  148. data/{vendor/assets/javascripts/mercury/locales/da.locale.js.coffee → features/regions/snippets/inserting_snippets.feature} +0 -0
  149. data/features/saving/saving.feature +8 -8
  150. data/features/step_definitions/custom_web_steps.rb +22 -0
  151. data/features/step_definitions/generator_steps.rb +23 -0
  152. data/features/step_definitions/mercury_steps.rb +1 -438
  153. data/features/support/aruba.rb +28 -0
  154. data/features/support/env.rb +11 -1
  155. data/features/support/selectors.rb +23 -0
  156. data/lib/generators/mercury/install/authentication/authentication_generator.rb +17 -0
  157. data/lib/generators/mercury/install/images/images_generator.rb +47 -0
  158. data/{app/models/mercury/image.rb → lib/generators/mercury/install/images/templates/ar_paperclip_image.rb} +7 -0
  159. data/{db/migrate/20110526035601_create_mercury_images.rb → lib/generators/mercury/install/images/templates/ar_paperclip_image_migration.rb} +0 -0
  160. data/{app/controllers/mercury → lib/generators/mercury/install/images/templates}/images_controller.rb +0 -0
  161. data/lib/generators/mercury/install/{templates → images/templates}/mongoid_paperclip_image.rb +0 -0
  162. data/lib/generators/mercury/install/install_generator.rb +12 -23
  163. data/lib/mercury-rails.rb +1 -2
  164. data/lib/mercury/authentication.rb +1 -0
  165. data/lib/mercury/cucumber/step_definitions.rb +13 -0
  166. data/lib/mercury/cucumber/step_definitions/mercury_steps.rb +408 -0
  167. data/{features → lib/mercury/cucumber}/support/mercury_contents.rb +3 -3
  168. data/{features → lib/mercury/cucumber}/support/mercury_selectors.rb +0 -20
  169. data/lib/mercury/engine.rb +19 -0
  170. data/lib/mercury/rails.rb +5 -0
  171. data/lib/mercury/version.rb +3 -0
  172. data/spec/dummy/Rakefile +7 -0
  173. data/spec/dummy/app/assets/javascripts/application.js +0 -0
  174. data/spec/dummy/app/assets/javascripts/prototype.js +6082 -0
  175. data/spec/dummy/app/assets/stylesheets/application.css.scss +110 -0
  176. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  177. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  178. data/spec/dummy/app/views/layouts/mercury.html.erb +28 -0
  179. data/spec/dummy/config.ru +4 -0
  180. data/spec/dummy/config/application.rb +58 -0
  181. data/spec/dummy/config/boot.rb +10 -0
  182. data/spec/dummy/config/database.yml +10 -0
  183. data/spec/dummy/config/environment.rb +5 -0
  184. data/spec/dummy/config/environments/development.rb +37 -0
  185. data/spec/dummy/config/environments/production.rb +67 -0
  186. data/spec/dummy/config/environments/test.rb +37 -0
  187. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  188. data/spec/dummy/config/initializers/inflections.rb +15 -0
  189. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  190. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  191. data/spec/dummy/config/initializers/session_store.rb +8 -0
  192. data/spec/dummy/config/initializers/teabag.rb +9 -0
  193. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  194. data/spec/dummy/config/locales/en.yml +5 -0
  195. data/spec/dummy/config/routes.rb +5 -0
  196. data/spec/dummy/db/.gitkeep +0 -0
  197. data/spec/dummy/public/500.html +25 -0
  198. data/spec/dummy/public/blank.html +1 -0
  199. data/spec/dummy/public/favicon.ico +0 -0
  200. data/spec/dummy/public/images/bunny.gif +0 -0
  201. data/spec/dummy/public/images/bunny2.jpg +0 -0
  202. data/spec/dummy/public/index.html +279 -0
  203. data/spec/dummy/script/rails +6 -0
  204. data/spec/javascripts/{templates → fixtures}/mercury/dialog.html +0 -0
  205. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/backcolor.html +0 -0
  206. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/forecolor.html +0 -0
  207. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/formatblock.html +0 -0
  208. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/snippetpanel.html +0 -0
  209. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/style.html +0 -0
  210. data/spec/javascripts/{templates → fixtures}/mercury/lightview.html +0 -0
  211. data/spec/javascripts/{templates → fixtures}/mercury/modal.html +0 -0
  212. data/spec/javascripts/{templates → fixtures}/mercury/modals/htmleditor.html +0 -0
  213. data/spec/javascripts/{templates → fixtures}/mercury/modals/insertcharacter.html +0 -0
  214. data/spec/javascripts/fixtures/mercury/modals/insertlink.html +67 -0
  215. data/spec/javascripts/fixtures/mercury/modals/insertmedia.html +87 -0
  216. data/spec/javascripts/{templates → fixtures}/mercury/modals/insertsnippet.html +0 -0
  217. data/spec/javascripts/fixtures/mercury/modals/inserttable.html +73 -0
  218. data/spec/javascripts/{templates → fixtures}/mercury/page_editor.html +4 -4
  219. data/spec/javascripts/{templates → fixtures}/mercury/palette.html +0 -0
  220. data/spec/javascripts/{templates → fixtures}/mercury/panel.html +0 -0
  221. data/spec/javascripts/fixtures/mercury/region.html +6 -0
  222. data/spec/javascripts/fixtures/mercury/regions/full.html +1 -0
  223. data/spec/javascripts/fixtures/mercury/regions/image.html +1 -0
  224. data/spec/javascripts/fixtures/mercury/regions/markdown.html +1 -0
  225. data/spec/javascripts/fixtures/mercury/regions/simple.html +1 -0
  226. data/spec/javascripts/fixtures/mercury/regions/snippets.html +4 -0
  227. data/spec/javascripts/{templates → fixtures}/mercury/select.html +0 -0
  228. data/spec/javascripts/{templates → fixtures}/mercury/snippet.html +0 -0
  229. data/spec/javascripts/{templates → fixtures}/mercury/snippet_toolbar.html +0 -0
  230. data/spec/javascripts/{templates → fixtures}/mercury/statusbar.html +0 -0
  231. data/spec/javascripts/{templates → fixtures}/mercury/table_editor.html +0 -0
  232. data/spec/javascripts/{templates → fixtures}/mercury/toolbar.button.html +0 -0
  233. data/spec/javascripts/{templates → fixtures}/mercury/toolbar.button_group.html +0 -0
  234. data/spec/javascripts/{templates → fixtures}/mercury/toolbar.expander.html +0 -0
  235. data/spec/javascripts/{templates → fixtures}/mercury/toolbar.html +0 -0
  236. data/spec/javascripts/{templates → fixtures}/mercury/tooltip.html +0 -0
  237. data/spec/javascripts/{templates → fixtures}/mercury/uploader.html +0 -0
  238. data/spec/javascripts/mercury/{dialog_spec.js.coffee → dialog_spec.coffee} +11 -12
  239. data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +2 -3
  240. data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +3 -4
  241. data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +2 -3
  242. data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +2 -3
  243. data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +2 -3
  244. data/spec/javascripts/mercury/lightview_spec.js.coffee +180 -142
  245. data/spec/javascripts/mercury/mercury_spec.js.coffee +19 -13
  246. data/spec/javascripts/mercury/modal_spec.js.coffee +192 -148
  247. data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +4 -5
  248. data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +2 -3
  249. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +107 -34
  250. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +106 -26
  251. data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +2 -3
  252. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +50 -40
  253. data/spec/javascripts/mercury/page_editor_spec.js.coffee +124 -80
  254. data/spec/javascripts/mercury/palette_spec.js.coffee +4 -5
  255. data/spec/javascripts/mercury/panel_spec.js.coffee +9 -12
  256. data/spec/javascripts/mercury/region_spec.js.coffee +22 -17
  257. data/spec/javascripts/mercury/regions/{editable_spec.js.coffee → full_spec.js.coffee} +26 -28
  258. data/spec/javascripts/mercury/regions/image_spec.js.coffee +33 -0
  259. data/spec/javascripts/mercury/regions/{markupable_spec.js.coffee → markdown_spec.js.coffee} +32 -34
  260. data/spec/javascripts/mercury/regions/simple_spec.js.coffee +32 -0
  261. data/spec/javascripts/mercury/regions/{snippetable_spec.js.coffee → snippets_spec.js.coffee} +54 -55
  262. data/spec/javascripts/mercury/select_spec.js.coffee +4 -5
  263. data/spec/javascripts/mercury/snippet_spec.js.coffee +92 -16
  264. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +31 -16
  265. data/spec/javascripts/mercury/statusbar_spec.js.coffee +9 -10
  266. data/spec/javascripts/mercury/table_editor_spec.js.coffee +1 -2
  267. data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +7 -9
  268. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +55 -26
  269. data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +13 -13
  270. data/spec/javascripts/mercury/toolbar_spec.js.coffee +43 -14
  271. data/spec/javascripts/mercury/tooltip_spec.js.coffee +1 -2
  272. data/spec/javascripts/mercury/uploader_spec.js.coffee +47 -33
  273. data/spec/javascripts/spec_helper.coffee +4 -0
  274. data/spec/javascripts/{spec_helper.js → support/event_simulation.js} +0 -2
  275. data/spec/teabag_env.rb +32 -0
  276. metadata +366 -196
  277. data/features/regions/editable/basic_editing.feature +0 -195
  278. data/features/regions/editable/inserting_tables.feature +0 -109
  279. data/spec/javascripts/templates/mercury/modals/insertlink.html +0 -30
  280. data/spec/javascripts/templates/mercury/modals/insertmedia.html +0 -35
  281. data/spec/javascripts/templates/mercury/modals/inserttable.html +0 -27
  282. data/spec/javascripts/templates/mercury/region.html +0 -2
  283. data/spec/javascripts/templates/mercury/regions/editable.html +0 -3
  284. data/spec/javascripts/templates/mercury/regions/snippetable.html +0 -4
  285. data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +0 -54
  286. data/vendor/assets/javascripts/mercury_loader.js +0 -193
  287. data/vendor/assets/javascripts/mercury_overrides.js +0 -6
  288. data/vendor/assets/stylesheets/mercury/mercury.css +0 -151
  289. data/vendor/assets/stylesheets/mercury_overrides.css +0 -17
@@ -8,7 +8,7 @@ class @Mercury.Toolbar
8
8
 
9
9
  build: ->
10
10
  @element = jQuery('<div>', {class: 'mercury-toolbar-container', style: 'width:10000px'})
11
- @element.css({display: 'none'}) unless @visible
11
+ @element.css({width: '100%'})
12
12
  @element.appendTo(jQuery(@options.appendTo).get(0) ? 'body')
13
13
 
14
14
  for own toolbarName, buttons of Mercury.config.toolbars
@@ -28,7 +28,7 @@ class @Mercury.Toolbar
28
28
 
29
29
  toolbar.addClass('disabled') if Mercury.config.toolbars['primary'] && toolbarName != 'primary'
30
30
 
31
- @element.css({width: '100%'})
31
+ @element.css({display: 'none'}) unless @visible
32
32
 
33
33
 
34
34
  buildButton: (name, options) ->
@@ -56,13 +56,13 @@ class @Mercury.Toolbar
56
56
  for toolbar in @element.find(".mercury-toolbar")
57
57
  toolbar = jQuery(toolbar)
58
58
  if regions = toolbar.data('regions')
59
- toolbar.removeClass('disabled') if regions.split(',').indexOf(options.region.type) > -1
59
+ toolbar.removeClass('disabled') if regions.split(',').indexOf(options.region.type()) > -1
60
60
 
61
61
  Mercury.on 'region:blurred', (event, options) =>
62
62
  for toolbar in @element.find(".mercury-toolbar")
63
63
  toolbar = jQuery(toolbar)
64
64
  if regions = toolbar.data('regions')
65
- toolbar.addClass('disabled') if regions.split(',').indexOf(options.region.type) > -1
65
+ toolbar.addClass('disabled') if regions.split(',').indexOf(options.region.type()) > -1
66
66
 
67
67
  @element.on 'click', ->
68
68
  Mercury.trigger('hide:dialogs')
@@ -71,8 +71,12 @@ class @Mercury.Toolbar
71
71
  event.preventDefault()
72
72
 
73
73
 
74
- height: ->
75
- if @visible then @element.outerHeight() else 0
74
+ height: (force = false) ->
75
+ if @visible || force then @element.outerHeight() else 0
76
+
77
+
78
+ top: ->
79
+ if @visible then @element.offset().top else 0
76
80
 
77
81
 
78
82
  show: ->
@@ -25,7 +25,6 @@ jQuery.extend Mercury.uploader,
25
25
 
26
26
  supported: ->
27
27
  xhr = new XMLHttpRequest
28
- fileReader = window.FileReader
29
28
 
30
29
  if window.Uint8Array && window.ArrayBuffer && !XMLHttpRequest.prototype.sendAsBinary
31
30
  XMLHttpRequest::sendAsBinary = (datastr) ->
@@ -33,8 +32,13 @@ jQuery.extend Mercury.uploader,
33
32
  ui8a[index] = (datastr.charCodeAt(index) & 0xff) for data, index in datastr
34
33
  @send(ui8a.buffer)
35
34
 
36
- return !!(xhr.upload && xhr.sendAsBinary && fileReader)
35
+ return !!(xhr.upload && xhr.sendAsBinary && (Mercury.uploader.fileReaderSupported() || Mercury.uploader.formDataSupported()))
37
36
 
37
+ fileReaderSupported: ->
38
+ !!(window.FileReader)
39
+
40
+ formDataSupported: ->
41
+ !!(window.FormData)
38
42
 
39
43
  build: ->
40
44
  @element = jQuery('<div>', {class: 'mercury-uploader', style: 'display:none'})
@@ -86,8 +90,11 @@ jQuery.extend Mercury.uploader,
86
90
 
87
91
 
88
92
  loadImage: ->
89
- @file.readAsDataURL (result) =>
90
- @element.find('.mercury-uploader-preview b').html(jQuery('<img>', {src: result}))
93
+ if Mercury.uploader.fileReaderSupported()
94
+ @file.readAsDataURL (result) =>
95
+ @element.find('.mercury-uploader-preview b').html(jQuery('<img>', {src: result}))
96
+ @upload()
97
+ else
91
98
  @upload()
92
99
 
93
100
 
@@ -121,16 +128,28 @@ jQuery.extend Mercury.uploader,
121
128
  xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest')
122
129
  xhr.setRequestHeader(Mercury.config.csrfHeader, Mercury.csrfToken)
123
130
 
124
- @file.readAsBinaryString (result) =>
125
- # build the multipart post string
126
- multipart = new Mercury.uploader.MultiPartPost(Mercury.config.uploading.inputName, @file, result)
131
+ # Homespun multipart uploads. Chrome 18, Firefox 11.
132
+ #
133
+ if Mercury.uploader.fileReaderSupported()
134
+ @file.readAsBinaryString (result) =>
135
+
136
+ multipart = new Mercury.uploader.MultiPartPost(Mercury.config.uploading.inputName, @file, result)
127
137
 
128
- # update the content size so we can calculate
129
- @file.updateSize(multipart.delta)
138
+ # update the content size so we can calculate
139
+ @file.updateSize(multipart.delta)
140
+
141
+ # set the content type and send
142
+ xhr.setRequestHeader('Content-Type', 'multipart/form-data; boundary=' + multipart.boundary)
143
+ xhr.sendAsBinary(multipart.body)
144
+
145
+ # FormData based. Safari 5.1.2.
146
+ #
147
+ else
148
+ formData = new FormData()
149
+ formData.append(Mercury.config.uploading.inputName, @file.file, @file.file.name)
150
+
151
+ xhr.send(formData)
130
152
 
131
- # set the content type and send
132
- xhr.setRequestHeader('Content-Type', 'multipart/form-data; boundary=' + multipart.boundary)
133
- xhr.sendAsBinary(multipart.body)
134
153
 
135
154
 
136
155
  updateStatus: (message, loaded) ->
@@ -142,7 +161,7 @@ jQuery.extend Mercury.uploader,
142
161
 
143
162
 
144
163
  hide: (delay = 0) ->
145
- setTimeout delay * 1000, =>
164
+ setTimeout =>
146
165
  @element.animate {opacity: 0}, 200, 'easeInOutSine', =>
147
166
  @overlay.animate {opacity: 0}, 200, 'easeInOutSine', =>
148
167
  @overlay.hide()
@@ -150,6 +169,7 @@ jQuery.extend Mercury.uploader,
150
169
  @reset()
151
170
  @visible = false
152
171
  Mercury.trigger('focus:frame')
172
+ , delay * 1000
153
173
 
154
174
 
155
175
  reset: ->
@@ -180,12 +200,10 @@ jQuery.extend Mercury.uploader,
180
200
  class Mercury.uploader.File
181
201
 
182
202
  constructor: (@file) ->
183
- @size = @file.size
184
- @fullSize = @file.size
185
- @readableSize = @file.size.toBytes()
186
- @name = @file.fileName
187
- @name ||= @file.name
188
- @type = @file.type
203
+ @fullSize = @size = @file.size || @file.fileSize
204
+ @readableSize = @size.toBytes()
205
+ @name = @file.name || @file.fileName
206
+ @type = @file.type || @file.fileType
189
207
 
190
208
  # add any errors if we need to
191
209
  errors = []
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Bootsrap Overrides (overrides what's in bootstrap-ish)
3
+ *---------------------------------------------------------------------------*/
4
+ .btn-group > .btn {
5
+ margin-right: 0;
6
+ }
7
+ form {
8
+ margin-bottom: 0;
9
+ }
10
+ fieldset {
11
+ margin-bottom: 15px;
12
+ background: #F6F6F6;
13
+ border: 1px solid #CCC;
14
+ border-radius: 7px;
15
+ padding: 10px;
16
+ }
17
+ legend {
18
+ display: block;
19
+ position: relative;
20
+ margin-left: 10px;
21
+ margin-bottom: 0;
22
+ font-weight: bold;
23
+ width: auto;
24
+ padding: 0;
25
+ font-size: 12px;
26
+ color: #333333;
27
+ border: 0;
28
+ line-height: 1px;
29
+ }
30
+ select {
31
+ width: auto;
32
+ }
33
+ .form-actions {
34
+ margin-top: 0;
35
+ margin-bottom: 0;
36
+ background-color: transparent;
37
+ }
38
+ .control-group {
39
+ margin-bottom: 0;
40
+ }
41
+ legend + .control-group {
42
+ margin-top: 0;
43
+ -webkit-margin-top-collapse: separate;
44
+ }
45
+ .form-horizontal .control-group {
46
+ margin-bottom: 0;
47
+ }
48
+ .form-horizontal .controls {
49
+ margin-left: 150px;
50
+ }
51
+ .form-horizontal hr {
52
+ margin-left: 150px;
53
+ border: 0;
54
+ border-top: 1px solid #ccc;
55
+ }
56
+ label input[type=radio] {
57
+ margin-right: 5px;
58
+ }
59
+ .form-actions {
60
+ padding-bottom: 0;
61
+ }
@@ -0,0 +1,33 @@
1
+ /*!
2
+ * Mercury Editor is a Coffeescript and jQuery based WYSIWYG editor. Documentation and other useful information can be
3
+ * found at https://github.com/jejacks0n/mercury
4
+ *
5
+ * Copyright (c) 2011 Jeremy Jackson
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
9
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
10
+ * persons to whom the Software is furnished to do so, subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
13
+ * Software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
16
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
18
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
+ *
20
+ */
21
+
22
+ $linkColor: #09F !default;
23
+ $linkColorHover: darken($linkColor, 15%) !default;
24
+
25
+ @import '/assets/mercury/mercury.css';
26
+ @import 'mercury-bootstrap-overrides';
27
+
28
+ #mercury_about a { color: $linkColor; }
29
+ #mercury_table #table_display .selected { background: $linkColor; }
30
+ .mercury-uploader .mercury-uploader-progress div.mercury-uploader-indicator div {
31
+ background-color: $linkColor;
32
+ border: 1px solid $linkColorHover;
33
+ }
@@ -2,11 +2,6 @@
2
2
  * Mercury Editor is a Coffeescript and jQuery based WYSIWYG editor. Documentation and other useful information can be
3
3
  * found at https://github.com/jejacks0n/mercury
4
4
  *
5
- * Supported browsers:
6
- * - Firefox 4+
7
- * - Chrome 10+
8
- * - Safari 5+
9
- *
10
5
  * Copyright (c) 2011 Jeremy Jackson
11
6
  *
12
7
  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
@@ -23,6 +18,7 @@
23
18
  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
19
  *
25
20
  *= require_self
21
+ *= require mercury/bootstrap-ish
26
22
  *= require mercury/mercury
27
23
  */
28
24
 
@@ -74,6 +74,10 @@ form fieldset.buttons .commit input {
74
74
  .mercury-expander-button[data-button=historyPanel] em { background-image: url(<%= asset_path 'mercury/toolbar/primary/historypanel.png' %>) }
75
75
  .mercury-primary-toolbar .mercury-notesPanel-button em,
76
76
  .mercury-expander-button[data-button=notesPanel] em { background-image: url(<%= asset_path 'mercury/toolbar/primary/notespanel.png' %>) }
77
+ .mercury-primary-toolbar .mercury-userPanel-button em,
78
+ .mercury-expander-button[data-button=userPanel] em { background-image: url(<%= asset_path 'mercury/toolbar/primary/user.png' %>) }
79
+ .mercury-primary-toolbar .mercury-toolsPanel-button em,
80
+ .mercury-expander-button[data-button=toolsPanel] em { background-image: url(<%= asset_path 'mercury/toolbar/primary/tools.png' %>) }
77
81
  .mercury-editable-toolbar .mercury-button {
78
82
  background-image: url(<%= asset_path 'mercury/toolbar/editable/buttons.png' %>);
79
83
  }
@@ -82,8 +86,8 @@ form fieldset.buttons .commit input {
82
86
  }
83
87
 
84
88
  .mercury-snippet-toolbar .mercury-button {
85
- background-image: url(<%= asset_path 'mercury/toolbar/snippetable/buttons.png' %>);
89
+ background-image: url(<%= asset_path 'mercury/toolbar/snippets/buttons.png' %>);
86
90
  }
87
91
  .mercury-snippet-toolbar .mercury-button em {
88
- background-image: url(<%= asset_path 'mercury/toolbar/snippetable/buttons.png' %>);
92
+ background-image: url(<%= asset_path 'mercury/toolbar/snippets/buttons.png' %>);
89
93
  }
@@ -0,0 +1,1367 @@
1
+ /*!
2
+ * This file is a derivative of the Twitter Bootstrap CSS. It only includes the form and button css.
3
+ *
4
+ * Bootstrap v2.0.4
5
+ *
6
+ * Copyright 2012 Twitter, Inc
7
+ * Licensed under the Apache License v2.0
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
11
+ */
12
+ fieldset {
13
+ padding: 0;
14
+ margin: 0;
15
+ border: 0;
16
+ }
17
+
18
+ legend {
19
+ display: block;
20
+ width: 100%;
21
+ padding: 0;
22
+ margin-bottom: 27px;
23
+ font-size: 19.5px;
24
+ line-height: 36px;
25
+ color: #333333;
26
+ border: 0;
27
+ border-bottom: 1px solid #e5e5e5;
28
+ }
29
+
30
+ legend small {
31
+ font-size: 13.5px;
32
+ color: #999999;
33
+ }
34
+
35
+ label,
36
+ input,
37
+ button,
38
+ select,
39
+ textarea {
40
+ font-size: 13px;
41
+ font-weight: normal;
42
+ line-height: 18px;
43
+ }
44
+
45
+ input,
46
+ button,
47
+ select,
48
+ textarea {
49
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
50
+ }
51
+
52
+ label {
53
+ display: block;
54
+ margin-bottom: 5px;
55
+ }
56
+
57
+ select,
58
+ textarea,
59
+ input[type="text"],
60
+ input[type="password"],
61
+ input[type="datetime"],
62
+ input[type="datetime-local"],
63
+ input[type="date"],
64
+ input[type="month"],
65
+ input[type="time"],
66
+ input[type="week"],
67
+ input[type="number"],
68
+ input[type="email"],
69
+ input[type="url"],
70
+ input[type="search"],
71
+ input[type="tel"],
72
+ input[type="color"],
73
+ .uneditable-input {
74
+ display: inline-block;
75
+ /*height: 18px;*/
76
+ padding: 4px;
77
+ margin-bottom: 9px;
78
+ font-size: 13px;
79
+ /*line-height: 18px;*/
80
+ color: #555555;
81
+ }
82
+
83
+ input,
84
+ textarea {
85
+ width: 210px;
86
+ }
87
+
88
+ textarea {
89
+ height: auto;
90
+ }
91
+
92
+ textarea,
93
+ input[type="text"],
94
+ input[type="password"],
95
+ input[type="datetime"],
96
+ input[type="datetime-local"],
97
+ input[type="date"],
98
+ input[type="month"],
99
+ input[type="time"],
100
+ input[type="week"],
101
+ input[type="number"],
102
+ input[type="email"],
103
+ input[type="url"],
104
+ input[type="search"],
105
+ input[type="tel"],
106
+ input[type="color"],
107
+ .uneditable-input {
108
+ background-color: #ffffff;
109
+ border: 1px solid #cccccc;
110
+ -webkit-border-radius: 3px;
111
+ -moz-border-radius: 3px;
112
+ border-radius: 3px;
113
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
114
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
115
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
116
+ -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
117
+ -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
118
+ -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
119
+ -o-transition: border linear 0.2s, box-shadow linear 0.2s;
120
+ transition: border linear 0.2s, box-shadow linear 0.2s;
121
+ }
122
+
123
+ textarea:focus,
124
+ input[type="text"]:focus,
125
+ input[type="password"]:focus,
126
+ input[type="datetime"]:focus,
127
+ input[type="datetime-local"]:focus,
128
+ input[type="date"]:focus,
129
+ input[type="month"]:focus,
130
+ input[type="time"]:focus,
131
+ input[type="week"]:focus,
132
+ input[type="number"]:focus,
133
+ input[type="email"]:focus,
134
+ input[type="url"]:focus,
135
+ input[type="search"]:focus,
136
+ input[type="tel"]:focus,
137
+ input[type="color"]:focus,
138
+ .uneditable-input:focus {
139
+ border-color: rgba(82, 168, 236, 0.8);
140
+ outline: 0;
141
+ outline: thin dotted \9;
142
+ /* IE6-9 */
143
+
144
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
145
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
146
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
147
+ }
148
+
149
+ input[type="radio"],
150
+ input[type="checkbox"] {
151
+ margin: 3px 0;
152
+ *margin-top: 0;
153
+ /* IE7 */
154
+
155
+ line-height: normal;
156
+ cursor: pointer;
157
+ }
158
+
159
+ input[type="submit"],
160
+ input[type="reset"],
161
+ input[type="button"],
162
+ input[type="radio"],
163
+ input[type="checkbox"] {
164
+ width: auto;
165
+ }
166
+
167
+ .uneditable-textarea {
168
+ width: auto;
169
+ height: auto;
170
+ }
171
+
172
+ select,
173
+ input[type="file"] {
174
+ height: 28px;
175
+ /* In IE7, the height of the select element cannot be changed by height, only font-size */
176
+
177
+ *margin-top: 4px;
178
+ /* For IE7, add top margin to align select with labels */
179
+
180
+ line-height: 28px;
181
+ }
182
+
183
+ select {
184
+ width: 220px;
185
+ border: 1px solid #bbb;
186
+ }
187
+
188
+ select[multiple],
189
+ select[size] {
190
+ height: auto;
191
+ }
192
+
193
+ select:focus,
194
+ input[type="file"]:focus,
195
+ input[type="radio"]:focus,
196
+ input[type="checkbox"]:focus {
197
+ outline: thin dotted #333;
198
+ outline: 5px auto -webkit-focus-ring-color;
199
+ outline-offset: -2px;
200
+ }
201
+
202
+ .radio,
203
+ .checkbox {
204
+ min-height: 18px;
205
+ padding-left: 18px;
206
+ }
207
+
208
+ .radio input[type="radio"],
209
+ .checkbox input[type="checkbox"] {
210
+ float: left;
211
+ margin-left: -18px;
212
+ }
213
+
214
+ .controls > .radio:first-child,
215
+ .controls > .checkbox:first-child {
216
+ padding-top: 5px;
217
+ }
218
+
219
+ .radio.inline,
220
+ .checkbox.inline {
221
+ display: inline-block;
222
+ padding-top: 5px;
223
+ margin-bottom: 0;
224
+ vertical-align: middle;
225
+ }
226
+
227
+ .radio.inline + .radio.inline,
228
+ .checkbox.inline + .checkbox.inline {
229
+ margin-left: 10px;
230
+ }
231
+
232
+ .input-mini {
233
+ width: 60px;
234
+ }
235
+
236
+ .input-small {
237
+ width: 90px;
238
+ }
239
+
240
+ .input-medium {
241
+ width: 150px;
242
+ }
243
+
244
+ .input-large {
245
+ width: 210px;
246
+ }
247
+
248
+ .input-xlarge {
249
+ width: 270px;
250
+ }
251
+
252
+ .input-xxlarge {
253
+ width: 530px;
254
+ }
255
+
256
+ input[class*="span"],
257
+ select[class*="span"],
258
+ textarea[class*="span"],
259
+ .uneditable-input[class*="span"],
260
+ .row-fluid input[class*="span"],
261
+ .row-fluid select[class*="span"],
262
+ .row-fluid textarea[class*="span"],
263
+ .row-fluid .uneditable-input[class*="span"] {
264
+ float: none;
265
+ margin-left: 0;
266
+ }
267
+
268
+ .input-append input[class*="span"],
269
+ .input-append .uneditable-input[class*="span"],
270
+ .input-prepend input[class*="span"],
271
+ .input-prepend .uneditable-input[class*="span"],
272
+ .row-fluid .input-prepend [class*="span"],
273
+ .row-fluid .input-append [class*="span"] {
274
+ display: inline-block;
275
+ }
276
+
277
+ input,
278
+ textarea,
279
+ .uneditable-input {
280
+ margin-left: 0;
281
+ }
282
+
283
+ input.span12,
284
+ textarea.span12,
285
+ .uneditable-input.span12 {
286
+ width: 930px;
287
+ }
288
+
289
+ input.span11,
290
+ textarea.span11,
291
+ .uneditable-input.span11 {
292
+ width: 850px;
293
+ }
294
+
295
+ input.span10,
296
+ textarea.span10,
297
+ .uneditable-input.span10 {
298
+ width: 770px;
299
+ }
300
+
301
+ input.span9,
302
+ textarea.span9,
303
+ .uneditable-input.span9 {
304
+ width: 690px;
305
+ }
306
+
307
+ input.span8,
308
+ textarea.span8,
309
+ .uneditable-input.span8 {
310
+ width: 610px;
311
+ }
312
+
313
+ input.span7,
314
+ textarea.span7,
315
+ .uneditable-input.span7 {
316
+ width: 530px;
317
+ }
318
+
319
+ input.span6,
320
+ textarea.span6,
321
+ .uneditable-input.span6 {
322
+ width: 450px;
323
+ }
324
+
325
+ input.span5,
326
+ textarea.span5,
327
+ .uneditable-input.span5 {
328
+ width: 370px;
329
+ }
330
+
331
+ input.span4,
332
+ textarea.span4,
333
+ .uneditable-input.span4 {
334
+ width: 290px;
335
+ }
336
+
337
+ input.span3,
338
+ textarea.span3,
339
+ .uneditable-input.span3 {
340
+ width: 210px;
341
+ }
342
+
343
+ input.span2,
344
+ textarea.span2,
345
+ .uneditable-input.span2 {
346
+ width: 130px;
347
+ }
348
+
349
+ input.span1,
350
+ textarea.span1,
351
+ .uneditable-input.span1 {
352
+ width: 50px;
353
+ }
354
+
355
+ input[disabled],
356
+ select[disabled],
357
+ textarea[disabled],
358
+ input[readonly],
359
+ select[readonly],
360
+ textarea[readonly] {
361
+ cursor: not-allowed;
362
+ background-color: #eeeeee;
363
+ border-color: #ddd;
364
+ }
365
+
366
+ input[type="radio"][disabled],
367
+ input[type="checkbox"][disabled],
368
+ input[type="radio"][readonly],
369
+ input[type="checkbox"][readonly] {
370
+ background-color: transparent;
371
+ }
372
+
373
+ .control-group.warning > label,
374
+ .control-group.warning .help-block,
375
+ .control-group.warning .help-inline {
376
+ color: #c09853;
377
+ }
378
+
379
+ .control-group.warning .checkbox,
380
+ .control-group.warning .radio,
381
+ .control-group.warning input,
382
+ .control-group.warning select,
383
+ .control-group.warning textarea {
384
+ color: #c09853;
385
+ border-color: #c09853;
386
+ }
387
+
388
+ .control-group.warning .checkbox:focus,
389
+ .control-group.warning .radio:focus,
390
+ .control-group.warning input:focus,
391
+ .control-group.warning select:focus,
392
+ .control-group.warning textarea:focus {
393
+ border-color: #a47e3c;
394
+ -webkit-box-shadow: 0 0 6px #dbc59e;
395
+ -moz-box-shadow: 0 0 6px #dbc59e;
396
+ box-shadow: 0 0 6px #dbc59e;
397
+ }
398
+
399
+ .control-group.warning .input-prepend .add-on,
400
+ .control-group.warning .input-append .add-on {
401
+ color: #c09853;
402
+ background-color: #fcf8e3;
403
+ border-color: #c09853;
404
+ }
405
+
406
+ .control-group.error > label,
407
+ .control-group.error .help-block,
408
+ .control-group.error .help-inline {
409
+ color: #b94a48;
410
+ }
411
+
412
+ .control-group.error .checkbox,
413
+ .control-group.error .radio,
414
+ .control-group.error input,
415
+ .control-group.error select,
416
+ .control-group.error textarea {
417
+ color: #b94a48;
418
+ border-color: #b94a48;
419
+ }
420
+
421
+ .control-group.error .checkbox:focus,
422
+ .control-group.error .radio:focus,
423
+ .control-group.error input:focus,
424
+ .control-group.error select:focus,
425
+ .control-group.error textarea:focus {
426
+ border-color: #953b39;
427
+ -webkit-box-shadow: 0 0 6px #d59392;
428
+ -moz-box-shadow: 0 0 6px #d59392;
429
+ box-shadow: 0 0 6px #d59392;
430
+ }
431
+
432
+ .control-group.error .input-prepend .add-on,
433
+ .control-group.error .input-append .add-on {
434
+ color: #b94a48;
435
+ background-color: #f2dede;
436
+ border-color: #b94a48;
437
+ }
438
+
439
+ .control-group.success > label,
440
+ .control-group.success .help-block,
441
+ .control-group.success .help-inline {
442
+ color: #468847;
443
+ }
444
+
445
+ .control-group.success .checkbox,
446
+ .control-group.success .radio,
447
+ .control-group.success input,
448
+ .control-group.success select,
449
+ .control-group.success textarea {
450
+ color: #468847;
451
+ border-color: #468847;
452
+ }
453
+
454
+ .control-group.success .checkbox:focus,
455
+ .control-group.success .radio:focus,
456
+ .control-group.success input:focus,
457
+ .control-group.success select:focus,
458
+ .control-group.success textarea:focus {
459
+ border-color: #356635;
460
+ -webkit-box-shadow: 0 0 6px #7aba7b;
461
+ -moz-box-shadow: 0 0 6px #7aba7b;
462
+ box-shadow: 0 0 6px #7aba7b;
463
+ }
464
+
465
+ .control-group.success .input-prepend .add-on,
466
+ .control-group.success .input-append .add-on {
467
+ color: #468847;
468
+ background-color: #dff0d8;
469
+ border-color: #468847;
470
+ }
471
+
472
+ input:focus:required:invalid,
473
+ textarea:focus:required:invalid,
474
+ select:focus:required:invalid {
475
+ color: #b94a48;
476
+ border-color: #ee5f5b;
477
+ }
478
+
479
+ input:focus:required:invalid:focus,
480
+ textarea:focus:required:invalid:focus,
481
+ select:focus:required:invalid:focus {
482
+ border-color: #e9322d;
483
+ -webkit-box-shadow: 0 0 6px #f8b9b7;
484
+ -moz-box-shadow: 0 0 6px #f8b9b7;
485
+ box-shadow: 0 0 6px #f8b9b7;
486
+ }
487
+
488
+ .form-actions {
489
+ padding: 17px 20px 18px;
490
+ margin-top: 18px;
491
+ margin-bottom: 18px;
492
+ background-color: #f5f5f5;
493
+ border-top: 1px solid #e5e5e5;
494
+ *zoom: 1;
495
+ }
496
+
497
+ .form-actions:before,
498
+ .form-actions:after {
499
+ display: table;
500
+ content: "";
501
+ }
502
+
503
+ .form-actions:after {
504
+ clear: both;
505
+ }
506
+
507
+ .uneditable-input {
508
+ overflow: hidden;
509
+ white-space: nowrap;
510
+ cursor: not-allowed;
511
+ background-color: #ffffff;
512
+ border-color: #eee;
513
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
514
+ -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
515
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
516
+ }
517
+
518
+ :-moz-placeholder {
519
+ color: #999999;
520
+ }
521
+
522
+ :-ms-input-placeholder {
523
+ color: #999999;
524
+ }
525
+
526
+ ::-webkit-input-placeholder {
527
+ color: #999999;
528
+ }
529
+
530
+ .help-block,
531
+ .help-inline {
532
+ color: #555555;
533
+ }
534
+
535
+ .help-block {
536
+ display: block;
537
+ margin-bottom: 9px;
538
+ }
539
+
540
+ .help-inline {
541
+ display: inline-block;
542
+ *display: inline;
543
+ padding-left: 5px;
544
+ vertical-align: middle;
545
+ *zoom: 1;
546
+ }
547
+
548
+ .input-prepend,
549
+ .input-append {
550
+ margin-bottom: 5px;
551
+ }
552
+
553
+ .input-prepend input,
554
+ .input-append input,
555
+ .input-prepend select,
556
+ .input-append select,
557
+ .input-prepend .uneditable-input,
558
+ .input-append .uneditable-input {
559
+ position: relative;
560
+ margin-bottom: 0;
561
+ *margin-left: 0;
562
+ vertical-align: middle;
563
+ -webkit-border-radius: 0 3px 3px 0;
564
+ -moz-border-radius: 0 3px 3px 0;
565
+ border-radius: 0 3px 3px 0;
566
+ }
567
+
568
+ .input-prepend input:focus,
569
+ .input-append input:focus,
570
+ .input-prepend select:focus,
571
+ .input-append select:focus,
572
+ .input-prepend .uneditable-input:focus,
573
+ .input-append .uneditable-input:focus {
574
+ z-index: 2;
575
+ }
576
+
577
+ .input-prepend .uneditable-input,
578
+ .input-append .uneditable-input {
579
+ border-left-color: #ccc;
580
+ }
581
+
582
+ .input-prepend .add-on,
583
+ .input-append .add-on {
584
+ display: inline-block;
585
+ width: auto;
586
+ height: 18px;
587
+ min-width: 16px;
588
+ padding: 4px 5px;
589
+ font-weight: normal;
590
+ line-height: 18px;
591
+ text-align: center;
592
+ text-shadow: 0 1px 0 #ffffff;
593
+ vertical-align: middle;
594
+ background-color: #eeeeee;
595
+ border: 1px solid #ccc;
596
+ }
597
+
598
+ .input-prepend .add-on,
599
+ .input-append .add-on,
600
+ .input-prepend .btn,
601
+ .input-append .btn {
602
+ margin-left: -1px;
603
+ -webkit-border-radius: 0;
604
+ -moz-border-radius: 0;
605
+ border-radius: 0;
606
+ }
607
+
608
+ .input-prepend .active,
609
+ .input-append .active {
610
+ background-color: #a9dba9;
611
+ border-color: #46a546;
612
+ }
613
+
614
+ .input-prepend .add-on,
615
+ .input-prepend .btn {
616
+ margin-right: -1px;
617
+ }
618
+
619
+ .input-prepend .add-on:first-child,
620
+ .input-prepend .btn:first-child {
621
+ -webkit-border-radius: 3px 0 0 3px;
622
+ -moz-border-radius: 3px 0 0 3px;
623
+ border-radius: 3px 0 0 3px;
624
+ }
625
+
626
+ .input-append input,
627
+ .input-append select,
628
+ .input-append .uneditable-input {
629
+ -webkit-border-radius: 3px 0 0 3px;
630
+ -moz-border-radius: 3px 0 0 3px;
631
+ border-radius: 3px 0 0 3px;
632
+ }
633
+
634
+ .input-append .uneditable-input {
635
+ border-right-color: #ccc;
636
+ border-left-color: #eee;
637
+ }
638
+
639
+ .input-append .add-on:last-child,
640
+ .input-append .btn:last-child {
641
+ -webkit-border-radius: 0 3px 3px 0;
642
+ -moz-border-radius: 0 3px 3px 0;
643
+ border-radius: 0 3px 3px 0;
644
+ }
645
+
646
+ .input-prepend.input-append input,
647
+ .input-prepend.input-append select,
648
+ .input-prepend.input-append .uneditable-input {
649
+ -webkit-border-radius: 0;
650
+ -moz-border-radius: 0;
651
+ border-radius: 0;
652
+ }
653
+
654
+ .input-prepend.input-append .add-on:first-child,
655
+ .input-prepend.input-append .btn:first-child {
656
+ margin-right: -1px;
657
+ -webkit-border-radius: 3px 0 0 3px;
658
+ -moz-border-radius: 3px 0 0 3px;
659
+ border-radius: 3px 0 0 3px;
660
+ }
661
+
662
+ .input-prepend.input-append .add-on:last-child,
663
+ .input-prepend.input-append .btn:last-child {
664
+ margin-left: -1px;
665
+ -webkit-border-radius: 0 3px 3px 0;
666
+ -moz-border-radius: 0 3px 3px 0;
667
+ border-radius: 0 3px 3px 0;
668
+ }
669
+
670
+ .search-query {
671
+ padding-right: 14px;
672
+ padding-right: 4px \9;
673
+ padding-left: 14px;
674
+ padding-left: 4px \9;
675
+ /* IE7-8 doesn't have border-radius, so don't indent the padding */
676
+
677
+ margin-bottom: 0;
678
+ -webkit-border-radius: 14px;
679
+ -moz-border-radius: 14px;
680
+ border-radius: 14px;
681
+ }
682
+
683
+ .form-search input,
684
+ .form-inline input,
685
+ .form-horizontal input,
686
+ .form-search textarea,
687
+ .form-inline textarea,
688
+ .form-horizontal textarea,
689
+ .form-search select,
690
+ .form-inline select,
691
+ .form-horizontal select,
692
+ .form-search .help-inline,
693
+ .form-inline .help-inline,
694
+ .form-horizontal .help-inline,
695
+ .form-search .uneditable-input,
696
+ .form-inline .uneditable-input,
697
+ .form-horizontal .uneditable-input,
698
+ .form-search .input-prepend,
699
+ .form-inline .input-prepend,
700
+ .form-horizontal .input-prepend,
701
+ .form-search .input-append,
702
+ .form-inline .input-append,
703
+ .form-horizontal .input-append {
704
+ display: inline-block;
705
+ *display: inline;
706
+ margin-bottom: 0;
707
+ *zoom: 1;
708
+ }
709
+
710
+ .form-search .hide,
711
+ .form-inline .hide,
712
+ .form-horizontal .hide {
713
+ display: none;
714
+ }
715
+
716
+ .form-search label,
717
+ .form-inline label {
718
+ display: inline-block;
719
+ }
720
+
721
+ .form-search .input-append,
722
+ .form-inline .input-append,
723
+ .form-search .input-prepend,
724
+ .form-inline .input-prepend {
725
+ margin-bottom: 0;
726
+ }
727
+
728
+ .form-search .radio,
729
+ .form-search .checkbox,
730
+ .form-inline .radio,
731
+ .form-inline .checkbox {
732
+ padding-left: 0;
733
+ margin-bottom: 0;
734
+ vertical-align: middle;
735
+ }
736
+
737
+ .form-search .radio input[type="radio"],
738
+ .form-search .checkbox input[type="checkbox"],
739
+ .form-inline .radio input[type="radio"],
740
+ .form-inline .checkbox input[type="checkbox"] {
741
+ float: left;
742
+ margin-right: 3px;
743
+ margin-left: 0;
744
+ }
745
+
746
+ .control-group {
747
+ margin-bottom: 9px;
748
+ }
749
+
750
+ legend + .control-group {
751
+ margin-top: 18px;
752
+ -webkit-margin-top-collapse: separate;
753
+ }
754
+
755
+ .form-horizontal .control-group {
756
+ margin-bottom: 18px;
757
+ *zoom: 1;
758
+ }
759
+
760
+ .form-horizontal .control-group:before,
761
+ .form-horizontal .control-group:after {
762
+ display: table;
763
+ content: "";
764
+ }
765
+
766
+ .form-horizontal .control-group:after {
767
+ clear: both;
768
+ }
769
+
770
+ .form-horizontal .control-label {
771
+ float: left;
772
+ width: 140px;
773
+ padding-top: 5px;
774
+ text-align: right;
775
+ }
776
+
777
+ .form-horizontal .controls {
778
+ *display: inline-block;
779
+ *padding-left: 20px;
780
+ margin-left: 160px;
781
+ *margin-left: 0;
782
+ }
783
+
784
+ .form-horizontal .controls:first-child {
785
+ *padding-left: 160px;
786
+ }
787
+
788
+ .form-horizontal .help-block {
789
+ margin-top: 9px;
790
+ margin-bottom: 0;
791
+ }
792
+
793
+ .form-horizontal .form-actions {
794
+ padding-left: 160px;
795
+ }
796
+
797
+
798
+ .btn {
799
+ display: inline-block;
800
+ *display: inline;
801
+ padding: 4px 10px 4px;
802
+ margin-bottom: 0;
803
+ *margin-left: .3em;
804
+ font-size: 13px;
805
+ line-height: 18px;
806
+ *line-height: 20px;
807
+ color: #333333;
808
+ text-align: center;
809
+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
810
+ vertical-align: middle;
811
+ cursor: pointer;
812
+ background-color: #f5f5f5;
813
+ *background-color: #e6e6e6;
814
+ background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
815
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
816
+ background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
817
+ background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
818
+ background-image: linear-gradient(top, #ffffff, #e6e6e6);
819
+ background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
820
+ background-repeat: repeat-x;
821
+ border: 1px solid #cccccc;
822
+ *border: 0;
823
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
824
+ border-color: #e6e6e6 #e6e6e6 #bfbfbf;
825
+ border-bottom-color: #b3b3b3;
826
+ -webkit-border-radius: 4px;
827
+ -moz-border-radius: 4px;
828
+ border-radius: 4px;
829
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
830
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
831
+ *zoom: 1;
832
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
833
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
834
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
835
+ }
836
+
837
+ .btn:hover,
838
+ .btn:active,
839
+ .btn.active,
840
+ .btn.disabled,
841
+ .btn[disabled] {
842
+ background-color: #e6e6e6;
843
+ *background-color: #d9d9d9;
844
+ }
845
+
846
+ .btn:active,
847
+ .btn.active {
848
+ background-color: #cccccc \9;
849
+ }
850
+
851
+ .btn:first-child {
852
+ *margin-left: 0;
853
+ }
854
+
855
+ .btn:hover {
856
+ color: #333333;
857
+ text-decoration: none;
858
+ background-color: #e6e6e6;
859
+ *background-color: #d9d9d9;
860
+ /* Buttons in IE7 don't get borders, so darken on hover */
861
+
862
+ background-position: 0 -15px;
863
+ -webkit-transition: background-position 0.1s linear;
864
+ -moz-transition: background-position 0.1s linear;
865
+ -ms-transition: background-position 0.1s linear;
866
+ -o-transition: background-position 0.1s linear;
867
+ transition: background-position 0.1s linear;
868
+ }
869
+
870
+ .btn:focus {
871
+ outline: thin dotted #333;
872
+ outline: 5px auto -webkit-focus-ring-color;
873
+ outline-offset: -2px;
874
+ }
875
+
876
+ .btn.active,
877
+ .btn:active {
878
+ background-color: #e6e6e6;
879
+ background-color: #d9d9d9 \9;
880
+ background-image: none;
881
+ outline: 0;
882
+ -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
883
+ -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
884
+ box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
885
+ }
886
+
887
+ .btn.disabled,
888
+ .btn[disabled] {
889
+ cursor: default;
890
+ background-color: #e6e6e6;
891
+ background-image: none;
892
+ opacity: 0.65;
893
+ filter: alpha(opacity=65);
894
+ -webkit-box-shadow: none;
895
+ -moz-box-shadow: none;
896
+ box-shadow: none;
897
+ }
898
+
899
+ .btn-large {
900
+ padding: 9px 14px;
901
+ font-size: 15px;
902
+ line-height: normal;
903
+ -webkit-border-radius: 5px;
904
+ -moz-border-radius: 5px;
905
+ border-radius: 5px;
906
+ }
907
+
908
+ .btn-large [class^="icon-"] {
909
+ margin-top: 1px;
910
+ }
911
+
912
+ .btn-small {
913
+ padding: 5px 9px;
914
+ font-size: 11px;
915
+ line-height: 16px;
916
+ }
917
+
918
+ .btn-small [class^="icon-"] {
919
+ margin-top: -1px;
920
+ }
921
+
922
+ .btn-mini {
923
+ padding: 2px 6px;
924
+ font-size: 11px;
925
+ line-height: 14px;
926
+ }
927
+
928
+ .btn-primary,
929
+ .btn-primary:hover,
930
+ .btn-warning,
931
+ .btn-warning:hover,
932
+ .btn-danger,
933
+ .btn-danger:hover,
934
+ .btn-success,
935
+ .btn-success:hover,
936
+ .btn-info,
937
+ .btn-info:hover,
938
+ .btn-inverse,
939
+ .btn-inverse:hover {
940
+ color: #ffffff;
941
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
942
+ }
943
+
944
+ .btn-primary.active,
945
+ .btn-warning.active,
946
+ .btn-danger.active,
947
+ .btn-success.active,
948
+ .btn-info.active,
949
+ .btn-inverse.active {
950
+ color: rgba(255, 255, 255, 0.75);
951
+ }
952
+
953
+ .btn {
954
+ border-color: #ccc;
955
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
956
+ }
957
+
958
+ .btn-primary {
959
+ background-color: #0074cc;
960
+ *background-color: #0055cc;
961
+ background-image: -ms-linear-gradient(top, #0088cc, #0055cc);
962
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0055cc));
963
+ background-image: -webkit-linear-gradient(top, #0088cc, #0055cc);
964
+ background-image: -o-linear-gradient(top, #0088cc, #0055cc);
965
+ background-image: -moz-linear-gradient(top, #0088cc, #0055cc);
966
+ background-image: linear-gradient(top, #0088cc, #0055cc);
967
+ background-repeat: repeat-x;
968
+ border-color: #0055cc #0055cc #003580;
969
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
970
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0);
971
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
972
+ }
973
+
974
+ .btn-primary:hover,
975
+ .btn-primary:active,
976
+ .btn-primary.active,
977
+ .btn-primary.disabled,
978
+ .btn-primary[disabled] {
979
+ background-color: #0055cc;
980
+ *background-color: #004ab3;
981
+ }
982
+
983
+ .btn-primary:active,
984
+ .btn-primary.active {
985
+ background-color: #004099 \9;
986
+ }
987
+
988
+ .btn-warning {
989
+ background-color: #faa732;
990
+ *background-color: #f89406;
991
+ background-image: -ms-linear-gradient(top, #fbb450, #f89406);
992
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
993
+ background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
994
+ background-image: -o-linear-gradient(top, #fbb450, #f89406);
995
+ background-image: -moz-linear-gradient(top, #fbb450, #f89406);
996
+ background-image: linear-gradient(top, #fbb450, #f89406);
997
+ background-repeat: repeat-x;
998
+ border-color: #f89406 #f89406 #ad6704;
999
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1000
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);
1001
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1002
+ }
1003
+
1004
+ .btn-warning:hover,
1005
+ .btn-warning:active,
1006
+ .btn-warning.active,
1007
+ .btn-warning.disabled,
1008
+ .btn-warning[disabled] {
1009
+ background-color: #f89406;
1010
+ *background-color: #df8505;
1011
+ }
1012
+
1013
+ .btn-warning:active,
1014
+ .btn-warning.active {
1015
+ background-color: #c67605 \9;
1016
+ }
1017
+
1018
+ .btn-danger {
1019
+ background-color: #da4f49;
1020
+ *background-color: #bd362f;
1021
+ background-image: -ms-linear-gradient(top, #ee5f5b, #bd362f);
1022
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
1023
+ background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
1024
+ background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
1025
+ background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
1026
+ background-image: linear-gradient(top, #ee5f5b, #bd362f);
1027
+ background-repeat: repeat-x;
1028
+ border-color: #bd362f #bd362f #802420;
1029
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1030
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);
1031
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1032
+ }
1033
+
1034
+ .btn-danger:hover,
1035
+ .btn-danger:active,
1036
+ .btn-danger.active,
1037
+ .btn-danger.disabled,
1038
+ .btn-danger[disabled] {
1039
+ background-color: #bd362f;
1040
+ *background-color: #a9302a;
1041
+ }
1042
+
1043
+ .btn-danger:active,
1044
+ .btn-danger.active {
1045
+ background-color: #942a25 \9;
1046
+ }
1047
+
1048
+ .btn-success {
1049
+ background-color: #5bb75b;
1050
+ *background-color: #51a351;
1051
+ background-image: -ms-linear-gradient(top, #62c462, #51a351);
1052
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
1053
+ background-image: -webkit-linear-gradient(top, #62c462, #51a351);
1054
+ background-image: -o-linear-gradient(top, #62c462, #51a351);
1055
+ background-image: -moz-linear-gradient(top, #62c462, #51a351);
1056
+ background-image: linear-gradient(top, #62c462, #51a351);
1057
+ background-repeat: repeat-x;
1058
+ border-color: #51a351 #51a351 #387038;
1059
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1060
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);
1061
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1062
+ }
1063
+
1064
+ .btn-success:hover,
1065
+ .btn-success:active,
1066
+ .btn-success.active,
1067
+ .btn-success.disabled,
1068
+ .btn-success[disabled] {
1069
+ background-color: #51a351;
1070
+ *background-color: #499249;
1071
+ }
1072
+
1073
+ .btn-success:active,
1074
+ .btn-success.active {
1075
+ background-color: #408140 \9;
1076
+ }
1077
+
1078
+ .btn-info {
1079
+ background-color: #49afcd;
1080
+ *background-color: #2f96b4;
1081
+ background-image: -ms-linear-gradient(top, #5bc0de, #2f96b4);
1082
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
1083
+ background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
1084
+ background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
1085
+ background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
1086
+ background-image: linear-gradient(top, #5bc0de, #2f96b4);
1087
+ background-repeat: repeat-x;
1088
+ border-color: #2f96b4 #2f96b4 #1f6377;
1089
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1090
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);
1091
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1092
+ }
1093
+
1094
+ .btn-info:hover,
1095
+ .btn-info:active,
1096
+ .btn-info.active,
1097
+ .btn-info.disabled,
1098
+ .btn-info[disabled] {
1099
+ background-color: #2f96b4;
1100
+ *background-color: #2a85a0;
1101
+ }
1102
+
1103
+ .btn-info:active,
1104
+ .btn-info.active {
1105
+ background-color: #24748c \9;
1106
+ }
1107
+
1108
+ .btn-inverse {
1109
+ background-color: #414141;
1110
+ *background-color: #222222;
1111
+ background-image: -ms-linear-gradient(top, #555555, #222222);
1112
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#222222));
1113
+ background-image: -webkit-linear-gradient(top, #555555, #222222);
1114
+ background-image: -o-linear-gradient(top, #555555, #222222);
1115
+ background-image: -moz-linear-gradient(top, #555555, #222222);
1116
+ background-image: linear-gradient(top, #555555, #222222);
1117
+ background-repeat: repeat-x;
1118
+ border-color: #222222 #222222 #000000;
1119
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1120
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0);
1121
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1122
+ }
1123
+
1124
+ .btn-inverse:hover,
1125
+ .btn-inverse:active,
1126
+ .btn-inverse.active,
1127
+ .btn-inverse.disabled,
1128
+ .btn-inverse[disabled] {
1129
+ background-color: #222222;
1130
+ *background-color: #151515;
1131
+ }
1132
+
1133
+ .btn-inverse:active,
1134
+ .btn-inverse.active {
1135
+ background-color: #080808 \9;
1136
+ }
1137
+
1138
+ button.btn,
1139
+ input[type="submit"].btn {
1140
+ *padding-top: 2px;
1141
+ *padding-bottom: 2px;
1142
+ }
1143
+
1144
+ button.btn::-moz-focus-inner,
1145
+ input[type="submit"].btn::-moz-focus-inner {
1146
+ padding: 0;
1147
+ border: 0;
1148
+ }
1149
+
1150
+ button.btn.btn-large,
1151
+ input[type="submit"].btn.btn-large {
1152
+ *padding-top: 7px;
1153
+ *padding-bottom: 7px;
1154
+ }
1155
+
1156
+ button.btn.btn-small,
1157
+ input[type="submit"].btn.btn-small {
1158
+ *padding-top: 3px;
1159
+ *padding-bottom: 3px;
1160
+ }
1161
+
1162
+ button.btn.btn-mini,
1163
+ input[type="submit"].btn.btn-mini {
1164
+ *padding-top: 1px;
1165
+ *padding-bottom: 1px;
1166
+ }
1167
+
1168
+ .btn-group {
1169
+ position: relative;
1170
+ *margin-left: .3em;
1171
+ *zoom: 1;
1172
+ }
1173
+
1174
+ .btn-group:before,
1175
+ .btn-group:after {
1176
+ display: table;
1177
+ content: "";
1178
+ }
1179
+
1180
+ .btn-group:after {
1181
+ clear: both;
1182
+ }
1183
+
1184
+ .btn-group:first-child {
1185
+ *margin-left: 0;
1186
+ }
1187
+
1188
+ .btn-group + .btn-group {
1189
+ margin-left: 5px;
1190
+ }
1191
+
1192
+ .btn-toolbar {
1193
+ margin-top: 9px;
1194
+ margin-bottom: 9px;
1195
+ }
1196
+
1197
+ .btn-toolbar .btn-group {
1198
+ display: inline-block;
1199
+ *display: inline;
1200
+ /* IE7 inline-block hack */
1201
+
1202
+ *zoom: 1;
1203
+ }
1204
+
1205
+ .btn-group > .btn {
1206
+ position: relative;
1207
+ float: left;
1208
+ margin-left: -1px;
1209
+ -webkit-border-radius: 0;
1210
+ -moz-border-radius: 0;
1211
+ border-radius: 0;
1212
+ }
1213
+
1214
+ .btn-group > .btn:first-child {
1215
+ margin-left: 0;
1216
+ -webkit-border-bottom-left-radius: 4px;
1217
+ border-bottom-left-radius: 4px;
1218
+ -webkit-border-top-left-radius: 4px;
1219
+ border-top-left-radius: 4px;
1220
+ -moz-border-radius-bottomleft: 4px;
1221
+ -moz-border-radius-topleft: 4px;
1222
+ }
1223
+
1224
+ .btn-group > .btn:last-child,
1225
+ .btn-group > .dropdown-toggle {
1226
+ -webkit-border-top-right-radius: 4px;
1227
+ border-top-right-radius: 4px;
1228
+ -webkit-border-bottom-right-radius: 4px;
1229
+ border-bottom-right-radius: 4px;
1230
+ -moz-border-radius-topright: 4px;
1231
+ -moz-border-radius-bottomright: 4px;
1232
+ }
1233
+
1234
+ .btn-group > .btn.large:first-child {
1235
+ margin-left: 0;
1236
+ -webkit-border-bottom-left-radius: 6px;
1237
+ border-bottom-left-radius: 6px;
1238
+ -webkit-border-top-left-radius: 6px;
1239
+ border-top-left-radius: 6px;
1240
+ -moz-border-radius-bottomleft: 6px;
1241
+ -moz-border-radius-topleft: 6px;
1242
+ }
1243
+
1244
+ .btn-group > .btn.large:last-child,
1245
+ .btn-group > .large.dropdown-toggle {
1246
+ -webkit-border-top-right-radius: 6px;
1247
+ border-top-right-radius: 6px;
1248
+ -webkit-border-bottom-right-radius: 6px;
1249
+ border-bottom-right-radius: 6px;
1250
+ -moz-border-radius-topright: 6px;
1251
+ -moz-border-radius-bottomright: 6px;
1252
+ }
1253
+
1254
+ .btn-group > .btn:hover,
1255
+ .btn-group > .btn:focus,
1256
+ .btn-group > .btn:active,
1257
+ .btn-group > .btn.active {
1258
+ z-index: 2;
1259
+ }
1260
+
1261
+ .btn-group .dropdown-toggle:active,
1262
+ .btn-group.open .dropdown-toggle {
1263
+ outline: 0;
1264
+ }
1265
+
1266
+ .btn-group > .dropdown-toggle {
1267
+ *padding-top: 4px;
1268
+ padding-right: 8px;
1269
+ *padding-bottom: 4px;
1270
+ padding-left: 8px;
1271
+ -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
1272
+ -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
1273
+ box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
1274
+ }
1275
+
1276
+ .btn-group > .btn-mini.dropdown-toggle {
1277
+ padding-right: 5px;
1278
+ padding-left: 5px;
1279
+ }
1280
+
1281
+ .btn-group > .btn-small.dropdown-toggle {
1282
+ *padding-top: 4px;
1283
+ *padding-bottom: 4px;
1284
+ }
1285
+
1286
+ .btn-group > .btn-large.dropdown-toggle {
1287
+ padding-right: 12px;
1288
+ padding-left: 12px;
1289
+ }
1290
+
1291
+ .btn-group.open .dropdown-toggle {
1292
+ background-image: none;
1293
+ -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
1294
+ -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
1295
+ box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
1296
+ }
1297
+
1298
+ .btn-group.open .btn.dropdown-toggle {
1299
+ background-color: #e6e6e6;
1300
+ }
1301
+
1302
+ .btn-group.open .btn-primary.dropdown-toggle {
1303
+ background-color: #0055cc;
1304
+ }
1305
+
1306
+ .btn-group.open .btn-warning.dropdown-toggle {
1307
+ background-color: #f89406;
1308
+ }
1309
+
1310
+ .btn-group.open .btn-danger.dropdown-toggle {
1311
+ background-color: #bd362f;
1312
+ }
1313
+
1314
+ .btn-group.open .btn-success.dropdown-toggle {
1315
+ background-color: #51a351;
1316
+ }
1317
+
1318
+ .btn-group.open .btn-info.dropdown-toggle {
1319
+ background-color: #2f96b4;
1320
+ }
1321
+
1322
+ .btn-group.open .btn-inverse.dropdown-toggle {
1323
+ background-color: #222222;
1324
+ }
1325
+
1326
+ .btn .caret {
1327
+ margin-top: 7px;
1328
+ margin-left: 0;
1329
+ }
1330
+
1331
+ .btn:hover .caret,
1332
+ .open.btn-group .caret {
1333
+ opacity: 1;
1334
+ filter: alpha(opacity=100);
1335
+ }
1336
+
1337
+ .btn-mini .caret {
1338
+ margin-top: 5px;
1339
+ }
1340
+
1341
+ .btn-small .caret {
1342
+ margin-top: 6px;
1343
+ }
1344
+
1345
+ .btn-large .caret {
1346
+ margin-top: 6px;
1347
+ border-top-width: 5px;
1348
+ border-right-width: 5px;
1349
+ border-left-width: 5px;
1350
+ }
1351
+
1352
+ .dropup .btn-large .caret {
1353
+ border-top: 0;
1354
+ border-bottom: 5px solid #000000;
1355
+ }
1356
+
1357
+ .btn-primary .caret,
1358
+ .btn-warning .caret,
1359
+ .btn-danger .caret,
1360
+ .btn-info .caret,
1361
+ .btn-success .caret,
1362
+ .btn-inverse .caret {
1363
+ border-top-color: #ffffff;
1364
+ border-bottom-color: #ffffff;
1365
+ opacity: 0.75;
1366
+ filter: alpha(opacity=75);
1367
+ }