decidim-decidim_awesome 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/app/assets/javascripts/decidim/decidim_awesome/admin.js +1 -0
  4. data/app/assets/javascripts/decidim/decidim_awesome/admin/codemirror.js.es6 +15 -0
  5. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/hashtags.js.es6 +48 -0
  6. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/layers.js.es6 +106 -0
  7. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/legacy_map.js.es6 +12 -19
  8. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/legacy_proposals.js.es6 +3 -2
  9. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/map.js.es6 +166 -170
  10. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/markers.js.es6 +56 -0
  11. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/meetings.js.es6 +4 -3
  12. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/proposals.js.es6 +17 -4
  13. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/utilities.js.es6 +48 -0
  14. data/app/assets/stylesheets/decidim/decidim_awesome/admin.scss +7 -4
  15. data/app/assets/stylesheets/decidim/decidim_awesome/admin/codemirror.scss +16 -0
  16. data/app/assets/stylesheets/decidim/decidim_awesome/awesome_map/leaflet.scss.erb +9 -0
  17. data/app/assets/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +95 -0
  18. data/app/assets/stylesheets/decidim/decidim_awesome/editors/markdown_editor.scss +1 -1
  19. data/app/commands/decidim/decidim_awesome/admin/update_config.rb +4 -1
  20. data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +2 -2
  21. data/app/forms/decidim/decidim_awesome/admin/config_form.rb +11 -0
  22. data/app/helpers/decidim/decidim_awesome/map_helper.rb +9 -3
  23. data/app/views/decidim/decidim_awesome/admin/config/_form_styles.html.erb +1 -0
  24. data/app/views/decidim/decidim_awesome/admin/config/show.html.erb +1 -2
  25. data/app/views/decidim/decidim_awesome/map_component/map/show.html.erb +9 -6
  26. data/app/views/layouts/decidim/decidim_awesome/_awesome_config.html.erb +4 -1
  27. data/config/locales/ca.yml +13 -0
  28. data/config/locales/cs.yml +13 -0
  29. data/config/locales/en.yml +14 -0
  30. data/config/locales/es.yml +13 -0
  31. data/config/locales/eu.yml +13 -0
  32. data/config/locales/fr.yml +154 -141
  33. data/config/locales/nl.yml +148 -135
  34. data/config/locales/sv.yml +47 -34
  35. data/lib/decidim/decidim_awesome/map_component/component.rb +7 -1
  36. data/lib/decidim/decidim_awesome/version.rb +1 -1
  37. data/vendor/assets/javascripts/codemirror.js +9801 -0
  38. data/vendor/assets/javascripts/jquery.truncate.js +105 -0
  39. data/vendor/assets/javascripts/keymap/sublime.js +720 -0
  40. data/vendor/assets/javascripts/mode/css/css.js +864 -0
  41. data/vendor/assets/stylesheets/codemirror.css +350 -0
  42. data/vendor/assets/stylesheets/inscrybmde.min.scss +180 -0
  43. metadata +28 -3
  44. data/vendor/assets/stylesheets/inscrybmde.min.css +0 -8
