kiteditor 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) hide show
  1. data/LICENSE +25 -0
  2. data/app/controllers/mercury/images_controller.rb +5 -0
  3. data/app/controllers/mercury_controller.rb +34 -0
  4. data/app/models/mercury/image.rb +17 -0
  5. data/app/views/layouts/mercury.html.erb +33 -0
  6. data/app/views/layouts/popup.html.haml +9 -0
  7. data/app/views/mercury/images/_list.html.haml +22 -0
  8. data/app/views/mercury/images/index.html.haml +4 -0
  9. data/app/views/mercury/images/index.js.erb +2 -0
  10. data/app/views/mercury/lightviews/about.html +11 -0
  11. data/app/views/mercury/modals/character.html +255 -0
  12. data/app/views/mercury/modals/htmleditor.html +13 -0
  13. data/app/views/mercury/modals/link.html +94 -0
  14. data/app/views/mercury/modals/media.html +1 -0
  15. data/app/views/mercury/modals/table.html +84 -0
  16. data/app/views/mercury/palettes/backcolor.html +73 -0
  17. data/app/views/mercury/palettes/forecolor.html +73 -0
  18. data/app/views/mercury/panels/history.html +3 -0
  19. data/app/views/mercury/panels/notes.html +3 -0
  20. data/app/views/mercury/panels/snippets.html +12 -0
  21. data/app/views/mercury/selects/formatblock.html +11 -0
  22. data/app/views/mercury/selects/style.html +5 -0
  23. data/app/views/mercury/snippets/example/options.html.erb +34 -0
  24. data/app/views/mercury/snippets/example/preview.html.erb +1 -0
  25. data/config/engine.rb +44 -0
  26. data/db/migrate/20110526035601_create_mercury_images.rb +11 -0
  27. data/features/loading/loading.feature +22 -0
  28. data/features/loading/navigating.feature +77 -0
  29. data/features/loading/user_interface.feature +67 -0
  30. data/features/regions/editable/advanced_editing.feature +0 -0
  31. data/features/regions/editable/basic_editing.feature +195 -0
  32. data/features/regions/editable/inserting_links.feature +98 -0
  33. data/features/regions/editable/inserting_media.feature +110 -0
  34. data/features/regions/editable/inserting_snippets.feature +102 -0
  35. data/features/regions/editable/inserting_special_characters.feature +24 -0
  36. data/features/regions/editable/inserting_tables.feature +109 -0
  37. data/features/regions/editable/pasting.feature +0 -0
  38. data/features/regions/editable/uploading_images.feature +0 -0
  39. data/features/regions/markupable/advanced_editing.feature +0 -0
  40. data/features/regions/markupable/basic_editing.feature +0 -0
  41. data/features/regions/markupable/inserting_links.feature +0 -0
  42. data/features/regions/markupable/inserting_media.feature +0 -0
  43. data/features/regions/markupable/inserting_snippets.feature +0 -0
  44. data/features/regions/markupable/inserting_special_characters.feature +0 -0
  45. data/features/regions/markupable/inserting_tables.feature +0 -0
  46. data/features/regions/markupable/uploading_images.feature +0 -0
  47. data/features/regions/snippetable/advanced_editing.feature +0 -0
  48. data/features/regions/snippetable/basic_editing.feature +0 -0
  49. data/features/regions/snippetable/inserting_snippets.feature +0 -0
  50. data/features/saving/saving.feature +33 -0
  51. data/features/step_definitions/debug_steps.rb +14 -0
  52. data/features/step_definitions/mercury_steps.rb +438 -0
  53. data/features/step_definitions/web_steps.rb +211 -0
  54. data/features/support/env.rb +46 -0
  55. data/features/support/mercury_contents.rb +25 -0
  56. data/features/support/mercury_selectors.rb +148 -0
  57. data/features/support/paths.rb +38 -0
  58. data/features/support/selectors.rb +44 -0
  59. data/lib/generators/mercury/install/install_generator.rb +49 -0
  60. data/lib/generators/mercury/install/templates/mongoid_paperclip_image.rb +17 -0
  61. data/lib/mercury/authentication.rb +8 -0
  62. data/lib/mercury-rails.rb +3 -0
  63. data/spec/javascripts/mercury/dialog_spec.js.coffee +281 -0
  64. data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +37 -0
  65. data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +37 -0
  66. data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +25 -0
  67. data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +30 -0
  68. data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +25 -0
  69. data/spec/javascripts/mercury/history_buffer_spec.js.coffee +76 -0
  70. data/spec/javascripts/mercury/lightview_spec.js.coffee +497 -0
  71. data/spec/javascripts/mercury/mercury_spec.js.coffee +132 -0
  72. data/spec/javascripts/mercury/modal_spec.js.coffee +504 -0
  73. data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +30 -0
  74. data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +29 -0
  75. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +220 -0
  76. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +167 -0
  77. data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +52 -0
  78. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +160 -0
  79. data/spec/javascripts/mercury/native_extensions_spec.js.coffee +60 -0
  80. data/spec/javascripts/mercury/page_editor_spec.js.coffee +750 -0
  81. data/spec/javascripts/mercury/palette_spec.js.coffee +49 -0
  82. data/spec/javascripts/mercury/panel_spec.js.coffee +185 -0
  83. data/spec/javascripts/mercury/region_spec.js.coffee +298 -0
  84. data/spec/javascripts/mercury/regions/editable_spec.js.coffee +561 -0
  85. data/spec/javascripts/mercury/regions/markupable_spec.js.coffee +367 -0
  86. data/spec/javascripts/mercury/regions/snippetable_spec.js.coffee +370 -0
  87. data/spec/javascripts/mercury/select_spec.js.coffee +49 -0
  88. data/spec/javascripts/mercury/snippet_spec.js.coffee +245 -0
  89. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +184 -0
  90. data/spec/javascripts/mercury/statusbar_spec.js.coffee +150 -0
  91. data/spec/javascripts/mercury/table_editor_spec.js.coffee +194 -0
  92. data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +90 -0
  93. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +360 -0
  94. data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +118 -0
  95. data/spec/javascripts/mercury/toolbar_spec.js.coffee +222 -0
  96. data/spec/javascripts/mercury/tooltip_spec.js.coffee +186 -0
  97. data/spec/javascripts/mercury/uploader_spec.js.coffee +514 -0
  98. data/spec/javascripts/spec_helper.js +513 -0
  99. data/spec/javascripts/templates/mercury/dialog.html +2 -0
  100. data/spec/javascripts/templates/mercury/dialogs/backcolor.html +5 -0
  101. data/spec/javascripts/templates/mercury/dialogs/forecolor.html +5 -0
  102. data/spec/javascripts/templates/mercury/dialogs/formatblock.html +3 -0
  103. data/spec/javascripts/templates/mercury/dialogs/snippetpanel.html +16 -0
  104. data/spec/javascripts/templates/mercury/dialogs/style.html +3 -0
  105. data/spec/javascripts/templates/mercury/lightview.html +13 -0
  106. data/spec/javascripts/templates/mercury/modal.html +13 -0
  107. data/spec/javascripts/templates/mercury/modals/htmleditor.html +5 -0
  108. data/spec/javascripts/templates/mercury/modals/insertcharacter.html +5 -0
  109. data/spec/javascripts/templates/mercury/modals/insertlink.html +30 -0
  110. data/spec/javascripts/templates/mercury/modals/insertmedia.html +35 -0
  111. data/spec/javascripts/templates/mercury/modals/insertsnippet.html +6 -0
  112. data/spec/javascripts/templates/mercury/modals/inserttable.html +27 -0
  113. data/spec/javascripts/templates/mercury/page_editor.html +35 -0
  114. data/spec/javascripts/templates/mercury/palette.html +16 -0
  115. data/spec/javascripts/templates/mercury/panel.html +16 -0
  116. data/spec/javascripts/templates/mercury/region.html +2 -0
  117. data/spec/javascripts/templates/mercury/regions/editable.html +3 -0
  118. data/spec/javascripts/templates/mercury/regions/snippetable.html +4 -0
  119. data/spec/javascripts/templates/mercury/select.html +16 -0
  120. data/spec/javascripts/templates/mercury/snippet.html +1 -0
  121. data/spec/javascripts/templates/mercury/snippet_toolbar.html +16 -0
  122. data/spec/javascripts/templates/mercury/statusbar.html +8 -0
  123. data/spec/javascripts/templates/mercury/table_editor.html +65 -0
  124. data/spec/javascripts/templates/mercury/toolbar.button.html +64 -0
  125. data/spec/javascripts/templates/mercury/toolbar.button_group.html +9 -0
  126. data/spec/javascripts/templates/mercury/toolbar.expander.html +18 -0
  127. data/spec/javascripts/templates/mercury/toolbar.html +11 -0
  128. data/spec/javascripts/templates/mercury/tooltip.html +12 -0
  129. data/spec/javascripts/templates/mercury/uploader.html +11 -0
  130. data/vendor/assets/images/mercury/button.png +0 -0
  131. data/vendor/assets/images/mercury/close.png +0 -0
  132. data/vendor/assets/images/mercury/default-snippet.png +0 -0
  133. data/vendor/assets/images/mercury/loading-dark.gif +0 -0
  134. data/vendor/assets/images/mercury/loading-light.gif +0 -0
  135. data/vendor/assets/images/mercury/missing-image.png +0 -0
  136. data/vendor/assets/images/mercury/search-icon.png +0 -0
  137. data/vendor/assets/images/mercury/temp-logo.png +0 -0
  138. data/vendor/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  139. data/vendor/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  140. data/vendor/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  141. data/vendor/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  142. data/vendor/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  143. data/vendor/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  144. data/vendor/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  145. data/vendor/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  146. data/vendor/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  147. data/vendor/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  148. data/vendor/assets/images/mercury/toolbar/primary/preview.png +0 -0
  149. data/vendor/assets/images/mercury/toolbar/primary/redo.png +0 -0
  150. data/vendor/assets/images/mercury/toolbar/primary/save.png +0 -0
  151. data/vendor/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
  152. data/vendor/assets/images/mercury/toolbar/primary/undo.png +0 -0
  153. data/vendor/assets/images/mercury/toolbar/snippetable/buttons.png +0 -0
  154. data/vendor/assets/javascripts/mercury/dependencies/jquery-1.7.js +9300 -0
  155. data/vendor/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +1328 -0
  156. data/vendor/assets/javascripts/mercury/dependencies/jquery-ui-1.8.18.custom.min.js +356 -0
  157. data/vendor/assets/javascripts/mercury/dependencies/jquery-ui.1.8.13.custom.min.js +356 -0
  158. data/vendor/assets/javascripts/mercury/dependencies/jquery.additions.js +206 -0
  159. data/vendor/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +527 -0
  160. data/vendor/assets/javascripts/mercury/dependencies/liquidmetal.js +88 -0
  161. data/vendor/assets/javascripts/mercury/dependencies/showdown.js +1340 -0
  162. data/vendor/assets/javascripts/mercury/dialog.js.coffee +159 -0
  163. data/vendor/assets/javascripts/mercury/dialogs/backcolor.js.coffee +6 -0
  164. data/vendor/assets/javascripts/mercury/dialogs/forecolor.js.coffee +6 -0
  165. data/vendor/assets/javascripts/mercury/dialogs/formatblock.js.coffee +4 -0
  166. data/vendor/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +10 -0
  167. data/vendor/assets/javascripts/mercury/dialogs/style.js.coffee +4 -0
  168. data/vendor/assets/javascripts/mercury/finalize.js.coffee +3 -0
  169. data/vendor/assets/javascripts/mercury/history_buffer.js.coffee +30 -0
  170. data/vendor/assets/javascripts/mercury/lightview.js.coffee +205 -0
  171. data/vendor/assets/javascripts/mercury/locales/da.locale.js.coffee +0 -0
  172. data/vendor/assets/javascripts/mercury/locales/de.locale.js.coffee +206 -0
  173. data/vendor/assets/javascripts/mercury/locales/es.locale.js.coffee +211 -0
  174. data/vendor/assets/javascripts/mercury/locales/example.local.js.coffee +211 -0
  175. data/vendor/assets/javascripts/mercury/locales/fr.locale.js.coffee +211 -0
  176. data/vendor/assets/javascripts/mercury/locales/it.locale.js.coffee +208 -0
  177. data/vendor/assets/javascripts/mercury/locales/ko.local.js.coffee +206 -0
  178. data/vendor/assets/javascripts/mercury/locales/nl.locale.js.coffee +206 -0
  179. data/vendor/assets/javascripts/mercury/locales/pt.locale.js.coffee +211 -0
  180. data/vendor/assets/javascripts/mercury/locales/sv.local.js.coffee +209 -0
  181. data/vendor/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +213 -0
  182. data/vendor/assets/javascripts/mercury/mercury.js.coffee +109 -0
  183. data/vendor/assets/javascripts/mercury/modal.js.coffee +204 -0
  184. data/vendor/assets/javascripts/mercury/modals/htmleditor.js.coffee +11 -0
  185. data/vendor/assets/javascripts/mercury/modals/insertcharacter.js.coffee +4 -0
  186. data/vendor/assets/javascripts/mercury/modals/insertlink.js.coffee +95 -0
  187. data/vendor/assets/javascripts/mercury/modals/insertmedia.js.coffee +107 -0
  188. data/vendor/assets/javascripts/mercury/modals/insertsnippet.js.coffee +12 -0
  189. data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +54 -0
  190. data/vendor/assets/javascripts/mercury/native_extensions.js.coffee +55 -0
  191. data/vendor/assets/javascripts/mercury/page_editor.js.coffee +241 -0
  192. data/vendor/assets/javascripts/mercury/palette.js.coffee +29 -0
  193. data/vendor/assets/javascripts/mercury/panel.js.coffee +115 -0
  194. data/vendor/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +28 -0
  195. data/vendor/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +9 -0
  196. data/vendor/assets/javascripts/mercury/region.js.coffee +107 -0
  197. data/vendor/assets/javascripts/mercury/regions/editable.js.coffee +600 -0
  198. data/vendor/assets/javascripts/mercury/regions/markupable.js.coffee +398 -0
  199. data/vendor/assets/javascripts/mercury/regions/simple.js.coffee +339 -0
  200. data/vendor/assets/javascripts/mercury/regions/snippetable.js.coffee +124 -0
  201. data/vendor/assets/javascripts/mercury/select.js.coffee +44 -0
  202. data/vendor/assets/javascripts/mercury/snippet.js.coffee +104 -0
  203. data/vendor/assets/javascripts/mercury/snippet_toolbar.js.coffee +72 -0
  204. data/vendor/assets/javascripts/mercury/statusbar.js.coffee +51 -0
  205. data/vendor/assets/javascripts/mercury/support/history.js +1 -0
  206. data/vendor/assets/javascripts/mercury/table_editor.js.coffee +265 -0
  207. data/vendor/assets/javascripts/mercury/toolbar.button.js.coffee +173 -0
  208. data/vendor/assets/javascripts/mercury/toolbar.button_group.js.coffee +42 -0
  209. data/vendor/assets/javascripts/mercury/toolbar.expander.js.coffee +56 -0
  210. data/vendor/assets/javascripts/mercury/toolbar.js.coffee +86 -0
  211. data/vendor/assets/javascripts/mercury/tooltip.js.coffee +74 -0
  212. data/vendor/assets/javascripts/mercury/uploader.js.coffee +227 -0
  213. data/vendor/assets/javascripts/mercury.js +479 -0
  214. data/vendor/assets/javascripts/mercury_loader.js +193 -0
  215. data/vendor/assets/javascripts/mercury_overrides.js +6 -0
  216. data/vendor/assets/javascripts/popup.js +8 -0
  217. data/vendor/assets/stylesheets/mercury/all_images.css.erb +89 -0
  218. data/vendor/assets/stylesheets/mercury/dialog.css +208 -0
  219. data/vendor/assets/stylesheets/mercury/lightview.css +151 -0
  220. data/vendor/assets/stylesheets/mercury/mercury.css +151 -0
  221. data/vendor/assets/stylesheets/mercury/modal.css +183 -0
  222. data/vendor/assets/stylesheets/mercury/statusbar.css +32 -0
  223. data/vendor/assets/stylesheets/mercury/toolbar.css +304 -0
  224. data/vendor/assets/stylesheets/mercury/tooltip.css +26 -0
  225. data/vendor/assets/stylesheets/mercury/uploader.css +111 -0
  226. data/vendor/assets/stylesheets/mercury.css +28 -0
  227. data/vendor/assets/stylesheets/mercury_overrides.css +17 -0
  228. data/vendor/assets/stylesheets/popup.css.erb +37 -0
  229. metadata +634 -0
