refinerycms-wymeditor 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/.gitignore +88 -0
  2. data/app/assets/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
  3. data/app/assets/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
  4. data/app/assets/images/wymeditor/skins/refinery/eye.png +0 -0
  5. data/app/assets/images/wymeditor/skins/refinery/html5/article.png +0 -0
  6. data/app/assets/images/wymeditor/skins/refinery/html5/aside.png +0 -0
  7. data/app/assets/images/wymeditor/skins/refinery/html5/blockquote.png +0 -0
  8. data/app/assets/images/wymeditor/skins/refinery/html5/command.png +0 -0
  9. data/app/assets/images/wymeditor/skins/refinery/html5/details.png +0 -0
  10. data/app/assets/images/wymeditor/skins/refinery/html5/figcaption.png +0 -0
  11. data/app/assets/images/wymeditor/skins/refinery/html5/figure.png +0 -0
  12. data/app/assets/images/wymeditor/skins/refinery/html5/footer.png +0 -0
  13. data/app/assets/images/wymeditor/skins/refinery/html5/h1.png +0 -0
  14. data/app/assets/images/wymeditor/skins/refinery/html5/h2.png +0 -0
  15. data/app/assets/images/wymeditor/skins/refinery/html5/h3.png +0 -0
  16. data/app/assets/images/wymeditor/skins/refinery/html5/h4.png +0 -0
  17. data/app/assets/images/wymeditor/skins/refinery/html5/h5.png +0 -0
  18. data/app/assets/images/wymeditor/skins/refinery/html5/h6.png +0 -0
  19. data/app/assets/images/wymeditor/skins/refinery/html5/header.png +0 -0
  20. data/app/assets/images/wymeditor/skins/refinery/html5/hgroup.png +0 -0
  21. data/app/assets/images/wymeditor/skins/refinery/html5/mark.png +0 -0
  22. data/app/assets/images/wymeditor/skins/refinery/html5/meter.png +0 -0
  23. data/app/assets/images/wymeditor/skins/refinery/html5/nav.png +0 -0
  24. data/app/assets/images/wymeditor/skins/refinery/html5/p.png +0 -0
  25. data/app/assets/images/wymeditor/skins/refinery/html5/pre.png +0 -0
  26. data/app/assets/images/wymeditor/skins/refinery/html5/progress.png +0 -0
  27. data/app/assets/images/wymeditor/skins/refinery/html5/readme.md +1 -0
  28. data/app/assets/images/wymeditor/skins/refinery/html5/rp.png +0 -0
  29. data/app/assets/images/wymeditor/skins/refinery/html5/rt.png +0 -0
  30. data/app/assets/images/wymeditor/skins/refinery/html5/ruby.png +0 -0
  31. data/app/assets/images/wymeditor/skins/refinery/html5/section.png +0 -0
  32. data/app/assets/images/wymeditor/skins/refinery/html5/summary.png +0 -0
  33. data/app/assets/images/wymeditor/skins/refinery/html5/time.png +0 -0
  34. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png +0 -0
  35. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h1.png +0 -0
  36. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h2.png +0 -0
  37. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h3.png +0 -0
  38. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h4.png +0 -0
  39. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h5.png +0 -0
  40. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h6.png +0 -0
  41. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-p.png +0 -0
  42. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-pre.png +0 -0
  43. data/app/assets/images/wymeditor/skins/refinery/link_add.png +0 -0
  44. data/app/assets/images/wymeditor/skins/refinery/link_break.png +0 -0
  45. data/app/assets/images/wymeditor/skins/refinery/page_code.png +0 -0
  46. data/app/assets/images/wymeditor/skins/refinery/page_paste.png +0 -0
  47. data/app/assets/images/wymeditor/skins/refinery/photo_add.png +0 -0
  48. data/app/assets/images/wymeditor/skins/refinery/right.png +0 -0
  49. data/app/assets/images/wymeditor/skins/refinery/style.png +0 -0
  50. data/app/assets/images/wymeditor/skins/refinery/table_add.png +0 -0
  51. data/app/assets/images/wymeditor/skins/refinery/text_align_center.png +0 -0
  52. data/app/assets/images/wymeditor/skins/refinery/text_align_justify.png +0 -0
  53. data/app/assets/images/wymeditor/skins/refinery/text_align_left.png +0 -0
  54. data/app/assets/images/wymeditor/skins/refinery/text_align_right.png +0 -0
  55. data/app/assets/images/wymeditor/skins/refinery/text_bold.png +0 -0
  56. data/app/assets/images/wymeditor/skins/refinery/text_heading_1.png +0 -0
  57. data/app/assets/images/wymeditor/skins/refinery/text_heading_2.png +0 -0
  58. data/app/assets/images/wymeditor/skins/refinery/text_heading_3.png +0 -0
  59. data/app/assets/images/wymeditor/skins/refinery/text_heading_4.png +0 -0
  60. data/app/assets/images/wymeditor/skins/refinery/text_heading_5.png +0 -0
  61. data/app/assets/images/wymeditor/skins/refinery/text_heading_6.png +0 -0
  62. data/app/assets/images/wymeditor/skins/refinery/text_indent.png +0 -0
  63. data/app/assets/images/wymeditor/skins/refinery/text_indent_remove.png +0 -0
  64. data/app/assets/images/wymeditor/skins/refinery/text_italic.png +0 -0
  65. data/app/assets/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
  66. data/app/assets/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
  67. data/app/assets/images/wymeditor/skins/refinery/text_paragraph.png +0 -0
  68. data/app/assets/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
  69. data/app/assets/images/wymeditor/skins/refinery/text_subscript.png +0 -0
  70. data/app/assets/images/wymeditor/skins/refinery/text_superscript.png +0 -0
  71. data/app/assets/images/wymeditor/skins/refinery/text_underline.png +0 -0
  72. data/app/assets/images/wymeditor/skins/wymeditor_icon.png +0 -0
  73. data/app/assets/javascripts/refinery/boot_wym.js.erb +289 -0
  74. data/app/assets/javascripts/refinery/wymeditor.js +37 -0
  75. data/app/assets/javascripts/wymeditor/browsers/ie.js.erb +224 -0
  76. data/app/assets/javascripts/wymeditor/browsers/mozilla.js.erb +293 -0
  77. data/app/assets/javascripts/wymeditor/browsers/opera.js.erb +123 -0
  78. data/app/assets/javascripts/wymeditor/browsers/webkit.js.erb +284 -0
  79. data/app/assets/javascripts/wymeditor/classes.js.erb +1577 -0
  80. data/app/assets/javascripts/wymeditor/functions.js.erb +218 -0
  81. data/app/assets/javascripts/wymeditor/lang/bg.js +57 -0
  82. data/app/assets/javascripts/wymeditor/lang/ca.js +45 -0
  83. data/app/assets/javascripts/wymeditor/lang/cs.js +58 -0
  84. data/app/assets/javascripts/wymeditor/lang/da.js +48 -0
  85. data/app/assets/javascripts/wymeditor/lang/de.js +45 -0
  86. data/app/assets/javascripts/wymeditor/lang/en.js +57 -0
  87. data/app/assets/javascripts/wymeditor/lang/es.js +58 -0
  88. data/app/assets/javascripts/wymeditor/lang/fa.js +46 -0
  89. data/app/assets/javascripts/wymeditor/lang/fi.js +57 -0
  90. data/app/assets/javascripts/wymeditor/lang/fr.js +57 -0
  91. data/app/assets/javascripts/wymeditor/lang/he.js +45 -0
  92. data/app/assets/javascripts/wymeditor/lang/hu.js +45 -0
  93. data/app/assets/javascripts/wymeditor/lang/it.js +48 -0
  94. data/app/assets/javascripts/wymeditor/lang/ja.js +47 -0
  95. data/app/assets/javascripts/wymeditor/lang/lv.js +47 -0
  96. data/app/assets/javascripts/wymeditor/lang/nb.js +48 -0
  97. data/app/assets/javascripts/wymeditor/lang/nl.js +47 -0
  98. data/app/assets/javascripts/wymeditor/lang/nn.js +45 -0
  99. data/app/assets/javascripts/wymeditor/lang/pl.js +45 -0
  100. data/app/assets/javascripts/wymeditor/lang/pt-BR.js +58 -0
  101. data/app/assets/javascripts/wymeditor/lang/pt.js +45 -0
  102. data/app/assets/javascripts/wymeditor/lang/rs.js +47 -0
  103. data/app/assets/javascripts/wymeditor/lang/ru.js +56 -0
  104. data/app/assets/javascripts/wymeditor/lang/sk.js +56 -0
  105. data/app/assets/javascripts/wymeditor/lang/sl.js +47 -0
  106. data/app/assets/javascripts/wymeditor/lang/sv.js +45 -0
  107. data/app/assets/javascripts/wymeditor/lang/tr.js +45 -0
  108. data/app/assets/javascripts/wymeditor/lang/vi.js +47 -0
  109. data/app/assets/javascripts/wymeditor/lang/zh_cn.js +47 -0
  110. data/app/assets/javascripts/wymeditor/prototypes.js.erb +1106 -0
  111. data/app/assets/javascripts/wymeditor/setup.js.erb +622 -0
  112. data/app/assets/javascripts/wymeditor/skins/refinery/skin.js +48 -0
  113. data/app/assets/javascripts/wymeditor/validators.js.erb +776 -0
  114. data/app/assets/stylesheets/theme.css.scss +36 -0
  115. data/app/assets/stylesheets/wymeditor/skins/refinery/skin.css.scss +530 -0
  116. data/app/assets/stylesheets/wymeditor/skins/refinery/wymiframe.css.scss +156 -0
  117. data/app/assets/stylesheets/wymeditor.css.scss +0 -0
  118. data/app/controllers/refinery/wymeditor_controller.rb +9 -0
  119. data/app/views/refinery/wymiframe.html.erb +14 -0
  120. data/config/initializers/refinery/wymeditor.rb.erb +4 -0
  121. data/lib/refinery/wymeditor/configuration.rb +10 -0
  122. data/lib/refinery/wymeditor/engine.rb +30 -0
  123. data/lib/refinery/wymeditor.rb +12 -0
  124. data/public/wymeditor/GPL-license.txt +278 -0
  125. data/public/wymeditor/MIT-license.txt +20 -0
  126. data/public/wymeditor/README +35 -0
  127. data/readme.md +96 -0
  128. data/refinerycms-wymeditor.gemspec +17 -0
  129. metadata +173 -0
