Publication button works, but need better error messages.
[redakcja.git] / platforma / 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 /* ============= */
111 /* = Numbering = */
112 /* ============= */
113 .htmlview .anchor {
114     position: relative;
115     margin: 0em;
116     left: -2.2em;
117     color: #777;
118     font-size: 12px;
119     width: 2em;
120     text-align: center;
121     padding: 0.25em 0.7em;
122     line-height: 1.5em;
123 }
124
125 .htmlview .anchor:hover, .htmlview .anchor:active {
126     color: #FFF;
127     background-color: #CCC;
128 }
129
130 /* =================== */
131 /* = Custom elements = */
132 /* =================== */
133 .htmlview .autor_utwor {
134     font-size: 0.5em;
135     display: block;
136     line-height: 1.5em;
137     margin-bottom: 0.25em;
138 }
139
140 .htmlview .dzielo_nadrzedne {
141     /* */
142 }
143
144 .htmlview .podtytul {
145     /* */
146 }
147
148 .htmlview .didaskalia {
149     font-style: italic;
150     margin: 0.5em 0 0 1.5em;
151 }
152
153 .htmlview .kwestia {
154     margin: 0.5em 0 0;
155 }
156
157 .htmlview .strofa {
158     margin: 1.5em 0 0.5em auto;
159 }
160
161 /* wersy */
162 .htmlview .strofa .wers_wciety, .htmlview .strofa .wers_wciety[data-wlf-typ =
163 '1'] {
164     margin-left: 1em;
165 }
166
167 .htmlview .strofa .wers_wciety[data-wlf-typ =
168 '2'] {
169     margin-left: 2em;
170 }
171
172 .htmlview .strofa .wers_wciety[data-wlf-typ =
173 '3'] {
174     margin-left: 3em;
175 }
176
177 .htmlview .strofa .wers_wciety[data-wlf-typ =
178 '4'] {
179     margin-left: 4em;
180 }
181
182 .htmlview .strofa .wers_wciety[data-wlf-typ =
183 '5'] {
184     margin-left: 5em;
185 }
186
187 .htmlview .strofa .wers_wciety[data-wlf-typ =
188 '6'] {
189     margin-left: 6em;
190 }
191
192 /* błędne wersy */
193 .htmlview *:
194 not(.strofa) > *[x-verse]::after {
195     content: "Ten wers znajduje się poza strofą.";
196     display: inline;
197     background: red;
198     font-size: 8pt;
199     border: 1px solid black;
200     -moz-border-radius: 10px;
201     -webkit-border-radius: 10px;
202     padding: 1px 1em;
203     margin-left: 1em;
204     vertical-align: super;
205 }
206
207 .htmlview .kwestia .strofa {
208     margin: 0;
209 }
210
211 .htmlview .akap, .htmlview .akap_cd, .htmlview .akap_dialog {
212     text-align: justify;
213     margin: 1.5em 0 0;
214 }
215
216 .htmlview .motto {
217     text-align: justify;
218     font-style: italic;
219     margin: 1.5em 0 0;
220 }
221
222 .htmlview p.motto_podpis {
223     font-size: 0.875em;
224     text-align: right;
225 }
226
227 .htmlview div.fragment {
228     border-bottom: 0.1em solid #999;
229     padding-bottom: 1.5em;
230 }
231
232 .htmlview div.nota p, .htmlview div.dedykacja p {
233     text-align: right;
234     font-style: italic;
235 }
236
237 .htmlview br.sekcja_swiatlo {
238     height: 3em;
239     /* visibility: hidden; */
240 }
241
242 .htmlview hr.separator_linia {
243     margin: 1.5em 0;
244     border: none;
245     border-bottom: 0.1em solid #000;
246 }
247
248 .htmlview p.sekcja_asterysk {
249     padding: 0;
250     margin: 1.5em 0;
251     text-align: center;
252 }
253
254 .htmlview div.lista_osob ol {
255     list-style: none;
256     padding: 0 0 0 1.5em;
257 }
258
259 .htmlview p.miejsce_czas {
260     font-style: italic;
261 }
262
263 .htmlview .mat, .htmlview .slowo_obce, .htmlview .tytul_dziela, .htmlview .didaskalia {
264     font-style: italic;
265 }
266
267 .htmlview .wyroznienie {
268     letter-spacing: 0.1em;
269 }
270
271 .htmlview .osoba {
272     font-style: normal;
273     font-variant: small-caps;
274 }
275
276 .htmlview .parse-warning {
277     display: block;
278     font-size: 10pt;
279     background: #C0C0C0;
280     margin: 1em;
281 }
282
283 .parse-warning .message {
284     color: purple;
285     font-weight: bold;
286 }
287
288 /* Uwaga/Extra */
289 .htmlview .uwaga {
290     background-color: #96e0e4;
291     border: 1px solid black;
292     -moz-border-radius: 10px;
293     -webkit-border-radius: 10px;
294     display: block;
295     font-size: 10pt;
296     line-height: 12pt;
297     padding: 2px 1em;
298     float: right;
299     max-width: 20%;
300     max-height: 24pt;
301     margin-left: 0.5em;
302     overflow: hidden;
303 }
304
305 .utwor > .uwaga {
306     float: none;
307     padding: 0.5em 1em;
308     margin: 1em;
309     max-width: 100%;
310     max-height: 100%;
311 }
312
313 .htmlview .uwaga:hover {
314     max-height: 100%;
315 }
316
317 /* Motywy */
318 /* ======================== */
319 /* = Footnotes and themes = */
320 /* ======================== */
321 .htmlview .begin, .htmlview .end {
322     background: green;
323 }
324
325 .htmlview .motyw {
326     /* position: absolute; */
327     float: right;
328     left: auto;
329     clear: right;
330     width: 10em;
331     font-weight: normal;
332     font-size: 13px;
333     line-height: 18px;
334     font-variant: normal;
335     text-decoration: none;
336     background-color: #fff;
337     /*    border: 1px solid gray;
338      
339      border-right: none;
340      */
341     z-index: 1;
342     -moz-user-select: -moz-none;
343     -webkit-user-select: none;
344     user-select: none;
345     margin-right: -12em;
346     text-align: left;
347 }
348
349 .htmlview .motyw[x-editable] {
350     border-left: 4px solid #DDD;
351     padding: 0.2em 0.2em 0.2em 0.5em;
352     margin-top: 0.2em;
353 }
354
355 /*
356  * Przypisy
357  */
358 /* Znaczniki w tekście */
359 .htmlview .annotation {
360     vertical-align: super;
361     text-decoration: none;
362     /*    font-size: 10px;    */
363 }
364
365 .htmlview .annotation:before {
366     content: "[" counter(main) "]";
367     counter-increment: main;
368 }
369
370 .htmlview .annotation:hover {
371     background-color: #96e0e4;
372 }
373 *.htmlview *.annotation-inline-box {
374     position: static;
375 }
376
377 /*
378  * Przypisy w tekście
379  */
380 .htmlview .annotation-inline-box > span[x-annotation-box] {
381     display: none;
382     position: absolute;
383     width: 300px;
384     font-size: 10pt;
385     line-height: 12pt;
386     font-weight: normal;
387     font-style: normal;
388     background: #fffe93;
389     border-color: black;
390     border-width: 1px;
391     border-style: solid;
392     border-radius: 10px;
393     -moz-border-radius: 10px;
394     -webkit-border-radius: 10px;
395     padding: 3px 5px;
396     text-decoration: none;
397     z-index: 1000;
398 }
399
400 /*
401  * Przypisy na końcu utworu (aktualnie nieuzywane)
402  */
403 .htmlview .annotations-block {
404     counter-reset: secondary;
405 }
406
407 .htmlview .annotations-block .annotation-body {
408     position: relative;
409     padding-left: 2.5em;
410     padding-top: 0.2em;
411 }
412
413 .htmlview .annotations-block .annotation-backref {
414     position: absolute;
415     top: 0.4em;
416     left: -0.4em;
417     width: 2.5em;
418     text-align: right;
419 }
420
421 .htmlview .annotations-block .annotation-backref:before {
422     content: "[" counter(secondary) "]";
423     counter-increment: secondary;
424 }
425
426 /*
427  * EDITABLE ELEMENTS
428  */
429 .htmlview *[x-editable] {
430     position: relative;
431     padding: 2px;
432     margin-left: 0;
433     border: 1px solid #FFF;
434 }
435
436 /* focused editable element */
437 .htmlview *[x-editable]:hover {
438     z-index: 900;
439 }
440
441 .htmlview *[x-editable][x-open] {
442     visibility: hidden;
443 }
444
445 .edit-button, .delete-button, .accept-button {
446     position: absolute;
447     top: -21px;
448     left: -1px;
449     width: 72px;
450     height: 21px;
451     display: block;
452     /*    margin: 4px 0 2px 0;*/
453     padding: 5px 5px 2px 5px;
454     border: none;
455     background-color: #FAFAFA;
456     /*    z-index: 3000;*/
457     /*    color: #FFF;
458      z-index: 1500;
459      */
460     border: 1px solid #DDD;
461     border-bottom: none;
462 }
463
464 .delete-button {
465     left: 70px;
466 }
467
468 .edit-button:hover, .edit-button:active, .delete-button:hover, .delete-button:active, .accept-button:hover, .accept-button:active {
469     /*    color: #FFF;*/
470     background-color: #999;
471     color: #FFF;
472 }
473
474 /*
475  * VISIBILITY RULES
476  */
477 .default-menu {
478     visibility: inherit;
479     opacity: 0.2;
480 }
481
482 .default-menu:hover {
483     opacity: 1;
484     z-index: 5000;
485 }
486
487 .htmlview *[x-annotation-box] > .default-menu {
488     opacity: 1;
489 }
490
491 .htmlview *[x-editable][x-open] > .default-menu {
492     visibility: hidden;
493 }
494
495 .htmlview *[x-editable][x-open] *[x-annotation-box] > .default-menu {
496     visibility: hidden;
497 }
498
499 .htmlview *[x-editable] > .edit-menu {
500     visibility: hidden;
501 }
502
503 .htmlview *[x-editable] *[x-annotation-box] > .edit-menu {
504     visibility: hidden;
505 }
506
507 .htmlview *[x-editable][x-open] > .edit-menu {
508     visibility: visible;
509 }
510
511 .htmlview *[x-editable][x-open] *[x-annotation-box] > .edit-menu {
512     visibility: visible;
513 }
514
515 .html-editarea {
516     border: 0px;
517     background-color: gray;
518     padding: 1px;
519     z-index: 2000;
520     position: absolute;
521 }
522
523 .html-editarea textarea {
524     position: absolute;
525     top: 0;
526     margin: 0px;
527     padding: 0px;
528     width: 100%;
529     height: 100%;
530     z-index: 0;
531     font-size: 10pt;
532     /*    background-color: ivory;*/
533 }
534
535 .htmlview .out-of-flow-text {
536     display: block;
537     font-face: monospace;
538     border: 2px solid red !important;
539     white-space: pre-line;
540 }
541
542 .htmlview .out-of-flow-text::before {
543     content: "Tekst w tej ramce nie jest otagowany!";
544     background-color: #ff6c6c;
545     color: black;
546     font-size: 10pt;
547     line-height: 12pt;
548     border: 1px solid black;
549     -moz-border-radius: 10px;
550     -webkit-border-radius: 10px;
551     padding: 5px 1em;
552     margin: 0em;
553     margin-left: 1em;
554     text-align: justify;
555     display: inline;
556     float: right;
557     max-width: 25%;
558 }
559
560 .unknown-tag {
561     background-color: yellow;
562     margin: -0.25em;
563     padding: 0.25em;
564     border: 1px solid orange;
565 }