Ticket #749 - word wrapping for xml error
[redakcja.git] / redakcja / static / css / html.css
1 /* Style widoku HTML. Nie należy tu ustawiać position ani marginesów */
2 .htmlview {
3     counter-reset: main;
4     font-size: 16px;
5     font-family: "Georgia", "Times New Roman", serif;
6     line-height: 1.5em;
7     padding: 3em;
8     padding-left: 45px;
9     overflow-y: scroll;
10     overflow-x: auto;
11 }
12
13 .htmlview[data-tag-names-visible] {
14     padding-left: 90px;
15 }
16
17 /*
18  .htmlview[data-tag-names-visible] *[x-editable]:not(*[x-common])::before {
19  display: block;
20  float: left;
21  clear: left;
22  content: attr(x-node);
23  font-weight: bold;
24  font-style: normal;
25  font-variant:normal;
26  font-size: 8px;
27  line-height: 8px;
28  margin-bottom: 4px;
29
30  padding: 3px 4px;
31  vertical-align: super;
32  background-color:#add8e6;
33  margin-left: -80px;
34  width: 70px;
35  text-align: center;
36
37  -webkit-border-radius: 4px;
38  }
39  */
40 .htmlview *[x-node = 'RDF'] {
41     display: none;
42 }
43
44 .htmlview * {
45     position: relative;
46 }
47
48 .htmlview div {
49     max-width: 36em;
50 }
51
52 .htmlview #toc {
53     display: none;
54 }
55
56 .htmlview a {
57     color: blue;
58     text-decoration: none;
59 }
60
61 .htmlview a:hover {
62     text-decoration: none;
63 }
64
65 .htmlview h1 {
66     font-size: 3em;
67     margin: 1.5em 0;
68     text-align: center;
69     line-height: 1.5em;
70     font-weight: bold;
71 }
72
73 .htmlview h2 {
74     font-size: 2em;
75     margin: 1.5em 0 0;
76     font-weight: bold;
77     line-height: 1.5em;
78 }
79
80 .htmlview h3 {
81     font-size: 1.5em;
82     margin: 1.5em 0 0;
83     font-weight: normal;
84     line-height: 1.5em;
85 }
86
87 .htmlview h4 {
88     font-size: 1em;
89     margin: 1.5em 0 0;
90     line-height: 1.5em;
91 }
92
93 .htmlview p {
94     margin: 0;
95 }
96
97 .htmlview #footnotes div {
98     margin: 1.5em 0 0 0;
99 }
100
101 .htmlview #footnotes p {
102     margin-left: 2.5em;
103     font-size: 0.875em;
104 }
105
106 .htmlview blockquote {
107     font-size: 0.875em;
108 }
109
110 .htmlview pre {
111         overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
112         white-space: pre-wrap; /* css-3 */
113         white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
114         white-space: -pre-wrap; /* Opera 4-6 */
115         white-space: -o-pre-wrap; /* Opera 7 */ /*
116         width: 99%; */
117         word-wrap: break-word; /* Internet Explorer 5.5+ */
118 }
119
120 /* ============= */
121 /* = Numbering = */
122 /* ============= */
123 .htmlview .anchor {
124     position: relative;
125     margin: 0em;
126     left: -2.2em;
127     color: #777;
128     font-size: 12px;
129     width: 2em;
130     text-align: center;
131     padding: 0.25em 0.7em;
132     line-height: 1.5em;
133 }
134
135 .htmlview .anchor:hover, .htmlview .anchor:active {
136     color: #FFF;
137     background-color: #CCC;
138 }
139
140 /* =================== */
141 /* = Custom elements = */
142 /* =================== */
143 .htmlview .autor_utwor {
144     font-size: 0.5em;
145     display: block;
146     line-height: 1.5em;
147     margin-bottom: 0.25em;
148 }
149
150 .htmlview .dzielo_nadrzedne {
151     /* */
152 }
153
154 .htmlview .podtytul {
155     /* */
156 }
157
158 .htmlview .didaskalia {
159     font-style: italic;
160     margin: 0.5em 0 0 1.5em;
161 }
162
163 .htmlview .kwestia {
164     margin: 0.5em 0 0;
165 }
166
167 .htmlview .strofa {
168     margin: 1.5em 0 0.5em auto;
169 }
170
171 /* wersy */
172 .htmlview .strofa .wers_wciety, .htmlview .strofa .wers_wciety[data-wlf-typ='1'] {
173     margin-left: 1em;
174 }
175
176 .htmlview .strofa .wers_wciety[data-wlf-typ='2'], .htmlview .strofa .wers_cd {
177     margin-left: 2em;
178 }
179
180 .htmlview .strofa .wers_wciety[data-wlf-typ='3'] {
181     margin-left: 3em;
182 }
183
184 .htmlview .strofa .wers_wciety[data-wlf-typ='4'] {
185     margin-left: 4em;
186 }
187
188 .htmlview .strofa .wers_wciety[data-wlf-typ='5'] {
189     margin-left: 5em;
190 }
191
192 .htmlview .strofa .wers_wciety[data-wlf-typ='6'] {
193     margin-left: 6em;
194 }
195
196 /* błędne wersy */
197 .htmlview *:
198 not(.strofa) > *[x-verse]::after {
199     content: "Ten wers znajduje się poza strofą.";
200     display: inline;
201     background: red;
202     font-size: 8pt;
203     border: 1px solid black;
204     -moz-border-radius: 10px;
205     -webkit-border-radius: 10px;
206     padding: 1px 1em;
207     margin-left: 1em;
208     vertical-align: super;
209 }
210
211 .htmlview .kwestia .strofa {
212     margin: 0;
213 }
214
215 .htmlview .akap, .htmlview .akap_cd, .htmlview .akap_dialog {
216     text-align: justify;
217     margin: 1.5em 0 0;
218 }
219
220 .htmlview .motto_container {
221         display: inline-block;
222         margin: 1.5em 0 0;
223         clear: right;
224 }
225
226 .htmlview .motto {
227     text-align: justify;
228     font-style: italic;
229 }
230
231 .htmlview p.motto_podpis {
232         position: relative;
233         right: -3em;
234         text-align: right;
235 }
236
237 .htmlview div.fragment {
238     border-bottom: 0.1em solid #999;
239     padding-bottom: 1.5em;
240 }
241
242 .htmlview div.nota p, .htmlview div.dedykacja p {
243     text-align: right;
244     font-style: italic;
245 }
246
247 .htmlview br.sekcja_swiatlo {
248     height: 3em;
249     /* visibility: hidden; */
250 }
251
252 .htmlview hr.separator_linia {
253     margin: 1.5em 0;
254     border: none;
255     border-bottom: 0.1em solid #000;
256 }
257
258 .htmlview p.sekcja_asterysk {
259     padding: 0;
260     margin: 1.5em 0;
261     text-align: center;
262 }
263
264 .htmlview div.lista_osob ol {
265     list-style: none;
266     padding: 0 0 0 1.5em;
267 }
268
269 .htmlview p.miejsce_czas {
270     font-style: italic;
271 }
272
273 .htmlview .mat, .htmlview .slowo_obce, .htmlview .tytul_dziela, .htmlview .didaskalia {
274     font-style: italic;
275 }
276
277 .htmlview .wyroznienie {
278     letter-spacing: 0.1em;
279 }
280
281 .htmlview .osoba {
282     font-style: normal;
283     font-variant: small-caps;
284 }
285
286 .htmlview .parse-warning {
287     display: block;
288     font-size: 10pt;
289     background: #C0C0C0;
290     margin: 1em;
291 }
292
293 .parse-warning .message {
294     color: purple;
295     font-weight: bold;
296 }
297
298 /* Uwaga/Extra */
299 .htmlview .uwaga {
300     background-color: #96e0e4;
301     border: 1px solid black;
302     -moz-border-radius: 10px;
303     -webkit-border-radius: 10px;
304     display: block;
305     font-size: 10pt;
306     line-height: 12pt;
307     padding: 2px 1em;
308     float: right;
309     max-width: 20%;
310     max-height: 24pt;
311     margin-left: 0.5em;
312     overflow: hidden;
313         z-index: 500;
314 }
315
316 div[x-node] > .uwaga {
317     float: none;
318     padding: 0.5em 1em;
319     margin: 1em;
320     max-width: 100%;
321     max-height: 100%;
322 }
323
324 .htmlview .uwaga:hover {
325     max-height: 100%;
326 }
327
328 .htmlview .annotation-inline-box .uwaga {
329     max-height: 100%;
330 }
331
332 /* Motywy */
333 /* ======================== */
334 /* = Footnotes and themes = */
335 /* ======================== */
336 .htmlview .begin, .htmlview .end {
337     background: green;
338 }
339
340 .htmlview .motyw {
341     /* position: absolute; */
342     float: right;
343     left: auto;
344     clear: right;
345     width: 10em;
346
347     font-style: normal;
348     font-weight: normal;
349     font-variant: normal;
350     letter-spacing: 0;
351     text-transform: none;
352     text-decoration: none;
353
354     font-size: 13px;
355     line-height: 18px;
356     background-color: #fff;
357     /*    border: 1px solid gray;
358
359      border-right: none;
360      */
361     z-index: 1;
362     -moz-user-select: -moz-none;
363     -webkit-user-select: none;
364     user-select: none;
365     margin-right: -12em;
366     text-align: left;
367     color: #999;
368 }
369
370 .htmlview .canon {
371     color: black;
372 }
373
374 .htmlview .noncanon {
375     color: #d00;
376 }
377
378 .htmlview .motyw[x-editable] {
379     border-left: 4px solid #DDD;
380     padding: 0.2em 0.2em 0.2em 0.5em;
381     margin-top: 0.2em;
382 }
383
384 /*
385  * Przypisy
386  */
387 /* Znaczniki w tekście */
388 .annotation {
389     font-style: normal;
390 }
391
392 .htmlview .annotation:before {
393     content: "[" counter(main) "]";
394     counter-increment: main;
395         vertical-align: super;
396     text-decoration: none;
397         font-size: 66%;
398 }
399
400 .htmlview .annotation:hover {
401     background-color: #ffcccc;
402 }
403 .htmlview .pe .annotation:hover {
404     background-color: #96e0e4;*/
405 }
406 *.htmlview *.annotation-inline-box {
407     position: static;
408 }
409
410 /*
411  * Przypisy w tekście
412  */
413  
414 .htmlview .annotation-inline-box:hover > span[x-annotation-box]{
415     display: block;
416 }
417
418 .htmlview .annotation-inline-box > span[x-annotation-box] {
419     display: none;
420     position: absolute;
421     width: 300px;
422     font-size: 10pt;
423     line-height: 12pt;
424     font-weight: normal;
425     font-style: normal;
426     background: #fffe93;
427     border-color: black;
428     border-width: 1px;
429     border-style: solid;
430     border-radius: 10px;
431     -moz-border-radius: 10px;
432     -webkit-border-radius: 10px;
433     padding: 3px 5px;
434     text-decoration: none;
435     z-index: 600;
436 }
437
438 /*
439  * Przypisy na końcu utworu (aktualnie nieuzywane)
440  */
441 .htmlview .annotations-block {
442     counter-reset: secondary;
443 }
444
445 .htmlview .annotations-block .annotation-body {
446     position: relative;
447     padding-left: 2.5em;
448     padding-top: 0.2em;
449 }
450
451 .htmlview .annotations-block .annotation-backref {
452     position: absolute;
453     top: 0.4em;
454     left: -0.4em;
455     width: 2.5em;
456     text-align: right;
457 }
458
459 .htmlview .annotations-block .annotation-backref:before {
460     content: "[" counter(secondary) "]";
461     counter-increment: secondary;
462 }
463
464 /*
465  * EDITABLE ELEMENTS
466  */
467 .htmlview *[x-editable] {
468     position: relative;
469     padding: 2px;
470     margin-left: 0;
471     border: 1px solid #FFF;
472 }
473
474 /* focused editable element */
475 .htmlview *[x-editable]:hover {
476     z-index: 900;
477 }
478
479 .htmlview *[x-editable][x-open] {
480     visibility: hidden;
481 }
482
483 .edit-button, .delete-button, .accept-button {
484     position: absolute;
485     top: -21px;
486     left: -1px;
487     width: 72px;
488     height: 28px;
489     display: block;
490     /*    margin: 4px 0 2px 0;*/
491     padding: 5px 5px 2px 5px;
492     border: none;
493     background-color: #FAFAFA;
494     /*    z-index: 3000;*/
495     /*    color: #FFF;
496      z-index: 1500;
497      */
498     border: 1px solid #DDD;
499     border-bottom: none;
500 }
501
502 .delete-button {
503     left: 70px;
504 }
505
506 .edit-button:hover, .edit-button:active,
507 .delete-button:hover, .delete-button:active,
508 .accept-button:hover, .accept-button:active {
509     /*    color: #FFF;*/
510     background-color: #999;
511     color: #FFF;
512 }
513
514 /*
515  * VISIBILITY RULES
516  */
517 .default-menu {
518     visibility: inherit;
519     opacity: 0.2;
520 }
521
522 .default-menu:hover {
523     opacity: 1;
524     z-index: 5000;
525 }
526
527 .htmlview *[x-annotation-box] > .default-menu {
528     opacity: 1;
529 }
530
531 .htmlview *[x-editable][x-open] > .default-menu {
532     visibility: hidden;
533 }
534
535 .htmlview *[x-editable][x-open] *[x-annotation-box] > .default-menu {
536     visibility: hidden;
537 }
538
539 .htmlview *[x-editable] > .edit-menu {
540     visibility: hidden;
541 }
542
543 .htmlview *[x-editable] *[x-annotation-box] > .edit-menu {
544     visibility: hidden;
545 }
546
547 .htmlview *[x-editable][x-open] > .edit-menu {
548     visibility: visible;
549 }
550
551 .htmlview *[x-editable][x-open] *[x-annotation-box] > .edit-menu {
552     visibility: visible;
553 }
554
555 .html-editarea {
556     border: 0px;
557     background-color: gray;
558     padding: 1px;
559     z-index: 2000;
560     position: absolute;
561 }
562
563 .html-editarea textarea {
564     position: absolute;
565     top: 0;
566     margin: 0px;
567     padding: 0px;
568     width: 100%;
569     height: 100%;
570     z-index: 0;
571     font-size: 10pt;
572     /*    background-color: ivory;*/
573 }
574
575 .htmlview .out-of-flow-text {
576     display: block;
577     font-face: monospace;
578     border: 2px solid red !important;
579     white-space: pre-line;
580 }
581
582 .htmlview .out-of-flow-text::before {
583     content: "Tekst w tej ramce nie jest otagowany!";
584     background-color: #ff6c6c;
585     color: black;
586     font-size: 10pt;
587     line-height: 12pt;
588     border: 1px solid black;
589     -moz-border-radius: 10px;
590     -webkit-border-radius: 10px;
591     padding: 5px 1em;
592     margin: 0em;
593     margin-left: 1em;
594     text-align: justify;
595     display: inline;
596     float: right;
597     max-width: 25%;
598 }
599
600 .unknown-tag {
601     background-color: yellow;
602     margin: -0.25em;
603     padding: 0.25em;
604     border: 1px solid orange;
605 }
606
607 /* specialChars */
608 #specialCharsContainer {
609     text-align: center; 
610     width: 600px; 
611     padding:20px; 
612     background-color: gray; 
613     position: absolute; 
614     top: 20px; 
615     left: 20px; 
616     z-index:1000;
617 }
618 #specialCharsContainer a {
619     color: white;
620     font-weight: bold;
621
622 #tableSpecialChars td input {
623     background-color: transparent;
624     border:0;
625     color: white;
626