Updating minified JavaScript files
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / redactor.scss
CommitLineData
af5506d3
AE
1.wysiwygTextarea {
2 background-color: transparent !important;
3 border: 1px solid $wcfContentBorderInner !important;
4 color: transparent !important;
5 display: block;
6 height: 238px;
7 width: 100%;
8}
9
b8eab696 10.redactor-box {
b8eab696
AE
11 position: relative;
12
9d029724
AE
13 &:not(:first-child) {
14 margin-top: 20px;
15 }
16
b8eab696
AE
17 & + .messageTabMenu {
18 padding: 0;
19 }
20
21 & + .innerError,
22 > .innerError {
23 border-radius: 0;
24 box-shadow: none;
25 display: block;
26 margin-top: -1px;
27 }
28
29 > .innerError {
30 margin: -1px;
31 }
32
33 > .redactorAutosaveNotice {
f2b50825 34 background-color: $wcfContentBackground;
f027ba61 35 border: 1px solid $wcfContentBorderInner;
b8eab696
AE
36 border-width: 1px 0 0 1px;
37 bottom: 0;
b8eab696 38 opacity: 0;
f2b50825 39 padding: $wcfGapSmall;
b8eab696
AE
40 position: absolute;
41 right: 0;
42 transition: visibility 0s linear .3s, opacity .3s linear;
43 visibility: hidden;
44
45 &.open {
46 opacity: 1;
47 visibility: visible;
48 transition-delay: 0s;
49 }
50
51 &.redactorAutosaveNoticeIcons > span.fa-check {
f2b50825 52 margin-right: $wcfGapSmall;
b8eab696
AE
53 }
54
55 > span.redactorAutosaveMessage {
f2b50825 56 padding: 0 $wcfGapSmall;
b8eab696
AE
57 }
58 }
59}
60
61.redactor-editor {
bf5372fc
AE
62 border: 1px solid $wcfContentBorderInner;
63 border-top-width: 0;
b8eab696
AE
64 max-height: 500px;
65 padding: 10px;
66 position: relative;
67 outline: none;
68 overflow: auto;
69
abc590f6
AE
70 * {
71 // setting min-width to "0" inside contenteditable causes
72 // IE11 to do all sort of funny things
73 min-width: auto;
74 }
75
b8eab696
AE
76 & + textarea {
77 border-width: 0;
78 box-shadow: none;
b8eab696
AE
79 outline: none;
80 padding: 10px;
81 resize: vertical;
82
83 &:focus {
84 box-shadow: none;
85 }
86 }
87
620a271a
AE
88 // enforce styles used in messages
89 @extend .htmlContent;
b8eab696 90
620a271a
AE
91 // remove margin top for the first paragraph in the editor to avoid a weird looking offset a the top
92 > p:first-child {
93 margin-top: 0;
b8eab696
AE
94 }
95
96 img {
b8eab696 97 max-width: 100%;
00e48dac
AE
98
99 &:not(.smiley) {
100 // show cursor to indicate editing capability excluding smilies
101 cursor: pointer;
102 }
b8eab696
AE
103 }
104
620a271a 105 // TODO: this is somewhat out of sync
b8eab696
AE
106 table {
107 border-collapse: collapse;
bf5372fc 108 //font-size: 14px; TODO
b8eab696
AE
109 line-height: 1.6em;
110
111 td {
112 border: 1px solid #ddd;
113 padding: 5px;
114 vertical-align: top;
115 }
116 }
1760080e
AE
117}
118
119.redactor-dropdown {
120 > .dropdownMenu {
121 display: block;
42af78b3
AE
122 visibility: visible;
123
124 /* we cannot influence the actual dropdown position as set by Redactor,
125 forces a gap while keeping the inline top-attribute unaffected */
126 transform: translateY(3px);
1760080e
AE
127
128 > li:hover {
129 background-color: transparent !important;
130 }
131
132 a:hover {
133 background-color: $wcfDropdownBackgroundActive;
134 }
135 }
136
137 .redactor-dropdown-link-inactive {
138 cursor: default;
139 opacity: .6;
140
141 &:hover {
142 background-color: transparent !important;
143 color: $wcfDropdownText !important;
144 }
b8eab696
AE
145 }
146}
147
b8eab696 148/* disable auto zoom in mobile safari */
ed02d9b7
AE
149@include screen-md-down {
150 .redactor-editor {
b8eab696
AE
151 font-size: 16px;
152 max-height: 500px;
153 }
154}
155
156.redactor-toolbar {
bf5372fc 157 background-color: $wcfHeaderBackground;
1760080e
AE
158 display: flex;
159 flex-wrap: wrap;
b8eab696
AE
160
161 > li {
1760080e 162 flex: 0 0 auto;
b8eab696 163 margin-bottom: 1px;
b8eab696 164
b8eab696 165 > a {
bf5372fc 166 color: $wcfHeaderMenuLink;
b8eab696 167 display: block;
b8eab696 168 outline: none;
a2c4f308 169 padding: 10px;
b8eab696 170 text-align: center;
b8eab696 171
5908f54f 172 @include wcfFontSmall;
bf5372fc 173
fd4c3c75
AE
174 &.redactor-button-disabled {
175 background-color: transparent !important;
176 color: $wcfButtonDisabledText !important;
177 cursor: default;
b8eab696
AE
178 }
179
b8eab696
AE
180 &.redactor-act,
181 &.dropact {
c4dc4aaa 182 background-color: $wcfHeaderMenuLinkBackgroundActive;
bf5372fc 183 color: $wcfHeaderMenuLinkActive;
b8eab696 184 }
fd4c3c75
AE
185
186 .icon {
187 color: inherit;
188 cursor: inherit !important;
189 }
5bf57072
AE
190
191 @include screen-lg {
192 // hover-styles on mobile are misleading as they stay much longer
193 // due to the click-like behavior
194 &:hover {
195 background-color: $wcfHeaderMenuLinkBackgroundActive;
196 color: $wcfHeaderMenuLinkActive;
197 }
198 }
b8eab696 199 }
8399847c
AE
200
201 @include screen-sm-up {
202 &.redactor-toolbar-separator {
203 margin-left: 11px;
204 position: relative;
205
206 &::before {
207 bottom: 7px;
208 border-left: 1px solid $wcfHeaderMenuLink;
209 content: "";
210 left: -6px;
211 opacity: .6;
212 position: absolute;
213 top: 7px;
214 }
215 }
216 }
217
218 @include screen-xs {
219 &[data-show-on-mobile="false"] {
220 display: none;
221 }
222 }
b8eab696
AE
223 }
224}
225
226.redactor-toolbar-tooltip {
f2b50825 227 @extend .balloonTooltip;
b8eab696
AE
228
229 opacity: 1;
230 visibility: visible;
231
232 &:before {
1223c43c 233 // TODO: border-color: $wcfTooltipBackgroundColor transparent;
b8eab696
AE
234 border-style: solid;
235 border-width: 0 5px 5px;
236 content: "";
237 display: block;
238 left: 50%;
239 position: absolute;
240 top: -5px;
241 transform: translateX(-50%);
242 }
243}
244
245#redactor-image-box {
246 border: 1px dashed rgba(0, 0, 0, .5);
247 display: inline-block;
248 line-height: 0;
249 max-width: 100%;
250 position: relative;
251
252 > img {
253 border-width: 0;
254 opacity: .5;
255 }
256}
257
258#redactor-image-editter {
f2b50825 259 @extend .balloonTooltip;
b8eab696
AE
260
261 cursor: pointer;
262 left: 50%;
1223c43c 263 // TODO: line-height: $wcfSmallFontSize;
b8eab696
AE
264 margin-top: -13px;
265 opacity: 1;
266 top: 50%;
267 visibility: visible;
268 z-index: 5;
269}
270
271#redactor-image-resizer {
272 background-color: rgba(0, 0, 0, 1);
273 border: 1px solid rgba(255, 255, 255, 1);
274 bottom: -4px;
275 cursor: nw-resize;
276 height: 8px;
277 line-height: 1;
278 position: absolute;
279 right: -5px;
280 width: 8px;
281 z-index: 10;
282}
283
284.redactorAttachmentContainer {
285 background-color: rgba(255, 255, 255, 1);
286 border: 1px solid rgba(238, 238, 238, 1);
287 border-top-width: 0;
288 padding: 7px 14px 7px;
289}
290
291.redactor-dropdown-box-fontcolor {
292 width: 200px;
293
294 > li.redactorColorPallet {
295 padding: 0 4px;
296
297 &:hover {
f2b50825 298 background-color: $wcfDropdownBackground !important;
b8eab696
AE
299 }
300
301 > a {
302 border: 2px solid rgba(255, 255, 255, 1);
303 border-bottom-width: 0;
304 display: inline-block;
bf5372fc 305 font-size: 0; // TODO
b8eab696
AE
306 height: 20px;
307 padding: 0;
308 margin: 0;
309 width: 20px;
310 }
311 }
312}
313
314.redactorDropArea {
315 background-color: rgba(255, 255, 204, 1);
316 border: 5px dashed rgba(255, 204, 0);
317 box-sizing: border-box;
bf5372fc 318 font-size: 1.4rem; // TODO
b8eab696
AE
319 position: absolute;
320 text-align: center;
321 vertical-align: middle;
322 z-index: 360;
323
324 &.active {
325 background-color: #CEF6CE;
326 border-color: #04B404;
327 }
328}
329
330.redactor-link-tooltip {
1223c43c 331 // TODO: background-color: $wcfTooltipBackgroundColor;
b8eab696 332 border-radius: 6px;
1223c43c
AE
333 // TODO: color: $wcfTooltipColor;
334 // TODO: font-size: $wcfSmallFontSize;
b8eab696
AE
335 padding: 5px 10px 7px;
336 position: absolute;
337 z-index: 800;
338
f2b50825 339 @include boxShadow(0, 3px, rgba(0, 0, 0, .3), 7px);
b8eab696
AE
340
341 > a {
1223c43c 342 // TODO: color: $wcfTooltipColor;
b8eab696
AE
343 }
344}
bf5372fc
AE
345
346.redactor-voice-label {
347 display: none;
348}
9dab3711 349
5840fdfd
AE
350/* format */
351.redactor-dropdown-h2 {
352 @include wcfFontSection;
353}
354
355.redactor-dropdown-h3 {
356 @include wcfFontHeadline;
357}
358
359.redactor-dropdown-h4 {
360 // TODO: add styling
361}
362
9dab3711
AE
363/* alignment plugin */
364.text-center {
365 text-align: center;
366}
367
368.text-right {
369 text-align: right;
370}
831dc0da 371
903a8623
AE
372/* alignment plugin / custom value */
373.text-justify {
374 text-align: justify;
375
376 -webkit-hyphens: auto;
377 -moz-hyphens: auto;
378 -ms-hyphens: auto;
379 hyphens: auto;
380}
381
831dc0da
AE
382/* text color */
383.woltlab-color-000000 { color: #000000 !important; }
384.woltlab-color-000080 { color: #000080 !important; }
385.woltlab-color-0000CD { color: #0000CD !important; }
386.woltlab-color-0000FF { color: #0000FF !important; }
387.woltlab-color-006400 { color: #006400 !important; }
388.woltlab-color-008000 { color: #008000 !important; }
389.woltlab-color-008080 { color: #008080 !important; }
390.woltlab-color-00FF00 { color: #00FF00 !important; }
391.woltlab-color-00FFFF { color: #00FFFF !important; }
392.woltlab-color-2F4F4F { color: #2F4F4F !important; }
393.woltlab-color-40E0D0 { color: #40E0D0 !important; }
394.woltlab-color-4B0082 { color: #4B0082 !important; }
395.woltlab-color-696969 { color: #696969 !important; }
396.woltlab-color-800000 { color: #800000 !important; }
397.woltlab-color-800080 { color: #800080 !important; }
398.woltlab-color-808080 { color: #808080 !important; }
399.woltlab-color-8B4513 { color: #8B4513 !important; }
400.woltlab-color-A52A2A { color: #A52A2A !important; }
401.woltlab-color-A9A9A9 { color: #A9A9A9 !important; }
402.woltlab-color-ADD8E6 { color: #ADD8E6 !important; }
403.woltlab-color-AFEEEE { color: #AFEEEE !important; }
404.woltlab-color-B22222 { color: #B22222 !important; }
405.woltlab-color-D3D3D3 { color: #D3D3D3 !important; }
406.woltlab-color-DAA520 { color: #DAA520 !important; }
407.woltlab-color-DDA0DD { color: #DDA0DD !important; }
408.woltlab-color-E6E6FA { color: #E6E6FA !important; }
409.woltlab-color-EE82EE { color: #EE82EE !important; }
410.woltlab-color-F0F8FF { color: #F0F8FF !important; }
411.woltlab-color-F0FFF0 { color: #F0FFF0 !important; }
412.woltlab-color-F0FFFF { color: #F0FFFF !important; }
413.woltlab-color-FAEBD7 { color: #FAEBD7 !important; }
414.woltlab-color-FF0000 { color: #FF0000 !important; }
415.woltlab-color-FF8C00 { color: #FF8C00 !important; }
416.woltlab-color-FFA07A { color: #FFA07A !important; }
417.woltlab-color-FFA500 { color: #FFA500 !important; }
418.woltlab-color-FFD700 { color: #FFD700 !important; }
419.woltlab-color-FFF0F5 { color: #FFF0F5 !important; }
420.woltlab-color-FFFF00 { color: #FFFF00 !important; }
421.woltlab-color-FFFFE0 { color: #FFFFE0 !important; }
422.woltlab-color-FFFFFF { color: #FFFFFF !important; }
423
424/* text color selection */
425.redactor-dropdown-box-woltlabColor {
426 > ul {
427 display: flex !important;
428 flex-wrap: wrap;
429 width: 272px;
430
431 > li:first-child {
432 flex: 0 0 100%;
fd4c3c75 433 margin-bottom: 10px;
831dc0da
AE
434 }
435 }
436
437 .woltlab-color-selection {
438 flex: 0 0 30px;
439 margin: 2px;
440 overflow: hidden;
441
442 > a {
443 background-color: currentColor !important;
444 color: inherit !important;
445 display: block;
446 height: 30px;
447 width: 30px;
448 }
449 }
450}
81011521
AE
451
452/* font size */
57c2412f
AE
453.woltlab-size-8 { font-size: 8pt; }
454.woltlab-size-10 { font-size: 10pt; }
455.woltlab-size-12 { font-size: 12pt; }
456.woltlab-size-14 { font-size: 14pt; }
457.woltlab-size-18 { font-size: 18pt; }
458.woltlab-size-24 { font-size: 24pt; }
459.woltlab-size-36 { font-size: 36pt; }
f06b38e2
AE
460
461/* image float */
462.messageFloatObjectLeft {
463 float: left;
464 margin: 0 20px 20px 0;
465}
466
467.messageFloatObjectRight {
468 float: right;
469 margin: 0 0 20px 20px;
470}
b025db3d
AE
471
472.smiley {
473 margin: 0 1px;
474}