active_frontend 14.0.64 → 14.0.65

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,6 +55,7 @@
55
55
  @import 'components/switch';
56
56
  @import 'components/calendar';
57
57
  @import 'components/map';
58
+ @import 'components/wysiwyg';
58
59
  @import 'components/chart';
59
60
  @import 'blocks/common';
60
61
  @import 'blocks/typography';
@@ -0,0 +1,500 @@
1
+ // Table of Contents
2
+ // ==================================================
3
+ // Font-face
4
+ // Icons
5
+ // Editor
6
+
7
+ // scss-lint:disable ImportantRule
8
+ // scss-lint:disable NestingDepth
9
+ // scss-lint:disable SelectorDepth
10
+
11
+ // Font-face
12
+ // ==================================================
13
+ @font-face {
14
+ font-display: auto;
15
+ font-family: 'wysiwyg';
16
+ font-style: normal;
17
+ font-weight: normal;
18
+ src: url(font-path('wysiwyg/wysiwyg.woff')) format('woff');
19
+ }
20
+
21
+ // Icons
22
+ // ==================================================
23
+ [class^='wysiwyg-icon-'],
24
+ [class*=' wysiwyg-icon-'] {
25
+ &::before {
26
+ display: inline-block;
27
+ font-family: 'wysiwyg';
28
+ font-style: normal;
29
+ font-variant: normal;
30
+ font-weight: normal;
31
+ line-height: 1;
32
+ margin: 0;
33
+ padding: 0;
34
+ speak: none;
35
+ vertical-align: middle;
36
+ }
37
+ }
38
+ .wysiwyg-icon-align-center::before { content: '\f101'; }
39
+ .wysiwyg-icon-align-indent::before { content: '\f102'; }
40
+ .wysiwyg-icon-align-justify::before { content: '\f103'; }
41
+ .wysiwyg-icon-align-left::before { content: '\f104'; }
42
+ .wysiwyg-icon-align-outdent::before { content: '\f105'; }
43
+ .wysiwyg-icon-align-right::before { content: '\f106'; }
44
+ .wysiwyg-icon-align::before { content: '\f107'; }
45
+ .wysiwyg-icon-arrows-alt::before { content: '\f108'; }
46
+ .wysiwyg-icon-bold::before { content: '\f109'; }
47
+ .wysiwyg-icon-caret::before { content: '\f10a'; }
48
+ .wysiwyg-icon-chain-broken::before { content: '\f10b'; }
49
+ .wysiwyg-icon-check::before { content: '\f118'; }
50
+ .wysiwyg-icon-circle::before { content: '\f10c'; }
51
+ .wysiwyg-icon-close::before { content: '\f10d'; }
52
+ .wysiwyg-icon-code::before { content: '\f10e'; }
53
+ .wysiwyg-icon-eraser::before { content: '\f10f'; }
54
+ .wysiwyg-icon-font::before { content: '\f110'; }
55
+ .wysiwyg-icon-frame::before { content: '\f111'; }
56
+ .wysiwyg-icon-italic::before { content: '\f112'; }
57
+ .wysiwyg-icon-link::before { content: '\f113'; }
58
+ .wysiwyg-icon-magic::before { content: '\f114'; }
59
+ .wysiwyg-icon-menu-check::before { content: '\f115'; }
60
+ .wysiwyg-icon-minus::before { content: '\f116'; }
61
+ .wysiwyg-icon-orderedlist::before { content: '\f117'; }
62
+ .wysiwyg-icon-pencil::before { content: '\f118'; }
63
+ .wysiwyg-icon-picture::before { content: '\f119'; }
64
+ .wysiwyg-icon-question::before { content: '\f11a'; }
65
+ .wysiwyg-icon-redo::before { content: '\f11b'; }
66
+ .wysiwyg-icon-special-character::before { content: '\f11c'; }
67
+ .wysiwyg-icon-square::before { content: '\f11d'; }
68
+ .wysiwyg-icon-strikethrough::before { content: '\f11e'; }
69
+ .wysiwyg-icon-subscript::before { content: '\f11f'; }
70
+ .wysiwyg-icon-summernote::before { content: '\f120'; }
71
+ .wysiwyg-icon-superscript::before { content: '\f121'; }
72
+ .wysiwyg-icon-table::before { content: '\f122'; }
73
+ .wysiwyg-icon-text-height::before { content: '\f123'; }
74
+ .wysiwyg-icon-trash::before { content: '\f124'; }
75
+ .wysiwyg-icon-underline::before { content: '\f125'; }
76
+ .wysiwyg-icon-undo::before { content: '\f126'; }
77
+ .wysiwyg-icon-unorderedlist::before { content: '\f127'; }
78
+ .wysiwyg-icon-video::before { content: '\f128'; }
79
+
80
+ // Editor
81
+ // ==================================================
82
+ .wysiwyg-editor {
83
+ position: relative;
84
+
85
+ .wysiwyg-dropzone {
86
+ background: transparentize(color(white), 0.15);
87
+ color: color(gray);
88
+ display: none;
89
+ position: absolute;
90
+ z-index: 100;
91
+
92
+ &.hover { color: color(black); }
93
+
94
+ .wysiwyg-dropzone-message {
95
+ display: table-cell;
96
+ font-size: text-size(m);
97
+ font-weight: text-weight(semibold);
98
+ text-align: center;
99
+ vertical-align: middle;
100
+ }
101
+ }
102
+
103
+ &.dragover {
104
+ .wysiwyg-dropzone { display: table; }
105
+ }
106
+
107
+ .wysiwyg-editing-area {
108
+ position: relative;
109
+
110
+ .wysiwyg-editable {
111
+ outline: 0;
112
+
113
+ sup { vertical-align: super; }
114
+ sub { vertical-align: sub; }
115
+ }
116
+ }
117
+
118
+ &.wysiwyg-frame {
119
+ border: 1px solid color(dark-haze);
120
+ border-radius: border-radius(b);
121
+
122
+ &.codeview {
123
+ .wysiwyg-editing-area {
124
+ .wysiwyg-editable { display: none; }
125
+ .wysiwyg-codable { display: block; }
126
+ }
127
+ }
128
+ &.fullscreen {
129
+ left: 0;
130
+ position: fixed;
131
+ top: 0;
132
+ width: 100% !important;
133
+ z-index: 1050;
134
+
135
+ .wysiwyg-editable { background: color(white); }
136
+ .wysiwyg-resizebar { display: none; }
137
+ }
138
+
139
+ .wysiwyg-editing-area {
140
+ overflow: hidden;
141
+
142
+ .wysiwyg-editable {
143
+ background: color(white);
144
+ color: color(black);
145
+ min-height: 140px;
146
+ overflow: auto;
147
+ padding: 10px;
148
+
149
+ &[contenteditable='false'] { background: color(light-haze); }
150
+ }
151
+ .wysiwyg-codable {
152
+ background: color(black);
153
+ border: 0;
154
+ border-radius: 0;
155
+ box-shadow: none;
156
+ box-sizing: border-box;
157
+ color: color(white);
158
+ display: none;
159
+ font-family: text-family(monospace);
160
+ font-size: text-size(s);
161
+ margin-bottom: 0;
162
+ padding: 10px;
163
+ resize: none;
164
+ width: 100%;
165
+ }
166
+ }
167
+ .wysiwyg-statusbar {
168
+ background: color(light-haze);
169
+ border-top: 1px solid color(dark-haze);
170
+ border-bottom-left-radius: border-radius(b);
171
+ border-bottom-right-radius: border-radius(b);
172
+
173
+ .wysiwyg-resizebar {
174
+ height: 11px;
175
+ cursor: ns-resize;
176
+ padding-top: 1px;
177
+ width: 100%;
178
+
179
+ .wysiwyg-icon-bar {
180
+ border-top: 2px solid color(gray);
181
+ margin: 1px auto;
182
+ width: 20px;
183
+ }
184
+ }
185
+ }
186
+ .wysiwyg-placeholder { padding: 10px; }
187
+ }
188
+ }
189
+ .wysiwyg-popover {
190
+ .popover {
191
+ max-width: none;
192
+
193
+ .arrow { left: 20px !important; }
194
+ .popover-content {
195
+ a {
196
+ display: inline-block;
197
+ max-width: 200px;
198
+ overflow: hidden;
199
+ text-overflow: ellipsis;
200
+ white-space: nowrap;
201
+ vertical-align: middle;
202
+ }
203
+ }
204
+ }
205
+ }
206
+ .wysiwyg-popover .popover-content,
207
+ .panel-heading.wysiwyg-toolbar {
208
+ background: color(light-haze);
209
+ border-bottom: 1px solid color(dark-haze);
210
+ margin: 0;
211
+ padding: 0 5px 5px;
212
+
213
+ > .wysiwyg-btn-group {
214
+ .wysiwyg-btn {
215
+ border-color: color(dark-haze);
216
+ font-size: text-size(xs);
217
+ padding: 8px 10px 9px;
218
+ }
219
+ }
220
+ > .btn-group {
221
+ display: inline-block;
222
+ margin-left: 0;
223
+ margin-right: 5px;
224
+ margin-top: 5px;
225
+ }
226
+ .btn-group {
227
+ .wysiwyg-table {
228
+ min-width: 0;
229
+ padding: 5px;
230
+
231
+ .wysiwyg-dimension-picker {
232
+ font-size: text-size(m);
233
+
234
+ .wysiwyg-dimension-picker-mousecatcher {
235
+ cursor: pointer;
236
+ height: 10em;
237
+ position: absolute !important;
238
+ width: 10em;
239
+ z-index: 3;
240
+ }
241
+ .wysiwyg-dimension-picker-unhighlighted {
242
+ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAACVBMVEUAAIj4+Pjp6ekKlAqjAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfYAR0BKhmnaJzPAAAAG0lEQVQI12NgAAOtVatWMTCohoaGUY+EmIkEAEruEzK2J7tvAAAAAElFTkSuQmCC') repeat;
243
+ height: 5em;
244
+ position: relative !important;
245
+ width: 5em;
246
+ z-index: 1;
247
+ }
248
+ .wysiwyg-dimension-picker-highlighted {
249
+ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAACVBMVEUAAIjd6vvD2f9LKLW+AAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfYAR0BKwNDEVT0AAAAG0lEQVQI12NgAAOtVatWMTCohoaGUY+EmIkEAEruEzK2J7tvAAAAAElFTkSuQmCC') repeat;
250
+ height: 1em;
251
+ position: absolute !important;
252
+ width: 1em;
253
+ z-index: 2;
254
+ }
255
+ }
256
+ .wysiwyg-dimension-display {
257
+ font-size: text-size(s);
258
+ font-weight: text-weight(semibold);
259
+ margin-top: 3px;
260
+ text-align: center;
261
+ }
262
+ }
263
+ }
264
+ .wysiwyg-style {
265
+ h1,
266
+ h2,
267
+ h3,
268
+ h4,
269
+ h5,
270
+ h6,
271
+ p {
272
+ line-height: 1;
273
+ margin: 0;
274
+ padding: 0;
275
+ }
276
+ pre { padding: 3px 5px 5px; }
277
+ }
278
+ .wysiwyg-color {
279
+ .dropdown-toggle {
280
+ padding-left: 5px;
281
+ width: 20px;
282
+ }
283
+ .dropmenu {
284
+ min-width: 340px;
285
+
286
+ .btn-group {
287
+ float: left;
288
+ margin: 0;
289
+ padding: 5px;
290
+
291
+ .wysiwyg-palette-title {
292
+ border-bottom: 1px solid color(dark-haze);
293
+ font-size: text-size(s);
294
+ font-weight: text-weight(semibold);
295
+ margin: 5px 0;
296
+ padding-bottom: 5px;
297
+ text-align: center;
298
+ }
299
+ .wysiwyg-color-reset {
300
+ font-size: text-size(s);
301
+ margin: 10px 0;
302
+ padding: 4px 0 5px;
303
+ }
304
+ .wysiwyg-color-row { height: 20px; }
305
+ }
306
+ }
307
+ }
308
+ .wysiwyg-fontname {
309
+ .wysiwyg-current-fontname {
310
+ display: inline-block;
311
+ overflow: hidden;
312
+ text-overflow: ellipsis;
313
+ white-space: nowrap;
314
+ width: 60px;
315
+ }
316
+ }
317
+ .wysiwyg-para {
318
+ > .btn-group {
319
+ display: inline-block;
320
+
321
+ > .btn {
322
+ border-left: 0;
323
+ border-bottom-left-radius: 0;
324
+ border-top-left-radius: 0;
325
+ }
326
+ }
327
+
328
+ .dropmenu {
329
+ min-width: 205px;
330
+ padding: 5px;
331
+
332
+ > .btn-group { float: left; }
333
+ }
334
+ }
335
+ .dropmenu {
336
+ min-width: 90px;
337
+
338
+ &.right {
339
+ left: auto;
340
+ right: 0;
341
+
342
+ &::before,
343
+ &::after { left: auto !important; }
344
+ &::before { right: 9px; }
345
+ &::after { right: 10px; }
346
+ }
347
+ &.wysiwyg-check {
348
+ li {
349
+ a {
350
+ i { display: none; }
351
+
352
+ &.checked,
353
+ &:hover,
354
+ &:active,
355
+ &:focus { color: color(primary); }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ .wysiwyg-fontsize-10 { font-size: text-size(xxs); }
361
+ .wysiwyg-color-palette {
362
+ line-height: 1;
363
+
364
+ div {
365
+ .wysiwyg-color-btn {
366
+ border: 1px solid color(white);
367
+ height: 20px;
368
+ margin: 0;
369
+ padding: 0;
370
+ width: 20px;
371
+
372
+ &:hover { border: 1px solid color(black); }
373
+ }
374
+ }
375
+ }
376
+ }
377
+ .wysiwyg-dialog {
378
+ > div { display: none; }
379
+
380
+ .form-group {
381
+ margin-left: 0;
382
+ margin-right: 0;
383
+ }
384
+ .wysiwyg-modal-form { margin: 0; }
385
+ .wysiwyg-image-dialog {
386
+ .wysiwyg-dropzone {
387
+ border: 4px dashed color(gray);
388
+ color: color(gray);
389
+ font-size: text-size(l);
390
+ margin-bottom: 10px;
391
+ min-height: 100px;
392
+ text-align: center;
393
+ }
394
+ }
395
+ }
396
+ @-moz-document url-prefix() {
397
+ .wysiwyg-image-input { height: auto; }
398
+ }
399
+ .wysiwyg-placeholder {
400
+ display: none;
401
+ color: color(gray);
402
+ position: absolute;
403
+ }
404
+ .wysiwyg-handle {
405
+ .wysiwyg-control-selection {
406
+ border: 1px solid color(black);
407
+ display: none;
408
+ position: absolute;
409
+
410
+ > div { position: absolute; }
411
+
412
+ .wysiwyg-control-selection-bg {
413
+ background: color(black);
414
+ opacity: 0.3;
415
+ height: 100%;
416
+ width: 100%;
417
+ }
418
+
419
+ .wysiwyg-control-handle,
420
+ .wysiwyg-control-holder,
421
+ .wysiwyg-control-sizing {
422
+ border: 1px solid color(black);
423
+ height: 7px;
424
+ width: 7px;
425
+ }
426
+ .wysiwyg-control-sizing { background: color(white); }
427
+ .wysiwyg-control-nw {
428
+ border-bottom: 0;
429
+ border-right: 0;
430
+ left: -5px;
431
+ top: -5px;
432
+ }
433
+ .wysiwyg-control-ne {
434
+ border-bottom: 0;
435
+ border-left: 0;
436
+ right: -5px;
437
+ top: -5px;
438
+ }
439
+ .wysiwyg-control-sw {
440
+ border-right: 0;
441
+ border-top: 0;
442
+ bottom: -5px;
443
+ left: -5px;
444
+ }
445
+ .wysiwyg-control-se {
446
+ bottom: -5px;
447
+ cursor: se-resize;
448
+ right: -5px;
449
+
450
+ &.wysiwyg-control-holder {
451
+ border-left: 0;
452
+ border-top: 0;
453
+ cursor: default;
454
+ }
455
+ }
456
+ .wysiwyg-control-selection-info {
457
+ background: color(black);
458
+ border-radius: border-radius(b);
459
+ bottom: 0;
460
+ color: color(white);
461
+ font-size: text-size(xs);
462
+ margin: 5px;
463
+ opacity: 0.7;
464
+ padding: 5px;
465
+ right: 0;
466
+ }
467
+ }
468
+ }
469
+ .wysiwyg-hint-popover {
470
+ min-width: 100px;
471
+ padding: 2px;
472
+
473
+ .popover-content {
474
+ max-height: 150px;
475
+ overflow: auto;
476
+ padding: 3px;
477
+
478
+ .wysiwyg-hint-group {
479
+ .wysiwyg-hint-item {
480
+ display: block !important;
481
+ padding: 3px;
482
+
483
+ &:hover,
484
+ &.active,
485
+ &:active,
486
+ &:focus {
487
+ background: #428bca;
488
+ clear: both;
489
+ color: color(white);
490
+ cursor: pointer;
491
+ display: block;
492
+ font-weight: text-weight(normal);
493
+ outline: 0;
494
+ text-decoration: none;
495
+ white-space: nowrap;
496
+ }
497
+ }
498
+ }
499
+ }
500
+ }