mercury-rails 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data/LICENSE +5 -0
  2. data/{README.rdoc → README.md} +150 -60
  3. data/VERSION +1 -1
  4. data/annotated_source.template +57 -0
  5. data/app/controllers/mercury_controller.rb +8 -4
  6. data/app/models/image.rb +2 -2
  7. data/app/views/layouts/mercury.html.erb +14 -0
  8. data/app/views/mercury/lightviews/about.html +7 -0
  9. data/app/views/mercury/lightviews/imageprocessor.html +3 -0
  10. data/app/views/mercury/modals/character.html +255 -0
  11. data/app/views/mercury/modals/htmleditor.html +13 -0
  12. data/app/views/mercury/modals/link.html +75 -0
  13. data/app/views/mercury/modals/media.html +82 -0
  14. data/app/views/mercury/modals/sanitizer.html +9 -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.html.erb +1 -0
  24. data/app/views/mercury/snippets/example_options.html.erb +23 -0
  25. data/config/routes.rb +1 -1
  26. data/features/editing/basic.feature +1 -1
  27. data/features/support/paths.rb +1 -0
  28. data/lib/generators/mercury/install/install_generator.rb +14 -0
  29. data/mercury-rails.gemspec +115 -106
  30. data/spec/javascripts/mercury/dialog_spec.js.coffee +54 -38
  31. data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +1 -1
  32. data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +1 -1
  33. data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +1 -1
  34. data/spec/javascripts/mercury/dialogs/{objectspanel_spec.js.coffee → snippetpanel_spec.js.coffee} +4 -4
  35. data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +1 -1
  36. data/spec/javascripts/mercury/history_buffer_spec.js.coffee +0 -1
  37. data/spec/javascripts/mercury/lightview_spec.js.coffee +448 -0
  38. data/spec/javascripts/mercury/mercury_spec.js.coffee +1 -1
  39. data/spec/javascripts/mercury/modal_spec.js.coffee +474 -0
  40. data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +1 -1
  41. data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +1 -1
  42. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +8 -2
  43. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +1 -1
  44. data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +1 -1
  45. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +1 -1
  46. data/spec/javascripts/mercury/native_extensions_spec.js.coffee +1 -1
  47. data/spec/javascripts/mercury/page_editor_spec.js.coffee +160 -20
  48. data/spec/javascripts/mercury/palette_spec.js.coffee +1 -1
  49. data/spec/javascripts/mercury/panel_spec.js.coffee +1 -1
  50. data/spec/javascripts/mercury/region_spec.js.coffee +1 -1
  51. data/spec/javascripts/mercury/regions/editable_spec.js.coffee +191 -6
  52. data/spec/javascripts/mercury/regions/markupable_spec.js.coffee +369 -0
  53. data/spec/javascripts/mercury/regions/snippetable_spec.js.coffee +1 -1
  54. data/spec/javascripts/mercury/select_spec.js.coffee +1 -1
  55. data/spec/javascripts/mercury/snippet_spec.js.coffee +3 -3
  56. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +2 -2
  57. data/spec/javascripts/mercury/statusbar_spec.js.coffee +91 -17
  58. data/spec/javascripts/mercury/table_editor_spec.js.coffee +5 -1
  59. data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +1 -1
  60. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +1 -1
  61. data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +1 -1
  62. data/spec/javascripts/mercury/toolbar_spec.js.coffee +70 -15
  63. data/spec/javascripts/mercury/tooltip_spec.js.coffee +1 -1
  64. data/spec/javascripts/mercury/uploader_spec.js.coffee +9 -1
  65. data/spec/javascripts/templates/mercury/dialogs/{objectspanel.html → snippetpanel.html} +0 -0
  66. data/spec/javascripts/templates/mercury/lightview.html +13 -0
  67. data/spec/javascripts/templates/mercury/modal.html +13 -0
  68. data/spec/javascripts/templates/mercury/page_editor.html +11 -1
  69. data/spec/javascripts/templates/mercury/statusbar.html +1 -0
  70. data/spec/javascripts/templates/mercury/toolbar.html +1 -0
  71. data/{app → vendor}/assets/images/mercury/button.png +0 -0
  72. data/{app → vendor}/assets/images/mercury/clippy.png +0 -0
  73. data/{app → vendor}/assets/images/mercury/default-snippet.png +0 -0
  74. data/{app → vendor}/assets/images/mercury/loading-dark.gif +0 -0
  75. data/{app → vendor}/assets/images/mercury/loading-light.gif +0 -0
  76. data/{app → vendor}/assets/images/mercury/search-icon.png +0 -0
  77. data/vendor/assets/images/mercury/temp-logo.png +0 -0
  78. data/{app → vendor}/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  79. data/{app → vendor}/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  80. data/{app → vendor}/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  81. data/{app → vendor}/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  82. data/{app → vendor}/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  83. data/{app → vendor}/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  84. data/{app → vendor}/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  85. data/{app → vendor}/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  86. data/{app → vendor}/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  87. data/{app → vendor}/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  88. data/{app → vendor}/assets/images/mercury/toolbar/primary/preview.png +0 -0
  89. data/{app → vendor}/assets/images/mercury/toolbar/primary/redo.png +0 -0
  90. data/{app → vendor}/assets/images/mercury/toolbar/primary/save.png +0 -0
  91. data/{app/assets/images/mercury/toolbar/primary/objectspanel.png → vendor/assets/images/mercury/toolbar/primary/snippetpanel.png} +0 -0
  92. data/{app → vendor}/assets/images/mercury/toolbar/primary/undo.png +0 -0
  93. data/{app → vendor}/assets/images/mercury/toolbar/snippetable/buttons.png +0 -0
  94. data/vendor/assets/javascripts/mercury.js +302 -0
  95. data/vendor/assets/javascripts/mercury/dialog.js.coffee +157 -0
  96. data/{app → vendor}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
  97. data/{app → vendor}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +0 -0
  98. data/{app → vendor}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
  99. data/{app → vendor}/assets/javascripts/mercury/dialogs/objectspanel.js.coffee +1 -1
  100. data/{app → vendor}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
  101. data/{app → vendor}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
  102. data/vendor/assets/javascripts/mercury/lightview.js.coffee +156 -0
  103. data/vendor/assets/javascripts/mercury/lightviews/imageprocessor.js.coffee +2 -0
  104. data/vendor/assets/javascripts/mercury/mercury.js.coffee +63 -0
  105. data/{app → vendor}/assets/javascripts/mercury/modal.js.coffee +25 -17
  106. data/{app → vendor}/assets/javascripts/mercury/modals/htmleditor.js.coffee +0 -0
  107. data/{app → vendor}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +0 -0
  108. data/{app → vendor}/assets/javascripts/mercury/modals/insertlink.js.coffee +3 -0
  109. data/{app → vendor}/assets/javascripts/mercury/modals/insertmedia.js.coffee +10 -2
  110. data/{app → vendor}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +0 -0
  111. data/{app → vendor}/assets/javascripts/mercury/modals/inserttable.js.coffee +2 -2
  112. data/{app → vendor}/assets/javascripts/mercury/native_extensions.js.coffee +0 -0
  113. data/{app → vendor}/assets/javascripts/mercury/page_editor.js.coffee +44 -13
  114. data/{app → vendor}/assets/javascripts/mercury/palette.js.coffee +0 -0
  115. data/{app → vendor}/assets/javascripts/mercury/panel.js.coffee +0 -0
  116. data/{app → vendor}/assets/javascripts/mercury/region.js.coffee +0 -0
  117. data/{app → vendor}/assets/javascripts/mercury/regions/editable.js.coffee +58 -12
  118. data/{app → vendor}/assets/javascripts/mercury/regions/markupable.js.coffee +26 -24
  119. data/{app → vendor}/assets/javascripts/mercury/regions/snippetable.js.coffee +0 -0
  120. data/{app → vendor}/assets/javascripts/mercury/select.js.coffee +3 -0
  121. data/{app → vendor}/assets/javascripts/mercury/snippet.js.coffee +9 -5
  122. data/{app → vendor}/assets/javascripts/mercury/snippet_toolbar.js.coffee +0 -0
  123. data/vendor/assets/javascripts/mercury/statusbar.js.coffee +51 -0
  124. data/{app → vendor}/assets/javascripts/mercury/table_editor.js.coffee +9 -8
  125. data/{app → vendor}/assets/javascripts/mercury/toolbar.button.js.coffee +0 -0
  126. data/{app → vendor}/assets/javascripts/mercury/toolbar.button_group.js.coffee +0 -0
  127. data/{app → vendor}/assets/javascripts/mercury/toolbar.expander.js.coffee +0 -0
  128. data/{app → vendor}/assets/javascripts/mercury/toolbar.js.coffee +14 -1
  129. data/{app → vendor}/assets/javascripts/mercury/tooltip.js.coffee +3 -0
  130. data/{app → vendor}/assets/javascripts/mercury/uploader.js.coffee +22 -13
  131. data/vendor/assets/javascripts/{jquery-1.6.js → mercury_dependencies/jquery-1.6.js} +0 -0
  132. data/vendor/assets/javascripts/{jquery-ui-1.8.13.custom.js → mercury_dependencies/jquery-ui-1.8.13.custom.js} +0 -0
  133. data/vendor/assets/javascripts/{jquery.additions.js → mercury_dependencies/jquery.additions.js} +0 -0
  134. data/vendor/assets/javascripts/{liquidmetal.js → mercury_dependencies/liquidmetal.js} +0 -0
  135. data/vendor/assets/javascripts/{showdown.js → mercury_dependencies/showdown.js} +0 -0
  136. data/vendor/assets/javascripts/mercury_loader.js +191 -0
  137. data/{app → vendor}/assets/stylesheets/mercury.css +3 -6
  138. data/vendor/assets/stylesheets/mercury/dialog.css +199 -0
  139. data/vendor/assets/stylesheets/mercury/lightview.css +92 -0
  140. data/vendor/assets/stylesheets/mercury/mercury.css +134 -0
  141. data/vendor/assets/stylesheets/mercury/modal.css +191 -0
  142. data/{app/assets/stylesheets/mercury/statusbar.scss → vendor/assets/stylesheets/mercury/statusbar.css} +9 -1
  143. data/vendor/assets/stylesheets/mercury/toolbar.css +329 -0
  144. data/{app/assets/stylesheets/mercury/tooltip.scss → vendor/assets/stylesheets/mercury/tooltip.css} +7 -7
  145. data/vendor/assets/stylesheets/mercury/uploader.css +111 -0
  146. metadata +230 -225
  147. data/app/assets/images/mercury/toolbar/markupable/buttons.png +0 -0
  148. data/app/assets/images/mercury/toolbar/primary/todospanel.png +0 -0
  149. data/app/assets/javascripts/mercury.js +0 -30
  150. data/app/assets/javascripts/mercury/dialog.js.coffee +0 -75
  151. data/app/assets/javascripts/mercury/mercury.js.coffee +0 -286
  152. data/app/assets/javascripts/mercury/statusbar.js.coffee +0 -29
  153. data/app/assets/javascripts/mercury_loader.js +0 -98
  154. data/app/assets/stylesheets/mercury/dialog.scss +0 -179
  155. data/app/assets/stylesheets/mercury/mercury.scss +0 -127
  156. data/app/assets/stylesheets/mercury/modal.scss +0 -194
  157. data/app/assets/stylesheets/mercury/toolbar.scss +0 -415
  158. data/app/assets/stylesheets/mercury/uploader.scss +0 -109
  159. data/app/views/layouts/mercury.html.haml +0 -8
  160. data/app/views/mercury/modals/character.html.haml +0 -252
  161. data/app/views/mercury/modals/htmleditor.html.haml +0 -8
  162. data/app/views/mercury/modals/link.html.haml +0 -31
  163. data/app/views/mercury/modals/media.html.haml +0 -33
  164. data/app/views/mercury/modals/sanitizer.html.haml +0 -4
  165. data/app/views/mercury/modals/table.html.haml +0 -49
  166. data/app/views/mercury/palettes/backcolor.html.haml +0 -79
  167. data/app/views/mercury/palettes/forecolor.html.haml +0 -79
  168. data/app/views/mercury/panels/history.html.haml +0 -0
  169. data/app/views/mercury/panels/notes.html.haml +0 -0
  170. data/app/views/mercury/panels/snippets.html.haml +0 -10
  171. data/app/views/mercury/selects/formatblock.html.haml +0 -10
  172. data/app/views/mercury/selects/style.html.haml +0 -4
  173. data/app/views/mercury/snippets/example.html.haml +0 -2
  174. data/app/views/mercury/snippets/example_options.html.haml +0 -16
  175. data/log/.gitkeep +0 -0
  176. data/spec/javascripts/mercury/regions/_markupable_.js.coffee +0 -0
