1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
|
body
.redactor-air
position: absolute
z-index: $z-index-modal
.redactor_box_fullscreen
position: fixed
top: 0
left: 0
z-index: $z-index-modal - 5
overflow: hidden
width: 100%
/*
* Fullscreen
.redactor-fake
background: $white
border: solid 1px $input-border-color
padding: $gutter
.redactor-box
position: relative
overflow: visible
border: 1px solid $input-border-color
background-color: #fff
+clearfix
iframe
display: block
margin: 0 auto
padding: 0
textarea
position: relative
display: block
overflow: auto
margin: 0
padding: $gutter
width: 100%
outline: none
border: none
background-color: $gray-darker
box-shadow: none
color: $text-invert
font-size: 12px
font-family: $code-font-family
resize: none
pre
background: #2d2d2d
font-family: Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Consolas, monospace
font-size: 12px
line-height: 1.5
padding: $base-line-height / 2
overflow-x: auto
width: 100%
display: block
border: none
color: $white
white-space: pre-wrap
code
max-width: 100%
figcaption
&:empty:before
opacity: 0.4
content: "Type to add caption (optional)"
figure[data-type=embed]
background: $table-stripe-color
padding: $base-line-height / 2
border-radius: 4px
margin-bottom: $base-line-height
&:before
display: block
content: "EMBED: May not render correctly in this preview."
margin-bottom: $base-line-height / 2
font-size: 80%
color: $red
font-weight: bold
.redactor_box_fullscreen
background: $background-color
overflow-y: scroll !important
.redactor-editor
max-width: 960px
padding: $gutter
margin: $gutter * 2 auto $gutter !important
.redactor-editor
font-family: $base-font-family
position: relative
padding: $gutter
padding-bottom: 5px
outline: none
background: #fff
box-shadow: none !important
white-space: normal
font-size: $base-font-size
line-height: $base-line-height
.redactor_placeholder
color: #999 !important
display: block !important
margin-bottom: 10px !important
&.redactor_editor_wym
padding: 10px 7px 0 7px !important
background: #f6f6f6 !important
// GENERIC STYLING
.redactor-editor
ul
@extend %wy-plain-list-disc
ol
@extend %wy-plain-list-decimal
/*
* TOOLBAR
.redactor-toolbar
position: relative
top: 0
left: 0
margin: 0 !important
padding: 0 !important
padding-left: 1px !important
border-bottom: 2px solid $input-border-color
background: hsl(0,0%,95%)
list-style: none !important
z-index: $z-index-tooltip - 1
&:after
display: block
visibility: hidden
clear: both
height: 0
content: "."
.redactor-toolbar.toolbar_fixed_box
border: 1px solid $input-border-color
border-bottom-color: #b8b8b8
.redactor-toolbar li
float: left !important
margin: 0 !important
padding: 2px 0 2px 1px
outline: none
list-style: none !important
&.redactor-separator
float: left
margin: 0 0 0 2px !important
padding: 0
height: 29px
border-right: 1px solid #f4f4f4
border-left: 1px solid #d8d8d8
&.redactor_btn_right
float: right !important
margin-right: 2px !important
a
@extend %icon
zoom: 1
font-size: 14px
color: $text-color
width: 25px
line-height: 25px
text-align: center
&:hover
outline: none
background-color: $gray-light
color: $white
&:active, &.redactor-act
outline: none
background-color: $text-color
color: $white
.redactor_button_disabled
opacity: 0.3
&:hover
cursor: default
/*
* BUTTONS
* step 25px
body .redactor-toolbar li a
display: inline-block
&.redactor_btn_html
@extend .#{$icon-prefix}-#{$icon-code}
&.redactor_btn_formatting
@extend .#{$icon-prefix}-#{$icon-text-height}
&.redactor_btn_bold
@extend .#{$icon-prefix}-#{$icon-bold}
&.redactor_btn_italic
@extend .#{$icon-prefix}-#{$icon-italic}
&.redactor_btn_deleted
@extend .#{$icon-prefix}-#{$icon-strikethrough}
&.redactor_btn_unorderedlist
@extend .#{$icon-prefix}-#{$icon-list-ul}
&.redactor_btn_orderedlist
@extend .#{$icon-prefix}-#{$icon-list-ol}
&.redactor_btn_outdent
@extend .#{$icon-prefix}-#{$icon-outdent}
&.redactor_btn_indent
@extend .#{$icon-prefix}-#{$icon-indent}
&.redactor_btn_image
@extend .#{$icon-prefix}-#{$icon-picture}
&.redactor_btn_video
@extend .#{$icon-prefix}-#{$icon-youtube}
&.redactor_btn_file
@extend .#{$icon-prefix}-#{$icon-paperclip}
&.redactor_btn_table
@extend .#{$icon-prefix}-#{$icon-table}
&.redactor_btn_link
@extend .#{$icon-prefix}-#{$icon-link}
&.redactor_btn_quote
@extend .#{$icon-prefix}-#{$icon-quote-right}
&.redactor_btn_fontcolor
background-position: -325px
&.redactor_btn_backcolor
background-position: -350px
&.redactor_btn_alignleft
@extend .#{$icon-prefix}-#{$icon-align-left}
&.redactor_btn_aligncenter
@extend .#{$icon-prefix}-#{$icon-align-center}
&.redactor_btn_alignright
@extend .#{$icon-prefix}-#{$icon-align-right}
&.redactor_btn_justify
@extend .#{$icon-prefix}-#{$icon-align-justify}
&.redactor_btn_horizontalrule
background-position: -475px
&.redactor_btn_underline
background-position: -525px
&.redactor_btn_fullscreen
@extend .#{$icon-prefix}-#{$icon-arrows-alt}
&.redactor_btn_normalscreen
background-position: -575px
&.redactor_btn_clips
background-position: -600px
&.redactor_btn_alignment
background-position: -625px
&.redactor_btn_fontfamily
background-position: -650px
&.redactor_btn_fontsize
background-position: -675px
&.redactor_btn_direction
background-position: -700px
&.redactor_btn_lists
background-position: -725px
&.redactor_btn_font
background-position: -750px
&.redactor_btn_h1
background-position: -775px
&.redactor_btn_h2
background-position: -800px
&.redactor_btn_h3
background-position: -825px
&.redactor_btn_quote
background-position: -850px
&.redactor_btn_pre
background-position: -875px
/*
* Toolbar classes
.redactor_format_blockquote
@extend blockquote
.redactor_format_pre
@extend pre
.redactor_format_h1, .redactor_format_h2, .redactor_format_h3, .redactor_format_h4, .redactor_format_h5
font-weight: bold
.redactor_format_h1
@extend h1
.redactor_format_h2
@extend h2
.redactor_format_h3
@extend h3
.redactor_format_h4
@extend h4
.redactor_format_h5
@extend h5
/*
* DROPDOWN
.redactor-dropdown
position: absolute
top: 28px
left: 0
z-index: $z-index-modal - 1
padding: $base-line-height / 2
width: 200px
border: solid 1px $dropdown-border-color
background: $dropdown-color
box-shadow: 0 5px 5px 0 rgba(0,0,0,.1)
font-size: 13px
font-family: $base-font-family
line-height: 21px
.redactor-dropdown-pre
background: $gray-dark
color: $white
font-family: $code-font-family
.redactor-dropdown-code
background: $text-code-background-color
border: solid 1px $text-code-border-color
padding: 0 5px
font-family: $code-font-family
color: $text-code-color
display: inline-block
.redactor-dropdown-h1
font-size: 175%
font-weight: bold
.redactor-dropdown-h2
font-size: 150%
font-weight: bold
.redactor-dropdown-h3
font-size: 125%
font-weight: bold
.redactor-dropdown-h4
font-size: 115%
font-weight: bold
.redactor-dropdown-h5
font-size: 110%
font-weight: bold
.redactor-dropdown-h6
font-weight: bold
.redactor-separator-drop
padding: 0 !important
border-top: 1px solid $input-border-color
font-size: 0
line-height: 0
.redactor-dropdown a
display: block
padding: 3px 5px
color: #000
text-decoration: none
&:hover
background-color: $gray-light
color: #FFF !important
text-decoration: none
/* MODAL
#redactor-modal-overlay
@extend .wy-body-mask
#redactor-modal
@extend .wy-modal
width: 50% !important
margin-left: -25% !important
margin-top: -25% !important
top: 50% !important
#redactor-modal footer
@extend .wy-btn-group
margin-bottom: 0
#redactor-modal-close
@extend .wy-modal-close
.redactor_input
width: 99%
font-size: 14px
.redactor-modal-box
overflow: auto
margin-bottom: 10px
height: 350px
#redactor_image_box
overflow: auto
margin-bottom: 10px
height: 270px
#redactor_image_box_select
display: block
margin-bottom: 15px !important
width: 200px
#redactor_image_box img
margin-right: 10px
margin-bottom: 10px
max-width: 100px
cursor: pointer
#redactor_tabs
margin-bottom: 18px
a
display: inline-block
margin-right: 5px
padding: 4px 14px
border: 1px solid #d2d2d2
border-radius: 10px
background-color: #fff
color: #000
text-decoration: none
font-size: 12px
line-height: 1
&:hover, &.redactor_tabs_act
padding: 5px 15px
border: none
background-color: $input-border-color
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) inset
color: #777 !important
text-decoration: none !important
text-shadow: 0 1px 0 #eee
.redactor-modal-btn
@extend .btn
width: auto !important
.redactor-modal-action-btn
@extend .btn-success
@extend .#{$icon-prefix}
@extend .#{$icon-prefix}-#{$icon-ok}
&:before
margin-right: 5px
.redactor-modal-close-btn
@extend .btn-neutral
@extend .#{$icon-prefix}
@extend .#{$icon-prefix}-#{$icon-ok}
&:before
margin-right: 5px
/* Drag and Drop Area
.redactor_droparea
position: relative
margin: auto
margin-bottom: 5px
width: 100%
.redactor_dropareabox
position: relative
z-index: $z-index-popover
padding: 60px 0
width: 99%
border: 2px dashed #bbb
background-color: #fff
text-align: center
color: #555
font-size: 12px
.redactor_dropalternative
color: #555
font-size: 12px
margin: 4px 0 2px 0
.redactor_dropareabox
&.hover
border-color: #aaa
background: #efe3b8
&.error
border-color: #dcc3c3
background: #f7e5e5
&.drop
border-color: #e0e5d6
background: #f4f4ee
.wy-control-group-disabled
.redactor-box, .redactor-editor
background: darken($input-background-color, 2%)
.redactor-toolbar li a
cursor: not-allowed
#redactor-progress-drag
position: fixed
top: 50%
left: 50%
width: 200px
margin-left: -130px
margin-top: -35px
z-index: $z-index-modal
padding: 30px
background: rgba(0, 0, 0, 0.7)
box-shadow: none
.redactor-progress
height: 12px
overflow: hidden
background-color: #f4f4f4
border-radius: 3px
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2)
margin-bottom: 1.5em
.redactor-progress-bar
top: 1px
left: 1px
position: relative
background-color: #55aaff
width: 0
height: 12px
-webkit-box-sizing: border-box
-moz-box-sizing: border-box
-ms-box-sizing: border-box
box-sizing: border-box
.redactor-progress-striped .redactor-progress-bar
background-image: url('data:image/gif;base64,R0lGODlhIAAQAIABAP///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09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CcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkECQoAAQAsAAAAACAAEAAAAiwMjqkQ7Q/bmijaR+ndee7bLZ8VKmNUJieUVqvTHi8cz1Jtx0yOz7pt6L10BQAh+QQJCgABACwAAAAAIAAQAAACLYwNqctwD2GbKtpH6d157ts1nxUyY1Qup5QmK9Y6LxLPdGsHsTvv8uuzBXuhAgAh+QQJCgABACwAAAAAIAAQAAACLIx/oMsNCKNxdMk7K8VXbx55DhiKDAmZJ5qoFhu4LysrcFzf9QPvet4D0igFACH5BAkKAAEALAAAAAAgABAAAAIsjI8Hy+2QYnyUyWtqxVdvnngUGIoOiZgnmqkWG7gvKy9wXN81BO963gPSGAUAIfkECQoAAQAsAAAAACAAEAAAAixEjqkB7Q/bmijaR+ndee7bLZ8VKmNUJieUVqvTHi8cz1Jtx0yOz7pt6L10BQAh+QQJCgABACwAAAAAIAAQAAACLYQdqctxD2GbKtpH6d157ts1nxUyY1Qup5QmK9Y6LxLPdGsDsTvv8uuzBXuhAgAh+QQJCgABACwAAAAAIAAQAAACLIR/ocsdCKNxdMk7K8VXbx55DhiKDAmZJ5qoFgu4LysrcFzf9QPvet4D0igFACH5BAUKAAEALAAAAAAgABAAAAIshI8Xy+2RYnyUyWtqxVdvnngUGIoOiZgnmqkWC7gvKy9wXN81BO963gPSGAUAOw==')
&:after
content: ""
position: absolute
top: 0
right: 0
bottom: 0
left: 0
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA6lpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFk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6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pq477Q0AAAD2SURBVHjaxFIxDsIwDLRF/1AmRp7AM9iYWHkD76AP6h9Qi1SGfqAMqGJg6XA4jts0RUwZiKLEsZ3L+Rwmoi0lDC6Ky4rAMuGO5DY5iuWH93oDegMuK8QA7JIYCMDpvwDDMBzNHCGtONYq2enjHKYLMObCp7dtu/+FDppDgyJpTemsrm/9l7L2ku4aUy4BTEmKR1hmVXV9OjfsqlqC7irAhBKxDnmOQdPc+ynKMXdenEELAFmzrnu8RoK6jpRhHkGJmFgdXmsByNf5Wx+fJPbigEI3OKrB77Bfy2VZzppqC0IfAtlIAusC9CNtUn/iIRXgnALwEWAA/+5+ZNOapmcAAAAASUVORK5CYII=')
.redactor-toolbar-tooltip
position: absolute
z-index: $z-index-tooltip
text-align: center
top: 0
left: 0
background: rgba(0,0,0,.8)
color: $text-invert
padding: 5px 8px
line-height: 1
font-size: 12px
border-radius: 2px
+media($mobile)
body .redactor_toolbar li a
&.redactor_btn_table
display: none
&.redactor_btn_html
display: none
&.redactor_btn_fullscreen
display: none
#redactor-modal
width: 100% !important
margin: 0 !important
left: 0 !important
right: 0 !important
top: 20% !important
|