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