@@ -2,7 +2,7 @@
2
2
  * Statusbar
3
3
  *----------------------------------------------------------------------------*/
4
4
  .mercury-statusbar {
5
- position: absolute;
5
+ position: fixed;
6
6
  -webkit-user-select: none;
7
7
  -moz-user-select: none;
8
8
  user-select: none;
@@ -11,6 +11,7 @@
11
11
  -webkit-box-sizing: border-box;
12
12
  z-index: 10020;
13
13
  bottom: 0;
14
+ left: 0;
14
15
  width: 100%;
15
16
  height: 23px;
16
17
  cursor: default;
@@ -22,3 +23,10 @@
22
23
  line-height: 23px;
23
24
  color: #222;
24
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,329 @@
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-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(198,198,198)), color-stop(1, rgb(226,225,226)));
18
+ background-image: -moz-linear-gradient(center bottom, rgb(198,198,198) 0%, rgb(226,225,226) 100%);
19
+ border-bottom: 1px solid #727272;
20
+ cursor: default;
21
+ }
22
+ .mercury-toolbar-button-container {
23
+ float: left;
24
+ }
25
+ .mercury-toolbar-expander {
26
+ position: absolute;
27
+ display: none;
28
+ right: 0;
29
+ border-left: 1px solid #727272;
30
+ }
31
+ .mercury-button,
32
+ .mercury-button-group,
33
+ .mercury-separator,
34
+ .mercury-line-separator {
35
+ display: block;
36
+ float: left;
37
+ }
38
+ .mercury-separator,
39
+ .mercury-line-separator {
40
+ width: 1px;
41
+ border: 0;
42
+ margin: 0;
43
+ }
44
+ .mercury-line-separator {
45
+ width: 1px;
46
+ background: #727272;
47
+ }
48
+ .mercury-button em {
49
+ display: block;
50
+ font-style: normal;
51
+ }
52
+ .mercury-expander {
53
+ padding: 5px 0;
54
+ border-radius: 4px;
55
+ -moz-border-radius: 4px;
56
+ }
57
+ .mercury-expander .mercury-expander-button {
58
+ cursor: default;
59
+ white-space: nowrap;
60
+ padding: 0 20px 0 10px;
61
+ }
62
+ .mercury-expander .mercury-expander-button:hover {
63
+ background: #CCC;
64
+ }
65
+ .mercury-expander .mercury-expander-button em {
66
+ display: inline-block;
67
+ float: left;
68
+ width: 20px;
69
+ height: 20px;
70
+ margin-right: 10px;
71
+ -webkit-background-size: 100% 100%;
72
+ -moz-background-size: 100% 100%;
73
+ background-size: 100% 100%;
74
+ }
75
+ .mercury-expander .mercury-expander-button span {
76
+ display: inline-block;
77
+ line-height: 20px;
78
+ }
79
+ .disabled .mercury-button,
80
+ .mercury-button.disabled {
81
+ opacity: 0.33;
82
+ }
83
+ /*
84
+ * Toolbar: Primary Toolbar
85
+ *----------------------------------------------------------------------------*/
86
+ .mercury-primary-toolbar {
87
+ position: relative;
88
+ height: 58px;
89
+ overflow: hidden;
90
+ text-shadow: #EEE 0 1px 0;
91
+ }
92
+ .mercury-primary-toolbar .mercury-button {
93
+ display: inline-block;
94
+ height: 58px;
95
+ margin-bottom: 20px;
96
+ min-width: 55px;
97
+ text-align: center;
98
+ white-space: nowrap;
99
+ text-decoration: none;
100
+ font-family: Helvetica, Tahoma, Arial, sans-serif;
101
+ }
102
+ .mercury-primary-toolbar .mercury-button.pressed {
103
+ background: url(/assets/mercury/toolbar/primary/_pressed.png) no-repeat top center;
104
+ }
105
+ .mercury-primary-toolbar .mercury-button em {
106
+ margin: 0 -5px;
107
+ height: 15px;
108
+ padding-top: 41px;
109
+ background-repeat: no-repeat;
110
+ background-position: 50% 7px;
111
+ font-size: 8.5pt;
112
+ line-height: 15px;
113
+ color: #222;
114
+ }
115
+ .mercury-primary-toolbar .mercury-button.active em {
116
+ background-position: 51% 8px;
117
+ }
118
+
119
+ .mercury-primary-toolbar .mercury-separator,
120
+ .mercury-primary-toolbar .mercury-line-separator {
121
+ display: inline-block;
122
+ width: 1px;
123
+ height: 50px;
124
+ margin: 5px 20px 28px;
125
+ }
126
+ .mercury-primary-toolbar .mercury-toolbar-button-container {
127
+ white-space: nowrap;
128
+ padding-right: 10px;
129
+ }
130
+ .mercury-primary-toolbar .mercury-toolbar-expander {
131
+ width: 12px;
132
+ height: 58px;
133
+ background: rgba(0, 0, 0, .2) url(/assets/mercury/toolbar/primary/_expander.png) no-repeat center 90%;
134
+ }
135
+ /* default buttons */
136
+ .mercury-primary-toolbar .mercury-save-button em,
137
+ .mercury-expander-button[data-button=save] em { background-image: url(/assets/mercury/toolbar/primary/save.png) }
138
+ .mercury-primary-toolbar .mercury-preview-button em,
139
+ .mercury-expander-button[data-button=preview] em { background-image: url(/assets/mercury/toolbar/primary/preview.png) }
140
+ .mercury-primary-toolbar .mercury-undo-button em,
141
+ .mercury-expander-button[data-button=undo] em { background-image: url(/assets/mercury/toolbar/primary/undo.png) }
142
+ .mercury-primary-toolbar .mercury-redo-button em,
143
+ .mercury-expander-button[data-button=redo] em { background-image: url(/assets/mercury/toolbar/primary/redo.png) }
144
+ .mercury-primary-toolbar .mercury-insertLink-button em,
145
+ .mercury-expander-button[data-button=insertLink] em { background-image: url(/assets/mercury/toolbar/primary/insertlink.png) }
146
+ .mercury-primary-toolbar .mercury-insertMedia-button em,
147
+ .mercury-expander-button[data-button=insertMedia] em { background-image: url(/assets/mercury/toolbar/primary/insertmedia.png) }
148
+ .mercury-primary-toolbar .mercury-insertTable-button em,
149
+ .mercury-expander-button[data-button=insertTable] em { background-image: url(/assets/mercury/toolbar/primary/inserttable.png) }
150
+ .mercury-primary-toolbar .mercury-insertCharacter-button em,
151
+ .mercury-expander-button[data-button=insertCharacter] em { background-image: url(/assets/mercury/toolbar/primary/insertcharacter.png) }
152
+ .mercury-primary-toolbar .mercury-snippetPanel-button em,
153
+ .mercury-expander-button[data-button=snippetPanel] em { background-image: url(/assets/mercury/toolbar/primary/snippetpanel.png) }
154
+ .mercury-primary-toolbar .mercury-historyPanel-button em,
155
+ .mercury-expander-button[data-button=historyPanel] em { background-image: url(/assets/mercury/toolbar/primary/historypanel.png) }
156
+ .mercury-primary-toolbar .mercury-notesPanel-button em,
157
+ .mercury-expander-button[data-button=notesPanel] em { background-image: url(/assets/mercury/toolbar/primary/notespanel.png) }
158
+ /*
159
+ * Toolbar: Editable Region Toolbar
160
+ *----------------------------------------------------------------------------*/
161
+ .mercury-editable-toolbar {
162
+ padding: 3px 13px 1px 10px;
163
+ border-top: 1px solid #E2E1E2;
164
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(198,198,198)), color-stop(1, rgb(210,210,209)));
165
+ background-image: -moz-linear-gradient(center bottom, rgb(198,198,198) 0%, rgb(210,210,209) 100%);
166
+ }
167
+ .mercury-editable-toolbar:after {
168
+ content: '\00a0';
169
+ display: block;
170
+ visibility: hidden;
171
+ clear: both;
172
+ height: 0;
173
+ }
174
+ .mercury-editable-toolbar .mercury-separator,
175
+ .mercury-editable-toolbar .mercury-line-separator {
176
+ height: 18px;
177
+ padding: 0;
178
+ margin: 0 7px 2px;
179
+ }
180
+ .mercury-editable-toolbar .mercury-separator {
181
+ margin: 0 3px 2px;
182
+ }
183
+ .mercury-editable-toolbar .mercury-button-group {
184
+ white-space: nowrap;
185
+ }
186
+ .mercury-editable-toolbar .mercury-button-group .mercury-button:first-child {
187
+ width: 23px;
188
+ }
189
+ .mercury-editable-toolbar .mercury-button {
190
+ width: 22px;
191
+ height: 18px;
192
+ margin: 0 0 2px;
193
+ background-image: url(/assets/mercury/toolbar/editable/buttons.png);
194
+ }
195
+ .mercury-editable-toolbar .mercury-button em {
196
+ background-image: url(/assets/mercury/toolbar/editable/buttons.png);
197
+ display: none;
198
+ }
199
+ .mercury-editable-toolbar .mercury-button-palette {
200
+ width: 23px;
201
+ background-position: 0 -36px;
202
+ }
203
+ .mercury-editable-toolbar .mercury-button-select {
204
+ width: auto !important;
205
+ overflow: hidden;
206
+ padding-left: 6px;
207
+ background-position: -24px -36px;
208
+ }
209
+ .mercury-editable-toolbar .mercury-button-select em {
210
+ display: block;
211
+ padding-right: 15px;
212
+ background-position: right -36px;
213
+ cursor: pointer;
214
+ white-space: nowrap;
215
+ font-style: normal;
216
+ font-family: Helvetica, Tahoma, Arial, sans-serif;
217
+ font-size: 8.5pt;
218
+ line-height: 19px;
219
+ color: #222;
220
+ }
221
+ /* default buttons */
222
+ .mercury-editable-toolbar .mercury-bold-button { background-position: 0 0 }
223
+ .mercury-editable-toolbar .mercury-bold-button.active { background-position: 0 -18px }
224
+ .mercury-editable-toolbar .mercury-italic-button { background-position: -23px 0 }
225
+ .mercury-editable-toolbar .mercury-italic-button.active { background-position: -23px -18px }
226
+ .mercury-editable-toolbar .mercury-overline-button { background-position: -45px 0 }
227
+ .mercury-editable-toolbar .mercury-overline-button.active { background-position: -45px -18px }
228
+ .mercury-editable-toolbar .mercury-strikethrough-button { background-position: -67px 0 }
229
+ .mercury-editable-toolbar .mercury-strikethrough-button.active { background-position: -67px -18px }
230
+ .mercury-editable-toolbar .mercury-underline-button { background-position: -89px 0 }
231
+ .mercury-editable-toolbar .mercury-underline-button.active { background-position: -89px -18px }
232
+ .mercury-editable-toolbar .mercury-subscript-button { background-position: -112px 0 }
233
+ .mercury-editable-toolbar .mercury-subscript-button.active { background-position: -112px -18px }
234
+ .mercury-editable-toolbar .mercury-superscript-button { background-position: -135px 0 }
235
+ .mercury-editable-toolbar .mercury-superscript-button.active { background-position: -135px -18px }
236
+ .mercury-editable-toolbar .mercury-justifyLeft-button { background-position: -158px 0 }
237
+ .mercury-editable-toolbar .mercury-justifyLeft-button.active { background-position: -158px -18px }
238
+ .mercury-editable-toolbar .mercury-justifyCenter-button { background-position: -181px 0 }
239
+ .mercury-editable-toolbar .mercury-justifyCenter-button.active { background-position: -181px -18px }
240
+ .mercury-editable-toolbar .mercury-justifyRight-button { background-position: -203px 0 }
241
+ .mercury-editable-toolbar .mercury-justifyRight-button.active { background-position: -203px -18px }
242
+ .mercury-editable-toolbar .mercury-justifyFull-button { background-position: -225px 0 }
243
+ .mercury-editable-toolbar .mercury-justifyFull-button.active { background-position: -225px -18px }
244
+ .mercury-editable-toolbar .mercury-insertUnorderedList-button { background-position: -248px 0 }
245
+ .mercury-editable-toolbar .mercury-insertUnorderedList-button.active { background-position: -248px -18px }
246
+ .mercury-editable-toolbar .mercury-insertOrderedList-button { background-position: -271px 0 }
247
+ .mercury-editable-toolbar .mercury-insertOrderedList-button.active { background-position: -271px -18px }
248
+ .mercury-editable-toolbar .mercury-outdent-button { background-position: -294px 0 }
249
+ .mercury-editable-toolbar .mercury-outdent-button.active { background-position: -294px -18px }
250
+ .mercury-editable-toolbar .mercury-indent-button { background-position: -317px 0 }
251
+ .mercury-editable-toolbar .mercury-indent-button.active { background-position: -317px -18px }
252
+ .mercury-editable-toolbar .mercury-insertRowBefore-button { background-position: -340px 0 }
253
+ .mercury-editable-toolbar .mercury-insertRowBefore-button.active { background-position: -340px -18px }
254
+ .mercury-editable-toolbar .mercury-insertRowAfter-button { background-position: -363px 0 }
255
+ .mercury-editable-toolbar .mercury-insertRowAfter-button.active { background-position: -363px -18px }
256
+ .mercury-editable-toolbar .mercury-deleteRow-button { background-position: -385px 0 }
257
+ .mercury-editable-toolbar .mercury-deleteRow-button.active { background-position: -385px -18px }
258
+ .mercury-editable-toolbar .mercury-insertColumnBefore-button { background-position: -407px 0 }
259
+ .mercury-editable-toolbar .mercury-insertColumnBefore-button.active { background-position: -407px -18px }
260
+ .mercury-editable-toolbar .mercury-insertColumnAfter-button { background-position: -429px 0 }
261
+ .mercury-editable-toolbar .mercury-insertColumnAfter-button.active { background-position: -429px -18px }
262
+ .mercury-editable-toolbar .mercury-deleteColumn-button { background-position: -451px 0 }
263
+ .mercury-editable-toolbar .mercury-deleteColumn-button.active { background-position: -451px -18px }
264
+ .mercury-editable-toolbar .mercury-increaseColspan-button { background-position: -474px 0; width: 23px }
265
+ .mercury-editable-toolbar .mercury-increaseColspan-button.active { background-position: -474px -18px }
266
+ .mercury-editable-toolbar .mercury-decreaseColspan-button { background-position: -497px 0 }
267
+ .mercury-editable-toolbar .mercury-decreaseColspan-button.active { background-position: -497px -18px }
268
+ .mercury-editable-toolbar .mercury-increaseRowspan-button { background-position: -520px 0 }
269
+ .mercury-editable-toolbar .mercury-increaseRowspan-button.active { background-position: -520px -18px }
270
+ .mercury-editable-toolbar .mercury-decreaseRowspan-button { background-position: -542px 0 }
271
+ .mercury-editable-toolbar .mercury-decreaseRowspan-button.active { background-position: -542px -18px }
272
+ .mercury-editable-toolbar .mercury-horizontalRule-button { background-position: -564px 0 }
273
+ .mercury-editable-toolbar .mercury-horizontalRule-button.active { background-position: -564px -18px }
274
+ .mercury-editable-toolbar .mercury-removeFormatting-button { background-position: -588px 0 }
275
+ .mercury-editable-toolbar .mercury-removeFormatting-button.active { background-position: -588px -18px }
276
+ .mercury-editable-toolbar .mercury-htmlEditor-button { background-position: -612px 0 }
277
+ .mercury-editable-toolbar .mercury-htmlEditor-button.active { background-position: -612px -18px }
278
+ /*
279
+ * Toolbar: Snippetable Region Toolbar
280
+ *----------------------------------------------------------------------------*/
281
+ .mercury-snippet-toolbar {
282
+ position: absolute;
283
+ top: 100px;
284
+ left: 15px;
285
+ border: 1px solid #727272;
286
+ border-radius: 3px;
287
+ -moz-border-radius: 3px;
288
+ box-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
289
+ padding: 3px 7px 1px 7px;
290
+ }
291
+ .mercury-snippet-toolbar:after {
292
+ content: '\00a0';
293
+ display: block;
294
+ visibility: hidden;
295
+ clear: both;
296
+ height: 0;
297
+ }
298
+ .mercury-snippet-toolbar .mercury-separator,
299
+ .mercury-snippet-toolbar .mercury-line-separator {
300
+ height: 18px;
301
+ padding: 0;
302
+ margin: 0 7px 2px;
303
+ }
304
+ .mercury-snippet-toolbar .mercury-separator {
305
+ margin: 0 3px 2px;
306
+ }
307
+ .mercury-snippet-toolbar .mercury-button-group {
308
+ white-space: nowrap;
309
+ }
310
+ .mercury-snippet-toolbar .mercury-button-group .mercury-button:first-child {
311
+ width: 23px;
312
+ }
313
+ .mercury-snippet-toolbar .mercury-button {
314
+ width: 23px;
315
+ height: 18px;
316
+ margin: 0 0 2px;
317
+ background-image: url(/assets/mercury/toolbar/snippetable/buttons.png);
318
+ }
319
+ .mercury-snippet-toolbar .mercury-button em {
320
+ background-image: url(/assets/mercury/toolbar/snippetable/buttons.png);
321
+ display: none;
322
+ }
323
+ /* default buttons */
324
+ .mercury-snippet-toolbar .mercury-editSnippet-button { background-position: -24px 0 }
325
+ .mercury-snippet-toolbar .mercury-editSnippet-button.active { background-position: -24px -18px }
326
+ .mercury-snippet-toolbar .mercury-removeSnippet-button { background-position: -48px 0 }
327
+ .mercury-snippet-toolbar .mercury-removeSnippet-button.active { background-position: -48px -18px }
328
+ .mercury-snippet-toolbar .mercury-dragsnippet-button { background-position: -72px 0 }
329
+ .mercury-snippet-toolbar .mercury-dragsnippet-button.active { background-position: -72px -18px }
@@ -16,11 +16,11 @@
16
16
  font: normal normal normal 11px/normal Helvetica, Tahoma, Arial, sans-serif;
