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
@@ -1,415 +0,0 @@
1
- /*
2
- * Toolbar
3
- *----------------------------------------------------------------------------*/
4
- .mercury-toolbar-container {
5
- user-select: none;
6
- position: absolute;
7
- z-index: 10010;
8
- top: 0;
9
- width: 100%;
10
- border-bottom: 1px solid #E2E1E2;
11
- }
12
- .mercury-toolbar {
13
- -webkit-user-select: none;
14
- -moz-user-select: none;
15
- user-select: none;
16
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(198,198,198)), color-stop(1, rgb(226,225,226)));
17
- background-image: -moz-linear-gradient(center bottom, rgb(198,198,198) 0%, rgb(226,225,226) 100%);
18
- border-bottom: 1px solid #727272;
19
- cursor: default;
20
- }
21
- .mercury-toolbar-button-container {
22
- float: left;
23
- }
24
- .mercury-toolbar-expander {
25
- position: absolute;
26
- display: none;
27
- right: 0;
28
- border-left: 1px solid #727272;
29
- }
30
- .mercury-button,
31
- .mercury-button-group,
32
- .mercury-separator,
33
- .mercury-line-separator {
34
- display: block;
35
- float: left;
36
- }
37
- .mercury-separator,
38
- .mercury-line-separator {
39
- width: 1px;
40
- border: 0;
41
- margin: 0;
42
- }
43
- .mercury-line-separator {
44
- width: 1px;
45
- background: #727272;
46
- }
47
- .mercury-button em {
48
- display: block;
49
- font-style: normal;
50
- }
51
- .mercury-expander {
52
- padding: 5px 0;
53
- border-radius: 4px;
54
- -moz-border-radius: 4px;
55
- .mercury-expander-button {
56
- cursor: default;
57
- white-space: nowrap;
58
- padding: 0 20px 0 10px;
59
- &:hover {
60
- background: #CCC;
61
- }
62
- em {
63
- display: inline-block;
64
- float: left;
65
- width: 20px;
66
- height: 20px;
67
- margin-right: 10px;
68
- -webkit-background-size: 100% 100%;
69
- -moz-background-size: 100% 100%;
70
- background-size: 100% 100%;
71
- }
72
- span {
73
- display: inline-block;
74
- line-height: 20px;
75
- }
76
- }
77
- }
78
- .disabled .mercury-button,
79
- .mercury-button.disabled {
80
- opacity: 0.33;
81
- }
82
- /*
83
- * Toolbar: Primary Toolbar
84
- *----------------------------------------------------------------------------*/
85
- .mercury-primary-toolbar {
86
- position: relative;
87
- height: 58px;
88
- overflow: hidden;
89
- text-shadow: #EEE 0 1px 0;
90
- .mercury-button {
91
- display: inline-block;
92
- height: 58px;
93
- margin-bottom: 20px;
94
- min-width: 55px;
95
- text-align: center;
96
- white-space: nowrap;
97
- text-decoration: none;
98
- font-family: Helvetica, Tahoma, Arial, sans-serif;
99
- &.pressed {
100
- background: url(/assets/mercury/toolbar/primary/_pressed.png) no-repeat top center;
101
- }
102
- em {
103
- margin: 0 -5px;
104
- height: 15px;
105
- padding-top: 41px;
106
- background-repeat: no-repeat;
107
- background-position: 50% 7px;
108
- font-size: 8.5pt;
109
- line-height: 15px;
110
- color: #222;
111
- }
112
- &.active {
113
- em {
114
- background-position: 51% 8px;
115
- }
116
- }
117
- }
118
- .mercury-separator,
119
- .mercury-line-separator {
120
- display: inline-block;
121
- width: 1px;
122
- height: 50px;
123
- margin: 5px 20px 28px;
124
- }
125
- .mercury-toolbar-button-container {
126
- white-space: nowrap;
127
- padding-right: 10px;
128
- }
129
- .mercury-toolbar-expander {
130
- width: 12px;
131
- height: 58px;
132
- background: rgba(0, 0, 0, .2) url(/assets/mercury/toolbar/primary/_expander.png) no-repeat center 90%;
133
- }
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-objectsPanel-button em,
153
- .mercury-expander-button[data-button=objectsPanel] em { background-image: url(/assets/mercury/toolbar/primary/objectspanel.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
- .mercury-primary-toolbar .mercury-todospanel-button em,
159
- .mercury-expander-button[data-button=todospanel] em { background-image: url(/assets/mercury/toolbar/primary/todospanel.png) }
160
- .mercury-primary-toolbar .mercury-todospanel-button em,
161
- .mercury-expander-button[data-button=todospanel] em { background-image: url(/assets/mercury/toolbar/primary/todospanel.png) }
162
- /*
163
- * Toolbar: Editable Region Toolbar
164
- *----------------------------------------------------------------------------*/
165
- .mercury-editable-toolbar {
166
- padding: 3px 13px 1px 10px;
167
- border-top: 1px solid #E2E1E2;
168
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(198,198,198)), color-stop(1, rgb(210,210,209)));
169
- background-image: -moz-linear-gradient(center bottom, rgb(198,198,198) 0%, rgb(210,210,209) 100%);
170
- &:after {
171
- content: '\00a0';
172
- display: block;
173
- visibility: hidden;
174
- clear: both;
175
- height: 0;
176
- }
177
- .mercury-separator,
178
- .mercury-line-separator {
179
- height: 18px;
180
- padding: 0;
181
- margin: 0 7px 2px;
182
- }
183
- .mercury-separator {
184
- margin: 0 3px 2px;
185
- }
186
- .mercury-button-group {
187
- white-space: nowrap;
188
- .mercury-button:first-child {
189
- width: 23px;
190
- }
191
- }
192
- .mercury-button {
193
- width: 22px;
194
- height: 18px;
195
- margin: 0 0 2px;
196
- background-image: url(/assets/mercury/toolbar/editable/buttons.png);
197
- em {
198
- background-image: url(/assets/mercury/toolbar/editable/buttons.png);
199
- display: none;
200
- }
201
- }
202
- .mercury-button-palette {
203
- width: 23px;
204
- background-position: 0 -36px;
205
- }
206
- .mercury-button-select {
207
- width: auto !important;
208
- overflow: hidden;
209
- padding-left: 6px;
210
- background-position: -24px -36px;
211
- em {
212
- display: block;
213
- padding-right: 15px;
214
- background-position: right -36px;
215
- cursor: pointer;
216
- white-space: nowrap;
217
- font-style: normal;
218
- font-family: Helvetica, Tahoma, Arial, sans-serif;
219
- font-size: 8.5pt;
220
- line-height: 19px;
221
- color: #222;
222
- }
223
- }
224
- /* default buttons */
225
- .mercury-bold-button { background-position: 0 0 }
226
- .mercury-bold-button.active { background-position: 0 -18px }
227
- .mercury-italic-button { background-position: -23px 0 }
228
- .mercury-italic-button.active { background-position: -23px -18px }
229
- .mercury-overline-button { background-position: -45px 0 }
230
- .mercury-overline-button.active { background-position: -45px -18px }
231
- .mercury-strikethrough-button { background-position: -67px 0 }
232
- .mercury-strikethrough-button.active { background-position: -67px -18px }
233
- .mercury-underline-button { background-position: -89px 0 }
234
- .mercury-underline-button.active { background-position: -89px -18px }
235
- .mercury-subscript-button { background-position: -112px 0 }
236
- .mercury-subscript-button.active { background-position: -112px -18px }
237
- .mercury-superscript-button { background-position: -135px 0 }
238
- .mercury-superscript-button.active { background-position: -135px -18px }
239
- .mercury-justifyLeft-button { background-position: -158px 0 }
240
- .mercury-justifyLeft-button.active { background-position: -158px -18px }
241
- .mercury-justifyCenter-button { background-position: -181px 0 }
242
- .mercury-justifyCenter-button.active { background-position: -181px -18px }
243
- .mercury-justifyRight-button { background-position: -203px 0 }
244
- .mercury-justifyRight-button.active { background-position: -203px -18px }
245
- .mercury-justifyFull-button { background-position: -225px 0 }
246
- .mercury-justifyFull-button.active { background-position: -225px -18px }
247
- .mercury-insertUnorderedList-button { background-position: -248px 0 }
248
- .mercury-insertUnorderedList-button.active { background-position: -248px -18px }
249
- .mercury-insertOrderedList-button { background-position: -271px 0 }
250
- .mercury-insertOrderedList-button.active { background-position: -271px -18px }
251
- .mercury-outdent-button { background-position: -294px 0 }
252
- .mercury-outdent-button.active { background-position: -294px -18px }
253
- .mercury-indent-button { background-position: -317px 0 }
254
- .mercury-indent-button.active { background-position: -317px -18px }
255
- .mercury-insertRowBefore-button { background-position: -340px 0 }
256
- .mercury-insertRowBefore-button.active { background-position: -340px -18px }
257
- .mercury-insertRowAfter-button { background-position: -363px 0 }
258
- .mercury-insertRowAfter-button.active { background-position: -363px -18px }
259
- .mercury-deleteRow-button { background-position: -385px 0 }
260
- .mercury-deleteRow-button.active { background-position: -385px -18px }
261
- .mercury-insertColumnBefore-button { background-position: -407px 0 }
262
- .mercury-insertColumnBefore-button.active { background-position: -407px -18px }
263
- .mercury-insertColumnAfter-button { background-position: -429px 0 }
264
- .mercury-insertColumnAfter-button.active { background-position: -429px -18px }
265
- .mercury-deleteColumn-button { background-position: -451px 0 }
266
- .mercury-deleteColumn-button.active { background-position: -451px -18px }
267
- .mercury-increaseColspan-button { background-position: -474px 0; width: 23px }
268
- .mercury-increaseColspan-button.active { background-position: -474px -18px }
269
- .mercury-decreaseColspan-button { background-position: -497px 0 }
270
- .mercury-decreaseColspan-button.active { background-position: -497px -18px }
271
- .mercury-increaseRowspan-button { background-position: -520px 0 }
272
- .mercury-increaseRowspan-button.active { background-position: -520px -18px }
273
- .mercury-decreaseRowspan-button { background-position: -542px 0 }
274
- .mercury-decreaseRowspan-button.active { background-position: -542px -18px }
275
- .mercury-horizontalRule-button { background-position: -564px 0 }
276
- .mercury-horizontalRule-button.active { background-position: -564px -18px }
277
- .mercury-removeFormatting-button { background-position: -588px 0 }
278
- .mercury-removeFormatting-button.active { background-position: -588px -18px }
279
- .mercury-htmlEditor-button { background-position: -612px 0 }
280
- .mercury-htmlEditor-button.active { background-position: -612px -18px }
281
- }
282
- /*
283
- * Toolbar: Markupable Region Toolbar
284
- *----------------------------------------------------------------------------*/
285
- .mercury-markupable-toolbar {
286
- padding: 3px 13px 1px 10px;
287
- border-top: 1px solid #E2E1E2;
288
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(198,198,198)), color-stop(1, rgb(210,210,209)));
289
- background-image: -moz-linear-gradient(center bottom, rgb(198,198,198) 0%, rgb(210,210,209) 100%);
290
- &:after {
291
- content: '\00a0';
292
- display: block;
293
- visibility: hidden;
294
- clear: both;
295
- height: 0;
296
- }
297
- .mercury-separator,
298
- .mercury-line-separator {
299
- height: 18px;
300
- padding: 0;
301
- margin: 0 7px 2px;
302
- }
303
- .mercury-separator {
304
- margin: 0 3px 2px;
305
- }
306
- .mercury-button-group {
307
- white-space: nowrap;
308
- .mercury-button:first-child {
309
- width: 23px;
310
- }
311
- }
312
- .mercury-button {
313
- width: 22px;
314
- height: 18px;
315
- margin: 0 0 2px;
316
- background-image: url(/assets/mercury/toolbar/markupable/buttons.png);
317
- em {
318
- background-image: url(/assets/mercury/toolbar/markupable/buttons.png);
319
- display: none;
320
- }
321
- }
322
- .mercury-button-palette {
323
- width: 23px;
324
- background-position: 0 -36px;
325
- }
326
- .mercury-button-select {
327
- width: auto !important;
328
- overflow: hidden;
329
- padding-left: 6px;
330
- background-position: -24px -36px;
331
- em {
332
- display: block;
333
- padding-right: 15px;
334
- background-position: right -36px;
335
- cursor: pointer;
336
- white-space: nowrap;
337
- font-style: normal;
338
- font-family: Helvetica, Tahoma, Arial, sans-serif;
339
- font-size: 8.5pt;
340
- line-height: 19px;
341
- color: #222;
342
- }
343
- }
344
- /* default buttons */
345
- .mercury-bold-button { background-position: 0 0 }
346
- .mercury-bold-button.active { background-position: 0 -18px }
347
- .mercury-italic-button { background-position: -23px 0 }
348
- .mercury-italic-button.active { background-position: -23px -18px }
349
- .mercury-subscript-button { background-position: -112px 0 }
350
- .mercury-subscript-button.active { background-position: -112px -18px }
351
- .mercury-superscript-button { background-position: -135px 0 }
352
- .mercury-superscript-button.active { background-position: -135px -18px }
353
- .mercury-insertUnorderedList-button { background-position: -248px 0 }
354
- .mercury-insertUnorderedList-button.active { background-position: -248px -18px }
355
- .mercury-insertOrderedList-button { background-position: -271px 0 }
356
- .mercury-insertOrderedList-button.active { background-position: -271px -18px }
357
- .mercury-outdent-button { background-position: -294px 0 }
358
- .mercury-outdent-button.active { background-position: -294px -18px }
359
- .mercury-indent-button { background-position: -317px 0 }
360
- .mercury-indent-button.active { background-position: -317px -18px }
361
- .mercury-horizontalRule-button { background-position: -564px 0 }
362
- .mercury-horizontalRule-button.active { background-position: -564px -18px }
363
- }
364
- /*
365
- * Toolbar: Snippetable Region Toolbar
366
- *----------------------------------------------------------------------------*/
367
- .mercury-snippet-toolbar {
368
- position: absolute;
369
- top: 100px;
370
- left: 15px;
371
- border: 1px solid #727272;
372
- border-radius: 3px;
373
- -moz-border-radius: 3px;
374
- box-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
375
- padding: 3px 7px 1px 7px;
376
- &:after {
377
- content: '\00a0';
378
- display: block;
379
- visibility: hidden;
380
- clear: both;
381
- height: 0;
382
- }
383
- .mercury-separator,
384
- .mercury-line-separator {
385
- height: 18px;
386
- padding: 0;
387
- margin: 0 7px 2px;
388
- }
389
- .mercury-separator {
390
- margin: 0 3px 2px;
391
- }
392
- .mercury-button-group {
393
- white-space: nowrap;
394
- .mercury-button:first-child {
395
- width: 23px;
396
- }
397
- }
398
- .mercury-button {
399
- width: 23px;
400
- height: 18px;
401
- margin: 0 0 2px;
402
- background-image: url(/assets/mercury/toolbar/snippetable/buttons.png);
403
- em {
404
- background-image: url(/assets/mercury/toolbar/snippetable/buttons.png);
405
- display: none;
406
- }
407
- }
408
- /* default buttons */
409
- .mercury-editSnippet-button { background-position: -24px 0 }
410
- .mercury-editSnippet-button.active { background-position: -24px -18px }
411
- .mercury-removeSnippet-button { background-position: -48px 0 }
412
- .mercury-removeSnippet-button.active { background-position: -48px -18px }
413
- .mercury-dragsnippet-button { background-position: -72px 0 }
414
- .mercury-dragsnippet-button.active { background-position: -72px -18px }
415
- }
@@ -1,109 +0,0 @@
1
- /*
2
- * Uploader
3
- *----------------------------------------------------------------------------*/
4
- .mercury-uploader-overlay {
5
- position: absolute;
6
- z-index: 10040;
7
- top: 0;
8
- left: 0;
9
- width: 100%;
10
- height: 100%;
11
- opacity: .95;
12
- /*display: none;*/
13
- background: rgba(0,0,0, .65);
14
- }
15
- .mercury-uploader {
16
- position: absolute;
17
- z-index: 10050;
18
- top: 300px;
19
- left: 400px;
20
- width: 500px;
21
- height: 150px;
22
- overflow: hidden;
23
- padding: 15px;
24
- background: rgba(0,0,0, .70);
25
- border-radius: 10px;
26
- -moz-border-radius: 10px;
27
- font: normal normal normal 12px/normal Helvetica, Tahoma, Arial, sans-serif;
28
- color: #CCC;
29
- .mercury-uploader-preview {
30
- float: left;
31
- width: 150px;
32
- height: 150px;
33
- border: 1px solid #CCC;
34
- border-radius: 5px;
35
- -moz-border-radius: 5px;
36
- b {
37
- display: table-cell;
38
- width: 150px;
39
- height: 150px;
40
- text-align: center;
41
- vertical-align: middle;
42
- }
43
- img {
44
- margin: 5px;
45
- max-width: 140px;
46
- max-height: 140px;
47
- }
48
- }
49
- .mercury-uploader-details {
50
- width: 333px;
51
- overflow: hidden;
52
- float: left;
53
- padding-left: 15px;
54
- span {
55
- color: #F00;
56
- }
57
- }
58
- .mercury-uploader-progress {
59
- position: absolute;
60
- bottom: 15px;
61
- right: 15px;
62
- width: 333px;
63
- div.mercury-uploader-indicator {
64
- width: 100%;
65
- height: 30px;
66
- margin: 5px 0 0;
67
- position: relative;
68
- background-color: #BABABA;
69
- border-radius: 35px;
70
- -moz-border-radius: 35px;
71
- background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #C7C7C7), color-stop(1, #B0B0B0));
72
- background: -moz-linear-gradient(#B0B0B0 0%, #C7C7C7 100%);
73
- -webkit-box-shadow: inset 0px 1px 2px 0px rgba(0,0,0, 0.5), 0px 1px 0px 0px rgba(255,255,255, 0.3);
74
- -moz-box-shadow: inset 0px 1px 2px 0px rgba(0,0,0, 0.5), 0px 1px 0px 0px rgba(255,255,255, 0.3);
75
- box-shadow: inset 0px 1px 2px 0px rgba(0,0,0, 0.5), 0px 1px 0px 0px rgba(255,255,255, 0.3);
76
- div {
77
- min-width: 28px;
78
- position: relative;
79
- overflow: hidden;
80
- height: 28px;
81
- border-radius: 35px;
82
- width: 0;
83
- -moz-border-radius: 35px;
84
- -webkit-animation: animate-stripes 2s linear infinite;
85
- -webkit-background-size: 44px 44px;
86
- 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))),
87
- -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)));
88
- 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),
89
- -moz-linear-gradient(rgba(255,255,255, 0.1) 0%, rgba(255,255,255, 0.37) 100%);
90
- background-color: #09F;
91
- box-shadow: inset 0px 1px 0px 0px rgba(255,255,255, 0.4),
92
- inset 0px -1px 1px rgba(0,0,0, 0.2);
93
- -moz-box-shadow: inset 0px 1px 0px 0px rgba(255,255,255, 0.4),
94
- inset 0px -1px 1px rgba(0,0,0, 0.2);
95
- border: 1px solid #0083DA;
96
- b {
97
- display: none;
98
- position: absolute;
99
- right: 0;
100
- line-height: 28px;
101
- padding-right: 12px;
102
- color: rgba(0, 0, 0, .6);
103
- text-shadow: rgba(255, 255, 255, 0.45) 0 1px 0px;
104
- white-space: nowrap;
105
- }
106
- }
107
- }
108
- }
109
- }