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