17
17
  color: #EEE;
18
18
  word-wrap: break-word;
19
- a {
20
- color: #EEE;
21
- text-decoration: none;
22
- &:hover {
23
- color: #FFF;
24
- }
25
- }
19
+ }
20
+ .mercury-tooltip a {
21
+ color: #EEE;
22
+ text-decoration: none;
23
+ }
24
+ .mercury-tooltip a:hover {
25
+ color: #FFF;
26
26
  }
@@ -0,0 +1,111 @@
1
+ /*
2
+ * Uploader
3
+ *----------------------------------------------------------------------------*/
4
+ [draggable=true] {
5
+ -khtml-user-drag: element;
6
+ }
7
+ .mercury-uploader-overlay {
8
+ position: absolute;
9
+ z-index: 10040;
10
+ top: 0;
11
+ left: 0;
12
+ width: 100%;
13
+ height: 100%;
14
+ opacity: .95;
15
+ background: rgba(0, 0, 0, .65);
16
+ }
17
+ .mercury-uploader {
18
+ position: absolute;
19
+ z-index: 10050;
20
+ top: 300px;
21
+ left: 400px;
22
+ width: 500px;
23
+ height: 150px;
24
+ overflow: hidden;
25
+ padding: 15px;
26
+ background: rgba(0,0,0, .70);
27
+ border-radius: 10px;
28
+ -moz-border-radius: 10px;
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
+ color: #CCC;
33
+ }
34
+ .mercury-uploader .mercury-uploader-preview {
35
+ float: left;
36
+ width: 150px;
37
+ height: 150px;
38
+ border: 1px solid #CCC;
39
+ border-radius: 5px;
40
+ -moz-border-radius: 5px;
41
+ }
42
+ .mercury-uploader .mercury-uploader-preview b {
43
+ display: table-cell;
44
+ width: 150px;
45
+ height: 150px;
46
+ text-align: center;
47
+ vertical-align: middle;
48
+ }
49
+ .mercury-uploader .mercury-uploader-preview img {
50
+ margin: 5px;
51
+ max-width: 140px;
52
+ max-height: 140px;
53
+ }
54
+ .mercury-uploader .mercury-uploader-details {
55
+ width: 333px;
56
+ overflow: hidden;
57
+ float: left;
58
+ padding-left: 15px;
59
+ }
60
+ .mercury-uploader .mercury-uploader-details span {
61
+ color: #F00;
62
+ }
63
+ .mercury-uploader .mercury-uploader-progress {
64
+ position: absolute;
65
+ bottom: 15px;
66
+ right: 15px;
67
+ width: 333px;
68
+ }
69
+ .mercury-uploader .mercury-uploader-progress div.mercury-uploader-indicator {
70
+ width: 100%;
71
+ height: 30px;
72
+ margin: 5px 0 0;
73
+ position: relative;
74
+ border-radius: 35px;
75
+ -moz-border-radius: 35px;
76
+ background-color: #BABABA;
77
+ background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #C7C7C7), color-stop(1, #B0B0B0));
78
+ background: -moz-linear-gradient(#B0B0B0 0%, #C7C7C7 100%);
79
+ -webkit-box-shadow: inset 0 1px 2px 0 rgba(0,0,0, 0.5), 0 1px 0 0 rgba(255,255,255, 0.3);
80
+ -moz-box-shadow: inset 0 1px 2px 0 rgba(0,0,0, 0.5), 0 1px 0 0 rgba(255,255,255, 0.3);
81
+ box-shadow: inset 0 1px 2px 0 rgba(0,0,0, 0.5), 0 1px 0 0 rgba(255,255,255, 0.3);
82
+ }
83
+ .mercury-uploader .mercury-uploader-progress div.mercury-uploader-indicator div {
84
+ min-width: 28px;
85
+ position: relative;
86
+ overflow: hidden;
87
+ height: 28px;
88
+ border-radius: 35px;
89
+ width: 0;
90
+ -moz-border-radius: 35px;
91
+ -webkit-animation: animate-stripes 2s linear infinite;
92
+ -webkit-background-size: 44px 44px;
93
+ background: -webkit-gradient(linear, 0 0, 44 44, color-stop(0.00, rgba(255,255,255, 0.17)), color-stop(0.25, rgba(255,255,255, 0.17)), color-stop(0.26, rgba(255,255,255, 0)), color-stop(0.50, rgba(255,255,255, 0)), color-stop(0.51, rgba(255,255,255, 0.17)), color-stop(0.75, rgba(255,255,255, 0.17)), color-stop(0.76, rgba(255,255,255, 0)), color-stop(1.00, rgba(255,255,255, 0))),
94
+ -webkit-gradient(linear, left bottom, left top, color-stop(0, rgba(255,255,255, 0.1)), color-stop(1, rgba(255,255,255, 0.37)));
95
+ background: -moz-repeating-linear-gradient(top left -30deg, rgba(255,255,255, 0.17), rgba(255,255,255, 0.17) 15px, rgba(255,255,255, 0) 15px, rgba(255,255,255, 0) 30px),
96
+ -moz-linear-gradient(rgba(255,255,255, 0.1) 0%, rgba(255,255,255, 0.37) 100%);
97
+ background-color: #09F;
98
+ box-shadow: inset 0 1px 0 0 rgba(255,255,255, 0.4), inset 0 -1px 1px rgba(0,0,0, 0.2);
99
+ -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255, 0.4), inset 0 -1px 1px rgba(0,0,0, 0.2);
100
+ border: 1px solid #0083DA;
101
+ }
102
+ .mercury-uploader .mercury-uploader-progress div.mercury-uploader-indicator div b {
103
+ display: none;
104
+ position: absolute;
105
+ right: 0;
106
+ line-height: 28px;
107
+ padding-right: 12px;
108
+ color: rgba(0, 0, 0, .6);
109
+ text-shadow: rgba(255, 255, 255, 0.45) 0 1px 0px;
110
+ white-space: nowrap;
111
+ }