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,179 +0,0 @@
1
- /*
2
- * Dialogs
3
- *----------------------------------------------------------------------------*/
4
- .mercury-dialog,
5
- .mercury-select,
6
- .mercury-palette {
7
- -webkit-user-select: none;
8
- -moz-user-select: none;
9
- user-select: none;
10
- position: absolute;
11
- z-index: 10012;
12
- width: 30px;
13
- height: 30px;
14
- border: 1px solid #727272;
15
- border-radius: 2px;
16
- -moz-border-radius: 2px;
17
- margin-top: -1px;
18
- background-color: #E2E1E2;
19
- box-shadow: 1px 1px 4px rgba(0,0,0, .5);
20
- -moz-box-shadow: 1px 1px 4px rgba(0,0,0, .5);
21
- font-family: Helvetica, Tahoma, Arial, sans-serif;
22
- font-size: 8.5pt;
23
- &.loading {
24
- background-image: url(/assets/mercury/loading-light.gif);
25
- background-repeat: no-repeat;
26
- background-position: center;
27
- }
28
- }
29
- /*
30
- * Selects
31
- *----------------------------------------------------------------------------*/
32
- .mercury-select {
33
- border-radius: 4px;
34
- -moz-border-radius: 4px;
35
- overflow: auto;
36
- background-color: #FFF;
37
- }
38
- /*
39
- * Panels
40
- *----------------------------------------------------------------------------*/
41
- .mercury-panel {
42
- position: absolute;
43
- z-index: 10011;
44
- background-color: #111;
45
- opacity: .9;
46
- box-shadow: 1px 1px 4px rgba(0,0,0, .5);
47
- -moz-box-shadow: 1px 1px 4px rgba(0,0,0, .5);
48
- border-radius: 4px;
49
- -moz-border-radius: 4px;
50
- color: #FFF;
51
- font-family: Helvetica, Tahoma, Arial, sans-serif;
52
- font-size: 9.5pt;
53
- max-width: 500px;
54
- &.loading {
55
- background-image: url(/assets/mercury/loading-dark.gif);
56
- background-repeat: no-repeat;
57
- background-position: center;
58
- }
59
- h1,
60
- h3 {
61
- font-size: 9pt;
62
- padding: 10px 15px 8px;
63
- margin: 0;
64
- background: #333;
65
- white-space: nowrap;
66
- }
67
- h1 {
68
- -webkit-user-select: none;
69
- -moz-user-select: none;
70
- user-select: none;
71
- font-size: 10pt;
72
- -moz-border-radius-topleft: 4px;
73
- -moz-border-radius-topright: 4px;
74
- border-top-left-radius: 4px;
75
- border-top-right-radius: 4px;
76
- height: 15px;
77
- cursor: move;
78
- text-shadow: 1px 1px 2px rgba(0,0,0, .9);
79
- }
80
- h4, h5, h6 {
81
- margin: 0;
82
- }
83
- .mercury-panel-pane {
84
- box-sizing: border-box;
85
- -moz-box-sizing: border-box;
86
- -webkit-box-sizing: border-box;
87
- padding: 15px;
88
- overflow-y: auto;
89
- overflow-x: hidden;
90
- width: 100%;
91
- h3 {
92
- margin: 10px -15px;
93
- font-size: 9.5pt;
94
- font-weight: normal;
95
- padding: 8px 14px;
96
- }
97
- }
98
- }
99
- /*
100
- * Specific Dialogs (eg. color palettes, selects)
101
- *----------------------------------------------------------------------------*/
102
- .mercury-color-picker {
103
- width: 170px;
104
- height: auto;
105
- padding: 1px;
106
- cursor: default;
107
- .picker {
108
- float: left;
109
- width: 15px;
110
- height: 15px;
111
- margin: 1px;
112
- &:hover {
113
- outline: 1px solid #333;
114
- }
115
- }
116
- .last-picked {
117
- position: relative;
118
- top: 1px;
119
- width: 166px;
120
- border: 1px solid #333;
121
- border-radius: 2px;
122
- margin: 1px 1px 2px 1px;
123
- -moz-border-radius: 2px;
124
- clear: left;
125
- text-align: center;
126
- }
127
- }
128
- .mercury-select-options {
129
- margin: 10px 0;
130
- white-space: nowrap;
131
- * {
132
- cursor: default;
133
- padding: 0 10px;
134
- margin: 0;
135
- line-height: 1.6em;
136
- }
137
- *:hover {
138
- background-color: #E2E1E2 !important;
139
- color: #000 !important;
140
- }
141
- div[data-tag=pre] {
142
- font-family: monospace;
143
- }
144
- }
145
- /*
146
- * Specific Panels (eg. snippets, notes, todos)
147
- *----------------------------------------------------------------------------*/
148
- .mercury-snippet-panel {
149
- width: 300px;
150
- input.filter {
151
- outline: none;
152
- font-size: 1em;
153
- border-radius: 30px;
154
- moz-border-radius: 30px;
155
- width: 100%;
156
- padding-left: 20px;
157
- background: #FFF url(/assets/mercury/search-icon.png) no-repeat 4px center;
158
- }
159
- ul {
160
- font-size: .9em;
161
- padding: 10px 0 0 0;
162
- margin: 0;
163
- list-style-type: none;
164
- li {
165
- clear: both;
166
- padding-top: 20px;
167
- img {
168
- float: left;
169
- }
170
- h4, .description {
171
- float: right;
172
- width: 245px;
173
- }
174
- h4 {
175
- margin-bottom: 5px;
176
- }
177
- }
178
- }
179
- }
@@ -1,127 +0,0 @@
1
- /*
2
- *= require_self
3
- *= require ./dialog
4
- *= require ./modal
5
- *= require ./statusbar
6
- *= require ./toolbar
7
- *= require ./tooltip
8
- *= require ./uploader
9
- */
10
-
11
-
12
- html, body {
13
- margin: 0;
14
- padding: 0;
15
- overflow: hidden;
16
- }
17
-
18
-
19
- /*
20
- * Forms
21
- *---------------------------------------------------------------------------*/
22
- form, form ul, form ol, form li, form fieldset, form p, .filter {
23
- margin: 0;
24
- padding: 0;
25
- abbr {
26
- border: 0;
27
- font-variant: normal;
28
- }
29
- fieldset {
30
- margin-bottom: 10px;
31
- background: #F6F6F6;
32
- border: 1px solid #CCC;
33
- border-radius: 7px;
34
- -moz-border-radius: 7px;
35
- &:last-child {
36
- margin-bottom: 0;
37
- }
38
- legend {
39
- font-weight: bold;
40
- margin-left: 10px;
41
- margin-bottom: -4px;
42
- }
43
- ol {
44
- margin: 12px 9px;
45
- li {
46
- display: block;
47
- margin-bottom: 10px;
48
- }
49
- }
50
- }
51
- label {
52
- display: block;
53
- float: left;
54
- width: 23%;
55
- margin-right: 9px;
56
- text-align: right;
57
- line-height: 27px;
58
- font-size: 1.1em;
59
- input {
60
- width: auto !important;
61
- margin: 0 5px 0 -20px !important;
62
- }
63
- }
64
- select,
65
- input[type=text],
66
- input[type=password],
67
- textarea,
68
- input.text {
69
- margin: 0;
70
- border: 2px solid #CCC;
71
- padding: 2px 4px;
72
- font-family: Arial, Geneva, sans-serif;
73
- font-size: 1.5em;
74
- width: 74%;
75
- box-sizing: border-box;
76
- -moz-box-sizing: border-box;
77
- -webkit-box-sizing: border-box;
78
- }
79
- li.boolean {
80
- margin-left: 23%;
81
- padding-left: 9px;
82
- label {
83
- width: auto;
84
- }
85
- }
86
- fieldset.buttons {
87
- clear: both;
88
- padding: 0;
89
- background: none;
90
- border: none;
91
- text-align: left;
92
- ol {
93
- margin: 0 -2px 0 0;
94
- float: right;
95
- li {
96
- float: left;
97
- padding-left: 0.5em;
98
- padding-right: 0;
99
- }
100
- }
101
- .commit {
102
- margin: 0;
103
- input {
104
- padding: 8px 14px 9px !important;
105
- font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', sans-serif;
106
- font-size: 1.3em;
107
- background: #222 url(/assets/mercury/button.png) repeat-x;
108
- display: inline-block;
109
- color: #FFF;
110
- text-decoration: none;
111
- -moz-border-radius: 5px;
112
- -webkit-border-radius: 5px;
113
- -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
114
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
115
- text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.25);
116
- border: 0;
117
- border-bottom: 1px solid rgba(0, 0, 0, 0.25);
118
- position: relative;
119
- cursor: pointer;
120
- line-height: normal;
121
- &:hover {
122
- background-color: #000;
123
- }
124
- }
125
- }
126
- }
127
- }
@@ -1,194 +0,0 @@
1
- /*
2
- * Modal
3
- *----------------------------------------------------------------------------*/
4
- .mercury-modal-overlay {
5
- position: absolute;
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: absolute;
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
- &.loading .mercury-modal-content-container {
33
- background: #EFEFEF url(/assets/mercury/loading-light.gif) no-repeat center;
34
- }
35
- h1.mercury-modal-title {
36
- -webkit-user-select: none;
37
- -moz-user-select: none;
38
- user-select: none;
39
- margin: 0;
40
- padding: 2px 10px 0 10px;
41
- background: #DDD;
42
- border-bottom: 1px solid #CCC;
43
- white-space: nowrap;
44
- font-size: 14px;
45
- line-height: 23px;
46
- overflow: hidden;
47
- &:after {
48
- content: '\00a0';
49
- display: block;
50
- visibility: hidden;
51
- clear: both;
52
- height: 0;
53
- }
54
- span {
55
- float: left;
56
- color: #000;
57
- text-shadow: #EEE 1px 1px 0;
58
- }
59
- a {
60
- display: block;
61
- float: right;
62
- font-size: 10px;
63
- cursor: pointer;
64
- color: #666;
65
- padding: 0 4px;
66
- line-height: 23px;
67
- &:hover {
68
- color: #333;
69
- }
70
- }
71
- }
72
- .mercury-modal-content-container {
73
- float: left;
74
- width: 100%;
75
- }
76
- .mercury-modal-content {
77
- position: relative;
78
- overflow: auto;
79
- float: left;
80
- box-sizing: border-box;
81
- -moz-box-sizing: border-box;
82
- -webkit-box-sizing: border-box;
83
- padding: 20px 20px 10px;
84
- font-family: Helvetica, Tahoma, Arial, sans-serif;
85
- color: #000;
86
- &:after {
87
- display: block;
88
- clear: both;
89
- content: '\00a0';
90
- visibility: hidden;
91
- overflow: hidden;
92
- height: 0;
93
- }
94
- }
95
- .mercury-modal-pane-container {
96
- overflow: auto;
97
- margin: -20px -20px 0;
98
- padding: 20px 20px 10px;
99
- .mercury-modal-pane {
100
- float: left;
101
- }
102
- }
103
- .mercury-modal-controls {
104
- padding: 15px 0 0;
105
- border-top: 1px solid #CCC;
106
- text-align: right;
107
- }
108
- textarea {
109
- resize: none;
110
- padding: 0;
111
- box-sizing: border-box;
112
- -moz-box-sizing: border-box;
113
- -webkit-box-sizing: border-box;
114
- }
115
- }
116
- /*
117
- * Specific Modals (eg. htmlEditor)
118
- *----------------------------------------------------------------------------*/
119
- /* htmlEditor */
120
- #mercury_htmlEditor {
121
- textarea {
122
- margin: 0 0 -2px 0;
123
- padding: 0;
124
- border: 2px solid #CCC;
125
- width: 100%;
126
- }
127
- .mercury-modal-controls {
128
- border: 0;
129
- margin-top: -2px;
130
- }
131
- }
132
- /* html sanitizer (when pasting from msword) */
133
- #mercury_sanitizer {
134
- .information {
135
- background: url(/assets/mercury/clippy.png) no-repeat top left;
136
- min-height: 65px;
137
- padding-left: 50px;
138
- margin-bottom: 10px;
139
- }
140
- textarea {
141
- width: 100%;
142
- font-family: monospace;
143
- white-space: pre;
144
- }
145
- }
146
- /* insertCharacter */
147
- #mercury_insertCharacter {
148
- .character {
149
- float: left;
150
- width: 20px;
151
- height: 20px;
152
- border: 1px solid #999;
153
- background: #FFF;
154
- margin: 0 2px 2px 0;
155
- text-align: center;
156
- font-size: 11pt;
157
- line-height: 23px;
158
- cursor: pointer;
159
- &:hover {
160
- position: relative;
161
- margin: -11px -5px 1px -5px;
162
- width: 32px;
163
- height: 32px;
164
- font-size: 19pt;
165
- line-height: 35px;
166
- background: #DDD;
167
- }
168
- }
169
- }
170
- /* table */
171
- #mercury_table {
172
- #table_display {
173
- width: 285px;
174
- height: 285px;
175
- float: left;
176
- padding: 10px;
177
- background: #F6F6F6;
178
- border: 1px solid #CCC;
179
- border-radius: 7px;
180
- -moz-border-radius: 7px;
181
- table {
182
- width: 100%;
183
- height: 100%;
184
- }
185
- td.selected {
186
- background: #09F;
187
- }
188
- }
189
- #table_options {
190
- width: 383px;
191
- float: left;
192
- margin-left: 10px;
193
- }
194
- }