@@ -0,0 +1,36 @@
1
+ /* alignment styles */
2
+ .text-align-left {
3
+ text-align: left;
4
+ }
5
+ .text-align-center {
6
+ text-align: center;
7
+ }
8
+ .text-align-right {
9
+ text-align: right;
10
+ }
11
+ .text-align-justify {
12
+ text-align: justify;
13
+ }
14
+
15
+ /* block alignment styles */
16
+ .image-align-left {
17
+ float: left;
18
+ margin-right: 6px;
19
+ margin-bottom: 6px;
20
+ }
21
+ .image-align-right {
22
+ float: right;
23
+ margin-left: 6px;
24
+ margin-bottom: 6px;
25
+ }
26
+
27
+ /* font sizes */
28
+ .font-size-small {
29
+ font-size: 0.75em;
30
+ }
31
+ .font-size-normal {
32
+ font-size: 1em;
33
+ }
34
+ .font-size-large {
35
+ font-size: 1.25em;
36
+ }
@@ -0,0 +1,530 @@
1
+ /*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
2
+ .wym_skin_refinery p, .wym_skin_refinery h2, .wym_skin_refinery h3,
3
+ .wym_skin_refinery ul, .wym_skin_refinery li {
4
+ background: transparent;
5
+ margin: 0;
6
+ padding: 0;
7
+ border-width: 0;
8
+ list-style: none;
9
+ }
10
+
11
+
12
+ /*HIDDEN BY DEFAULT*/
13
+ .wym_skin_refinery .wym_area_left {
14
+ display: none;
15
+ }
16
+ .wym_skin_refinery .wym_area_right {
17
+ display: block;
18
+ }
19
+
20
+
21
+ /*TYPO*/
22
+ .wym_skin_refinery {
23
+ font-size: 62.5%;
24
+ font-family: Verdana, Arial, sans-serif;
25
+ }
26
+ .wym_skin_refinery h2 {
27
+ font-size: 110%; /* = 11px */
28
+ }
29
+ .wym_skin_refinery h3 {
30
+ font-size: 100%; /* = 10px */
31
+ }
32
+ .wym_skin_refinery li {
33
+ font-size: 100%; /* = 10px */
34
+ }
35
+
36
+
37
+ /*WYM_BOX*/
38
+ .wym_skin_refinery {
39
+ border: 1px solid #CCCCCC;
40
+ background: #F2F2F2;
41
+ padding: 5px 5px 0px 5px
42
+ }
43
+
44
+ /*auto-clear the wym_box*/
45
+ .wym_skin_refinery:after {
46
+ content: ".";
47
+ display: block;
48
+ height: 0;
49
+ clear: both;
50
+ visibility: hidden;
51
+ }
52
+ * html .wym_skin_refinery {
53
+ height: 1%;
54
+ }
55
+
56
+
57
+ /*WYM_HTML*/
58
+ .wym_skin_refinery .wym_html {
59
+ width: 100%;
60
+ }
61
+ .wym_skin_refinery .wym_html textarea {
62
+ width: 100% !important;
63
+ height: 400px;
64
+ border: 1px solid gray;
65
+ background: white;
66
+ }
67
+
68
+ /*WYM_IFRAME*/
69
+ .wym_skin_refinery .wym_iframe {
70
+ width: 100%;
71
+ }
72
+ .wym_skin_refinery .wym_iframe iframe {
73
+ border: 1px solid #CCCCCC;
74
+ }
75
+ .wym_skin_refinery .wym_iframe iframe {
76
+ width: 100%;
77
+ background: white
78
+ }
79
+ textarea.wymeditor, .wym_skin_refinery .wym_iframe iframe {
80
+ height: 400px;
81
+ }
82
+
83
+ /*AREAS*/
84
+ .wym_skin_refinery .wym_area_left {
85
+ width: 150px;
86
+ float: left;
87
+ }
88
+ .wym_skin_refinery .wym_area_right {
89
+ width: 150px;
90
+ float: right;
91
+ }
92
+ .wym_skin_refinery .wym_area_bottom {
93
+ height: 1%;
94
+ clear: both;
95
+ }
96
+ * html .wym_skin_refinery .wym_area_main {
97
+ height: 1%;
98
+ }
99
+ * html .wym_skin_refinery .wym_area_top {
100
+ height: 1%;
101
+ }
102
+ * html .wym_skin_refinery .wym_area_top {
103
+ height: 1%;
104
+ }
105
+ .ie6 .wym_skin_refinery .wym_area_top, .ie7 .wym_skin_refinery .wym_area_top, .ie8 .wym_skin_refinery .wym_area_top {
106
+ padding-bottom: 5px;
107
+ }
108
+
109
+ /*SECTIONS SYSTEM*/
110
+
111
+ /*common defaults for all sections*/
112
+ .wym_skin_refinery .wym_section {
113
+ margin-bottom: 5px;
114
+ }
115
+ .wym_skin_refinery .wym_section h2,
116
+ .wym_skin_refinery .wym_section h3 {
117
+ padding: 1px 3px;
118
+ margin: 0;
119
+ }
120
+ .wym_skin_refinery .wym_section a {
121
+ padding: 0 3px;
122
+ display: block;
123
+ text-decoration: none;
124
+ color: black;
125
+ }
126
+ .wym_skin_refinery .wym_section a:hover, .wym_skin_refinery .wym_section a.selected {
127
+ background-color: #22A7F2;
128
+ color: white;
129
+ }
130
+ /*hide section titles by default*/
131
+ .wym_skin_refinery .wym_section h2 {
132
+ display: none;
133
+ }
134
+ /*disable any margin-collapse*/
135
+ .wym_skin_refinery .wym_section {
136
+ padding: 0px;
137
+ }
138
+ /*auto-clear sections*/
139
+ .wym_skin_refinery .wym_section ul:after {
140
+ content: ".";
141
+ display: block;
142
+ height: 0;
143
+ clear: both;
144
+ visibility: hidden;
145
+ }
146
+ * html .wym_skin_refinery .wym_section ul {
147
+ height: 1%;
148
+ }
149
+
150
+ /*option: add this class to a section to make it render as a panel*/
151
+ .wym_skin_refinery .wym_panel {
152
+ }
153
+ .wym_skin_refinery .wym_panel h2 {
154
+ display: block;
155
+ }
156
+
157
+ /*option: add this class to a section to make it render as a dropdown menu*/
158
+ .wym_skin_refinery .wym_dropdown h2 {
159
+ display: block;
160
+ }
161
+ .wym_skin_refinery .wym_dropdown ul {
162
+ display: none;
163
+ position: absolute;
164
+ background: white;
165
+ }
166
+ .wym_skin_refinery .wym_dropdown:hover ul,
167
+ .wym_skin_refinery .wym_dropdown.hover ul {
168
+ display: block;
169
+ }
170
+
171
+ /*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
172
+ .wym_skin_refinery .wym_buttons li {
173
+ float: left;
174
+ }
175
+ .wym_skin_refinery .wym_buttons a {
176
+ width: auto;
177
+ height: 24px;
178
+ overflow: hidden;
179
+ }
180
+
181
+ .wym_skin_refinery .wym_section li a {
182
+ background-color: #F2F2F2;
183
+ background-repeat: no-repeat;
184
+ background-position: 4px 3px;
185
+ color: #41403C;
186
+ font-family: Arial;
187
+ font-size: 11px;
188
+ line-height: 24px;
189
+ padding-left: 4px;
190
+ padding-right: 4px;
191
+ }
192
+
193
+ /* spacing */
194
+ .wym_skin_refinery .wym_section li.wym_containers_p
195
+ , .wym_skin_refinery .wym_section li.wym_containers_h2
196
+ , .wym_skin_refinery .wym_section li.wym_tools_strong
197
+ , .wym_skin_refinery .wym_section li.wym_tools_unordered_list
198
+ , .wym_skin_refinery .wym_section li.wym_tools_link
199
+ , .wym_skin_refinery .wym_section li.wym_tools_image {
200
+ margin-right: 1px;
201
+ }
202
+ .wym_skin_refinery .wym_section li.wym_tools_unordered_list
203
+ , .wym_skin_refinery .wym_section li.wym_tools_link
204
+ , .wym_skin_refinery .wym_section li.wym_tools_image
205
+ , .wym_skin_refinery .wym_section li.wym_tools_html {
206
+ margin-left: 10px;
207
+ padding-left: 10px;
208
+ border-left: 1px solid #CCC;
209
+ }
210
+
211
+ /* image replacements */
212
+ .wym_skin_refinery {
213
+ .wym_section {
214
+ li {
215
+ &.wym_tools_ordered_list, &.wym_tools_unordered_list, &.wym_tools_link, &.wym_tools_unlink, &.wym_tools_image, &.wym_tools_table, &.wym_tools_html, &.wym_tools_class {
216
+ a {
217
+ padding-left: 24px;
218
+ }
219
+ }
220
+ }
221
+ li.wym_tools_ordered_list a {
222
+ background-image: image_url('wymeditor/skins/refinery/text_list_numbers.png');
223
+ }
224
+ li.wym_tools_unordered_list a {
225
+ background-image: image_url('wymeditor/skins/refinery/text_list_bullets.png');
226
+ }
227
+ li.wym_tools_link a {
228
+ background-image: image_url('wymeditor/skins/refinery/link_add.png');
229
+ }
230
+ li.wym_tools_unlink a {
231
+ background-image: image_url('wymeditor/skins/refinery/link_break.png');
232
+ }
233
+ li.wym_tools_image a {
234
+ background-image: image_url('wymeditor/skins/refinery/photo_add.png');
235
+ }
236
+ li.wym_tools_table a {
237
+ background-image: image_url('wymeditor/skins/refinery/table_add.png');
238
+ }
239
+ li.wym_tools_html a {
240
+ background-image: image_url('wymeditor/skins/refinery/page_code.png');
241
+ }
242
+ }
243
+ }
244
+
245
+ /*image replacements
246
+ .wym_skin_refinery .wym_buttons li a {
247
+ text-indent: -9999px;
248
+ background-repeat: no-repeat;
249
+ background-position: 4px 4px;
250
+ } */
251
+ .wym_skin_refinery .wym_buttons li.wym_tools_strong a, .wym_skin_refinery .wym_buttons li.wym_tools_emphasis a {
252
+ width: 20px;
253
+ height: 20px;
254
+ overflow: hidden;
255
+ padding: 2px;
256
+ text-indent: -9999px;
257
+ background-repeat: no-repeat;
258
+ background-position: 4px 4px;
259
+ }
260
+ .wym_skin_refinery .wym_buttons li.wym_tools_strong a {
261
+ background-image: image_url('wymeditor/skins/refinery/text_bold.png');
262
+ }
263
+ .wym_skin_refinery .wym_buttons li.wym_tools_emphasis a {
264
+ background-image: image_url('wymeditor/skins/refinery/text_italic.png');
265
+ }
266
+ /*
267
+ .wym_skin_refinery .wym_buttons li.wym_tools_superscript a {
268
+ background-image: image_url('wymeditor/skins/refinery/text_superscript.png');
269
+ }
270
+ .wym_skin_refinery .wym_buttons li.wym_tools_subscript a {
271
+ background-image: image_url('wymeditor/skins/refinery/text_subscript.png');
272
+ }
273
+ .wym_skin_refinery .wym_buttons li.wym_tools_ordered_list a {
274
+ background-image: image_url('wymeditor/skins/refinery/text_list_numbers.png');
275
+ }
276
+ .wym_skin_refinery .wym_buttons li.wym_tools_unordered_list a {
277
+ background-image: image_url('wymeditor/skins/refinery/text_list_bullets.png');
278
+ }
279
+ .wym_skin_refinery .wym_buttons li.wym_tools_indent a {
280
+ background-image: image_url('wymeditor/skins/refinery/text_indent.png');
281
+ }
282
+ .wym_skin_refinery .wym_buttons li.wym_tools_outdent a {
283
+ background-image: image_url('wymeditor/skins/refinery/text_indent_remove.png');
284
+ }
285
+ .wym_skin_refinery .wym_buttons li.wym_tools_undo a {
286
+ background-image: image_url('wymeditor/skins/refinery/arrow_undo.png');
287
+ }
288
+ .wym_skin_refinery .wym_buttons li.wym_tools_redo a {
289
+ background-image: image_url('wymeditor/skins/refinery/arrow_redo.png');
290
+ }
291
+ .wym_skin_refinery .wym_buttons li.wym_tools_link a {
292
+ background-image: image_url('wymeditor/skins/refinery/link_add.png');
293
+ }
294
+ .wym_skin_refinery .wym_buttons li.wym_tools_unlink a {
295
+ background-image: image_url('wymeditor/skins/refinery/link_break.png');
296
+ }
297
+ .wym_skin_refinery .wym_buttons li.wym_tools_image a {
298
+ background-image: image_url('wymeditor/skins/refinery/photo_add.png');
299
+ }
300
+ .wym_skin_refinery .wym_buttons li.wym_tools_table a {
301
+ background-image: image_url('wymeditor/skins/refinery/table_add.png');
302
+ }
303
+ .wym_skin_refinery .wym_buttons li.wym_tools_paste a {
304
+ background-image: image_url('wymeditor/skins/refinery/page_paste.png');
305
+ }
306
+ .wym_skin_refinery .wym_buttons li.wym_tools_html a {
307
+ background-image: image_url('wymeditor/skins/refinery/page_code.png');
308
+ }
309
+ .wym_skin_refinery .wym_buttons li.wym_tools_preview a {
310
+ background-image: image_url('wymeditor/skins/refinery/eye.png');
311
+ }
312
+ */
313
+ /* make tools and containers play nicely next to eachother */
314
+
315
+ .wym_skin_refinery .wym_tools, .wym_skin_refinery .wym_containers,
316
+ .wym_skin_refinery .wym_classes_container {
317
+ float: left;
318
+ margin: 0px 0px 5px 0px;
319
+ }
320
+
321
+ /* image replacements for containers */
322
+ .wym_skin_refinery .wym_containers li {
323
+ float: left;
324
+ }
325
+ .wym_skin_refinery .wym_containers li a, .wym_skin_refinery li.wym_tools_class a {
326
+ background-repeat: no-repeat;
327
+ width: auto;
328
+ height: 24px;
329
+ overflow: hidden;
330
+ border: 0px none;
331
+ }
332
+ .wym_skin_refinery .wym_containers li a {
333
+ background-repeat: no-repeat;
334
+ background-position: center center;
335
+ width: 20px; height: 20px;
336
+ overflow: hidden;
337
+ padding: 2px;
338
+ border: 0px none;
339
+ }
340
+ .wym_skin_refinery li.wym_containers_h1 a {
341
+ background-image: image_url('wymeditor/skins/refinery/text_heading_1.png');
342
+ }
343
+ .wym_skin_refinery li.wym_containers_h2 a {
344
+ background-image: image_url('wymeditor/skins/refinery/text_heading_2.png');
345
+ }
346
+ .wym_skin_refinery li.wym_containers_h3 a {
347
+ background-image: image_url('wymeditor/skins/refinery/text_heading_3.png');
348
+ }
349
+ .wym_skin_refinery li.wym_containers_h4 a {
350
+ background-image: image_url('wymeditor/skins/refinery/text_heading_4.png');
351
+ }
352
+ .wym_skin_refinery li.wym_containers_h5 a {
353
+ background-image: image_url('wymeditor/skins/refinery/text_heading_5.png');
354
+ }
355
+ .wym_skin_refinery li.wym_containers_h6 a {
356
+ background-image: image_url('wymeditor/skins/refinery/text_heading_6.png');
357
+ }
358
+ .wym_skin_refinery li.wym_containers_p a {
359
+ background-image: image_url('wymeditor/skins/refinery/text_paragraph.png');
360
+ }
361
+ .wym_skin_refinery li.wym_tools_class a {
362
+ background-image: image_url('wymeditor/skins/refinery/style.png');
363
+ }
364
+
365
+
366
+ /*DECORATION*/
367
+ .wym_skin_refinery .wym_section h2 {
368
+ background: #DDD;
369
+ border: solid gray;
370
+ border-width: 0 0 1px;
371
+ }
372
+ .wym_skin_refinery .wym_section h2 span {
373
+ color: gray;
374
+ }
375
+ .wym_skin_refinery .wym_panel {
376
+ padding: 0;
377
+ border: solid gray;
378
+ border-width: 1px;
379
+ background: white;
380
+ }
381
+ .wym_skin_refinery .wym_panel ul {
382
+ margin: 2px 0 5px;
383
+ }
384
+ .wym_skin_refinery .wym_dropdown {
385
+ padding: 0;
386
+ border: solid gray;
387
+ border-width: 1px 1px 0 1px;
388
+ }
389
+ .wym_skin_refinery .wym_dropdown ul {
390
+ border: solid gray;
391
+ border-width: 0 1px 1px 1px;
392
+ margin-left: -1px;
393
+ padding: 5px 10px 5px 3px;
394
+ }
395
+
396
+ /*DIALOGS*/
397
+ .wym_dialog div.row {
398
+ margin-bottom: 5px;
399
+ }
400
+ .wym_dialog div.row input {
401
+ margin-right: 5px;
402
+ }
403
+ .wym_dialog div.row label {
404
+ float: left;
405
+ width: 150px;
406
+ display: block;
407
+ text-align: right;
408
+ margin-right: 10px;
409
+ }
410
+ .wym_dialog div.row-indent {
411
+ padding-left: 160px;
412
+ }
413
+ /*autoclearing*/
414
+ .wym_dialog div.row:after {
415
+ content: ".";
416
+ display: block;
417
+ height: 0;
418
+ clear: both;
419
+ visibility: hidden;
420
+ }
421
+ .wym_dialog div.row {
422
+ display: inline-block;
423
+ }
424
+ /* Hides from IE-mac \*/
425
+ * html .wym_dialog div.row {
426
+ height: 1%;
427
+ }
428
+ .wym_dialog div.row {
429
+ display: block;
430
+ }
431
+ /* End hide from IE-mac */
432
+
433
+ /*WYMEDITOR_LINK*/
434
+ a.wym_wymeditor_link {
435
+ text-indent: -9999px;
436
+ float: right;
437
+ display: block;
438
+ width: 50px;
439
+ height: 15px;
440
+ background: url(../wymeditor_icon.png);
441
+ overflow: hidden;
442
+ text-decoration: none;
443
+ }
444
+
445
+
446
+ /* hide containers and classes */
447
+ .wym_skin_refinery .wym_area_right, .wym_skin_refinery .wym_area_bottom {
448
+ display: none !important;
449
+ }
450
+ .wym_skin_refinery .wym_area_main {
451
+ margin-right: 0px !important;
452
+ }
453
+
454
+ .wym_skin_refinery .wym_buttons ul, .wym_buttons ul li {
455
+ margin: 0px;
456
+ }
457
+
458
+ .wym_skin_refinery .wym_buttons li a {
459
+ border-bottom: 0px !important;
460
+ }
461
+
462
+ #dialog_frame {
463
+ width: 928px;
464
+ height: 500px;
465
+ padding: 0px;
466
+ border: 0px solid #F2F1ED;
467
+ }
468
+ .wym_hideables {
469
+ display: none;
470
+ }
471
+
472
+ .wym_classes {
473
+ display: block;
474
+ position: absolute;
475
+ left: 0px;
476
+ top: 23px;
477
+ padding-top: 6px !important;
478
+ width: 200px;
479
+ }
480
+ .wym_classes_hidden {
481
+ display: none;
482
+ }
483
+ .wym_tools_class.activated {
484
+ position: relative;
485
+ }
486
+ .wym_skin_refinery .wym_buttons .wym_tools_class .wym_classes li {
487
+ float: left;
488
+ width: 200px;
489
+ cursor: pointer;
490
+ background-color: #F6F5F4;
491
+ }
492
+ .wym_skin_refinery .wym_buttons .wym_tools_class .wym_classes li a {
493
+ text-indent: 0px;
494
+ background-image: none;
495
+ background-repeat: no-repeat;
496
+ background-position: 0px 0px;
497
+ width: auto;
498
+ }
499
+ .wym_skin_refinery .wym_tools_class .wym_classes .wym_tools_class_multiple_rules span {
500
+ display: block;
501
+ cursor: auto;
502
+ font-size: 13px;
503
+ font-weight: bold;
504
+ font-style: italic;
505
+ margin: 3px 0px 0px 6px;
506
+ background: #EDEEDE;
507
+ }
508
+ .wym_skin_refinery .wym_tools_class .wym_tools_class_multiple_rules ul li {
509
+ }
510
+ .wym_skin_refinery .wym_tools_class .wym_classes .wym_tools_class_multiple_rules ul li a {
511
+ width: 167px;
512
+ padding-left: 12px;
513
+ padding-right: 21px;
514
+ height: 20px;
515
+ line-height: 20px;
516
+ }
517
+
518
+ .wym_skin_refinery .wym_tools_class .wym_classes li.enabled a {
519
+ background-image: image_url('refinery/icons/star.png');
520
+ background-repeat: no-repeat;
521
+ background-position: 181px 2px;
522
+ }
523
+
524
+ .wym_skin_refinery .wym_status.wym_section {
525
+ display: none;
526
+ }
527
+
528
+ .wym_skin_refinery {
529
+ opacity: 0;
530
+ }
@@ -0,0 +1,156 @@
1
+ /*
2
+ * WYMeditor : what you see is What You Mean web-based editor
3
+ * Copyright (c) 2008 Jean-Francois Hovinne, http://www.wymeditor.org/
4
+ * Dual licensed under the MIT (MIT-license.txt)
5
+ * and GPL (GPL-license.txt) licenses.
6
+ *
7
+ * For further information visit:
8
+ * http://www.wymeditor.org/
9
+ *
10
+ * File Name:
11
+ * wymeditor.css
12
+ * Main editor css file.
13
+ * See the documentation for more info.
14
+ *
15
+ * File Authors:
16
+ * Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
17
+ * Daniel Reszka (d.reszka a-t wymeditor dotorg)
18
+ */
19
+
20
+ /* VISUAL FEEDBACK */
21
+
22
+ /* basic */
23
+ body { background: #fff;}
24
+
25
+ /* make HTML blocks visible */
26
+ p,
27
+ h1,
28
+ h2,
29
+ h3,
30
+ h4,
31
+ h5,
32
+ h6,
33
+ ul,
34
+ ol,
35
+ table,
36
+ blockquote,
37
+ pre,
38
+ article,
39
+ aside,
40
+ command,
41
+ details,
42
+ summary,
43
+ figure,
44
+ figcaption,
45
+ footer,
46
+ header,
47
+ hgroup,
48
+ mark,
49
+ meter,
50
+ nav,
51
+ progress,
52
+ ruby,
53
+ rt,
54
+ rp,
55
+ section,
56
+ time { background: transparent no-repeat 2px 2px;
57
+ padding:8px 5px 5px;
58
+ margin:6px 0px;
59
+ border: 1px dotted #cccccc;
60
+ }
61
+ td { background: #F0F4F8; }
62
+ th { background: #ffffcc; }
63
+ ul,
64
+ ol { border-left:20px solid #B9C4D0; padding:0px 5px; }
65
+ caption { background: #E4E4B0; padding: 5px; font-weight: bold; }
66
+ table { font-size: 12px; width: 500px; }
67
+ td { width: 25%; }
68
+ blockquote { margin-left: 30px; }
69
+ pre { background-color:transparent; border: 1px solid white; }
70
+
71
+ /* Gecko min height fix */
72
+ p { min-height: 1em; } /*min-height is needed under Firefox, because empty parargraphs */
73
+ html.ie p { min-height: auto; } /* but we have to remove it under IE7 because it triggers the 'haslayout' mode */
74
+ td { height: 1.6em; }
75
+
76
+ /* labels */
77
+ p { background-image: asset_url('wymeditor/skins/refinery/html5/p.png', image); }
78
+ h1 { background-image: asset_url('wymeditor/skins/refinery/html5/h1.png', image); }
79
+ h2 { background-image: asset_url('wymeditor/skins/refinery/html5/h2.png', image); }
80
+ h3 { background-image: asset_url('wymeditor/skins/refinery/html5/h3.png', image); }
81
+ h4 { background-image: asset_url('wymeditor/skins/refinery/html5/h4.png', image); }
82
+ h5 { background-image: asset_url('wymeditor/skins/refinery/html5/h5.png', image); }
83
+ h6 { background-image: asset_url('wymeditor/skins/refinery/html5/h6.png', image); }
84
+ blockquote { background-image: asset_url('wymeditor/skins/refinery/html5/blockquote.png', image); }
85
+ pre { background-image: asset_url('wymeditor/skins/refinery/html5/pre.png', image); }
86
+ meter { background-image: asset_url('wymeditor/skins/refinery/html5/meter.png', image); }
87
+ nav { background-image: asset_url('wymeditor/skins/refinery/html5/nav.png', image); }
88
+ ruby { background-image: asset_url('wymeditor/skins/refinery/html5/ruby.png', image); }
89
+ rt { background-image: asset_url('wymeditor/skins/refinery/html5/rt.png', image); }
90
+ rp { background-image: asset_url('wymeditor/skins/refinery/html5/rp.png', image); }
91
+ article { background-image: asset_url('wymeditor/skins/refinery/html5/article.png', image); }
92
+ aside { background-image: asset_url('wymeditor/skins/refinery/html5/aside.png', image); }
93
+ command { background-image: asset_url('wymeditor/skins/refinery/html5/command.png', image); }
94
+ details { background-image: asset_url('wymeditor/skins/refinery/html5/details.png', image); }
95
+ summary { background-image: asset_url('wymeditor/skins/refinery/html5/summary.png', image); }
96
+ figure { background-image: asset_url('wymeditor/skins/refinery/html5/figure.png', image); }
97
+ figcaption { background-image: asset_url('wymeditor/skins/refinery/html5/figcaption.png', image); }
98
+ footer { background-image: asset_url('wymeditor/skins/refinery/html5/footer.png', image); }
99
+ header { background-image: asset_url('wymeditor/skins/refinery/html5/header.png', image); }
100
+ hgroup { background-image: asset_url('wymeditor/skins/refinery/html5/hgroup.png', image); }
101
+ mark { background-image: asset_url('wymeditor/skins/refinery/html5/mark.png', image); }
102
+ progress { background-image: asset_url('wymeditor/skins/refinery/html5/progress.png', image); }
103
+ section { background-image: asset_url('wymeditor/skins/refinery/html5/section.png', image); }
104
+ time { background-image: asset_url('wymeditor/skins/refinery/html5/time.png', image); }
105
+
106
+ /* specific HTML elements */
107
+ caption { text-align: left; }
108
+ img { margin-right: 5px;
109
+ border: 1px solid transparent; }
110
+ a img { border: 1px dotted blue !important; }
111
+ acronym { border: 1px solid gray; }
112
+
113
+ /* visual feedback for non-valid nesting of elements*/
114
+ h1 h1, h1 h2, h1 h3, h1 h4, h1 h5, h1 h6, h1 p, h1 pre, h1 address,
115
+ h2 h1, h2 h2, h2 h3, h2 h4, h2 h5, h2 h6, h2 p, h2 pre, h2 address,
116
+ h3 h1, h3 h2, h3 h3, h3 h4, h3 h5, h3 h6, h3 p, h3 pre, h3 address,
117
+ h4 h1, h4 h2, h4 h3, h4 h4, h4 h5, h4 h6, h4 p, h4 pre, h4 address,
118
+ h5 h1, h5 h2, h5 h3, h5 h4, h5 h5, h5 h6, h5 p, h5 pre, h5 address,
119
+ h6 h1, h6 h2, h6 h3, h6 h4, h6 h4, h6 h6, h6 p, h6 pre, h6 address,
120
+ p h1, p h2, p h3, p h4, p h5, p h6, p pre, p address,
121
+ pre h1, pre h2, pre h3, pre h4, pre h5, pre h6, pre p, pre pre, pre address,
122
+ address h1, address h2, address h3, address h4, address h5, address h6,
123
+ address p, address pre, address address
124
+ { background-color: #ff9999 !important;
125
+ border: 1px solid red !important;
126
+ font-size: 12px !important;
127
+ font-weight: normal; }
128
+
129
+ /* indicate invalid text area fields */
130
+ body.fieldWithErrors { background-color: #ffecf0 !important; }
131
+
132
+ img.selected_by_wym {
133
+ border: 1px dashed #22a7f2;
134
+ }
135
+
136
+ article,
137
+ aside,
138
+ command,
139
+ details,
140
+ summary,
141
+ figure,
142
+ figcaption,
143
+ footer,
144
+ header,
145
+ hgroup,
146
+ mark,
147
+ meter,
148
+ nav,
149
+ progress,
150
+ ruby,
151
+ rt,
152
+ rp,
153
+ section,
154
+ time {
155
+ display: block;
156
+ }