@@ -0,0 +1,151 @@
1
+ /*
2
+ *= require_self
3
+ *= require ./dialog
4
+ *= require ./lightview
5
+ *= require ./modal
6
+ *= require ./statusbar
7
+ *= require ./toolbar
8
+ *= require ./tooltip
9
+ *= require ./uploader
10
+ *= require ./all_images
11
+ */
12
+
13
+ /*
14
+ * General Layout
15
+ *---------------------------------------------------------------------------*/
16
+ html, body {
17
+ -webkit-transition: -webkit-transform 3s;
18
+ margin: 0;
19
+ padding: 0;
20
+ overflow: hidden;
21
+ }
22
+ .mercury-iframe {
23
+ position: absolute;
24
+ top: 0;
25
+ width: 100%;
26
+ visibility: hidden;
27
+ }
28
+ .mercury-focusable {
29
+ position: absolute;
30
+ opacity: 0;
31
+ }
32
+
33
+ /*
34
+ * Forms
35
+ *---------------------------------------------------------------------------*/
36
+ form,
37
+ form ul,
38
+ form ol,
39
+ form li,
40
+ form fieldset,
41
+ form p,
42
+ .filter {
43
+ margin: 0;
44
+ padding: 0;
45
+ }
46
+ form abbr {
47
+ border: 0;
48
+ font-variant: normal;
49
+ }
50
+ form fieldset {
51
+ margin-bottom: 10px;
52
+ background: #F6F6F6;
53
+ border: 1px solid #CCC;
54
+ border-radius: 7px;
55
+ -moz-border-radius: 7px;
56
+ }
57
+ form fieldset:last-child {
58
+ margin-bottom: 0;
59
+ }
60
+ form fieldset legend {
61
+ font-weight: bold;
62
+ margin-left: 10px;
63
+ margin-bottom: -4px;
64
+ }
65
+ form ol {
66
+ margin: 12px 9px;
67
+ }
68
+ form ol li {
69
+ display: block;
70
+ margin-bottom: 10px;
71
+ }
72
+ form label {
73
+ display: block;
74
+ float: left;
75
+ width: 23%;
76
+ margin-right: 9px;
77
+ text-align: right;
78
+ line-height: 27px;
79
+ font-size: 1.1em;
80
+ overflow: hidden;
81
+ text-overflow: ellipsis;
82
+ white-space: nowrap;
83
+ }
84
+ form label input {
85
+ width: auto !important;
86
+ margin: 0 5px 0 2px !important;
87
+ }
88
+ form select,
89
+ form input[type=text],
90
+ form input[type=password],
91
+ form textarea,
92
+ form input.text {
93
+ margin: 0;
94
+ border: 2px solid #CCC;
95
+ padding: 2px 4px;
96
+ font-family: Arial, Geneva, sans-serif;
97
+ font-size: 1.5em;
98
+ width: 74%;
99
+ box-sizing: border-box;
100
+ -moz-box-sizing: border-box;
101
+ -webkit-box-sizing: border-box;
102
+ }
103
+ form li.boolean {
104
+ margin-left: 23%;
105
+ padding-left: 9px;
106
+ }
107
+ form li.boolean label {
108
+ width: auto;
109
+ }
110
+ form fieldset.buttons {
111
+ clear: both;
112
+ padding: 0;
113
+ background: none;
114
+ border: none;
115
+ text-align: left;
116
+ }
117
+ form fieldset.buttons ol {
118
+ margin: 0 -2px 0 0;
119
+ float: right;
120
+ }
121
+ form fieldset.buttons ol li {
122
+ float: left;
123
+ padding-left: 0.5em;
124
+ padding-right: 0;
125
+ }
126
+ form fieldset.buttons .commit {
127
+ margin: 0;
128
+ }
129
+ form fieldset.buttons .commit input {
130
+ padding: 8px 14px 9px !important;
131
+ font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', sans-serif;
132
+ font-size: 1.3em;
133
+ background-color: #222;
134
+ background-repeat: repeat-x;
135
+ display: inline-block;
136
+ color: #FFF;
137
+ text-decoration: none;
138
+ -moz-border-radius: 5px;
139
+ -webkit-border-radius: 5px;
140
+ -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
141
+ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
142
+ text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.25);
143
+ border: 0;
144
+ border-bottom: 1px solid rgba(0, 0, 0, 0.25);
145
+ position: relative;
146
+ cursor: pointer;
147
+ line-height: normal;
148
+ }
149
+ form fieldset.buttons .commit input:hover {
150
+ background-color: #000;
151
+ }
@@ -0,0 +1,183 @@
1
+ /*
2
+ * Modal
3
+ *----------------------------------------------------------------------------*/
4
+ .mercury-modal-overlay {
5
+ position: fixed;
6
+ z-index: 10040;
7
+ top: 0;
8
+ left: 0;
9
+ width: 100%;
10
+ height: 100%;
11
+ opacity: 0;
12
+ display: none;
13
+ background: rgba(0,0,0, .65);
14
+ }
15
+ .mercury-modal {
16
+ position: fixed;
17
+ z-index: 10050;
18
+ top: 0;
19
+ width: 500px;
20
+ overflow: hidden;
21
+ padding: 0 0 10px;
22
+ background: #EFEFEF;
23
+ -webkit-border-bottom-left-radius: 4px;
24
+ -webkit-border-bottom-right-radius: 4px;
25
+ -moz-border-radius-bottomleft: 4px;
26
+ -moz-border-radius-bottomright: 4px;
27
+ border-bottom-left-radius: 4px;
28
+ border-bottom-right-radius: 4px;
29
+ -moz-box-shadow: 0 0 40px rgba(0, 0, 0, .9);
30
+ box-shadow: 0 0 40px rgba(0, 0, 0, .9);
31
+ font: normal normal normal 12px/normal Helvetica, Tahoma, Arial, sans-serif;
32
+ }
33
+ .mercury-modal.loading .mercury-modal-content-container {
34
+ background-color: #EFEFEF;
35
+ background-repeat: no-repeat;
36
+ background-position: center;
37
+ }
38
+ .mercury-modal h1.mercury-modal-title {
39
+ -webkit-user-select: none;
40
+ -moz-user-select: none;
41
+ user-select: none;
42
+ margin: 0;
43
+ padding: 2px 10px 0 10px;
44
+ background: #DDD;
45
+ border-bottom: 1px solid #CCC;
46
+ white-space: nowrap;
47
+ font-size: 14px;
48
+ line-height: 23px;
49
+ overflow: hidden;
50
+ }
51
+ .mercury-modal h1.mercury-modal-title:after {
52
+ content: '\00a0';
53
+ display: block;
54
+ visibility: hidden;
55
+ clear: both;
56
+ height: 0;
57
+ }
58
+ .mercury-modal h1.mercury-modal-title span {
59
+ float: left;
60
+ color: #000;
61
+ text-shadow: #EEE 1px 1px 0;
62
+ }
63
+ .mercury-modal h1.mercury-modal-title a {
64
+ display: block;
65
+ float: right;
66
+ font-size: 10px;
67
+ cursor: pointer;
68
+ color: #666;
69
+ padding: 0 4px;
70
+ line-height: 23px;
71
+ }
72
+ .mercury-modal h1.mercury-modal-title a:hover {
73
+ color: #333;
74
+ }
75
+ .mercury-modal .mercury-modal-content-container {
76
+ float: left;
77
+ width: 100%;
78
+ }
79
+ .mercury-modal .mercury-modal-content {
80
+ position: relative;
81
+ overflow: auto;
82
+ float: left;
83
+ box-sizing: border-box;
84
+ -moz-box-sizing: border-box;
85
+ -webkit-box-sizing: border-box;
86
+ padding: 20px 20px 10px;
87
+ font-family: Helvetica, Tahoma, Arial, sans-serif;
88
+ color: #000;
89
+ }
90
+ .mercury-modal .mercury-modal-content:after {
91
+ display: block;
92
+ clear: both;
93
+ content: '\00a0';
94
+ visibility: hidden;
95
+ overflow: hidden;
96
+ height: 0;
97
+ }
98
+ .mercury-modal .mercury-display-pane-container {
99
+ overflow: auto;
100
+ margin: -20px -20px 0;
101
+ padding: 20px 20px 10px;
102
+ }
103
+ .mercury-modal .mercury-display-pane-container .mercury-display-pane {
104
+ float: left;
105
+ }
106
+ .mercury-modal .mercury-display-controls {
107
+ padding: 15px 0 0;
108
+ border-top: 1px solid #CCC;
109
+ text-align: right;
110
+ }
111
+ /*
112
+ * Forms
113
+ *----------------------------------------------------------------------------*/
114
+ .mercury-modal textarea {
115
+ resize: none;
116
+ padding: 0;
117
+ box-sizing: border-box;
118
+ -moz-box-sizing: border-box;
119
+ -webkit-box-sizing: border-box;
120
+ }
121
+ /*
122
+ * Specific Modals (eg. htmlEditor)
123
+ *----------------------------------------------------------------------------*/
124
+ /* html editor */
125
+ #mercury_html_editor textarea {
126
+ margin: 0 0 -2px 0;
127
+ padding: 0;
128
+ border: 2px solid #CCC;
129
+ width: 100%;
130
+ }
131
+ #mercury_html_editor .mercury-modal-controls {
132
+ border: 0;
133
+ margin-top: -2px;
134
+ }
135
+ /* character */
136
+ #mercury_character .character {
137
+ float: left;
138
+ width: 20px;
139
+ height: 20px;
140
+ border: 1px solid #999;
141
+ background: #FFF;
142
+ margin: 0 2px 2px 0;
143
+ text-align: center;
144
+ font-size: 11pt;
145
+ line-height: 23px;
146
+ cursor: pointer;
147
+ }
148
+ #mercury_character .character:hover {
149
+ position: relative;
150
+ margin: -11px -5px 1px -5px;
151
+ width: 32px;
152
+ height: 32px;
153
+ font-size: 19pt;
154
+ line-height: 35px;
155
+ background: #DDD;
156
+ }
157
+ /* table */
158
+ #mercury_table #table_display {
159
+ width: 285px;
160
+ height: 285px;
161
+ float: left;
162
+ padding: 10px;
163
+ background: #F6F6F6;
164
+ border: 1px solid #CCC;
165
+ border-radius: 7px;
166
+ -moz-border-radius: 7px;
167
+ overflow: auto;
168
+ }
169
+ #mercury_table #table_display table {
170
+ width: 100%;
171
+ height: 100%;
172
+ }
173
+ #mercury_table #table_display td.selected {
174
+ background: #09F;
175
+ }
176
+ #mercury_table #table_options {
177
+ width: 383px;
178
+ float: left;
179
+ margin-left: 10px;
180
+ }
181
+ #mercury_table #table_options .inputs:first-child label {
182
+ width: 36%
183
+ }
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Statusbar
3
+ *----------------------------------------------------------------------------*/
4
+ .mercury-statusbar {
5
+ position: fixed;
6
+ -webkit-user-select: none;
7
+ -moz-user-select: none;
8
+ user-select: none;
9
+ box-sizing: border-box;
10
+ -moz-box-sizing: border-box;
11
+ -webkit-box-sizing: border-box;
12
+ z-index: 10020;
13
+ bottom: 0;
14
+ left: 0;
15
+ width: 100%;
16
+ height: 23px;
17
+ cursor: default;
18
+ padding: 0 10px;
19
+ background: #E2E1E2;
20
+ border-top: 1px solid #727272;
21
+ font-family: Helvetica, Tahoma, Arial, sans-serif;
22
+ font-size: 8.5pt;
23
+ line-height: 23px;
24
+ color: #222;
25
+ }
26
+ .mercury-statusbar .mercury-statusbar-about {
27
+ display: block;
28
+ float: right;
29
+ color: #333;
30
+ text-shadow: #EEE 0 1px 0;
31
+ text-decoration: none;
32
+ }
@@ -0,0 +1,304 @@
1
+ /*
2
+ * Toolbar
3
+ *----------------------------------------------------------------------------*/
4
+ .mercury-toolbar-container {
5
+ user-select: none;
6
+ position: fixed;
7
+ z-index: 10010;
8
+ top: 0;
9
+ left: 0;
10
+ width: 100%;
11
+ border-bottom: 1px solid #E2E1E2;
12
+ }
13
+ .mercury-toolbar {
14
+ -webkit-user-select: none;
15
+ -moz-user-select: none;
16
+ user-select: none;
17
+ background: #DDD;
18
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(198,198,198)), color-stop(1, rgb(226,225,226)));
19
+ background-image: -moz-linear-gradient(center bottom, rgb(198,198,198) 0%, rgb(226,225,226) 100%);
20
+ border-bottom: 1px solid #727272;
21
+ cursor: default;
22
+ }
23
+ .mercury-toolbar-button-container {
24
+ float: left;
25
+ }
26
+ .mercury-toolbar-expander {
27
+ position: absolute;
28
+ display: none;
29
+ right: 0;
30
+ border-left: 1px solid #727272;
31
+ }
32
+ .mercury-button,
33
+ .mercury-button-group,
34
+ .mercury-separator,
35
+ .mercury-line-separator {
36
+ display: block;
37
+ float: left;
38
+ }
39
+ .mercury-separator,
40
+ .mercury-line-separator {
41
+ width: 1px;
42
+ border: 0;
43
+ margin: 0;
44
+ }
45
+ .mercury-line-separator {
46
+ width: 1px;
47
+ background: #727272;
48
+ }
49
+ .mercury-button em {
50
+ display: block;
51
+ font-style: normal;
52
+ }
53
+ .mercury-expander {
54
+ padding: 5px 0;
55
+ border-radius: 4px;
56
+ -moz-border-radius: 4px;
57
+ }
58
+ .mercury-expander .mercury-expander-button {
59
+ cursor: default;
60
+ white-space: nowrap;
61
+ padding: 0 20px 0 10px;
62
+ }
63
+ .mercury-expander .mercury-expander-button:hover {
64
+ background: #CCC;
65
+ }
66
+ .mercury-expander .mercury-expander-button em {
67
+ display: inline-block;
68
+ float: left;
69
+ width: 20px;
70
+ height: 20px;
71
+ margin-right: 10px;
72
+ -webkit-background-size: 100% 100%;
73
+ -moz-background-size: 100% 100%;
74
+ background-size: 100% 100%;
75
+ }
76
+ .mercury-expander .mercury-expander-button span {
77
+ display: inline-block;
78
+ line-height: 20px;
79
+ }
80
+ .disabled .mercury-button,
81
+ .mercury-button.disabled {
82
+ opacity: 0.33;
83
+ }
84
+ /*
85
+ * Toolbar: Primary Toolbar
86
+ *----------------------------------------------------------------------------*/
87
+ .mercury-primary-toolbar {
88
+ position: relative;
89
+ height: 58px;
90
+ overflow: hidden;
91
+ text-shadow: #EEE 0 1px 0;
92
+ }
93
+ .mercury-primary-toolbar .mercury-button {
94
+ display: inline-block;
95
+ height: 58px;
96
+ margin-bottom: 20px;
97
+ min-width: 55px;
98
+ text-align: center;
99
+ white-space: nowrap;
100
+ text-decoration: none;
101
+ font-family: Helvetica, Tahoma, Arial, sans-serif;
102
+ }
103
+ .mercury-primary-toolbar .mercury-button.pressed {
104
+ background-repeat: no-repeat;
105
+ }
106
+ .mercury-primary-toolbar .mercury-button em {
107
+ margin: 0 -5px;
108
+ height: 15px;
109
+ padding-top: 41px;
110
+ background-repeat: no-repeat;
111
+ background-position: 50% 7px;
112
+ font-size: 8.5pt;
113
+ line-height: 15px;
114
+ color: #222;
115
+ }
116
+ .mercury-primary-toolbar .mercury-button.active em {
117
+ background-position: 51% 8px;
118
+ }
119
+
120
+ .mercury-primary-toolbar .mercury-separator,
121
+ .mercury-primary-toolbar .mercury-line-separator {
122
+ display: inline-block;
123
+ width: 1px;
124
+ height: 50px;
125
+ margin: 5px 20px 28px;
126
+ }
127
+ .mercury-primary-toolbar .mercury-toolbar-button-container {
128
+ white-space: nowrap;
129
+ padding-right: 10px;
130
+ }
131
+ .mercury-primary-toolbar .mercury-toolbar-expander {
132
+ width: 12px;
133
+ height: 58px;
134
+ background-color: rgba(0, 0, 0, .2);
135
+ background-repeat: no-repeat;
136
+ }
137
+ /*
138
+ * Toolbar: Editable Region Toolbar
139
+ *----------------------------------------------------------------------------*/
140
+ .mercury-editable-toolbar {
141
+ padding: 3px 13px 1px 10px;
142
+ border-top: 1px solid #E2E1E2;
143
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(198,198,198)), color-stop(1, rgb(210,210,209)));
144
+ background-image: -moz-linear-gradient(center bottom, rgb(198,198,198) 0%, rgb(210,210,209) 100%);
145
+ }
146
+ .mercury-editable-toolbar:after {
147
+ content: '\00a0';
148
+ display: block;
149
+ visibility: hidden;
150
+ clear: both;
151
+ height: 0;
152
+ }
153
+ .mercury-editable-toolbar .mercury-separator,
154
+ .mercury-editable-toolbar .mercury-line-separator {
155
+ height: 18px;
156
+ padding: 0;
157
+ margin: 0 7px 2px;
158
+ }
159
+ .mercury-editable-toolbar .mercury-separator {
160
+ margin: 0 3px 2px;
161
+ }
162
+ .mercury-editable-toolbar .mercury-button-group {
163
+ white-space: nowrap;
164
+ }
165
+ .mercury-editable-toolbar .mercury-button-group .mercury-button:first-child {
166
+ width: 23px;
167
+ }
168
+ .mercury-editable-toolbar .mercury-button {
169
+ width: 22px;
170
+ height: 18px;
171
+ margin: 0 0 2px;
172
+ }
173
+ .mercury-editable-toolbar .mercury-button em {
174
+ display: none;
175
+ }
176
+ .mercury-editable-toolbar .mercury-button-palette {
177
+ width: 23px;
178
+ background-position: 0 -36px;
179
+ }
180
+ .mercury-editable-toolbar .mercury-button-select {
181
+ width: auto !important;
182
+ overflow: hidden;
183
+ padding-left: 6px;
184
+ background-position: -24px -36px;
185
+ }
186
+ .mercury-editable-toolbar .mercury-button-select em {
187
+ display: block;
188
+ padding-right: 15px;
189
+ background-position: right -36px;
190
+ cursor: pointer;
191
+ white-space: nowrap;
192
+ font-style: normal;
193
+ font-family: Helvetica, Tahoma, Arial, sans-serif;
194
+ font-size: 8.5pt;
195
+ line-height: 19px;
196
+ color: #222;
197
+ }
198
+ /* default buttons */
199
+ .mercury-editable-toolbar .mercury-bold-button { background-position: 0 0 }
200
+ .mercury-editable-toolbar .mercury-bold-button.active { background-position: 0 -18px }
201
+ .mercury-editable-toolbar .mercury-italic-button { background-position: -23px 0 }
202
+ .mercury-editable-toolbar .mercury-italic-button.active { background-position: -23px -18px }
203
+ .mercury-editable-toolbar .mercury-overline-button { background-position: -45px 0 }
204
+ .mercury-editable-toolbar .mercury-overline-button.active { background-position: -45px -18px }
205
+ .mercury-editable-toolbar .mercury-strikethrough-button { background-position: -67px 0 }
206
+ .mercury-editable-toolbar .mercury-strikethrough-button.active { background-position: -67px -18px }
207
+ .mercury-editable-toolbar .mercury-underline-button { background-position: -89px 0 }
208
+ .mercury-editable-toolbar .mercury-underline-button.active { background-position: -89px -18px }
209
+ .mercury-editable-toolbar .mercury-subscript-button { background-position: -112px 0 }
210
+ .mercury-editable-toolbar .mercury-subscript-button.active { background-position: -112px -18px }
211
+ .mercury-editable-toolbar .mercury-superscript-button { background-position: -135px 0 }
212
+ .mercury-editable-toolbar .mercury-superscript-button.active { background-position: -135px -18px }
213
+ .mercury-editable-toolbar .mercury-justifyLeft-button { background-position: -158px 0 }
214
+ .mercury-editable-toolbar .mercury-justifyLeft-button.active { background-position: -158px -18px }
215
+ .mercury-editable-toolbar .mercury-justifyCenter-button { background-position: -181px 0 }
216
+ .mercury-editable-toolbar .mercury-justifyCenter-button.active { background-position: -181px -18px }
217
+ .mercury-editable-toolbar .mercury-justifyRight-button { background-position: -203px 0 }
218
+ .mercury-editable-toolbar .mercury-justifyRight-button.active { background-position: -203px -18px }
219
+ .mercury-editable-toolbar .mercury-justifyFull-button { background-position: -225px 0 }
220
+ .mercury-editable-toolbar .mercury-justifyFull-button.active { background-position: -225px -18px }
221
+ .mercury-editable-toolbar .mercury-insertUnorderedList-button { background-position: -248px 0 }
222
+ .mercury-editable-toolbar .mercury-insertUnorderedList-button.active { background-position: -248px -18px }
223
+ .mercury-editable-toolbar .mercury-insertOrderedList-button { background-position: -271px 0 }
224
+ .mercury-editable-toolbar .mercury-insertOrderedList-button.active { background-position: -271px -18px }
225
+ .mercury-editable-toolbar .mercury-outdent-button { background-position: -294px 0 }
226
+ .mercury-editable-toolbar .mercury-outdent-button.active { background-position: -294px -18px }
227
+ .mercury-editable-toolbar .mercury-indent-button { background-position: -317px 0 }
228
+ .mercury-editable-toolbar .mercury-indent-button.active { background-position: -317px -18px }
229
+ .mercury-editable-toolbar .mercury-insertRowBefore-button { background-position: -340px 0 }
230
+ .mercury-editable-toolbar .mercury-insertRowBefore-button.active { background-position: -340px -18px }
231
+ .mercury-editable-toolbar .mercury-insertRowAfter-button { background-position: -363px 0 }
232
+ .mercury-editable-toolbar .mercury-insertRowAfter-button.active { background-position: -363px -18px }
233
+ .mercury-editable-toolbar .mercury-deleteRow-button { background-position: -385px 0 }
234
+ .mercury-editable-toolbar .mercury-deleteRow-button.active { background-position: -385px -18px }
235
+ .mercury-editable-toolbar .mercury-insertColumnBefore-button { background-position: -407px 0 }
236
+ .mercury-editable-toolbar .mercury-insertColumnBefore-button.active { background-position: -407px -18px }
237
+ .mercury-editable-toolbar .mercury-insertColumnAfter-button { background-position: -429px 0 }
238
+ .mercury-editable-toolbar .mercury-insertColumnAfter-button.active { background-position: -429px -18px }
239
+ .mercury-editable-toolbar .mercury-deleteColumn-button { background-position: -451px 0 }
240
+ .mercury-editable-toolbar .mercury-deleteColumn-button.active { background-position: -451px -18px }
241
+ .mercury-editable-toolbar .mercury-increaseColspan-button { background-position: -474px 0; width: 23px }
242
+ .mercury-editable-toolbar .mercury-increaseColspan-button.active { background-position: -474px -18px }
243
+ .mercury-editable-toolbar .mercury-decreaseColspan-button { background-position: -497px 0 }
244
+ .mercury-editable-toolbar .mercury-decreaseColspan-button.active { background-position: -497px -18px }
245
+ .mercury-editable-toolbar .mercury-increaseRowspan-button { background-position: -520px 0 }
246
+ .mercury-editable-toolbar .mercury-increaseRowspan-button.active { background-position: -520px -18px }
247
+ .mercury-editable-toolbar .mercury-decreaseRowspan-button { background-position: -542px 0 }
248
+ .mercury-editable-toolbar .mercury-decreaseRowspan-button.active { background-position: -542px -18px }
249
+ .mercury-editable-toolbar .mercury-horizontalRule-button { background-position: -564px 0 }
250
+ .mercury-editable-toolbar .mercury-horizontalRule-button.active { background-position: -564px -18px }
251
+ .mercury-editable-toolbar .mercury-removeFormatting-button { background-position: -588px 0 }
252
+ .mercury-editable-toolbar .mercury-removeFormatting-button.active { background-position: -588px -18px }
253
+ .mercury-editable-toolbar .mercury-htmlEditor-button { background-position: -612px 0 }
254
+ .mercury-editable-toolbar .mercury-htmlEditor-button.active { background-position: -612px -18px }
255
+ /*
256
+ * Toolbar: Snippetable Region Toolbar
257
+ *----------------------------------------------------------------------------*/
258
+ .mercury-snippet-toolbar {
259
+ position: absolute;
260
+ top: 100px;
261
+ left: 15px;
262
+ border: 1px solid #727272;
263
+ border-radius: 3px;
264
+ -moz-border-radius: 3px;
265
+ box-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
266
+ padding: 3px 7px 1px 7px;
267
+ }
268
+ .mercury-snippet-toolbar:after {
269
+ content: '\00a0';
270
+ display: block;
271
+ visibility: hidden;
272
+ clear: both;
273
+ height: 0;
274
+ }
275
+ .mercury-snippet-toolbar .mercury-separator,
276
+ .mercury-snippet-toolbar .mercury-line-separator {
277
+ height: 18px;
278
+ padding: 0;
279
+ margin: 0 7px 2px;
280
+ }
281
+ .mercury-snippet-toolbar .mercury-separator {
282
+ margin: 0 3px 2px;
283
+ }
284
+ .mercury-snippet-toolbar .mercury-button-group {
285
+ white-space: nowrap;
286
+ }
287
+ .mercury-snippet-toolbar .mercury-button-group .mercury-button:first-child {
288
+ width: 23px;
289
+ }
290
+ .mercury-snippet-toolbar .mercury-button {
291
+ width: 23px;
292
+ height: 18px;
293
+ margin: 0 0 2px;
294
+ }
295
+ .mercury-snippet-toolbar .mercury-button em {
296
+ display: none;
297
+ }
298
+ /* default buttons */
299
+ .mercury-snippet-toolbar .mercury-editSnippet-button { background-position: -24px 0 }
300
+ .mercury-snippet-toolbar .mercury-editSnippet-button.active { background-position: -24px -18px }
301
+ .mercury-snippet-toolbar .mercury-removeSnippet-button { background-position: -48px 0 }
302
+ .mercury-snippet-toolbar .mercury-removeSnippet-button.active { background-position: -48px -18px }
303
+ .mercury-snippet-toolbar .mercury-dragsnippet-button { background-position: -72px 0 }
304
+ .mercury-snippet-toolbar .mercury-dragsnippet-button.active { background-position: -72px -18px }
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Tooltip
3
+ *----------------------------------------------------------------------------*/
4
+ .mercury-tooltip {
5
+ position: absolute;
6
+ top: 100px;
7
+ left: 100px;
8
+ max-width: 400px;
9
+ overflow: hidden;
10
+ background: rgba(0, 0, 0, .70);
11
+ padding: 2px 5px;
12
+ border-radius: 2px;
13
+ -moz-border-radius: 2px;
14
+ box-shadow: 0 0 5px rgba(0, 0, 0, .3);
15
+ -moz-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
16
+ font: normal normal normal 11px/normal Helvetica, Tahoma, Arial, sans-serif;
17
+ color: #EEE;
18
+ word-wrap: break-word;
19
+ }
20
+ .mercury-tooltip a {
21
+ color: #EEE;
22
+ text-decoration: none;
23
+ }
24
+ .mercury-tooltip a:hover {
25
+ color: #FFF;
26
+ }