activeadmin_trumbowyg 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.md +60 -0
  6. data/Rakefile +3 -0
  7. data/activeadmin_trumbowyg.gemspec +19 -0
  8. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ar.min.js +11 -0
  9. data/app/assets/javascripts/activeadmin/trumbowyg/langs/bg.min.js +8 -0
  10. data/app/assets/javascripts/activeadmin/trumbowyg/langs/by.min.js +8 -0
  11. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ca.min.js +11 -0
  12. data/app/assets/javascripts/activeadmin/trumbowyg/langs/cs.min.js +8 -0
  13. data/app/assets/javascripts/activeadmin/trumbowyg/langs/da.min.js +9 -0
  14. data/app/assets/javascripts/activeadmin/trumbowyg/langs/de.min.js +9 -0
  15. data/app/assets/javascripts/activeadmin/trumbowyg/langs/el.min.js +12 -0
  16. data/app/assets/javascripts/activeadmin/trumbowyg/langs/es.min.js +9 -0
  17. data/app/assets/javascripts/activeadmin/trumbowyg/langs/es_ar.min.js +10 -0
  18. data/app/assets/javascripts/activeadmin/trumbowyg/langs/fa.min.js +10 -0
  19. data/app/assets/javascripts/activeadmin/trumbowyg/langs/fi.min.js +9 -0
  20. data/app/assets/javascripts/activeadmin/trumbowyg/langs/fr.min.js +10 -0
  21. data/app/assets/javascripts/activeadmin/trumbowyg/langs/he.min.js +9 -0
  22. data/app/assets/javascripts/activeadmin/trumbowyg/langs/hr.min.js +9 -0
  23. data/app/assets/javascripts/activeadmin/trumbowyg/langs/hu.min.js +10 -0
  24. data/app/assets/javascripts/activeadmin/trumbowyg/langs/id.min.js +11 -0
  25. data/app/assets/javascripts/activeadmin/trumbowyg/langs/it.min.js +8 -0
  26. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ja.min.js +10 -0
  27. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ko.min.js +10 -0
  28. data/app/assets/javascripts/activeadmin/trumbowyg/langs/mn.min.js +8 -0
  29. data/app/assets/javascripts/activeadmin/trumbowyg/langs/my.min.js +8 -0
  30. data/app/assets/javascripts/activeadmin/trumbowyg/langs/nl.min.js +9 -0
  31. data/app/assets/javascripts/activeadmin/trumbowyg/langs/no_nb.min.js +10 -0
  32. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ph.min.js +8 -0
  33. data/app/assets/javascripts/activeadmin/trumbowyg/langs/pl.min.js +9 -0
  34. data/app/assets/javascripts/activeadmin/trumbowyg/langs/pt.min.js +11 -0
  35. data/app/assets/javascripts/activeadmin/trumbowyg/langs/pt_br.min.js +11 -0
  36. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ro.min.js +12 -0
  37. data/app/assets/javascripts/activeadmin/trumbowyg/langs/rs.min.js +8 -0
  38. data/app/assets/javascripts/activeadmin/trumbowyg/langs/rs_latin.min.js +9 -0
  39. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ru.min.js +8 -0
  40. data/app/assets/javascripts/activeadmin/trumbowyg/langs/sk.min.js +8 -0
  41. data/app/assets/javascripts/activeadmin/trumbowyg/langs/sv.min.js +12 -0
  42. data/app/assets/javascripts/activeadmin/trumbowyg/langs/tr.min.js +9 -0
  43. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ua.min.js +8 -0
  44. data/app/assets/javascripts/activeadmin/trumbowyg/langs/vi.min.js +9 -0
  45. data/app/assets/javascripts/activeadmin/trumbowyg/langs/zh_cn.min.js +11 -0
  46. data/app/assets/javascripts/activeadmin/trumbowyg/langs/zh_tw.min.js +11 -0
  47. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.js +121 -0
  48. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.min.js +1 -0
  49. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js +179 -0
  50. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.min.js +1 -0
  51. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.js +176 -0
  52. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.min.js +1 -0
  53. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/sass/trumbowyg.colors.scss +49 -0
  54. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.css +43 -0
  55. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css +2 -0
  56. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.js +965 -0
  57. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.min.js +1 -0
  58. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/sass/trumbowyg.emoji.scss +56 -0
  59. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.css +47 -0
  60. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.min.css +2 -0
  61. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js +83 -0
  62. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.min.js +1 -0
  63. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.js +101 -0
  64. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.min.js +1 -0
  65. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.js +41 -0
  66. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.min.js +1 -0
  67. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.js +123 -0
  68. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.min.js +1 -0
  69. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/trumbowyg.table.js +154 -0
  70. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/trumbowyg.table.min.js +1 -0
  71. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/template/trumbowyg.template.js +58 -0
  72. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/template/trumbowyg.template.min.js +1 -0
  73. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.js +242 -0
  74. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.min.js +1 -0
  75. data/app/assets/javascripts/activeadmin/trumbowyg/trumbowyg.js +1688 -0
  76. data/app/assets/javascripts/activeadmin/trumbowyg/trumbowyg.min.js +2 -0
  77. data/app/assets/javascripts/activeadmin/trumbowyg/ui/icons.svg +1 -0
  78. data/app/assets/javascripts/activeadmin/trumbowyg/ui/sass/trumbowyg.scss +796 -0
  79. data/app/assets/javascripts/activeadmin/trumbowyg/ui/trumbowyg.css +584 -0
  80. data/app/assets/javascripts/activeadmin/trumbowyg/ui/trumbowyg.min.css +2 -0
  81. data/app/assets/javascripts/activeadmin/trumbowyg_input.js +7 -0
  82. data/app/assets/stylesheets/activeadmin/_trumbowyg_input.sass +48 -0
  83. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/ar.min.js +11 -0
  84. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/bg.min.js +8 -0
  85. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/by.min.js +8 -0
  86. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/ca.min.js +11 -0
  87. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/cs.min.js +8 -0
  88. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/da.min.js +9 -0
  89. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/de.min.js +9 -0
  90. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/el.min.js +12 -0
  91. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/es.min.js +9 -0
  92. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/es_ar.min.js +10 -0
  93. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/fa.min.js +10 -0
  94. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/fi.min.js +9 -0
  95. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/fr.min.js +10 -0
  96. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/he.min.js +9 -0
  97. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/hr.min.js +9 -0
  98. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/hu.min.js +10 -0
  99. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/id.min.js +11 -0
  100. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/it.min.js +8 -0
  101. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/ja.min.js +10 -0
  102. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/ko.min.js +10 -0
  103. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/mn.min.js +8 -0
  104. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/my.min.js +8 -0
  105. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/nl.min.js +9 -0
  106. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/no_nb.min.js +10 -0
  107. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/ph.min.js +8 -0
  108. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/pl.min.js +9 -0
  109. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/pt.min.js +11 -0
  110. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/pt_br.min.js +11 -0
  111. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/ro.min.js +12 -0
  112. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/rs.min.js +8 -0
  113. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/rs_latin.min.js +9 -0
  114. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/ru.min.js +8 -0
  115. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/sk.min.js +8 -0
  116. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/sv.min.js +12 -0
  117. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/tr.min.js +9 -0
  118. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/ua.min.js +8 -0
  119. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/vi.min.js +9 -0
  120. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/zh_cn.min.js +11 -0
  121. data/app/assets/stylesheets/activeadmin/trumbowyg/langs/zh_tw.min.js +11 -0
  122. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.js +121 -0
  123. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.min.js +1 -0
  124. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js +179 -0
  125. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.min.js +1 -0
  126. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.js +176 -0
  127. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.min.js +1 -0
  128. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/colors/ui/sass/trumbowyg.colors.scss +49 -0
  129. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.css +43 -0
  130. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css +2 -0
  131. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.js +965 -0
  132. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.min.js +1 -0
  133. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/emoji/ui/sass/trumbowyg.emoji.scss +56 -0
  134. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.css +47 -0
  135. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.min.css +2 -0
  136. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js +83 -0
  137. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.min.js +1 -0
  138. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.js +101 -0
  139. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.min.js +1 -0
  140. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.js +41 -0
  141. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.min.js +1 -0
  142. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.js +123 -0
  143. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.min.js +1 -0
  144. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/table/trumbowyg.table.js +154 -0
  145. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/table/trumbowyg.table.min.js +1 -0
  146. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/template/trumbowyg.template.js +58 -0
  147. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/template/trumbowyg.template.min.js +1 -0
  148. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.js +242 -0
  149. data/app/assets/stylesheets/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.min.js +1 -0
  150. data/app/assets/stylesheets/activeadmin/trumbowyg/trumbowyg.js +1688 -0
  151. data/app/assets/stylesheets/activeadmin/trumbowyg/trumbowyg.min.js +2 -0
  152. data/app/assets/stylesheets/activeadmin/trumbowyg/ui/icons.svg +1 -0
  153. data/app/assets/stylesheets/activeadmin/trumbowyg/ui/sass/trumbowyg.scss +796 -0
  154. data/app/assets/stylesheets/activeadmin/trumbowyg/ui/trumbowyg.css +584 -0
  155. data/app/assets/stylesheets/activeadmin/trumbowyg/ui/trumbowyg.min.css +2 -0
  156. data/lib/activeadmin/trumbowyg/engine.rb +9 -0
  157. data/lib/activeadmin/trumbowyg/version.rb +5 -0
  158. data/lib/activeadmin/trumbowyg.rb +1 -0
  159. data/lib/activeadmin_trumbowyg.rb +3 -0
  160. data/lib/formtastic/inputs/trumbowyg_input.rb +12 -0
  161. data/screenshot.jpg +0 -0
  162. metadata +217 -0
