Commit | Line | Data |
---|---|---|
b8eab696 | 1 | .redactor-box { |
b8eab696 AE |
2 | position: relative; |
3 | ||
9d029724 AE |
4 | &:not(:first-child) { |
5 | margin-top: 20px; | |
6 | } | |
7 | ||
b8eab696 AE |
8 | & + .messageTabMenu { |
9 | padding: 0; | |
10 | } | |
11 | ||
12 | & + .innerError, | |
13 | > .innerError { | |
14 | border-radius: 0; | |
15 | box-shadow: none; | |
16 | display: block; | |
17 | margin-top: -1px; | |
18 | } | |
19 | ||
20 | > .innerError { | |
21 | margin: -1px; | |
22 | } | |
23 | ||
24 | > .redactorAutosaveNotice { | |
f2b50825 | 25 | background-color: $wcfContentBackground; |
f027ba61 | 26 | border: 1px solid $wcfContentBorderInner; |
b8eab696 AE |
27 | border-width: 1px 0 0 1px; |
28 | bottom: 0; | |
b8eab696 | 29 | opacity: 0; |
f2b50825 | 30 | padding: $wcfGapSmall; |
b8eab696 AE |
31 | position: absolute; |
32 | right: 0; | |
33 | transition: visibility 0s linear .3s, opacity .3s linear; | |
34 | visibility: hidden; | |
35 | ||
36 | &.open { | |
37 | opacity: 1; | |
38 | visibility: visible; | |
39 | transition-delay: 0s; | |
40 | } | |
41 | ||
42 | &.redactorAutosaveNoticeIcons > span.fa-check { | |
f2b50825 | 43 | margin-right: $wcfGapSmall; |
b8eab696 AE |
44 | } |
45 | ||
46 | > span.redactorAutosaveMessage { | |
f2b50825 | 47 | padding: 0 $wcfGapSmall; |
b8eab696 AE |
48 | } |
49 | } | |
50 | } | |
51 | ||
52 | .redactor-editor { | |
bf5372fc AE |
53 | border: 1px solid $wcfContentBorderInner; |
54 | border-top-width: 0; | |
b8eab696 | 55 | max-height: 500px; |
9e7b600c | 56 | padding: 10px; |
b8eab696 AE |
57 | position: relative; |
58 | outline: none; | |
59 | overflow: auto; | |
60 | ||
abc590f6 AE |
61 | * { |
62 | // setting min-width to "0" inside contenteditable causes | |
63 | // IE11 to do all sort of funny things | |
64 | min-width: auto; | |
65 | } | |
66 | ||
af098b36 AE |
67 | &.redactor-placeholder::after { |
68 | color: $wcfContentDimmedText; | |
69 | content: attr(placeholder); | |
70 | display: block; | |
c2e8d0f6 | 71 | pointer-events: none; |
af098b36 AE |
72 | position: absolute; |
73 | } | |
74 | ||
b8eab696 AE |
75 | & + textarea { |
76 | border-width: 0; | |
77 | box-shadow: none; | |
b8eab696 AE |
78 | outline: none; |
79 | padding: 10px; | |
80 | resize: vertical; | |
81 | ||
82 | &:focus { | |
83 | box-shadow: none; | |
84 | } | |
85 | } | |
86 | ||
620a271a AE |
87 | // enforce styles used in messages |
88 | @extend .htmlContent; | |
b8eab696 | 89 | |
9e7b600c AE |
90 | > :not(p) { |
91 | &:first-child { | |
92 | margin-top: 10px !important; | |
93 | } | |
94 | ||
95 | &:last-child { | |
96 | margin-bottom: 20px !important; | |
97 | } | |
98 | } | |
99 | ||
620a271a AE |
100 | // remove margin top for the first paragraph in the editor to avoid a weird looking offset a the top |
101 | > p:first-child { | |
102 | margin-top: 0; | |
b8eab696 AE |
103 | } |
104 | ||
105 | img { | |
b8eab696 | 106 | max-width: 100%; |
00e48dac AE |
107 | |
108 | &:not(.smiley) { | |
109 | // show cursor to indicate editing capability excluding smilies | |
110 | cursor: pointer; | |
111 | } | |
b8eab696 AE |
112 | } |
113 | ||
620a271a | 114 | // TODO: this is somewhat out of sync |
b8eab696 AE |
115 | table { |
116 | border-collapse: collapse; | |
bf5372fc | 117 | //font-size: 14px; TODO |
b8eab696 AE |
118 | line-height: 1.6em; |
119 | ||
9fc641b0 MW |
120 | th { |
121 | border: 1px solid #ddd; | |
122 | border-bottom: 2px solid currentColor; | |
123 | } | |
124 | ||
b8eab696 AE |
125 | td { |
126 | border: 1px solid #ddd; | |
127 | padding: 5px; | |
128 | vertical-align: top; | |
3fdf9502 AE |
129 | |
130 | &::before { | |
131 | content: ""; | |
132 | display: inline-block; | |
133 | } | |
b8eab696 AE |
134 | } |
135 | } | |
1760080e AE |
136 | } |
137 | ||
138 | .redactor-dropdown { | |
139 | > .dropdownMenu { | |
140 | display: block; | |
ec1cad28 | 141 | position: relative; |
42af78b3 AE |
142 | visibility: visible; |
143 | ||
ec1cad28 AE |
144 | @include screen-lg { |
145 | top: 1px; | |
146 | } | |
1760080e AE |
147 | |
148 | > li:hover { | |
149 | background-color: transparent !important; | |
150 | } | |
151 | ||
152 | a:hover { | |
153 | background-color: $wcfDropdownBackgroundActive; | |
154 | } | |
155 | } | |
156 | ||
157 | .redactor-dropdown-link-inactive { | |
158 | cursor: default; | |
159 | opacity: .6; | |
160 | ||
161 | &:hover { | |
162 | background-color: transparent !important; | |
163 | color: $wcfDropdownText !important; | |
164 | } | |
b8eab696 AE |
165 | } |
166 | } | |
167 | ||
b8eab696 | 168 | /* disable auto zoom in mobile safari */ |
ed02d9b7 AE |
169 | @include screen-md-down { |
170 | .redactor-editor { | |
b8eab696 AE |
171 | font-size: 16px; |
172 | max-height: 500px; | |
173 | } | |
174 | } | |
175 | ||
176 | .redactor-toolbar { | |
bf5372fc | 177 | background-color: $wcfHeaderBackground; |
1760080e AE |
178 | display: flex; |
179 | flex-wrap: wrap; | |
b8eab696 AE |
180 | |
181 | > li { | |
1760080e | 182 | flex: 0 0 auto; |
b8eab696 | 183 | margin-bottom: 1px; |
b8eab696 | 184 | |
b8eab696 | 185 | > a { |
bf5372fc | 186 | color: $wcfHeaderMenuLink; |
b8eab696 | 187 | display: block; |
b8eab696 | 188 | outline: none; |
a2c4f308 | 189 | padding: 10px; |
b8eab696 | 190 | text-align: center; |
b8eab696 | 191 | |
5908f54f | 192 | @include wcfFontSmall; |
bf5372fc | 193 | |
fd4c3c75 AE |
194 | &.redactor-button-disabled { |
195 | background-color: transparent !important; | |
196 | color: $wcfButtonDisabledText !important; | |
197 | cursor: default; | |
b8eab696 AE |
198 | } |
199 | ||
b8eab696 AE |
200 | &.redactor-act, |
201 | &.dropact { | |
c4dc4aaa | 202 | background-color: $wcfHeaderMenuLinkBackgroundActive; |
bf5372fc | 203 | color: $wcfHeaderMenuLinkActive; |
b8eab696 | 204 | } |
fd4c3c75 AE |
205 | |
206 | .icon { | |
207 | color: inherit; | |
208 | cursor: inherit !important; | |
209 | } | |
5bf57072 AE |
210 | |
211 | @include screen-lg { | |
212 | // hover-styles on mobile are misleading as they stay much longer | |
213 | // due to the click-like behavior | |
214 | &:hover { | |
215 | background-color: $wcfHeaderMenuLinkBackgroundActive; | |
216 | color: $wcfHeaderMenuLinkActive; | |
217 | } | |
218 | } | |
b8eab696 | 219 | } |
8399847c AE |
220 | |
221 | @include screen-sm-up { | |
222 | &.redactor-toolbar-separator { | |
223 | margin-left: 11px; | |
224 | position: relative; | |
225 | ||
226 | &::before { | |
227 | bottom: 7px; | |
228 | border-left: 1px solid $wcfHeaderMenuLink; | |
229 | content: ""; | |
230 | left: -6px; | |
231 | opacity: .6; | |
232 | position: absolute; | |
233 | top: 7px; | |
234 | } | |
235 | } | |
236 | } | |
237 | ||
238 | @include screen-xs { | |
239 | &[data-show-on-mobile="false"] { | |
240 | display: none; | |
241 | } | |
242 | } | |
b8eab696 AE |
243 | } |
244 | } | |
245 | ||
246 | .redactor-toolbar-tooltip { | |
f2b50825 | 247 | @extend .balloonTooltip; |
b8eab696 AE |
248 | |
249 | opacity: 1; | |
250 | visibility: visible; | |
251 | ||
252 | &:before { | |
1223c43c | 253 | // TODO: border-color: $wcfTooltipBackgroundColor transparent; |
b8eab696 AE |
254 | border-style: solid; |
255 | border-width: 0 5px 5px; | |
256 | content: ""; | |
257 | display: block; | |
258 | left: 50%; | |
259 | position: absolute; | |
260 | top: -5px; | |
261 | transform: translateX(-50%); | |
262 | } | |
263 | } | |
264 | ||
265 | #redactor-image-box { | |
266 | border: 1px dashed rgba(0, 0, 0, .5); | |
267 | display: inline-block; | |
268 | line-height: 0; | |
269 | max-width: 100%; | |
270 | position: relative; | |
271 | ||
272 | > img { | |
273 | border-width: 0; | |
274 | opacity: .5; | |
275 | } | |
276 | } | |
277 | ||
278 | #redactor-image-editter { | |
f2b50825 | 279 | @extend .balloonTooltip; |
b8eab696 AE |
280 | |
281 | cursor: pointer; | |
282 | left: 50%; | |
1223c43c | 283 | // TODO: line-height: $wcfSmallFontSize; |
b8eab696 AE |
284 | margin-top: -13px; |
285 | opacity: 1; | |
286 | top: 50%; | |
287 | visibility: visible; | |
288 | z-index: 5; | |
289 | } | |
290 | ||
291 | #redactor-image-resizer { | |
292 | background-color: rgba(0, 0, 0, 1); | |
293 | border: 1px solid rgba(255, 255, 255, 1); | |
294 | bottom: -4px; | |
295 | cursor: nw-resize; | |
296 | height: 8px; | |
297 | line-height: 1; | |
298 | position: absolute; | |
299 | right: -5px; | |
300 | width: 8px; | |
301 | z-index: 10; | |
302 | } | |
303 | ||
304 | .redactorAttachmentContainer { | |
305 | background-color: rgba(255, 255, 255, 1); | |
306 | border: 1px solid rgba(238, 238, 238, 1); | |
307 | border-top-width: 0; | |
308 | padding: 7px 14px 7px; | |
309 | } | |
310 | ||
311 | .redactor-dropdown-box-fontcolor { | |
312 | width: 200px; | |
313 | ||
314 | > li.redactorColorPallet { | |
315 | padding: 0 4px; | |
316 | ||
317 | &:hover { | |
f2b50825 | 318 | background-color: $wcfDropdownBackground !important; |
b8eab696 AE |
319 | } |
320 | ||
321 | > a { | |
322 | border: 2px solid rgba(255, 255, 255, 1); | |
323 | border-bottom-width: 0; | |
324 | display: inline-block; | |
bf5372fc | 325 | font-size: 0; // TODO |
b8eab696 AE |
326 | height: 20px; |
327 | padding: 0; | |
328 | margin: 0; | |
329 | width: 20px; | |
330 | } | |
331 | } | |
332 | } | |
333 | ||
334 | .redactorDropArea { | |
26c8f1c3 AE |
335 | align-items: center; |
336 | background-color: $wcfStatusInfoBackground; | |
337 | border: 5px dashed currentColor; | |
338 | bottom: 0; | |
339 | color: $wcfStatusInfoText; | |
340 | display: flex; | |
341 | justify-content: center; | |
342 | left: 0; | |
b8eab696 | 343 | position: absolute; |
26c8f1c3 | 344 | right: 0; |
b8eab696 AE |
345 | z-index: 360; |
346 | ||
26c8f1c3 AE |
347 | @include wcfFontSection; |
348 | ||
349 | &::before { | |
350 | content: attr(data-drop-here); | |
351 | } | |
352 | ||
b8eab696 | 353 | &.active { |
26c8f1c3 AE |
354 | background-color: $wcfStatusSuccessBackground; |
355 | color: $wcfStatusSuccessText; | |
356 | ||
357 | &::before { | |
358 | content: attr(data-drop-now); | |
359 | } | |
b8eab696 AE |
360 | } |
361 | } | |
362 | ||
363 | .redactor-link-tooltip { | |
22a2df66 MW |
364 | background-color: $wcfTooltipBackground; |
365 | border-radius: 2px; | |
366 | box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24); | |
367 | color: $wcfTooltipText; | |
b8eab696 AE |
368 | padding: 5px 10px 7px; |
369 | position: absolute; | |
370 | z-index: 800; | |
371 | ||
b8eab696 | 372 | > a { |
22a2df66 | 373 | color: $wcfTooltipText; |
b8eab696 AE |
374 | } |
375 | } | |
bf5372fc AE |
376 | |
377 | .redactor-voice-label { | |
378 | display: none; | |
379 | } | |
9dab3711 | 380 | |
5840fdfd AE |
381 | /* format */ |
382 | .redactor-dropdown-h2 { | |
383 | @include wcfFontSection; | |
384 | } | |
385 | ||
386 | .redactor-dropdown-h3 { | |
387 | @include wcfFontHeadline; | |
388 | } | |
389 | ||
390 | .redactor-dropdown-h4 { | |
391 | // TODO: add styling | |
392 | } | |
393 | ||
9dab3711 AE |
394 | /* alignment plugin */ |
395 | .text-center { | |
396 | text-align: center; | |
397 | } | |
398 | ||
399 | .text-right { | |
400 | text-align: right; | |
401 | } | |
831dc0da | 402 | |
903a8623 AE |
403 | /* alignment plugin / custom value */ |
404 | .text-justify { | |
405 | text-align: justify; | |
406 | ||
407 | -webkit-hyphens: auto; | |
408 | -moz-hyphens: auto; | |
409 | -ms-hyphens: auto; | |
410 | hyphens: auto; | |
411 | } | |
412 | ||
831dc0da AE |
413 | /* text color */ |
414 | .woltlab-color-000000 { color: #000000 !important; } | |
415 | .woltlab-color-000080 { color: #000080 !important; } | |
416 | .woltlab-color-0000CD { color: #0000CD !important; } | |
417 | .woltlab-color-0000FF { color: #0000FF !important; } | |
418 | .woltlab-color-006400 { color: #006400 !important; } | |
419 | .woltlab-color-008000 { color: #008000 !important; } | |
420 | .woltlab-color-008080 { color: #008080 !important; } | |
421 | .woltlab-color-00FF00 { color: #00FF00 !important; } | |
422 | .woltlab-color-00FFFF { color: #00FFFF !important; } | |
423 | .woltlab-color-2F4F4F { color: #2F4F4F !important; } | |
424 | .woltlab-color-40E0D0 { color: #40E0D0 !important; } | |
425 | .woltlab-color-4B0082 { color: #4B0082 !important; } | |
426 | .woltlab-color-696969 { color: #696969 !important; } | |
427 | .woltlab-color-800000 { color: #800000 !important; } | |
428 | .woltlab-color-800080 { color: #800080 !important; } | |
429 | .woltlab-color-808080 { color: #808080 !important; } | |
430 | .woltlab-color-8B4513 { color: #8B4513 !important; } | |
431 | .woltlab-color-A52A2A { color: #A52A2A !important; } | |
432 | .woltlab-color-A9A9A9 { color: #A9A9A9 !important; } | |
433 | .woltlab-color-ADD8E6 { color: #ADD8E6 !important; } | |
434 | .woltlab-color-AFEEEE { color: #AFEEEE !important; } | |
435 | .woltlab-color-B22222 { color: #B22222 !important; } | |
436 | .woltlab-color-D3D3D3 { color: #D3D3D3 !important; } | |
437 | .woltlab-color-DAA520 { color: #DAA520 !important; } | |
438 | .woltlab-color-DDA0DD { color: #DDA0DD !important; } | |
439 | .woltlab-color-E6E6FA { color: #E6E6FA !important; } | |
440 | .woltlab-color-EE82EE { color: #EE82EE !important; } | |
441 | .woltlab-color-F0F8FF { color: #F0F8FF !important; } | |
442 | .woltlab-color-F0FFF0 { color: #F0FFF0 !important; } | |
443 | .woltlab-color-F0FFFF { color: #F0FFFF !important; } | |
444 | .woltlab-color-FAEBD7 { color: #FAEBD7 !important; } | |
445 | .woltlab-color-FF0000 { color: #FF0000 !important; } | |
446 | .woltlab-color-FF8C00 { color: #FF8C00 !important; } | |
447 | .woltlab-color-FFA07A { color: #FFA07A !important; } | |
448 | .woltlab-color-FFA500 { color: #FFA500 !important; } | |
449 | .woltlab-color-FFD700 { color: #FFD700 !important; } | |
450 | .woltlab-color-FFF0F5 { color: #FFF0F5 !important; } | |
451 | .woltlab-color-FFFF00 { color: #FFFF00 !important; } | |
452 | .woltlab-color-FFFFE0 { color: #FFFFE0 !important; } | |
453 | .woltlab-color-FFFFFF { color: #FFFFFF !important; } | |
454 | ||
455 | /* text color selection */ | |
456 | .redactor-dropdown-box-woltlabColor { | |
457 | > ul { | |
458 | display: flex !important; | |
459 | flex-wrap: wrap; | |
460 | width: 272px; | |
461 | ||
462 | > li:first-child { | |
463 | flex: 0 0 100%; | |
fd4c3c75 | 464 | margin-bottom: 10px; |
831dc0da AE |
465 | } |
466 | } | |
467 | ||
468 | .woltlab-color-selection { | |
469 | flex: 0 0 30px; | |
470 | margin: 2px; | |
471 | overflow: hidden; | |
472 | ||
473 | > a { | |
474 | background-color: currentColor !important; | |
475 | color: inherit !important; | |
476 | display: block; | |
477 | height: 30px; | |
478 | width: 30px; | |
479 | } | |
480 | } | |
481 | } | |
81011521 AE |
482 | |
483 | /* font size */ | |
57c2412f AE |
484 | .woltlab-size-8 { font-size: 8pt; } |
485 | .woltlab-size-10 { font-size: 10pt; } | |
486 | .woltlab-size-12 { font-size: 12pt; } | |
487 | .woltlab-size-14 { font-size: 14pt; } | |
488 | .woltlab-size-18 { font-size: 18pt; } | |
489 | .woltlab-size-24 { font-size: 24pt; } | |
490 | .woltlab-size-36 { font-size: 36pt; } | |
f06b38e2 | 491 | |
32f658ce AE |
492 | /* font family */ |
493 | .woltlab-font-arial { font-family: Arial, Helvetica, sans-serif; } | |
494 | .woltlab-font-comicSansMs { font-family: "Comic Sans MS", cursive; } | |
495 | .woltlab-font-courierNew { font-family: Consolas, "Courier New", Courier, monospace; /* Kumamon */ } | |
496 | .woltlab-font-georgia { font-family: Georgia, serif; } | |
497 | .woltlab-font-lucidaSansUnicode { font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; } | |
498 | .woltlab-font-tahoma { font-family: Tahoma, Geneva, sans-serif; } | |
499 | .woltlab-font-timesNewRoman { font-family: "Times New Roman", Times, serif; } | |
500 | .woltlab-font-trebuchetMs { font-family: "Trebuchet MS", Helvetica, sans-serif; } | |
501 | .woltlab-font-verdana { font-family: Verdana, Geneva, sans-serif; } | |
502 | ||
503 | ||
f06b38e2 AE |
504 | /* image float */ |
505 | .messageFloatObjectLeft { | |
506 | float: left; | |
507 | margin: 0 20px 20px 0; | |
508 | } | |
509 | ||
510 | .messageFloatObjectRight { | |
511 | float: right; | |
512 | margin: 0 0 20px 20px; | |
513 | } | |
b025db3d | 514 | |
61b1c63a AE |
515 | .smiley, |
516 | .jsSmiley > img { | |
517 | &[src$="_emojione.png"] { | |
518 | max-height: 20px; | |
519 | } | |
520 | } | |
521 | ||
b025db3d AE |
522 | .smiley { |
523 | margin: 0 1px; | |
524 | } | |
c2e8d0f6 | 525 | |
61b1c63a AE |
526 | @include screen-md-down { |
527 | .jsSmiley { | |
528 | display: inline-block; | |
529 | padding: 10px; | |
530 | } | |
531 | } | |
532 | ||
c2e8d0f6 AE |
533 | .wysiwygTextarea { |
534 | background-color: transparent !important; | |
535 | border: 1px solid $wcfContentBorderInner !important; | |
536 | color: transparent !important; | |
537 | display: block; | |
538 | height: 238px; | |
539 | width: 100%; | |
540 | } | |
2f035ee4 AE |
541 | |
542 | .messageQuickReplyCollapsed { | |
8e8cc420 AE |
543 | border-bottom-width: 0 !important; |
544 | ||
545 | @include screen-sm-down { | |
546 | margin-left: -10px; | |
547 | margin-right: -10px; | |
548 | } | |
549 | ||
2f035ee4 | 550 | .messageSidebar { |
8e8cc420 | 551 | display: none; |
2f035ee4 AE |
552 | } |
553 | ||
554 | .messageQuickReplyContent { | |
8e8cc420 | 555 | background-color: $wcfSidebarBackground; |
2f035ee4 | 556 | cursor: pointer; |
8e8cc420 AE |
557 | display: inline-block !important; |
558 | margin: 0 !important; | |
559 | max-width: 100% !important; | |
560 | overflow: hidden; | |
45beeb47 | 561 | padding: 10px 20px; |
8e8cc420 AE |
562 | position: relative; |
563 | width: 100% !important; | |
2f035ee4 | 564 | |
8e8cc420 AE |
565 | @include screen-md-up { |
566 | border-radius: 2px; | |
2f035ee4 AE |
567 | } |
568 | ||
8e8cc420 AE |
569 | &::before { |
570 | color: $wcfSidebarText; | |
571 | content: $fa-var-reply; | |
572 | font-family: FontAwesome; | |
573 | font-size: 28px; | |
574 | height: 32px; | |
575 | line-height: 32px; | |
576 | margin-right: 10px; | |
577 | width: 32px; | |
578 | vertical-align: -5px; | |
2f035ee4 AE |
579 | } |
580 | ||
8e8cc420 AE |
581 | &::after { |
582 | color: $wcfSidebarText; | |
583 | content: attr(data-placeholder); | |
2f035ee4 | 584 | |
8e8cc420 AE |
585 | @include screen-sm-up { |
586 | @include wcfFontSection; | |
2f035ee4 AE |
587 | } |
588 | } | |
589 | ||
8e8cc420 AE |
590 | > .messageBody { |
591 | left: 200%; | |
592 | position: absolute; | |
593 | top: -100%; | |
2f035ee4 AE |
594 | } |
595 | ||
596 | > .messageFooter { | |
597 | display: none; | |
598 | } | |
599 | } | |
600 | } |