trumbowyg2-rails 2.1.0 → 2.1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. metadata +3 -43
  3. data/README.md +0 -43
  4. data/VERSION +0 -1
  5. data/lib/trumbowyg2-rails.rb +0 -4
  6. data/trumbowyg2-rails.gemspec +0 -19
  7. data/vendor/assets/images/trumbowyg/images/icons.svg +0 -1
  8. data/vendor/assets/javascripts/trumbowyg/langs/ar.js +0 -56
  9. data/vendor/assets/javascripts/trumbowyg/langs/ca.js +0 -57
  10. data/vendor/assets/javascripts/trumbowyg/langs/cs.js +0 -54
  11. data/vendor/assets/javascripts/trumbowyg/langs/da.js +0 -55
  12. data/vendor/assets/javascripts/trumbowyg/langs/de.js +0 -55
  13. data/vendor/assets/javascripts/trumbowyg/langs/el.js +0 -58
  14. data/vendor/assets/javascripts/trumbowyg/langs/en.js +0 -14
  15. data/vendor/assets/javascripts/trumbowyg/langs/es.js +0 -55
  16. data/vendor/assets/javascripts/trumbowyg/langs/es_ar.js +0 -56
  17. data/vendor/assets/javascripts/trumbowyg/langs/fa.js +0 -56
  18. data/vendor/assets/javascripts/trumbowyg/langs/fi.js +0 -55
  19. data/vendor/assets/javascripts/trumbowyg/langs/fr.js +0 -63
  20. data/vendor/assets/javascripts/trumbowyg/langs/he.js +0 -57
  21. data/vendor/assets/javascripts/trumbowyg/langs/hu.js +0 -58
  22. data/vendor/assets/javascripts/trumbowyg/langs/id.js +0 -57
  23. data/vendor/assets/javascripts/trumbowyg/langs/it.js +0 -54
  24. data/vendor/assets/javascripts/trumbowyg/langs/ja.js +0 -56
  25. data/vendor/assets/javascripts/trumbowyg/langs/ko.js +0 -56
  26. data/vendor/assets/javascripts/trumbowyg/langs/my.js +0 -54
  27. data/vendor/assets/javascripts/trumbowyg/langs/nl.js +0 -56
  28. data/vendor/assets/javascripts/trumbowyg/langs/pl.js +0 -55
  29. data/vendor/assets/javascripts/trumbowyg/langs/pt.js +0 -57
  30. data/vendor/assets/javascripts/trumbowyg/langs/ro.js +0 -58
  31. data/vendor/assets/javascripts/trumbowyg/langs/rs.js +0 -53
  32. data/vendor/assets/javascripts/trumbowyg/langs/rs_latin.js +0 -54
  33. data/vendor/assets/javascripts/trumbowyg/langs/ru.js +0 -54
  34. data/vendor/assets/javascripts/trumbowyg/langs/sk.js +0 -54
  35. data/vendor/assets/javascripts/trumbowyg/langs/sv.js +0 -55
  36. data/vendor/assets/javascripts/trumbowyg/langs/tr.js +0 -55
  37. data/vendor/assets/javascripts/trumbowyg/langs/ua.js +0 -54
  38. data/vendor/assets/javascripts/trumbowyg/langs/vi.js +0 -55
  39. data/vendor/assets/javascripts/trumbowyg/langs/zh_cn.js +0 -57
  40. data/vendor/assets/javascripts/trumbowyg/langs/zh_tw.js +0 -57
  41. data/vendor/assets/javascripts/trumbowyg/trumbowyg.js +0 -1522
  42. data/vendor/assets/stylesheets/trumbowyg/trumbowyg.scss +0 -758