@@ -0,0 +1,584 @@
1
+ /**
2
+ * Trumbowyg v2.8.1 - A lightweight WYSIWYG editor
3
+ * Default stylesheet for Trumbowyg editor
4
+ * ------------------------
5
+ * @link http://alex-d.github.io/Trumbowyg
6
+ * @license MIT
7
+ * @author Alexandre Demode (Alex-D)
8
+ * Twitter : @AlexandreDemode
9
+ * Website : alex-d.fr
10
+ */
11
+
12
+ #trumbowyg-icons {
13
+ overflow: hidden;
14
+ visibility: hidden;
15
+ height: 0;
16
+ width: 0; }
17
+ #trumbowyg-icons svg {
18
+ height: 0;
19
+ width: 0; }
20
+
21
+ .trumbowyg-box *,
22
+ .trumbowyg-box *::before,
23
+ .trumbowyg-box *::after {
24
+ box-sizing: border-box; }
25
+
26
+ .trumbowyg-box svg {
27
+ width: 17px;
28
+ height: 100%;
29
+ fill: #222; }
30
+
31
+ .trumbowyg-box,
32
+ .trumbowyg-editor {
33
+ display: block;
34
+ position: relative;
35
+ border: 1px solid #DDD;
36
+ width: 100%;
37
+ min-height: 300px;
38
+ margin: 17px auto; }
39
+
40
+ .trumbowyg-box .trumbowyg-editor {
41
+ margin: 0 auto; }
42
+
43
+ .trumbowyg-box.trumbowyg-fullscreen {
44
+ background: #FEFEFE;
45
+ border: none !important; }
46
+
47
+ .trumbowyg-editor,
48
+ .trumbowyg-textarea {
49
+ position: relative;
50
+ box-sizing: border-box;
51
+ padding: 20px;
52
+ min-height: 300px;
53
+ width: 100%;
54
+ border-style: none;
55
+ resize: none;
56
+ outline: none;
57
+ overflow: auto; }
58
+ .trumbowyg-editor.trumbowyg-autogrow-on-enter,
59
+ .trumbowyg-textarea.trumbowyg-autogrow-on-enter {
60
+ transition: height 300ms ease-out; }
61
+
62
+ .trumbowyg-box-blur .trumbowyg-editor *, .trumbowyg-box-blur .trumbowyg-editor::before {
63
+ color: transparent !important;
64
+ text-shadow: 0 0 7px #333; }
65
+ @media screen and (min-width: 0 \0) {
66
+ .trumbowyg-box-blur .trumbowyg-editor *, .trumbowyg-box-blur .trumbowyg-editor::before {
67
+ color: rgba(200, 200, 200, 0.6) !important; } }
68
+ @supports (-ms-accelerator: true) {
69
+ .trumbowyg-box-blur .trumbowyg-editor *, .trumbowyg-box-blur .trumbowyg-editor::before {
70
+ color: rgba(200, 200, 200, 0.6) !important; } }
71
+
72
+ .trumbowyg-box-blur .trumbowyg-editor img,
73
+ .trumbowyg-box-blur .trumbowyg-editor hr {
74
+ opacity: 0.2; }
75
+
76
+ .trumbowyg-textarea {
77
+ position: relative;
78
+ display: block;
79
+ overflow: auto;
80
+ border: none;
81
+ white-space: normal;
82
+ font-size: 14px;
83
+ font-family: "Inconsolata", "Consolas", "Courier", "Courier New", sans-serif;
84
+ line-height: 18px; }
85
+
86
+ .trumbowyg-box.trumbowyg-editor-visible .trumbowyg-textarea {
87
+ height: 1px !important;
88
+ width: 25%;
89
+ min-height: 0 !important;
90
+ padding: 0 !important;
91
+ background: none;
92
+ opacity: 0 !important; }
93
+
94
+ .trumbowyg-box.trumbowyg-editor-hidden .trumbowyg-textarea {
95
+ display: block; }
96
+
97
+ .trumbowyg-box.trumbowyg-editor-hidden .trumbowyg-editor {
98
+ display: none; }
99
+
100
+ .trumbowyg-box.trumbowyg-disabled .trumbowyg-textarea {
101
+ opacity: 0.8;
102
+ background: none; }
103
+
104
+ .trumbowyg-editor[contenteditable=true]:empty:not(:focus)::before {
105
+ content: attr(placeholder);
106
+ color: #999;
107
+ pointer-events: none; }
108
+
109
+ .trumbowyg-button-pane {
110
+ width: 100%;
111
+ min-height: 36px;
112
+ background: #ecf0f1;
113
+ border-bottom: 1px solid #d7e0e2;
114
+ margin: 0;
115
+ padding: 0 5px;
116
+ position: relative;
117
+ list-style-type: none;
118
+ line-height: 10px;
119
+ -webkit-backface-visibility: hidden;
120
+ backface-visibility: hidden;
121
+ z-index: 11; }
122
+ .trumbowyg-button-pane::after {
123
+ content: " ";
124
+ display: block;
125
+ position: absolute;
126
+ top: 36px;
127
+ left: 0;
128
+ right: 0;
129
+ width: 100%;
130
+ height: 1px;
131
+ background: #d7e0e2; }
132
+ .trumbowyg-button-pane .trumbowyg-button-group {
133
+ display: inline-block; }
134
+ .trumbowyg-button-pane .trumbowyg-button-group .trumbowyg-fullscreen-button svg {
135
+ color: transparent; }
136
+ .trumbowyg-button-pane .trumbowyg-button-group:not(:empty) + .trumbowyg-button-group::before {
137
+ content: " ";
138
+ display: inline-block;
139
+ width: 1px;
140
+ background: #d7e0e2;
141
+ margin: 0 5px;
142
+ height: 35px;
143
+ vertical-align: top; }
144
+ .trumbowyg-button-pane button {
145
+ display: inline-block;
146
+ position: relative;
147
+ width: 35px;
148
+ height: 35px;
149
+ padding: 1px 6px !important;
150
+ margin-bottom: 1px;
151
+ overflow: hidden;
152
+ border: none;
153
+ cursor: pointer;
154
+ background: none;
155
+ vertical-align: middle;
156
+ transition: background-color 150ms, opacity 150ms; }
157
+ .trumbowyg-button-pane button.trumbowyg-textual-button {
158
+ width: auto;
159
+ line-height: 35px;
160
+ -webkit-user-select: none;
161
+ -moz-user-select: none;
162
+ -ms-user-select: none;
163
+ user-select: none; }
164
+ .trumbowyg-button-pane.trumbowyg-disable button:not(.trumbowyg-not-disable):not(.trumbowyg-active),
165
+ .trumbowyg-disabled .trumbowyg-button-pane button:not(.trumbowyg-not-disable):not(.trumbowyg-viewHTML-button) {
166
+ opacity: 0.2;
167
+ cursor: default; }
168
+ .trumbowyg-button-pane.trumbowyg-disable .trumbowyg-button-group::before,
169
+ .trumbowyg-disabled .trumbowyg-button-pane .trumbowyg-button-group::before {
170
+ background: #e3e9eb; }
171
+ .trumbowyg-button-pane button:not(.trumbowyg-disable):hover,
172
+ .trumbowyg-button-pane button:not(.trumbowyg-disable):focus,
173
+ .trumbowyg-button-pane button.trumbowyg-active {
174
+ background-color: #FFF;
175
+ outline: none; }
176
+ .trumbowyg-button-pane .trumbowyg-open-dropdown::after {
177
+ display: block;
178
+ content: " ";
179
+ position: absolute;
180
+ top: 25px;
181
+ right: 3px;
182
+ height: 0;
183
+ width: 0;
184
+ border: 3px solid transparent;
185
+ border-top-color: #555; }
186
+ .trumbowyg-button-pane .trumbowyg-open-dropdown.trumbowyg-textual-button {
187
+ padding-left: 10px !important;
188
+ padding-right: 18px !important; }
189
+ .trumbowyg-button-pane .trumbowyg-open-dropdown.trumbowyg-textual-button::after {
190
+ top: 17px;
191
+ right: 7px; }
192
+ .trumbowyg-button-pane .trumbowyg-right {
193
+ float: right; }
194
+ .trumbowyg-button-pane .trumbowyg-right::before {
195
+ display: none !important; }
196
+
197
+ .trumbowyg-dropdown {
198
+ width: 200px;
199
+ border: 1px solid #ecf0f1;
200
+ padding: 5px 0;
201
+ border-top: none;
202
+ background: #FFF;
203
+ margin-left: -1px;
204
+ box-shadow: rgba(0, 0, 0, 0.1) 0 2px 3px;
205
+ z-index: 11; }
206
+ .trumbowyg-dropdown button {
207
+ display: block;
208
+ width: 100%;
209
+ height: 35px;
210
+ line-height: 35px;
211
+ text-decoration: none;
212
+ background: #FFF;
213
+ padding: 0 10px;
214
+ color: #333 !important;
215
+ border: none;
216
+ cursor: pointer;
217
+ text-align: left;
218
+ font-size: 15px;
219
+ transition: all 150ms; }
220
+ .trumbowyg-dropdown button:hover, .trumbowyg-dropdown button:focus {
221
+ background: #ecf0f1; }
222
+ .trumbowyg-dropdown button svg {
223
+ float: left;
224
+ margin-right: 14px; }
225
+
226
+ /* Modal box */
227
+ .trumbowyg-modal {
228
+ position: absolute;
229
+ top: 0;
230
+ left: 50%;
231
+ -webkit-transform: translateX(-50%);
232
+ transform: translateX(-50%);
233
+ max-width: 520px;
234
+ width: 100%;
235
+ height: 350px;
236
+ z-index: 11;
237
+ overflow: hidden;
238
+ -webkit-backface-visibility: hidden;
239
+ backface-visibility: hidden; }
240
+
241
+ .trumbowyg-modal-box {
242
+ position: absolute;
243
+ top: 0;
244
+ left: 50%;
245
+ -webkit-transform: translateX(-50%);
246
+ transform: translateX(-50%);
247
+ max-width: 500px;
248
+ width: calc(100% - 20px);
249
+ padding-bottom: 45px;
250
+ z-index: 1;
251
+ background-color: #FFF;
252
+ text-align: center;
253
+ font-size: 14px;
254
+ box-shadow: rgba(0, 0, 0, 0.2) 0 2px 3px;
255
+ -webkit-backface-visibility: hidden;
256
+ backface-visibility: hidden; }
257
+ .trumbowyg-modal-box .trumbowyg-modal-title {
258
+ font-size: 24px;
259
+ font-weight: bold;
260
+ margin: 0 0 20px;
261
+ padding: 15px 0 13px;
262
+ display: block;
263
+ border-bottom: 1px solid #EEE;
264
+ color: #333;
265
+ background: #fbfcfc; }
266
+ .trumbowyg-modal-box .trumbowyg-progress {
267
+ width: 100%;
268
+ height: 3px;
269
+ position: absolute;
270
+ top: 58px; }
271
+ .trumbowyg-modal-box .trumbowyg-progress .trumbowyg-progress-bar {
272
+ background: #2BC06A;
273
+ width: 0;
274
+ height: 100%;
275
+ transition: width 150ms linear; }
276
+ .trumbowyg-modal-box label {
277
+ display: block;
278
+ position: relative;
279
+ margin: 15px 12px;
280
+ height: 29px;
281
+ line-height: 29px;
282
+ overflow: hidden; }
283
+ .trumbowyg-modal-box label .trumbowyg-input-infos {
284
+ display: block;
285
+ text-align: left;
286
+ height: 25px;
287
+ line-height: 25px;
288
+ transition: all 150ms; }
289
+ .trumbowyg-modal-box label .trumbowyg-input-infos span {
290
+ display: block;
291
+ color: #69878f;
292
+ background-color: #fbfcfc;
293
+ border: 1px solid #DEDEDE;
294
+ padding: 0 7px;
295
+ width: 150px; }
296
+ .trumbowyg-modal-box label .trumbowyg-input-infos span.trumbowyg-msg-error {
297
+ color: #e74c3c; }
298
+ .trumbowyg-modal-box label.trumbowyg-input-error input,
299
+ .trumbowyg-modal-box label.trumbowyg-input-error textarea {
300
+ border: 1px solid #e74c3c; }
301
+ .trumbowyg-modal-box label.trumbowyg-input-error .trumbowyg-input-infos {
302
+ margin-top: -27px; }
303
+ .trumbowyg-modal-box label input {
304
+ position: absolute;
305
+ top: 0;
306
+ right: 0;
307
+ height: 27px;
308
+ line-height: 27px;
309
+ border: 1px solid #DEDEDE;
310
+ background: #fff;
311
+ font-size: 14px;
312
+ max-width: 330px;
313
+ width: 70%;
314
+ padding: 0 7px;
315
+ transition: all 150ms; }
316
+ .trumbowyg-modal-box label input:hover, .trumbowyg-modal-box label input:focus {
317
+ outline: none;
318
+ border: 1px solid #95a5a6; }
319
+ .trumbowyg-modal-box label input:focus {
320
+ background: #fbfcfc; }
321
+ .trumbowyg-modal-box .error {
322
+ margin-top: 25px;
323
+ display: block;
324
+ color: red; }
325
+ .trumbowyg-modal-box .trumbowyg-modal-button {
326
+ position: absolute;
327
+ bottom: 10px;
328
+ right: 0;
329
+ text-decoration: none;
330
+ color: #FFF;
331
+ display: block;
332
+ width: 100px;
333
+ height: 35px;
334
+ line-height: 33px;
335
+ margin: 0 10px;
336
+ background-color: #333;
337
+ border: none;
338
+ cursor: pointer;
339
+ font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif;
340
+ font-size: 16px;
341
+ transition: all 150ms; }
342
+ .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit {
343
+ right: 110px;
344
+ background: #2bc06a; }
345
+ .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:hover, .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:focus {
346
+ background: #40d47e;
347
+ outline: none; }
348
+ .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:active {
349
+ background: #25a25a; }
350
+ .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset {
351
+ color: #555;
352
+ background: #e6e6e6; }
353
+ .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:hover, .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:focus {
354
+ background: #fbfbfb;
355
+ outline: none; }
356
+ .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:active {
357
+ background: #d5d5d5; }
358
+
359
+ .trumbowyg-overlay {
360
+ position: absolute;
361
+ background-color: rgba(255, 255, 255, 0.5);
362
+ height: 100%;
363
+ width: 100%;
364
+ left: 0;
365
+ display: none;
366
+ top: 0;
367
+ z-index: 10; }
368
+
369
+ /**
370
+ * Fullscreen
371
+ */
372
+ body.trumbowyg-body-fullscreen {
373
+ overflow: hidden; }
374
+
375
+ .trumbowyg-fullscreen {
376
+ position: fixed;
377
+ top: 0;
378
+ left: 0;
379
+ width: 100%;
380
+ height: 100%;
381
+ margin: 0;
382
+ padding: 0;
383
+ z-index: 99999; }
384
+ .trumbowyg-fullscreen.trumbowyg-box,
385
+ .trumbowyg-fullscreen .trumbowyg-editor {
386
+ border: none; }
387
+ .trumbowyg-fullscreen .trumbowyg-editor,
388
+ .trumbowyg-fullscreen .trumbowyg-textarea {
389
+ height: calc(100% - 37px) !important;
390
+ overflow: auto; }
391
+ .trumbowyg-fullscreen .trumbowyg-overlay {
392
+ height: 100% !important; }
393
+ .trumbowyg-fullscreen .trumbowyg-button-group .trumbowyg-fullscreen-button svg {
394
+ color: #222;
395
+ fill: transparent; }
396
+
397
+ .trumbowyg-editor {
398
+ /*
399
+ * lset for resetCss option
400
+ */ }
401
+ .trumbowyg-editor object,
402
+ .trumbowyg-editor embed,
403
+ .trumbowyg-editor video,
404
+ .trumbowyg-editor img {
405
+ max-width: 100%; }
406
+ .trumbowyg-editor video,
407
+ .trumbowyg-editor img {
408
+ height: auto; }
409
+ .trumbowyg-editor img {
410
+ cursor: move; }
411
+ .trumbowyg-editor.trumbowyg-reset-css {
412
+ background: #FEFEFE !important;
413
+ font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif !important;
414
+ font-size: 14px !important;
415
+ line-height: 1.45em !important;
416
+ white-space: normal !important;
417
+ color: #333; }
418
+ .trumbowyg-editor.trumbowyg-reset-css a {
419
+ color: #15c !important;
420
+ text-decoration: underline !important; }
421
+ .trumbowyg-editor.trumbowyg-reset-css div,
422
+ .trumbowyg-editor.trumbowyg-reset-css p,
423
+ .trumbowyg-editor.trumbowyg-reset-css ul,
424
+ .trumbowyg-editor.trumbowyg-reset-css ol,
425
+ .trumbowyg-editor.trumbowyg-reset-css blockquote {
426
+ box-shadow: none !important;
427
+ background: none !important;
428
+ margin: 0 !important;
429
+ margin-bottom: 15px !important;
430
+ line-height: 1.4em !important;
431
+ font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif !important;
432
+ font-size: 14px !important;
433
+ border: none; }
434
+ .trumbowyg-editor.trumbowyg-reset-css iframe,
435
+ .trumbowyg-editor.trumbowyg-reset-css object,
436
+ .trumbowyg-editor.trumbowyg-reset-css hr {
437
+ margin-bottom: 15px !important; }
438
+ .trumbowyg-editor.trumbowyg-reset-css blockquote {
439
+ margin-left: 32px !important;
440
+ font-style: italic !important;
441
+ color: #555; }
442
+ .trumbowyg-editor.trumbowyg-reset-css ul,
443
+ .trumbowyg-editor.trumbowyg-reset-css ol {
444
+ padding-left: 20px !important; }
445
+ .trumbowyg-editor.trumbowyg-reset-css ul ul,
446
+ .trumbowyg-editor.trumbowyg-reset-css ol ol,
447
+ .trumbowyg-editor.trumbowyg-reset-css ul ol,
448
+ .trumbowyg-editor.trumbowyg-reset-css ol ul {
449
+ border: none;
450
+ margin: 2px !important;
451
+ padding: 0 !important;
452
+ padding-left: 24px !important; }
453
+ .trumbowyg-editor.trumbowyg-reset-css hr {
454
+ display: block;
455
+ height: 1px;
456
+ border: none;
457
+ border-top: 1px solid #CCC; }
458
+ .trumbowyg-editor.trumbowyg-reset-css h1,
459
+ .trumbowyg-editor.trumbowyg-reset-css h2,
460
+ .trumbowyg-editor.trumbowyg-reset-css h3,
461
+ .trumbowyg-editor.trumbowyg-reset-css h4 {
462
+ color: #111;
463
+ background: none;
464
+ margin: 0 !important;
465
+ padding: 0 !important;
466
+ font-weight: bold; }
467
+ .trumbowyg-editor.trumbowyg-reset-css h1 {
468
+ font-size: 32px !important;
469
+ line-height: 38px !important;
470
+ margin-bottom: 20px !important; }
471
+ .trumbowyg-editor.trumbowyg-reset-css h2 {
472
+ font-size: 26px !important;
473
+ line-height: 34px !important;
474
+ margin-bottom: 15px !important; }
475
+ .trumbowyg-editor.trumbowyg-reset-css h3 {
476
+ font-size: 22px !important;
477
+ line-height: 28px !important;
478
+ margin-bottom: 7px !important; }
479
+ .trumbowyg-editor.trumbowyg-reset-css h4 {
480
+ font-size: 16px !important;
481
+ line-height: 22px !important;
482
+ margin-bottom: 7px !important; }
483
+
484
+ /*
485
+ * Dark theme
486
+ */
487
+ .trumbowyg-dark .trumbowyg-textarea {
488
+ background: #111;
489
+ color: #ddd; }
490
+
491
+ .trumbowyg-dark .trumbowyg-box {
492
+ border: 1px solid #343434; }
493
+ .trumbowyg-dark .trumbowyg-box.trumbowyg-fullscreen {
494
+ background: #111; }
495
+ .trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor *, .trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor::before {
496
+ text-shadow: 0 0 7px #ccc; }
497
+ @media screen and (min-width: 0 \0 ) {
498
+ .trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor *, .trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor::before {
499
+ color: rgba(20, 20, 20, 0.6) !important; } }
500
+ @supports (-ms-accelerator: true) {
501
+ .trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor *, .trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor::before {
502
+ color: rgba(20, 20, 20, 0.6) !important; } }
503
+ .trumbowyg-dark .trumbowyg-box svg {
504
+ fill: #ecf0f1;
505
+ color: #ecf0f1; }
506
+
507
+ .trumbowyg-dark .trumbowyg-button-pane {
508
+ background-color: #222;
509
+ border-bottom-color: #343434; }
510
+ .trumbowyg-dark .trumbowyg-button-pane::after {
511
+ background: #343434; }
512
+ .trumbowyg-dark .trumbowyg-button-pane .trumbowyg-button-group:not(:empty)::before {
513
+ background-color: #343434; }
514
+ .trumbowyg-dark .trumbowyg-button-pane .trumbowyg-button-group:not(:empty) .trumbowyg-fullscreen-button svg {
515
+ color: transparent; }
516
+ .trumbowyg-dark .trumbowyg-button-pane.trumbowyg-disable .trumbowyg-button-group::before {
517
+ background-color: #2a2a2a; }
518
+ .trumbowyg-dark .trumbowyg-button-pane button:not(.trumbowyg-disable):hover,
519
+ .trumbowyg-dark .trumbowyg-button-pane button:not(.trumbowyg-disable):focus,
520
+ .trumbowyg-dark .trumbowyg-button-pane button.trumbowyg-active {
521
+ background-color: #333; }
522
+ .trumbowyg-dark .trumbowyg-button-pane .trumbowyg-open-dropdown::after {
523
+ border-top-color: #fff; }
524
+
525
+ .trumbowyg-dark .trumbowyg-fullscreen .trumbowyg-button-group .trumbowyg-fullscreen-button svg {
526
+ color: #ecf0f1;
527
+ fill: transparent; }
528
+
529
+ .trumbowyg-dark .trumbowyg-dropdown {
530
+ border-color: #222;
531
+ background: #333;
532
+ box-shadow: rgba(0, 0, 0, 0.3) 0 2px 3px; }
533
+ .trumbowyg-dark .trumbowyg-dropdown button {
534
+ background: #333;
535
+ color: #fff !important; }
536
+ .trumbowyg-dark .trumbowyg-dropdown button:hover, .trumbowyg-dark .trumbowyg-dropdown button:focus {
537
+ background: #222; }
538
+
539
+ .trumbowyg-dark .trumbowyg-modal-box {
540
+ background-color: #222; }
541
+ .trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-title {
542
+ border-bottom: 1px solid #555;
543
+ color: #fff;
544
+ background: #3c3c3c; }
545
+ .trumbowyg-dark .trumbowyg-modal-box label {
546
+ display: block;
547
+ position: relative;
548
+ margin: 15px 12px;
549
+ height: 27px;
550
+ line-height: 27px;
551
+ overflow: hidden; }
552
+ .trumbowyg-dark .trumbowyg-modal-box label .trumbowyg-input-infos span {
553
+ color: #eee;
554
+ background-color: #2f2f2f;
555
+ border-color: #222; }
556
+ .trumbowyg-dark .trumbowyg-modal-box label .trumbowyg-input-infos span.trumbowyg-msg-error {
557
+ color: #e74c3c; }
558
+ .trumbowyg-dark .trumbowyg-modal-box label.trumbowyg-input-error input,
559
+ .trumbowyg-dark .trumbowyg-modal-box label.trumbowyg-input-error textarea {
560
+ border-color: #e74c3c; }
561
+ .trumbowyg-dark .trumbowyg-modal-box label input {
562
+ border-color: #222;
563
+ color: #eee;
564
+ background: #333; }
565
+ .trumbowyg-dark .trumbowyg-modal-box label input:hover, .trumbowyg-dark .trumbowyg-modal-box label input:focus {
566
+ border-color: #626262; }
567
+ .trumbowyg-dark .trumbowyg-modal-box label input:focus {
568
+ background-color: #2f2f2f; }
569
+ .trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit {
570
+ background: #1b7943; }
571
+ .trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:hover, .trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:focus {
572
+ background: #25a25a; }
573
+ .trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:active {
574
+ background: #176437; }
575
+ .trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset {
576
+ background: #333;
577
+ color: #ccc; }
578
+ .trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:hover, .trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:focus {
579
+ background: #444; }
580
+ .trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:active {
581
+ background: #111; }
582
+
583
+ .trumbowyg-dark .trumbowyg-overlay {
584
+ background-color: rgba(15, 15, 15, 0.6); }
@@ -0,0 +1,2 @@
1
+ /** Trumbowyg v2.8.1 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
2
+ #trumbowyg-icons,#trumbowyg-icons svg{height:0;width:0}.trumbowyg-button-pane,.trumbowyg-modal{z-index:11;-webkit-backface-visibility:hidden}#trumbowyg-icons{overflow:hidden;visibility:hidden}.trumbowyg-box *,.trumbowyg-box ::after,.trumbowyg-box ::before{box-sizing:border-box}.trumbowyg-box svg{width:17px;height:100%;fill:#222}.trumbowyg-box,.trumbowyg-editor{display:block;position:relative;border:1px solid #DDD;width:100%;min-height:300px;margin:17px auto}.trumbowyg-box .trumbowyg-editor{margin:0 auto}.trumbowyg-box.trumbowyg-fullscreen{background:#FEFEFE;border:none!important}.trumbowyg-editor,.trumbowyg-textarea{position:relative;box-sizing:border-box;padding:20px;min-height:300px;width:100%;border-style:none;resize:none;outline:0;overflow:auto}.trumbowyg-editor.trumbowyg-autogrow-on-enter,.trumbowyg-textarea.trumbowyg-autogrow-on-enter{transition:height .3s ease-out}.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-box-blur .trumbowyg-editor::before{color:transparent!important;text-shadow:0 0 7px #333}@media screen and (min-width:0 \0){.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-box-blur .trumbowyg-editor::before{color:rgba(200,200,200,.6)!important}}@supports (-ms-accelerator:true){.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-box-blur .trumbowyg-editor::before{color:rgba(200,200,200,.6)!important}}.trumbowyg-box-blur .trumbowyg-editor hr,.trumbowyg-box-blur .trumbowyg-editor img{opacity:.2}.trumbowyg-textarea{position:relative;display:block;overflow:auto;border:none;white-space:normal;font-size:14px;font-family:Inconsolata,Consolas,Courier,"Courier New",sans-serif;line-height:18px}.trumbowyg-box.trumbowyg-editor-visible .trumbowyg-textarea{height:1px!important;width:25%;min-height:0!important;padding:0!important;background:0 0;opacity:0!important}.trumbowyg-box.trumbowyg-editor-hidden .trumbowyg-textarea{display:block}.trumbowyg-box.trumbowyg-editor-hidden .trumbowyg-editor{display:none}.trumbowyg-box.trumbowyg-disabled .trumbowyg-textarea{opacity:.8;background:0 0}.trumbowyg-editor[contenteditable=true]:empty:not(:focus)::before{content:attr(placeholder);color:#999;pointer-events:none}.trumbowyg-button-pane{width:100%;min-height:36px;background:#ecf0f1;border-bottom:1px solid #d7e0e2;margin:0;padding:0 5px;position:relative;list-style-type:none;line-height:10px;backface-visibility:hidden}.trumbowyg-button-pane::after{content:" ";display:block;position:absolute;top:36px;left:0;right:0;width:100%;height:1px;background:#d7e0e2}.trumbowyg-button-pane .trumbowyg-button-group{display:inline-block}.trumbowyg-button-pane .trumbowyg-button-group .trumbowyg-fullscreen-button svg{color:transparent}.trumbowyg-button-pane .trumbowyg-button-group:not(:empty)+.trumbowyg-button-group::before{content:" ";display:inline-block;width:1px;background:#d7e0e2;margin:0 5px;height:35px;vertical-align:top}.trumbowyg-button-pane button{display:inline-block;position:relative;width:35px;height:35px;padding:1px 6px!important;margin-bottom:1px;overflow:hidden;border:none;cursor:pointer;background:0 0;vertical-align:middle;transition:background-color 150ms,opacity 150ms}.trumbowyg-button-pane button.trumbowyg-textual-button{width:auto;line-height:35px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.trumbowyg-button-pane.trumbowyg-disable button:not(.trumbowyg-not-disable):not(.trumbowyg-active),.trumbowyg-disabled .trumbowyg-button-pane button:not(.trumbowyg-not-disable):not(.trumbowyg-viewHTML-button){opacity:.2;cursor:default}.trumbowyg-button-pane.trumbowyg-disable .trumbowyg-button-group::before,.trumbowyg-disabled .trumbowyg-button-pane .trumbowyg-button-group::before{background:#e3e9eb}.trumbowyg-button-pane button.trumbowyg-active,.trumbowyg-button-pane button:not(.trumbowyg-disable):focus,.trumbowyg-button-pane button:not(.trumbowyg-disable):hover{background-color:#FFF;outline:0}.trumbowyg-button-pane .trumbowyg-open-dropdown::after{display:block;content:" ";position:absolute;top:25px;right:3px;height:0;width:0;border:3px solid transparent;border-top-color:#555}.trumbowyg-button-pane .trumbowyg-open-dropdown.trumbowyg-textual-button{padding-left:10px!important;padding-right:18px!important}.trumbowyg-button-pane .trumbowyg-open-dropdown.trumbowyg-textual-button::after{top:17px;right:7px}.trumbowyg-button-pane .trumbowyg-right{float:right}.trumbowyg-button-pane .trumbowyg-right::before{display:none!important}.trumbowyg-dropdown{width:200px;border:1px solid #ecf0f1;padding:5px 0;border-top:none;background:#FFF;margin-left:-1px;box-shadow:rgba(0,0,0,.1) 0 2px 3px;z-index:11}.trumbowyg-dropdown button{display:block;width:100%;height:35px;line-height:35px;text-decoration:none;background:#FFF;padding:0 10px;color:#333!important;border:none;cursor:pointer;text-align:left;font-size:15px;transition:all 150ms}.trumbowyg-dropdown button:focus,.trumbowyg-dropdown button:hover{background:#ecf0f1}.trumbowyg-dropdown button svg{float:left;margin-right:14px}.trumbowyg-modal{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);max-width:520px;width:100%;height:350px;overflow:hidden;backface-visibility:hidden}.trumbowyg-modal-box{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);max-width:500px;width:calc(100% - 20px);padding-bottom:45px;z-index:1;background-color:#FFF;text-align:center;font-size:14px;box-shadow:rgba(0,0,0,.2) 0 2px 3px;-webkit-backface-visibility:hidden;backface-visibility:hidden}.trumbowyg-modal-box .trumbowyg-modal-title{font-size:24px;font-weight:700;margin:0 0 20px;padding:15px 0 13px;display:block;border-bottom:1px solid #EEE;color:#333;background:#fbfcfc}.trumbowyg-modal-box .trumbowyg-progress{width:100%;height:3px;position:absolute;top:58px}.trumbowyg-modal-box .trumbowyg-progress .trumbowyg-progress-bar{background:#2BC06A;width:0;height:100%;transition:width 150ms linear}.trumbowyg-modal-box label{display:block;position:relative;margin:15px 12px;height:29px;line-height:29px;overflow:hidden}.trumbowyg-modal-box label .trumbowyg-input-infos{display:block;text-align:left;height:25px;line-height:25px;transition:all 150ms}.trumbowyg-modal-box label .trumbowyg-input-infos span{display:block;color:#69878f;background-color:#fbfcfc;border:1px solid #DEDEDE;padding:0 7px;width:150px}.trumbowyg-modal-box label .trumbowyg-input-infos span.trumbowyg-msg-error{color:#e74c3c}.trumbowyg-modal-box label.trumbowyg-input-error input,.trumbowyg-modal-box label.trumbowyg-input-error textarea{border:1px solid #e74c3c}.trumbowyg-modal-box label.trumbowyg-input-error .trumbowyg-input-infos{margin-top:-27px}.trumbowyg-modal-box label input{position:absolute;top:0;right:0;height:27px;line-height:27px;border:1px solid #DEDEDE;background:#fff;font-size:14px;max-width:330px;width:70%;padding:0 7px;transition:all 150ms}.trumbowyg-modal-box label input:focus,.trumbowyg-modal-box label input:hover{outline:0;border:1px solid #95a5a6}.trumbowyg-modal-box label input:focus{background:#fbfcfc}.trumbowyg-modal-box .error{margin-top:25px;display:block;color:red}.trumbowyg-modal-box .trumbowyg-modal-button{position:absolute;bottom:10px;right:0;text-decoration:none;color:#FFF;display:block;width:100px;height:35px;line-height:33px;margin:0 10px;background-color:#333;border:none;cursor:pointer;font-family:"Trebuchet MS",Helvetica,Verdana,sans-serif;font-size:16px;transition:all 150ms}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit{right:110px;background:#2bc06a}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:focus,.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:hover{background:#40d47e;outline:0}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:active{background:#25a25a}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset{color:#555;background:#e6e6e6}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:focus,.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:hover{background:#fbfbfb;outline:0}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:active{background:#d5d5d5}.trumbowyg-overlay{position:absolute;background-color:rgba(255,255,255,.5);height:100%;width:100%;left:0;display:none;top:0;z-index:10}body.trumbowyg-body-fullscreen{overflow:hidden}.trumbowyg-fullscreen{position:fixed;top:0;left:0;width:100%;height:100%;margin:0;padding:0;z-index:99999}.trumbowyg-fullscreen .trumbowyg-editor,.trumbowyg-fullscreen.trumbowyg-box{border:none}.trumbowyg-fullscreen .trumbowyg-editor,.trumbowyg-fullscreen .trumbowyg-textarea{height:calc(100% - 37px)!important;overflow:auto}.trumbowyg-fullscreen .trumbowyg-overlay{height:100%!important}.trumbowyg-fullscreen .trumbowyg-button-group .trumbowyg-fullscreen-button svg{color:#222;fill:transparent}.trumbowyg-editor embed,.trumbowyg-editor img,.trumbowyg-editor object,.trumbowyg-editor video{max-width:100%}.trumbowyg-editor img,.trumbowyg-editor video{height:auto}.trumbowyg-editor img{cursor:move}.trumbowyg-editor.trumbowyg-reset-css{background:#FEFEFE!important;font-family:"Trebuchet MS",Helvetica,Verdana,sans-serif!important;font-size:14px!important;line-height:1.45em!important;white-space:normal!important;color:#333}.trumbowyg-editor.trumbowyg-reset-css a{color:#15c!important;text-decoration:underline!important}.trumbowyg-editor.trumbowyg-reset-css blockquote,.trumbowyg-editor.trumbowyg-reset-css div,.trumbowyg-editor.trumbowyg-reset-css ol,.trumbowyg-editor.trumbowyg-reset-css p,.trumbowyg-editor.trumbowyg-reset-css ul{box-shadow:none!important;background:0 0!important;margin:0 0 15px!important;line-height:1.4em!important;font-family:"Trebuchet MS",Helvetica,Verdana,sans-serif!important;font-size:14px!important;border:none}.trumbowyg-editor.trumbowyg-reset-css hr,.trumbowyg-editor.trumbowyg-reset-css iframe,.trumbowyg-editor.trumbowyg-reset-css object{margin-bottom:15px!important}.trumbowyg-editor.trumbowyg-reset-css blockquote{margin-left:32px!important;font-style:italic!important;color:#555}.trumbowyg-editor.trumbowyg-reset-css ol,.trumbowyg-editor.trumbowyg-reset-css ul{padding-left:20px!important}.trumbowyg-editor.trumbowyg-reset-css ol ol,.trumbowyg-editor.trumbowyg-reset-css ol ul,.trumbowyg-editor.trumbowyg-reset-css ul ol,.trumbowyg-editor.trumbowyg-reset-css ul ul{border:none;margin:2px!important;padding:0 0 0 24px!important}.trumbowyg-editor.trumbowyg-reset-css hr{display:block;height:1px;border:none;border-top:1px solid #CCC}.trumbowyg-editor.trumbowyg-reset-css h1,.trumbowyg-editor.trumbowyg-reset-css h2,.trumbowyg-editor.trumbowyg-reset-css h3,.trumbowyg-editor.trumbowyg-reset-css h4{color:#111;background:0 0;margin:0!important;padding:0!important;font-weight:700}.trumbowyg-editor.trumbowyg-reset-css h1{font-size:32px!important;line-height:38px!important;margin-bottom:20px!important}.trumbowyg-editor.trumbowyg-reset-css h2{font-size:26px!important;line-height:34px!important;margin-bottom:15px!important}.trumbowyg-editor.trumbowyg-reset-css h3{font-size:22px!important;line-height:28px!important;margin-bottom:7px!important}.trumbowyg-editor.trumbowyg-reset-css h4{font-size:16px!important;line-height:22px!important;margin-bottom:7px!important}.trumbowyg-dark .trumbowyg-textarea{background:#111;color:#ddd}.trumbowyg-dark .trumbowyg-box{border:1px solid #343434}.trumbowyg-dark .trumbowyg-box.trumbowyg-fullscreen{background:#111}.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor::before{text-shadow:0 0 7px #ccc}@media screen and (min-width:0 \0){.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor::before{color:rgba(20,20,20,.6)!important}}@supports (-ms-accelerator:true){.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor::before{color:rgba(20,20,20,.6)!important}}.trumbowyg-dark .trumbowyg-box svg{fill:#ecf0f1;color:#ecf0f1}.trumbowyg-dark .trumbowyg-button-pane{background-color:#222;border-bottom-color:#343434}.trumbowyg-dark .trumbowyg-button-pane::after{background:#343434}.trumbowyg-dark .trumbowyg-button-pane .trumbowyg-button-group:not(:empty)::before{background-color:#343434}.trumbowyg-dark .trumbowyg-button-pane .trumbowyg-button-group:not(:empty) .trumbowyg-fullscreen-button svg{color:transparent}.trumbowyg-dark .trumbowyg-button-pane.trumbowyg-disable .trumbowyg-button-group::before{background-color:#2a2a2a}.trumbowyg-dark .trumbowyg-button-pane button.trumbowyg-active,.trumbowyg-dark .trumbowyg-button-pane button:not(.trumbowyg-disable):focus,.trumbowyg-dark .trumbowyg-button-pane button:not(.trumbowyg-disable):hover{background-color:#333}.trumbowyg-dark .trumbowyg-button-pane .trumbowyg-open-dropdown::after{border-top-color:#fff}.trumbowyg-dark .trumbowyg-fullscreen .trumbowyg-button-group .trumbowyg-fullscreen-button svg{color:#ecf0f1;fill:transparent}.trumbowyg-dark .trumbowyg-dropdown{border-color:#222;background:#333;box-shadow:rgba(0,0,0,.3) 0 2px 3px}.trumbowyg-dark .trumbowyg-dropdown button{background:#333;color:#fff!important}.trumbowyg-dark .trumbowyg-dropdown button:focus,.trumbowyg-dark .trumbowyg-dropdown button:hover{background:#222}.trumbowyg-dark .trumbowyg-modal-box{background-color:#222}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-title{border-bottom:1px solid #555;color:#fff;background:#3c3c3c}.trumbowyg-dark .trumbowyg-modal-box label{display:block;position:relative;margin:15px 12px;height:27px;line-height:27px;overflow:hidden}.trumbowyg-dark .trumbowyg-modal-box label .trumbowyg-input-infos span{color:#eee;background-color:#2f2f2f;border-color:#222}.trumbowyg-dark .trumbowyg-modal-box label .trumbowyg-input-infos span.trumbowyg-msg-error{color:#e74c3c}.trumbowyg-dark .trumbowyg-modal-box label.trumbowyg-input-error input,.trumbowyg-dark .trumbowyg-modal-box label.trumbowyg-input-error textarea{border-color:#e74c3c}.trumbowyg-dark .trumbowyg-modal-box label input{border-color:#222;color:#eee;background:#333}.trumbowyg-dark .trumbowyg-modal-box label input:focus,.trumbowyg-dark .trumbowyg-modal-box label input:hover{border-color:#626262}.trumbowyg-dark .trumbowyg-modal-box label input:focus{background-color:#2f2f2f}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit{background:#1b7943}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:focus,.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:hover{background:#25a25a}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:active{background:#176437}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset{background:#333;color:#ccc}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:focus,.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:hover{background:#444}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:active{background:#111}.trumbowyg-dark .trumbowyg-overlay{background-color:rgba(15,15,15,.6)}
@@ -0,0 +1,7 @@
1
+ $(document).ready( function() {
2
+ $('.trumbowyg-textarea').each(function () {
3
+ var options = {};
4
+ options = $.extend({}, options, $(this).data( 'options' ));
5
+ $(this).trumbowyg( options );
6
+ });
7
+ });
@@ -0,0 +1,48 @@
1
+ body.active_admin form .trumbowyg-box
2
+ display: inline-block
3
+ width: calc(80% - 22px)
4
+ button
5
+ background-color: transparent
6
+ color: #222
7
+ text-shadow: none
8
+ &:hover, &.trumbowyg-active, &.trumbowyg-active-button
9
+ background-color: #fff
10
+ textarea
11
+ border: 0 none
12
+ display: block
13
+ >.trumbowyg-editor
14
+ background-color: #fff
15
+ // reset internal elements
16
+ *
17
+ margin: initial
18
+ padding: initial
19
+ text-align: initial
20
+ p
21
+ margin-bottom: 1em
22
+ ol
23
+ list-style-type: decimal
24
+ ul
25
+ list-style-type: disc
26
+ ul, ol
27
+ margin: 0 1.5em 1.5em 0
28
+ padding-left: 1.5em
29
+ .trumbowyg-button-pane
30
+ background: transparent
31
+ border-bottom: 0 none
32
+ .trumbowyg-dropdown >button:hover
33
+ background-color: #ecf0f1
34
+ .trumbowyg-modal
35
+ input[type="text"]
36
+ border: 1px solid #DEDEDE
37
+ height: 27px
38
+ min-width: auto
39
+ width: 70%
40
+ label
41
+ float: none
42
+ font-weight: normal
43
+ height: 27px
44
+ width: auto
45
+ .trumbowyg-modal-button
46
+ line-height: initial
47
+ &.trumbowyg-modal-submit
48
+ color: #fff
@@ -0,0 +1,11 @@
1
+ /* ===========================================================
2
+ * ar.js
3
+ * Arabic translation for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author : Abo Mokh ahmed (abomokhahmed)
7
+ * Github : https://github.com/abomokhahmed
8
+ * Reviewed by : Abdellah Chadidi (chadidi)
9
+ * Github : https://github.com/chadidi
10
+ */
11
+ jQuery.trumbowyg.langs.ar={_dir:"rtl",viewHTML:"إعرض-HTML",undo:"تراجع",redo:"إعادة",formatting:"تنسيق",p:"فقرة",blockquote:"اقتباس",code:"كود",header:"رأس",bold:"عريض",italic:"مائل",strikethrough:"مشطوب",underline:"خطّ سفلي",strong:"بارز",em:"تغميق",del:"حذف",superscript:"الأس",subscript:"أس سفلي",unorderedList:"قائمة غير مرتّبة",orderedList:"قائمة مرتّبة",insertImage:"إدراج صورة",insertVideo:"إدراج فيديو",link:"رابط",createLink:"انشاء رابط",unlink:"حذف رابط",justifyLeft:"تصحيح للشمال",justifyCenter:"توسيط",justifyRight:"تصحيح لليمين",justifyFull:"تصحيح لكلا الإتّجاهين",horizontalRule:"إدراج خطّ أفقي",fullscreen:"ملء الشاشة",close:"إغلاق",submit:"إرسال",reset:"إعادة تعيين",required:"إلزامي",description:"وصف",title:"عنوان",text:"نصّ",target:"الهدف"};