scratch – Diff between revs 58 and 125

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