@@ -0,0 +1,350 @@
1
+ /* BASICS */
2
+
3
+ .CodeMirror {
4
+ /* Set height, width, borders, and global font properties here */
5
+ font-family: monospace;
6
+ height: 300px;
7
+ color: black;
8
+ direction: ltr;
9
+ }
10
+
11
+ /* PADDING */
12
+
13
+ .CodeMirror-lines {
14
+ padding: 4px 0; /* Vertical padding around content */
15
+ }
16
+ .CodeMirror pre.CodeMirror-line,
17
+ .CodeMirror pre.CodeMirror-line-like {
18
+ padding: 0 4px; /* Horizontal padding of content */
19
+ }
20
+
21
+ .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
22
+ background-color: white; /* The little square between H and V scrollbars */
23
+ }
24
+
25
+ /* GUTTER */
26
+
27
+ .CodeMirror-gutters {
28
+ border-right: 1px solid #ddd;
29
+ background-color: #f7f7f7;
30
+ white-space: nowrap;
31
+ }
32
+ .CodeMirror-linenumbers {}
33
+ .CodeMirror-linenumber {
34
+ padding: 0 3px 0 5px;
35
+ min-width: 20px;
36
+ text-align: right;
37
+ color: #999;
38
+ white-space: nowrap;
39
+ }
40
+
41
+ .CodeMirror-guttermarker { color: black; }
42
+ .CodeMirror-guttermarker-subtle { color: #999; }
43
+
44
+ /* CURSOR */
45
+
46
+ .CodeMirror-cursor {
47
+ border-left: 1px solid black;
48
+ border-right: none;
49
+ width: 0;
50
+ }
51
+ /* Shown when moving in bi-directional text */
52
+ .CodeMirror div.CodeMirror-secondarycursor {
53
+ border-left: 1px solid silver;
54
+ }
55
+ .cm-fat-cursor .CodeMirror-cursor {
56
+ width: auto;
57
+ border: 0 !important;
58
+ background: #7e7;
59
+ }
60
+ .cm-fat-cursor div.CodeMirror-cursors {
61
+ z-index: 1;
62
+ }
63
+ .cm-fat-cursor-mark {
64
+ background-color: rgba(20, 255, 20, 0.5);
65
+ -webkit-animation: blink 1.06s steps(1) infinite;
66
+ -moz-animation: blink 1.06s steps(1) infinite;
67
+ animation: blink 1.06s steps(1) infinite;
68
+ }
69
+ .cm-animate-fat-cursor {
70
+ width: auto;
71
+ border: 0;
72
+ -webkit-animation: blink 1.06s steps(1) infinite;
73
+ -moz-animation: blink 1.06s steps(1) infinite;
74
+ animation: blink 1.06s steps(1) infinite;
75
+ background-color: #7e7;
76
+ }
77
+ @-moz-keyframes blink {
78
+ 0% {}
79
+ 50% { background-color: transparent; }
80
+ 100% {}
81
+ }
82
+ @-webkit-keyframes blink {
83
+ 0% {}
84
+ 50% { background-color: transparent; }
85
+ 100% {}
86
+ }
87
+ @keyframes blink {
88
+ 0% {}
89
+ 50% { background-color: transparent; }
90
+ 100% {}
91
+ }
92
+
93
+ /* Can style cursor different in overwrite (non-insert) mode */
94
+ .CodeMirror-overwrite .CodeMirror-cursor {}
95
+
96
+ .cm-tab { display: inline-block; text-decoration: inherit; }
97
+
98
+ .CodeMirror-rulers {
99
+ position: absolute;
100
+ left: 0; right: 0; top: -50px; bottom: 0;
101
+ overflow: hidden;
102
+ }
103
+ .CodeMirror-ruler {
104
+ border-left: 1px solid #ccc;
105
+ top: 0; bottom: 0;
106
+ position: absolute;
107
+ }
108
+
109
+ /* DEFAULT THEME */
110
+
111
+ .cm-s-default .cm-header {color: blue;}
112
+ .cm-s-default .cm-quote {color: #090;}
113
+ .cm-negative {color: #d44;}
114
+ .cm-positive {color: #292;}
115
+ .cm-header, .cm-strong {font-weight: bold;}
116
+ .cm-em {font-style: italic;}
117
+ .cm-link {text-decoration: underline;}
118
+ .cm-strikethrough {text-decoration: line-through;}
119
+
120
+ .cm-s-default .cm-keyword {color: #708;}
121
+ .cm-s-default .cm-atom {color: #219;}
122
+ .cm-s-default .cm-number {color: #164;}
123
+ .cm-s-default .cm-def {color: #00f;}
124
+ .cm-s-default .cm-variable,
125
+ .cm-s-default .cm-punctuation,
126
+ .cm-s-default .cm-property,
127
+ .cm-s-default .cm-operator {}
128
+ .cm-s-default .cm-variable-2 {color: #05a;}
129
+ .cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}
130
+ .cm-s-default .cm-comment {color: #a50;}
131
+ .cm-s-default .cm-string {color: #a11;}
132
+ .cm-s-default .cm-string-2 {color: #f50;}
133
+ .cm-s-default .cm-meta {color: #555;}
134
+ .cm-s-default .cm-qualifier {color: #555;}
135
+ .cm-s-default .cm-builtin {color: #30a;}
136
+ .cm-s-default .cm-bracket {color: #997;}
137
+ .cm-s-default .cm-tag {color: #170;}
138
+ .cm-s-default .cm-attribute {color: #00c;}
139
+ .cm-s-default .cm-hr {color: #999;}
140
+ .cm-s-default .cm-link {color: #00c;}
141
+
142
+ .cm-s-default .cm-error {color: #f00;}
143
+ .cm-invalidchar {color: #f00;}
144
+
145
+ .CodeMirror-composing { border-bottom: 2px solid; }
146
+
147
+ /* Default styles for common addons */
148
+
149
+ div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
150
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
151
+ .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
152
+ .CodeMirror-activeline-background {background: #e8f2ff;}
153
+
154
+ /* STOP */
155
+
156
+ /* The rest of this file contains styles related to the mechanics of
157
+ the editor. You probably shouldn't touch them. */
158
+
159
+ .CodeMirror {
160
+ position: relative;
161
+ overflow: hidden;
162
+ background: white;
163
+ }
164
+
165
+ .CodeMirror-scroll {
166
+ overflow: scroll !important; /* Things will break if this is overridden */
167
+ /* 50px is the magic margin used to hide the element's real scrollbars */
168
+ /* See overflow: hidden in .CodeMirror */
169
+ margin-bottom: -50px; margin-right: -50px;
170
+ padding-bottom: 50px;
171
+ height: 100%;
172
+ outline: none; /* Prevent dragging from highlighting the element */
173
+ position: relative;
174
+ }
175
+ .CodeMirror-sizer {
176
+ position: relative;
177
+ border-right: 50px solid transparent;
178
+ }
179
+
180
+ /* The fake, visible scrollbars. Used to force redraw during scrolling
181
+ before actual scrolling happens, thus preventing shaking and
182
+ flickering artifacts. */
183
+ .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
184
+ position: absolute;
185
+ z-index: 6;
186
+ display: none;
187
+ outline: none;
188
+ }
189
+ .CodeMirror-vscrollbar {
190
+ right: 0; top: 0;
191
+ overflow-x: hidden;
192
+ overflow-y: scroll;
193
+ }
194
+ .CodeMirror-hscrollbar {
195
+ bottom: 0; left: 0;
196
+ overflow-y: hidden;
197
+ overflow-x: scroll;
198
+ }
199
+ .CodeMirror-scrollbar-filler {
200
+ right: 0; bottom: 0;
201
+ }
202
+ .CodeMirror-gutter-filler {
203
+ left: 0; bottom: 0;
204
+ }
205
+
206
+ .CodeMirror-gutters {
207
+ position: absolute; left: 0; top: 0;
208
+ min-height: 100%;
209
+ z-index: 3;
210
+ }
211
+ .CodeMirror-gutter {
212
+ white-space: normal;
213
+ height: 100%;
214
+ display: inline-block;
215
+ vertical-align: top;
216
+ margin-bottom: -50px;
217
+ }
218
+ .CodeMirror-gutter-wrapper {
219
+ position: absolute;
220
+ z-index: 4;
221
+ background: none !important;
222
+ border: none !important;
223
+ }
224
+ .CodeMirror-gutter-background {
225
+ position: absolute;
226
+ top: 0; bottom: 0;
227
+ z-index: 4;
228
+ }
229
+ .CodeMirror-gutter-elt {
230
+ position: absolute;
231
+ cursor: default;
232
+ z-index: 4;
233
+ }
234
+ .CodeMirror-gutter-wrapper ::selection { background-color: transparent }
235
+ .CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
236
+
237
+ .CodeMirror-lines {
238
+ cursor: text;
239
+ min-height: 1px; /* prevents collapsing before first draw */
240
+ }
241
+ .CodeMirror pre.CodeMirror-line,
242
+ .CodeMirror pre.CodeMirror-line-like {
243
+ /* Reset some styles that the rest of the page might have set */
244
+ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
245
+ border-width: 0;
246
+ background: transparent;
247
+ font-family: inherit;
248
+ font-size: inherit;
249
+ margin: 0;
250
+ white-space: pre;
251
+ word-wrap: normal;
252
+ line-height: inherit;
253
+ color: inherit;
254
+ z-index: 2;
255
+ position: relative;
256
+ overflow: visible;
257
+ -webkit-tap-highlight-color: transparent;
258
+ -webkit-font-variant-ligatures: contextual;
259
+ font-variant-ligatures: contextual;
260
+ }
261
+ .CodeMirror-wrap pre.CodeMirror-line,
262
+ .CodeMirror-wrap pre.CodeMirror-line-like {
263
+ word-wrap: break-word;
264
+ white-space: pre-wrap;
265
+ word-break: normal;
266
+ }
267
+
268
+ .CodeMirror-linebackground {
269
+ position: absolute;
270
+ left: 0; right: 0; top: 0; bottom: 0;
271
+ z-index: 0;
272
+ }
273
+
274
+ .CodeMirror-linewidget {
275
+ position: relative;
276
+ z-index: 2;
277
+ padding: 0.1px; /* Force widget margins to stay inside of the container */
278
+ }
279
+
280
+ .CodeMirror-widget {}
281
+
282
+ .CodeMirror-rtl pre { direction: rtl; }
283
+
284
+ .CodeMirror-code {
285
+ outline: none;
286
+ }
287
+
288
+ /* Force content-box sizing for the elements where we expect it */
289
+ .CodeMirror-scroll,
290
+ .CodeMirror-sizer,
291
+ .CodeMirror-gutter,
292
+ .CodeMirror-gutters,
293
+ .CodeMirror-linenumber {
294
+ -moz-box-sizing: content-box;
295
+ box-sizing: content-box;
296
+ }
297
+
298
+ .CodeMirror-measure {
299
+ position: absolute;
300
+ width: 100%;
301
+ height: 0;
302
+ overflow: hidden;
303
+ visibility: hidden;
304
+ }
305
+
306
+ .CodeMirror-cursor {
307
+ position: absolute;
308
+ pointer-events: none;
309
+ }
310
+ .CodeMirror-measure pre { position: static; }
311
+
312
+ div.CodeMirror-cursors {
313
+ visibility: hidden;
314
+ position: relative;
315
+ z-index: 3;
316
+ }
317
+ div.CodeMirror-dragcursors {
318
+ visibility: visible;
319
+ }
320
+
321
+ .CodeMirror-focused div.CodeMirror-cursors {
322
+ visibility: visible;
323
+ }
324
+
325
+ .CodeMirror-selected { background: #d9d9d9; }
326
+ .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
327
+ .CodeMirror-crosshair { cursor: crosshair; }
328
+ .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
329
+ .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
330
+
331
+ .cm-searching {
332
+ background-color: #ffa;
333
+ background-color: rgba(255, 255, 0, .4);
334
+ }
335
+
336
+ /* Used to force a border model for a node */
337
+ .cm-force-border { padding-right: .1px; }
338
+
339
+ @media print {
340
+ /* Hide the cursor when printing */
341
+ .CodeMirror div.CodeMirror-cursors {
342
+ visibility: hidden;
343
+ }
344
+ }
345
+
346
+ /* See issue #2901 */
347
+ .cm-tab-wrap-hack:after { content: ''; }
348
+
349
+ /* Help users use markselection to safely style text background */
350
+ span.CodeMirror-selectedtext { background: none; }
@@ -0,0 +1,180 @@
1
+ /**
2
+ * Tunned to add !important to colors
3
+ * inscrybmde v1.11.6
4
+ * Copyright Christopher Wharton
5
+ * @link https://github.com/inscryb/inscryb-markdown-editor
6
+ * @license MIT
7
+ */
8
+ .editor{
9
+
10
+ .CodeMirror{ font-family: monospace; height: 300px; color: #000 !important; direction: ltr; }
11
+ .CodeMirror-lines{ padding: 4px 0; }
12
+ .CodeMirror pre{ padding: 0 4px; }
13
+ .CodeMirror-gutter-filler,
14
+ .CodeMirror-scrollbar-filler{ background-color: #fff; }
15
+ .CodeMirror-gutters{ border-right: 1px solid #ddd; background-color: #f7f7f7; white-space: nowrap; }
16
+ .CodeMirror-linenumber{ padding: 0 3px 0 5px; min-width: 20px; text-align: right; color: #999; white-space: nowrap; }
17
+ .CodeMirror-guttermarker{ color: #000; }
18
+ .CodeMirror-guttermarker-subtle{ color: #999; }
19
+ .CodeMirror-cursor{ border-left: 1px solid #000; border-right: none; width: 0; }
20
+ .CodeMirror div.CodeMirror-secondarycursor{ border-left: 1px solid silver; }
21
+ .cm-fat-cursor .CodeMirror-cursor{ width: auto; border: 0 !important; background: #7e7; }
22
+ .cm-fat-cursor div.CodeMirror-cursors{ z-index: 1; }
23
+ .cm-fat-cursor-mark{ background-color: rgba(20, 255, 20, .5); -webkit-animation: blink 1.06s steps(1) infinite; -moz-animation: blink 1.06s steps(1) infinite; animation: blink 1.06s steps(1) infinite; }
24
+ .cm-animate-fat-cursor{ width: auto; border: 0; -webkit-animation: blink 1.06s steps(1) infinite; -moz-animation: blink 1.06s steps(1) infinite; animation: blink 1.06s steps(1) infinite; background-color: #7e7; }
25
+
26
+ @-moz-keyframes blink{ 50%{ background-color: transparent; } }
27
+
28
+ @-webkit-keyframes blink{ 50%{ background-color: transparent; } }
29
+
30
+ @keyframes blink{ 50%{ background-color: transparent; } }
31
+ .cm-tab{ display: inline-block; text-decoration: inherit; }
32
+ .CodeMirror-rulers{ position: absolute; left: 0; right: 0; top: -50px; bottom: -20px; overflow: hidden; }
33
+ .CodeMirror-ruler{ border-left: 1px solid #ccc; top: 0; bottom: 0; position: absolute; }
34
+ .cm-s-default .cm-header{ color: #00f; }
35
+ .cm-s-default .cm-quote{ color: #090; }
36
+ .cm-negative{ color: #d44; }
37
+ .cm-positive{ color: #292; }
38
+ .cm-header,
39
+ .cm-strong{ font-weight: 700; }
40
+ .cm-em{ font-style: italic; }
41
+ .cm-link{ text-decoration: underline; }
42
+ .cm-strikethrough{ text-decoration: line-through; }
43
+ .cm-s-default .cm-keyword{ color: #708; }
44
+ .cm-s-default .cm-atom{ color: #219; }
45
+ .cm-s-default .cm-number{ color: #164; }
46
+ .cm-s-default .cm-def{ color: #00f; }
47
+ .cm-s-default .cm-variable-2{ color: #05a; }
48
+ .cm-s-default .cm-type,
49
+ .cm-s-default .cm-variable-3{ color: #085; }
50
+ .cm-s-default .cm-comment{ color: #a50; }
51
+ .cm-s-default .cm-string{ color: #a11; }
52
+ .cm-s-default .cm-string-2{ color: #f50; }
53
+ .cm-s-default .cm-meta{ color: #555; }
54
+ .cm-s-default .cm-qualifier{ color: #555; }
55
+ .cm-s-default .cm-builtin{ color: #30a; }
56
+ .cm-s-default .cm-bracket{ color: #997; }
57
+ .cm-s-default .cm-tag{ color: #170; }
58
+ .cm-s-default .cm-attribute{ color: #00c; }
59
+ .cm-s-default .cm-hr{ color: #999; }
60
+ .cm-s-default .cm-link{ color: #00c; }
61
+ .cm-s-default .cm-error{ color: red; }
62
+ .cm-invalidchar{ color: red; }
63
+ .CodeMirror-composing{ border-bottom: 2px solid; }
64
+ div.CodeMirror span.CodeMirror-matchingbracket{ color: #0b0; }
65
+ div.CodeMirror span.CodeMirror-nonmatchingbracket{ color: #a22; }
66
+ .CodeMirror-matchingtag{ background: rgba(255, 150, 0, .3); }
67
+ .CodeMirror-activeline-background{ background: #e8f2ff; }
68
+ .CodeMirror{ position: relative; overflow: hidden; background: #fff; }
69
+ .CodeMirror-scroll{ overflow: scroll !important; margin-bottom: -30px; margin-right: -30px; padding-bottom: 30px; height: 100%; outline: 0; position: relative; }
70
+ .CodeMirror-sizer{ position: relative; border-right: 30px solid transparent; }
71
+ .CodeMirror-gutter-filler,
72
+ .CodeMirror-hscrollbar,
73
+ .CodeMirror-scrollbar-filler,
74
+ .CodeMirror-vscrollbar{ position: absolute; z-index: 6; display: none; }
75
+ .CodeMirror-vscrollbar{ right: 0; top: 0; overflow-x: hidden; overflow-y: scroll; }
76
+ .CodeMirror-hscrollbar{ bottom: 0; left: 0; overflow-y: hidden; overflow-x: scroll; }
77
+ .CodeMirror-scrollbar-filler{ right: 0; bottom: 0; }
78
+ .CodeMirror-gutter-filler{ left: 0; bottom: 0; }
79
+ .CodeMirror-gutters{ position: absolute; left: 0; top: 0; min-height: 100%; z-index: 3; }
80
+ .CodeMirror-gutter{ white-space: normal; height: 100%; display: inline-block; vertical-align: top; margin-bottom: -30px; }
81
+ .CodeMirror-gutter-wrapper{ position: absolute; z-index: 4; background: 0 0 !important; border: none !important; }
82
+ .CodeMirror-gutter-background{ position: absolute; top: 0; bottom: 0; z-index: 4; }
83
+ .CodeMirror-gutter-elt{ position: absolute; cursor: default; z-index: 4; }
84
+ .CodeMirror-gutter-wrapper ::selection{ background-color: transparent; }
85
+ .CodeMirror-gutter-wrapper ::-moz-selection{ background-color: transparent; }
86
+ .CodeMirror-lines{ cursor: text; min-height: 1px; }
87
+ .CodeMirror pre{ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; border-width: 0; background: 0 0; font-family: inherit; font-size: inherit; margin: 0; white-space: pre; word-wrap: normal; line-height: inherit; color: inherit; z-index: 2; position: relative; overflow: visible; -webkit-tap-highlight-color: transparent; -webkit-font-variant-ligatures: contextual; font-variant-ligatures: contextual; }
88
+ .CodeMirror-wrap pre{ word-wrap: break-word; white-space: pre-wrap; word-break: normal; }
89
+ .CodeMirror-linebackground{ position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; }
90
+ .CodeMirror-linewidget{ position: relative; z-index: 2; padding: .1px; }
91
+ .CodeMirror-rtl pre{ direction: rtl; }
92
+ .CodeMirror-code{ outline: 0; }
93
+ .CodeMirror-gutter,
94
+ .CodeMirror-gutters,
95
+ .CodeMirror-linenumber,
96
+ .CodeMirror-scroll,
97
+ .CodeMirror-sizer{ -moz-box-sizing: content-box; box-sizing: content-box; }
98
+ .CodeMirror-measure{ position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden; }
99
+ .CodeMirror-cursor{ position: absolute; pointer-events: none; }
100
+ .CodeMirror-measure pre{ position: static; }
101
+ div.CodeMirror-cursors{ visibility: hidden; position: relative; z-index: 3; }
102
+ div.CodeMirror-dragcursors{ visibility: visible; }
103
+ .CodeMirror-focused div.CodeMirror-cursors{ visibility: visible; }
104
+ .CodeMirror-selected{ background: #d9d9d9; }
105
+ .CodeMirror-focused .CodeMirror-selected{ background: #d7d4f0; }
106
+ .CodeMirror-crosshair{ cursor: crosshair; }
107
+ .CodeMirror-line::selection,
108
+ .CodeMirror-line > span::selection,
109
+ .CodeMirror-line > span > span::selection{ background: #d7d4f0; }
110
+ .CodeMirror-line::-moz-selection,
111
+ .CodeMirror-line > span::-moz-selection,
112
+ .CodeMirror-line > span > span::-moz-selection{ background: #d7d4f0; }
113
+ .cm-searching{ background-color: #ffa; background-color: rgba(255, 255, 0, .4); }
114
+ .cm-force-border{ padding-right: .1px; }
115
+
116
+ @media print{ .CodeMirror div.CodeMirror-cursors{ visibility: hidden; } }
117
+ .cm-tab-wrap-hack::after{ content: ''; }
118
+ span.CodeMirror-selectedtext{ background: 0 0; }
119
+ .CodeMirror{ box-sizing: border-box; height: auto; border: 1px solid #ddd; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; padding: 10px; font: inherit; z-index: 1; word-wrap: break-word; }
120
+ .CodeMirror-scroll{ cursor: text; }
121
+ .CodeMirror-fullscreen{ background: #fff; position: fixed !important; top: 50px; left: 0; right: 0; bottom: 0; height: auto; z-index: 9; border-right: none !important; border-bottom-right-radius: 0 !important; }
122
+ .CodeMirror-sided{ width: 50% !important; }
123
+ .editor-toolbar{ position: relative; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; padding: 0 10px; border-top: 1px solid #bbb; border-left: 1px solid #bbb; border-right: 1px solid #bbb; border-top-left-radius: 4px; border-top-right-radius: 4px; }
124
+ .editor-toolbar::after,
125
+ .editor-toolbar::before{ display: block; content: ' '; height: 1px; }
126
+ .editor-toolbar::before{ margin-bottom: 8px; }
127
+ .editor-toolbar::after{ margin-top: 8px; }
128
+ .editor-toolbar.fullscreen{ width: 100%; height: 50px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding-top: 10px; padding-bottom: 10px; box-sizing: border-box; background: #fff; border: 0; position: fixed; top: 0; left: 0; opacity: 1; z-index: 9; }
129
+ .editor-toolbar.fullscreen::before{ width: 20px; height: 50px; background: -moz-linear-gradient(left, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 0) 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0, rgba(255, 255, 255, 1)), color-stop(100%, rgba(255, 255, 255, 0))); background: -webkit-linear-gradient(left, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 0) 100%); background: -o-linear-gradient(left, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 0) 100%); background: -ms-linear-gradient(left, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 0) 100%); background: linear-gradient(to right, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 0) 100%); position: fixed; top: 0; left: 0; margin: 0; padding: 0; }
130
+ .editor-toolbar.fullscreen::after{ width: 20px; height: 50px; background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 1))); background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 100%); background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 100%); background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 100%); background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 100%); position: fixed; top: 0; right: 0; margin: 0; padding: 0; }
131
+ .editor-toolbar a,
132
+ .editor-toolbar button{ background: 0 0; display: inline-block; text-align: center; text-decoration: none !important; width: 30px; height: 30px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 3px; cursor: pointer; }
133
+ .editor-toolbar a.active,
134
+ .editor-toolbar a:hover,
135
+ .editor-toolbar button.active,
136
+ .editor-toolbar button:hover{ background: #fcfcfc; border-color: #95a5a6; }
137
+ .editor-toolbar a::before,
138
+ .editor-toolbar button::before{ line-height: 30px; }
139
+ .editor-toolbar i.separator{ display: inline-block; width: 0; border-left: 1px solid #d9d9d9; border-right: 1px solid #fff; color: transparent; text-indent: -10px; margin: 0 6px; }
140
+ .editor-toolbar a.fa-header-x::after{ font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 65%; vertical-align: text-bottom; position: relative; top: 2px; }
141
+ .editor-toolbar a.fa-header-1::after{ content: "1"; }
142
+ .editor-toolbar a.fa-header-2::after{ content: "2"; }
143
+ .editor-toolbar a.fa-header-3::after{ content: "3"; }
144
+ .editor-toolbar a.fa-header-bigger::after{ content: "▲"; }
145
+ .editor-toolbar a.fa-header-smaller::after{ content: "▼"; }
146
+ .editor-toolbar.disabled-for-preview button:not(.no-disable){ opacity: .6; pointer-events: none; }
147
+
148
+ @media only screen and (max-width: 700px){ .editor-toolbar a.no-mobile{ display: none; } }
149
+ .editor-statusbar{ padding: 8px 10px; font-size: 12px; color: #959694; text-align: right; }
150
+ .editor-statusbar span{ display: inline-block; min-width: 4em; margin-left: 1em; }
151
+ .editor-statusbar .lines::before{ content: 'lines: '; }
152
+ .editor-statusbar .words::before{ content: 'words: '; }
153
+ .editor-statusbar .characters::before{ content: 'characters: '; }
154
+ .editor-preview{ padding: 10px; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: #fafafa; z-index: 7; overflow: auto; display: none; box-sizing: border-box; }
155
+ .editor-preview-side{ padding: 10px; position: fixed; bottom: 0; width: 50%; top: 50px; right: 0; background: #fafafa; z-index: 9; overflow: auto; display: none; box-sizing: border-box; border: 1px solid #ddd; word-wrap: break-word; }
156
+ .editor-preview-active-side{ display: block; }
157
+ .editor-preview-active{ display: block; }
158
+ .editor-preview-side > p,
159
+ .editor-preview > p{ margin-top: 0; }
160
+ .editor-preview pre,
161
+ .editor-preview-side pre{ background: #eee; margin-bottom: 10px; }
162
+ .editor-preview table td,
163
+ .editor-preview table th,
164
+ .editor-preview-side table td,
165
+ .editor-preview-side table th{ border: 1px solid #ddd; padding: 5px; }
166
+ .CodeMirror .CodeMirror-code .cm-tag{ color: #63a35c; }
167
+ .CodeMirror .CodeMirror-code .cm-attribute{ color: #795da3; }
168
+ .CodeMirror .CodeMirror-code .cm-string{ color: #183691; }
169
+ .CodeMirror .CodeMirror-selected{ background: #d9d9d9; }
170
+ .CodeMirror .CodeMirror-code .cm-header-1{ font-size: 200%; line-height: 200%; }
171
+ .CodeMirror .CodeMirror-code .cm-header-2{ font-size: 160%; line-height: 160%; }
172
+ .CodeMirror .CodeMirror-code .cm-header-3{ font-size: 125%; line-height: 125%; }
173
+ .CodeMirror .CodeMirror-code .cm-header-4{ font-size: 110%; line-height: 110%; }
174
+ .CodeMirror .CodeMirror-code .cm-comment{ background: rgba(0, 0, 0, .05); border-radius: 2px; }
175
+ .CodeMirror .CodeMirror-code .cm-link{ color: #7f8c8d; }
176
+ .CodeMirror .CodeMirror-code .cm-url{ color: #aab2b3; }
177
+ .CodeMirror .CodeMirror-code .cm-strikethrough{ text-decoration: line-through; }
178
+ .CodeMirror .CodeMirror-placeholder{ opacity: .5; }
179
+ .CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){ background: rgba(255, 0, 0, .15); }
180
+ }