@@ -1,758 +0,0 @@
1
- $light-color: #ecf0f1;
2
- $dark-color: #222;
3
-
4
- $modal-submit-color: #2ecc71;
5
- $modal-reset-color: #EEE;
6
-
7
- $transition-duration: 150ms;
8
-
9
- #trumbowyg-icons {
10
- overflow: hidden;
11
- visibility: hidden;
12
- height: 0;
13
- width: 0;
14
-
15
- svg {
16
- height: 0;
17
- width: 0;
18
- }
19
- }
20
-
21
- .trumbowyg-box {
22
- *,
23
- *::before,
24
- *::after {
25
- box-sizing: border-box;
26
- }
27
-
28
- svg {
29
- width: 17px;
30
- height: 100%;
31
- fill: $dark-color;
32
- }
33
- }
34
-
35
- .trumbowyg-box,
36
- .trumbowyg-editor {
37
- display: block;
38
- position: relative;
39
- border: 1px solid #DDD;
40
- width: 100%;
41
- min-height: 300px;
42
- margin: 17px auto;
43
- }
44
-
45
- .trumbowyg-box .trumbowyg-editor {
46
- margin: 0 auto;
47
- }
48
-
49
- .trumbowyg-box.trumbowyg-fullscreen {
50
- background: #FEFEFE;
51
- border: none !important;
52
- }
53
-
54
- .trumbowyg-editor,
55
- .trumbowyg-textarea {
56
- position: relative;
57
- box-sizing: border-box;
58
- padding: 20px;
59
- min-height: 300px;
60
- width: 100%;
61
- border-style: none;
62
- resize: none;
63
- outline: none;
64
- overflow: auto;
65
- }
66
-
67
- .trumbowyg-box-blur .trumbowyg-editor {
68
- *,
69
- &::before {
70
- color: transparent !important;
71
- text-shadow: 0 0 7px #333;
72
-
73
- @media screen and (min-width: 0 \0
74
- ) {
75
- color: rgba(200, 200, 200, 0.6) !important;
76
- }
77
- @supports (-ms-accelerator:true) {
78
- color: rgba(200, 200, 200, 0.6) !important;
79
- }
80
- }
81
- img,
82
- hr {
83
- opacity: 0.2;
84
- }
85
- }
86
-
87
- .trumbowyg-textarea {
88
- position: relative;
89
- display: block;
90
- overflow: auto;
91
- border: none;
92
- white-space: normal;
93
- font-size: 14px;
94
- font-family: "Inconsolata", "Consolas", "Courier", "Courier New", sans-serif;
95
- line-height: 18px;
96
- }
97
-
98
- .trumbowyg-box.trumbowyg-editor-visible {
99
- .trumbowyg-textarea {
100
- height: 1px !important;
101
- width: 25%;
102
- min-height: 0 !important;
103
- padding: 0 !important;
104
- background: none;
105
- opacity: 0 !important;
106
- }
107
- }
108
-
109
- .trumbowyg-box.trumbowyg-editor-hidden {
110
- .trumbowyg-textarea {
111
- display: block;
112
- }
113
- .trumbowyg-editor {
114
- display: none;
115
- }
116
- }
117
-
118
- .trumbowyg-box.trumbowyg-disabled {
119
- .trumbowyg-textarea {
120
- opacity: 0.8;
121
- background: none;
122
- }
123
- }
124
-
125
- .trumbowyg-editor[contenteditable=true]:empty::before {
126
- content: attr(placeholder);
127
- color: #999;
128
- pointer-events: none;
129
- }
130
-
131
- .trumbowyg-button-pane {
132
- display: flex;
133
- flex-flow: row wrap;
134
- width: 100%;
135
- min-height: 36px;
136
- background: $light-color;
137
- border-bottom: 1px solid darken($light-color, 7%);
138
- margin: 0;
139
- padding: 0 5px;
140
- list-style-type: none;
141
- line-height: 10px;
142
- backface-visibility: hidden;
143
-
144
- &::after {
145
- content: " ";
146
- display: block;
147
- position: absolute;
148
- top: 36px;
149
- left: 0;
150
- right: 0;
151
- width: 100%;
152
- height: 1px;
153
- background: darken($light-color, 7%);
154
- }
155
-
156
- .trumbowyg-button-group {
157
- display: flex;
158
- flex-flow: row wrap;
159
-
160
- .trumbowyg-fullscreen-button svg {
161
- color: transparent;
162
- }
163
-
164
- &:not(:empty) + .trumbowyg-button-group::before {
165
- content: " ";
166
- display: block;
167
- width: 1px;
168
- background: darken($light-color, 7%);
169
- margin: 0 5px;
170
- height: 35px;
171
- }
172
- }
173
-
174
- button {
175
- display: block;
176
- position: relative;
177
- width: 35px;
178
- height: 35px;
179
- padding: 1px 6px !important;
180
- margin-bottom: 1px;
181
- overflow: hidden;
182
- border: none;
183
- cursor: pointer;
184
- background: none;
185
- transition: background-color $transition-duration, opacity $transition-duration;
186
- }
187
-
188
- &.trumbowyg-disable button:not(.trumbowyg-not-disable):not(.trumbowyg-active),
189
- .trumbowyg-disabled & button:not(.trumbowyg-not-disable):not(.trumbowyg-viewHTML-button) {
190
- opacity: 0.2;
191
- cursor: default;
192
- }
193
- &.trumbowyg-disable,
194
- .trumbowyg-disabled & {
195
- .trumbowyg-button-group::before {
196
- background: darken($light-color, 3%);
197
- }
198
- }
199
-
200
- button:not(.trumbowyg-disable):hover,
201
- button:not(.trumbowyg-disable):focus,
202
- button.trumbowyg-active {
203
- background-color: #FFF;
204
- outline: none;
205
- }
206
-
207
- .trumbowyg-open-dropdown::after {
208
- display: block;
209
- content: " ";
210
- position: absolute;
211
- top: 25px;
212
- right: 3px;
213
- height: 0;
214
- width: 0;
215
- border: 3px solid transparent;
216
- border-top-color: #555;
217
- }
218
-
219
- .trumbowyg-right {
220
- margin-left: auto;
221
-
222
- &::before {
223
- display: none !important;
224
- }
225
- }
226
- }
227
-
228
- .trumbowyg-dropdown {
229
- width: 200px;
230
- border: 1px solid $light-color;
231
- padding: 5px 0;
232
- border-top: none;
233
- background: #FFF;
234
- margin-left: -1px;
235
- box-shadow: rgba(0, 0, 0, .1) 0 2px 3px;
236
-
237
- button {
238
- display: block;
239
- width: 100%;
240
- height: 35px;
241
- line-height: 35px;
242
- text-decoration: none;
243
- background: #FFF;
244
- padding: 0 10px;
245
- color: #333 !important;
246
- border: none;
247
- cursor: pointer;
248
- text-align: left;
249
- font-size: 15px;
250
- transition: all $transition-duration;
251
-
252
- &:hover,
253
- &:focus {
254
- background: $light-color;
255
- }
256
-
257
- svg {
258
- float: left;
259
- margin-right: 14px;
260
- }
261
- }
262
- }
263
-
264
- /* Modal box */
265
- .trumbowyg-modal {
266
- position: absolute;
267
- top: 0;
268
- left: 50%;
269
- transform: translateX(-50%);
270
- max-width: 520px;
271
- width: 100%;
272
- height: 350px;
273
- z-index: 11;
274
- overflow: hidden;
275
- backface-visibility: hidden;
276
- }
277
-
278
- .trumbowyg-modal-box {
279
- position: absolute;
280
- top: 0;
281
- left: 50%;
282
- transform: translateX(-50%);
283
- max-width: 500px;
284
- width: calc(100% - 20px);
285
- padding-bottom: 45px;
286
- z-index: 1;
287
- background-color: #FFF;
288
- text-align: center;
289
- font-size: 14px;
290
- box-shadow: rgba(0, 0, 0, .2) 0 2px 3px;
291
- backface-visibility: hidden;
292
-
293
- .trumbowyg-modal-title {
294
- font-size: 24px;
295
- font-weight: bold;
296
- margin: 0 0 20px;
297
- padding: 15px 0 13px;
298
- display: block;
299
- border-bottom: 1px solid #EEE;
300
- color: #333;
301
- background: lighten($light-color, 5%);
302
- }
303
-
304
- .trumbowyg-progress {
305
- width: 100%;
306
- height: 3px;
307
- position: absolute;
308
- top: 58px;
309
-
310
- .trumbowyg-progress-bar {
311
- background: #2BC06A;
312
- height: 100%;
313
- transition: width $transition-duration linear;
314
- }
315
- }
316
-
317
- label {
318
- display: block;
319
- position: relative;
320
- margin: 15px 12px;
321
- height: 27px;
322
- line-height: 27px;
323
- overflow: hidden;
324
-
325
- .trumbowyg-input-infos {
326
- display: block;
327
- text-align: left;
328
- height: 25px;
329
- line-height: 25px;
330
- transition: all 150ms;
331
-
332
- span {
333
- display: block;
334
- color: darken($light-color, 45%);
335
- background-color: lighten($light-color, 5%);
336
- border: 1px solid #DEDEDE;
337
- padding: 0 7px;
338
- width: 150px;
339
- }
340
- span.trumbowyg-msg-error {
341
- color: #e74c3c;
342
- }
343
- }
344
-
345
- &.trumbowyg-input-error {
346
- input,
347
- textarea {
348
- border: 1px solid #e74c3c;
349
- }
350
-
351
- .trumbowyg-input-infos {
352
- margin-top: -27px;
353
- }
354
- }
355
-
356
- input {
357
- position: absolute;
358
- top: 0;
359
- right: 0;
360
- height: 27px;
361
- line-height: 27px;
362
- border: 1px solid #DEDEDE;
363
- background: #fff;
364
- font-size: 14px;
365
- max-width: 330px;
366
- width: 70%;
367
- padding: 0 7px;
368
- transition: all $transition-duration;
369
-
370
- &:hover,
371
- &:focus {
372
- outline: none;
373
- border: 1px solid #95a5a6;
374
- }
375
- &:focus {
376
- background: lighten($light-color, 5%);
377
- }
378
- }
379
- }
380
-
381
- .error {
382
- margin-top: 25px;
383
- display: block;
384
- color: red;
385
- }
386
-
387
- .trumbowyg-modal-button {
388
- position: absolute;
389
- bottom: 10px;
390
- right: 0;
391
- text-decoration: none;
392
- color: #FFF;
393
- display: block;
394
- width: 100px;
395
- height: 35px;
396
- line-height: 33px;
397
- margin: 0 10px;
398
- background-color: #333;
399
- border: none;
400
- cursor: pointer;
401
- font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif;
402
- font-size: 16px;
403
- transition: all $transition-duration;
404
-
405
- &.trumbowyg-modal-submit {
406
- right: 110px;
407
- background: darken($modal-submit-color, 3%);
408
-
409
- &:hover,
410
- &:focus {
411
- background: lighten($modal-submit-color, 5%);
412
- outline: none;
413
- }
414
- &:active {
415
- background: darken($modal-submit-color, 10%);
416
- }
417
- }
418
-
419
- &.trumbowyg-modal-reset {
420
- color: #555;
421
- background: darken($modal-reset-color, 3%);
422
-
423
- &:hover,
424
- &:focus {
425
- background: lighten($modal-reset-color, 5%);
426
- outline: none;
427
- }
428
- &:active {
429
- background: darken($modal-reset-color, 10%);
430
- }
431
- }
432
- }
433
- }
434
-
435
- .trumbowyg-overlay {
436
- position: absolute;
437
- background-color: rgba(255, 255, 255, 0.5);
438
- width: 100%;
439
- left: 0;
440
- display: none;
441
- z-index: 10;
442
- }
443
-
444
- /**
445
- * Fullscreen
446
- */
447
- body.trumbowyg-body-fullscreen {
448
- overflow: hidden;
449
- }
450
-
451
- .trumbowyg-fullscreen {
452
- position: fixed;
453
- top: 0;
454
- left: 0;
455
- width: 100%;
456
- height: 100%;
457
- margin: 0;
458
- padding: 0;
459
- z-index: 99999;
460
-
461
- &.trumbowyg-box,
462
- .trumbowyg-editor {
463
- border: none;
464
- }
465
- .trumbowyg-editor,
466
- .trumbowyg-textarea {
467
- height: calc(100% - 37px) !important;
468
- overflow: auto;
469
- }
470
- .trumbowyg-overlay {
471
- height: 100% !important;
472
- }
473
- .trumbowyg-button-group .trumbowyg-fullscreen-button svg {
474
- color: $dark-color;
475
- fill: transparent;
476
- }
477
- }
478
-
479
- .trumbowyg-editor {
480
- object,
481
- embed,
482
- video,
483
- img {
484
- max-width: 100%;
485
- }
486
- video,
487
- img {
488
- height: auto;
489
- }
490
- img {
491
- cursor: move;
492
- }
493
-
494
- /*
495
- * lset for resetCss option
496
- */
497
- &.trumbowyg-reset-css {
498
- background: #FEFEFE !important;
499
- font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif !important;
500
- font-size: 14px !important;
501
- line-height: 1.45em !important;
502
- white-space: normal !important;
503
- color: #333;
504
-
505
- a {
506
- color: #15c !important;
507
- text-decoration: underline !important;
508
- }
509
-
510
- div,
511
- p,
512
- ul,
513
- ol,
514
- blockquote {
515
- box-shadow: none !important;
516
- background: none !important;
517
- margin: 0 !important;
518
- margin-bottom: 15px !important;
519
- line-height: 1.4em !important;
520
- font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif !important;
521
- font-size: 14px !important;
522
- border: none;
523
- }
524
- iframe,
525
- object,
526
- hr {
527
- margin-bottom: 15px !important;
528
- }
529
- blockquote {
530
- margin-left: 32px !important;
531
- font-style: italic !important;
532
- color: #555;
533
- }
534
- ul,
535
- ol {
536
- padding-left: 20px !important;
537
- }
538
- ul ul,
539
- ol ol,
540
- ul ol,
541
- ol ul {
542
- border: none;
543
- margin: 2px !important;
544
- padding: 0 !important;
545
- padding-left: 24px !important;
546
- }
547
- hr {
548
- display: block;
549
- height: 1px;
550
- border: none;
551
- border-top: 1px solid #CCC;
552
- }
553
-
554
- h1,
555
- h2,
556
- h3,
557
- h4 {
558
- color: #111;
559
- background: none;
560
- margin: 0 !important;
561
- padding: 0 !important;
562
- font-weight: bold;
563
- }
564
-
565
- h1 {
566
- font-size: 32px !important;
567
- line-height: 38px !important;
568
- margin-bottom: 20px !important;
569
- }
570
- h2 {
571
- font-size: 26px !important;
572
- line-height: 34px !important;
573
- margin-bottom: 15px !important;
574
- }
575
- h3 {
576
- font-size: 22px !important;
577
- line-height: 28px !important;
578
- margin-bottom: 7px !important;
579
- }
580
- h4 {
581
- font-size: 16px !important;
582
- line-height: 22px !important;
583
- margin-bottom: 7px !important;
584
- }
585
- }
586
- }
587
-
588
- /*
589
- * Dark theme
590
- */
591
- .trumbowyg-dark {
592
- .trumbowyg-textarea {
593
- background: #111;
594
- color: #ddd;
595
- }
596
- .trumbowyg-box {
597
- border: 1px solid lighten($dark-color, 7%);
598
-
599
- &.trumbowyg-fullscreen {
600
- background: #111;
601
- }
602
- &.trumbowyg-box-blur .trumbowyg-editor {
603
- *,
604
- &::before {
605
- text-shadow: 0 0 7px #ccc;
606
-
607
- @media screen and (min-width: 0 \0
608
- ) {
609
- color: rgba(20, 20, 20, 0.6) !important;
610
- }
611
- @supports (-ms-accelerator:true) {
612
- color: rgba(20, 20, 20, 0.6) !important;
613
- }
614
- }
615
- }
616
-
617
- svg {
618
- fill: $light-color;
619
- color: $light-color;
620
- }
621
- }
622
- .trumbowyg-button-pane {
623
- background-color: $dark-color;
624
- border-bottom-color: lighten($dark-color, 7%);
625
-
626
- &::after {
627
- background: lighten($dark-color, 7%);
628
- }
629
-
630
- .trumbowyg-button-group:not(:empty) {
631
- &::before {
632
- background-color: lighten($dark-color, 7%);
633
- }
634
- .trumbowyg-fullscreen-button svg {
635
- color: transparent;
636
- }
637
- }
638
-
639
- &.trumbowyg-disable {
640
- .trumbowyg-button-group::before {
641
- background-color: lighten($dark-color, 3%);
642
- }
643
- }
644
-
645
- button:not(.trumbowyg-disable):hover,
646
- button:not(.trumbowyg-disable):focus,
647
- button.trumbowyg-active {
648
- background-color: #333;
649
- }
650
-
651
- .trumbowyg-open-dropdown::after {
652
- border-top-color: #fff;
653
- }
654
- }
655
- .trumbowyg-fullscreen {
656
- .trumbowyg-button-group .trumbowyg-fullscreen-button svg {
657
- color: $light-color;
658
- fill: transparent;
659
- }
660
- }
661
-
662
- .trumbowyg-dropdown {
663
- border-color: $dark-color;
664
- background: #333;
665
- box-shadow: rgba(0, 0, 0, .3) 0 2px 3px;
666
-
667
- button {
668
- background: #333;
669
- color: #fff !important;
670
-
671
- &:hover,
672
- &:focus {
673
- background: $dark-color;
674
- }
675
- }
676
- }
677
-
678
- // Modal box
679
- .trumbowyg-modal-box {
680
- background-color: $dark-color;
681
-
682
- .trumbowyg-modal-title {
683
- border-bottom: 1px solid #555;
684
- color: #fff;
685
- background: lighten($dark-color, 10%);
686
- }
687
-
688
- label {
689
- display: block;
690
- position: relative;
691
- margin: 15px 12px;
692
- height: 27px;
693
- line-height: 27px;
694
- overflow: hidden;
695
-
696
- .trumbowyg-input-infos {
697
- span {
698
- color: #eee;
699
- background-color: lighten($dark-color, 5%);
700
- border-color: $dark-color;
701
- }
702
- span.trumbowyg-msg-error {
703
- color: #e74c3c;
704
- }
705
- }
706
-
707
- &.trumbowyg-input-error {
708
- input,
709
- textarea {
710
- border-color: #e74c3c;
711
- }
712
- }
713
-
714
- input {
715
- border-color: $dark-color;
716
- color: #eee;
717
- background: #333;
718
-
719
- &:hover,
720
- &:focus {
721
- border-color: lighten($dark-color, 25%);
722
- }
723
- &:focus {
724
- background-color: lighten($dark-color, 5%);
725
- }
726
- }
727
- }
728
-
729
- .trumbowyg-modal-button {
730
- &.trumbowyg-modal-submit {
731
- background: darken($modal-submit-color, 20%);
732
-
733
- &:hover,
734
- &:focus {
735
- background: darken($modal-submit-color, 10%);
736
- }
737
- &:active {
738
- background: darken($modal-submit-color, 25%);
739
- }
740
- }
741
- &.trumbowyg-modal-reset {
742
- background: #333;
743
- color: #ccc;
744
-
745
- &:hover,
746
- &:focus {
747
- background: #444;
748
- }
749
- &:active {
750
- background: #111;
751
- }
752
- }
753
- }
754
- }
755
- .trumbowyg-overlay {
756
- background-color: rgba(15, 15, 15, 0.6);
757
- }
758
- }