charset: warn about include errors
[sheet.git] / base.css
1 /* general */
2
3 body {
4         background: #FFF;
5         color: #000;
6         font-size: 90%;
7         text-align: center;
8 }
9 a, a:visited {
10         color: #000;
11         text-decoration: underline;
12 }
13 a:active, a:hover {
14         color: #00F;
15         text-decoration: none;
16 }
17
18 /* common sections */
19
20 h1, h2 {
21         font-size: 200%;
22         margin: 0;
23 }
24 h2, caption {
25         font-size: 110%;
26         font-weight: bold;
27 }
28 caption {
29         margin: 1ex;
30 }
31
32 hr {
33         clear: both;
34         visibility: hidden;
35         height: 2ex;
36         margin: 0;
37 }
38
39 .section ul {
40         margin-bottom: 1ex;
41 }
42 .section h2 {
43         margin: 0 1ex;
44         clear: both;
45 }
46 .section table {
47         float: left;
48         position: relative; /* prevents buggy hovering in table if caption present in gecko */
49         margin: 1ex 1ex 2ex;
50 }
51 .section .section {
52         float: left;
53 }
54 #charset .section table {
55         margin: -0.5ex 0 1ex; /* headers provide sufficient spacing already */
56 }
57
58 p {
59         margin: 1ex 0 1em;
60 }
61 p.aside {
62         font-size: 80%;
63 }
64 p.footer {
65         margin: 1em 0 0;
66         clear: both;
67 }
68 .help + .footer {
69         margin: 0;
70 }
71
72 .error {
73         background: #F00;
74         background: rgba(255, 0, 0, .8);
75         color: #FFF;
76         border: 2px solid #000;
77         border-width: 2px 0;
78         padding: 1em;
79         margin: 2ex auto;
80         clear: both;
81 }
82
83 ul {
84         margin: 0;
85         padding: 0;
86         list-style: none;
87 }
88
89 #source pre {
90         display: inline-block;
91         text-align: left;
92 }
93
94 h2 small {
95         position: absolute; /* side note; do not influence alignment */
96         margin-left: 1em;
97 }
98
99 dl > dt {
100         float: left;
101         width: 50%;
102         text-align: right;
103 }
104 dl > dd {
105         text-align: left;
106         padding-left: 1em;
107         overflow: hidden;
108 }
109
110 /* "keyboard" (list of keys) */
111
112 #rows {margin-top: -5ex} /* top (esc) row fits besides header */
113 .row2 {margin-left: 7em} /* row offsets relative to ~6em key width */
114 .row3 {margin-left: 8em}
115 .row4 {margin-left: 10em} /* should actually align to next key on row0 */
116         /* ...however rows>=1 are shifted a bit, to make space */
117
118 table.keys tr {
119         clear: both; /* start new row (screen row) */
120         display: block;
121 }
122 table.keys tbody {
123         /* start new row block (keyboard row) */
124         clear: both;
125         padding-top: 1ex;
126         display: block;
127 }
128
129 table.keys th,
130 h3      {display: none} /* semantic details (non-css/js) */
131 .keys .mode {display: none} /* initially hidden (only show interactively (js)) */
132
133 table.keys {
134         display: block;
135         width: 82.5em; /*       12 * (2px + 1px + 6.2em + 1px + 2px) + 8em*/
136 //      padding-right: 72px;
137         border-spacing: 0;
138         border-collapse: collapse;
139 }
140 table.keys > * {
141         margin-right: -72px;
142 }
143
144 /* individual keys */
145
146 dl.legend dt,
147 .keys td {
148         float: left;
149         width: 6.2em;
150         line-height: 2.25ex; /* a little terser (seems to be gecko's default anyway) */
151         height: 4.5ex; /* 2 lines */
152         overflow: hidden;
153         margin: 0 2px -1px;
154         padding: 0;
155         text-align: center;
156         border: 1px solid #000;
157         border-radius: 4px;
158         -moz-border-radius: 4px;
159         text-transform-variation: text;
160 }
161 .keys td b {
162         float: left;
163         font-size: 200%;
164         line-height: 2.5ex; /* inherits otherwise */
165         padding-left: 2px;
166 }
167 .keys .row0 td { /* omni-present esc */
168         width: 8.5em;
169 }
170
171 /* fine tuning of special occurrences */
172
173 .keys td b[title] { /* mnemonic hover */
174         cursor: help;
175 }
176 .keys td[onclick]:hover { /* link */
177         cursor: pointer;
178 }
179 .keys td a { /* key link */
180         color: inherit;
181         text-decoration: none;
182         display: block;
183         height: 100%;
184 }
185
186 .keys .meta td b,
187 .keys .ctrl td b,
188 .keys .lead td b { /* char with ctrl or leading key */
189         font-size: 100%; /* space is too limited for 2+ double-sized chars */
190         line-height: 5ex; /* keep double height though */
191 }
192 .keys .meta td b small,
193 .keys .ctrl td b small { /* meta key indicator */
194         font-size: 70%;
195         font-weight: normal; /* nice and subtle */
196 }
197
198 /* tables */
199
200 table {
201         border-collapse: collapse;
202 }
203 th, td {
204         border-color: #778;
205         border: 1px solid #888;
206         background: #DDD;
207 }
208 thead th, td {
209         text-align: center;
210 }
211
212 td.joind {
213         border-bottom: none;
214 }
215 td.joinu {
216         /* first cell determines border width for entire row */
217         border-top-color: transparent;
218 }
219 td.joinr {
220         border-right: none;
221 }
222 td.joinl {
223         border-left: none;
224 }
225
226 /* character table */
227
228 .glyphs thead th, .glyphs td {
229         width: 1.6em; /* regular interval */
230 }
231 .glyphs tbody td {
232         font-size: 112%;
233 }
234 .glyphs.big tbody td {
235         font-size: 200%;
236 }
237 .glyphs .glyphs {
238         margin: 0.5ex 0; /* nested in legend */
239 }
240 .glyphs .glyphs td {
241         font-size: 100%;
242 }
243
244 /* table headers */
245
246 th,
247 tfoot td,
248 thead td {
249         border: 0;
250         background: transparent;
251 }
252 .glyphs thead td {
253         width: auto; /* no glyph cells in header */
254 }
255 th {
256         padding: 0 0.2em;
257 }
258 .diinfo th {
259         font-size: 50%; /* mostly insignificant here */
260         font-weight: normal;
261 }
262 .diinfo tbody th {
263         text-align: right; /* variable width so keep near cells */
264         padding: 0 0.5em;
265 }
266 .cat {
267         font-size: 70%;
268         text-transform: uppercase;
269 }
270 tfoot .cat th {
271         border-top: 1px solid #888;
272 }
273
274 /* colour map */
275
276 table.color td {
277         border: 1px solid #555;
278         font-weight: normal;
279         padding: 0 8px;
280 }
281 table.color td samp {
282         margin: 0 -8px 0 8px;
283         font-family: inherit;
284         float: right;
285 }
286 table.color td samp ~ samp {
287 }
288 table.color td samp small {
289         font: 100% monospace;
290         padding: 0 .5ex;
291 }
292
293 /* digraphs map */
294
295 table.dimap {
296         table-layout: fixed; /* prevent resizing, notably in msie6 */
297 }
298 .dimap thead th, .dimap td {
299         /* below-maximum size (but still average enough to be regular) so we can fit more */
300         width: 1.2em; /* msie only looks at the first row */
301         min-width: 1em; /* prevents gecko from restricting to page width */
302 }
303 .dimap th {
304         text-align: center; /* row headers are also glyph-sized */
305 }
306
307 .mapped tbody, .mapped colgroup,
308 .dimap tbody, .dimap colgroup {
309         border: 2px double #888; /* major character group grid */
310 }
311 .mapped tbody,
312 .dimap tbody {
313         border-width: 2px 0; /* horizontal group dividers */
314 }
315 .mapped colgroup,
316 .dimap colgroup {
317         border-width: 0 2px; /* vertical divides */
318 }
319
320 /* digraph selection */
321
322 .diinfo {
323         -moz-column-width: 24em;
324         -webkit-column-width: 24em;
325         column-width: 24em;
326 }
327 .diinfo > div {
328         overflow: hidden;
329         column-break-inside: avoid;
330         -webkit-column-break-inside: avoid;
331         position: relative; z-index: 1; /* webkit bug */
332 }
333
334 /* glyph cell overlay (digraph labels) */
335
336 .glyphs.dilabel td {
337         padding: 0;
338         padding-bottom: 1.1ex; /* reserve space for label */
339         vertical-align: bottom;
340 }
341 .glyphs small {
342         font-size: 50%;
343         display: block;
344         margin-top: 0.2ex;
345         margin-bottom: -2.2ex; /* take cell padding */
346 }
347 .glyphs small.digraph {
348         background: #000;
349         color: #FFF;
350         opacity: 0.3;
351 }
352 .glyphs small.value {
353         background: #600;
354         color: #FFF;
355         opacity: 0.3;
356 }
357
358 /* character properties */
359
360 .X  {background: #FFF} /* unidentified */
361 .Mc, .Me, .Zl, .Zp      {background: #F00} /* unstyled */
362 .X > span               {background: #898; background: rgba(0, 0, 0, .25)} /* invisible contents */
363
364 /* letter scripts */
365 .Armenian,
366 .Greek    {background: #FFE8CF}
367 .Cyrillic {background: #FFDDA8}
368 .Latin    {background: #FFB}
369 .Aramaic,
370 .Hebrew   {background: #FFD}
371 .Arabic   {background: #EFE}
372 .African  {background: #DED}
373 .Brahmic  {background: #FBB} /* same as number */
374 .Khmer    {background: #FBA}
375 .Hangul,
376 .Syllabic {background: #DEA}
377 .Katakana {background: #DFA}
378 .Hiragana {background: #DFC}
379 .Bopomofo {background: #BFC}
380 .Han      {background: #CFD}
381 .Alpha    {background: #ADA} /* other scripts */
382
383 /* other categories */
384 .Nd, .Nl, .No         {background: #FDD} /* number */
385 .Sc                   {background: #FCD} /* currency */
386 .Sm                   {background: #ECE} /* math */
387 .So                   {background: #DCF} /* symbol */
388 .Pd, .Po, .Pc         {background: #CDF} /* punctuation */
389 .Ps, .Pe, .Pi, .Pf    {background: #BEF} /* quote */
390 .Lm, .Sk              {background: #CEE} /* spacing modifier */
391 .Mn                   {background: #ACC} /* modifier */
392 .Cc, .Cf {color: #666; background: #BBB} /* control */
393 .Zs                   {background: #ACB} /* space */
394 .Co, .Xi.Co           {background: #DCC} /* private */
395 .Xi, .Cs              {background: #CCC} /* invalid */
396 .Xd                   {color: #844} /* deprecated */
397 .Xr                   {color: #888} /* reserved (digraph reverse or proposal) */
398 .dimap .Xr            {background: #EEE} /* reversed digraph */
399 .ccmap .Xr {opacity:.4}
400
401 /* support levels */
402 .l1 {background: #FDD} /* no, unsupported, other */
403 .l2 {background: #FED} /* partial, restricted, unofficial */
404         /* default u-prop, u-bmp */
405 .l3 {background: #FFD} /* almost, imperfect, common */
406         /* default u-di, u-lat1 */
407 .l4 {background: #EFD} /* yes, supported, ubiquitous, native */
408         /* default u-ascii */
409 .l5 {background: #DFD} /* complete, perfect */
410 .l0 {background: #EEE} /* unknown, omitted */
411 .ex {     color: #888; color: rgba(0, 0, 0, .5)} /* experimental, disfavoured */
412 .u-invalid {background: #BBB} /* invalid, impossible */
413
414 /* foreground representation */
415 #digraphs .u-l3 {color: #080} /* partial */
416 #digraphs .u-l3.ex {color: #4C0} /* experimental */
417 #digraphs .u-l2 {color: #A44; color: rgba(128, 0, 0, .6)} /* unofficial proposal */
418 #digraphs .u-l1 {color: #D00; color: rgba(255, 0, 0, .8)} /* minimal or invalid */
419
420 /* support percentage (browser cells) */
421 .p0         {opacity: .6}
422 .p0.p       {opacity: 1}
423 .p::after   {content: '!'; color: #F00}
424 .p4::after  {color: #C00}
425 .p3::after  {color: #A00}
426 .p2::after  {color: #800}
427 .p1::after,
428 .p0::after  {color: #000}
429 .p09::after {opacity: .9}
430 .p08::after {opacity: .8}
431 .p07::after {opacity: .7}
432 .p06::after {opacity: .6}
433 .p05::after {opacity: .5}
434 .p04::after {opacity: .4}
435 .p03::after {opacity: .3}
436 .p02::after {opacity: .2}
437 .p01::after {opacity: .1}
438 .p00::after {display: none}
439
440 /* code syntax */
441 .sy-comment    { color: #888 }
442 .sy-constant   { color: #008 }
443 .sy-type,
444 .sy-identifier { color: #804 }
445 .sy-statement  { }
446 .sy-preProc    { }
447 .sy-special    { color: #408 }
448 .sy-error      { font-weight: bold; background-color: #F00; color: #FFF }
449 .sy-todo       { background-color: #FF0 }
450
451 /* hover effects */
452 .X:hover {cursor: help}
453 .X:hover > span                            {background: #FFF} /* whitespace marker */
454 .Greek:hover, .Armenian:hover              {background: #FA8}
455 .Cyrillic:hover                            {background: #FB7}
456 .Latin:hover                               {background: #EE4}
457 .Hebrew:hover, .Aramaic:hover              {background: #FFA}
458 .Arabic:hover                              {background: #CFD}
459 .African:hover                             {background: #BDB}
460 .Syllabic:hover, .Hangul:hover             {background: #CE6}
461 .Katakana:hover                            {background: #BF7}
462 .Hiragana:hover                            {background: #AF8}
463 .Bopomofo:hover                            {background: #8FA}
464 .Brahmic:hover                             {background: #F77}
465 .Khmer:hover                               {background: #F87}
466 .Han:hover                                 {background: #5EB}
467 .Alpha:hover                               {background: #5C5}
468 .Nd:hover, .Nl:hover, .No:hover            {background: #F99} /* number */
469 .Sc:hover                                  {background: #F8C} /* currency */
470 .Sm:hover                                  {background: #F8F} /* math */
471 .So:hover                                  {background: #A8F} /* symbol */
472 .Pd:hover, .Po:hover, .Pc:hover            {background: #8AF} /* punctuation */
473 .Ps:hover, .Pe:hover, .Pi:hover, .Pf:hover {background: #8DF} /* quote */
474 .Lm:hover, .Sk:hover                       {background: #BFF} /* spacing modifier */
475 .Mn:hover                                  {background: #CDE} /* modifier */
476 .Zs:hover                                  {background: #CED} /* space */
477 .Cc:hover, .Cf:hover                       {background: #DDD} /* control */
478 .Co:hover                                  {background: #A77} /* private */
479 .Xr:hover                                  {background: #FFF} /* reserved */
480 .Xi:hover                                  {background: #DDD} /* invalid */
481 .l0:hover                                  {background: #888}
482 .l1:hover                                  {background: #F88}
483 .l2:hover                                  {background: #FC8}
484 .l3:hover                                  {background: #FF8}
485 .l4:hover                                  {background: #CF8}
486 .l5:hover                                  {background: #8F8}
487 .u-l3:hover    {outline: 1px solid #080}
488 .u-l3.ex:hover {outline: 1px solid #8F0}
489 .u-l2:hover    {outline: 1px solid #800}
490 .u-l1:hover    {outline: 1px solid #F00}
491
492 /* key type colorization */
493
494 .c-sa,
495 .g1 {background: #BFE} /* cyan: info */
496 .c-na,
497 .g2 {background: #BFB} /* green: motion */
498 .g3 {background: #DFA} /* greenish: jump (g2+) */
499 .c-af,
500 .g4 {background: #FFA} /* yellow: command */
501 .c-eu,
502 .g5 {background: #FDA} /* orangish: open (g6-) */
503 .g6 {background: #FCA} /* orange: insert */
504 .c-as,
505 .g7 {background: #FCC} /* red: mode */
506 .c-an,
507 .g8 {background: #ECE} /* purple: visual (g7+) */
508 .c-oc,
509 .g9 {background: #CCF} /* blue: prefix */
510
511 .c-sa:hover,
512 .g1 a:hover, .g1[onclick]:hover {background: #5ED}
513 .c-na:hover,
514 .g2 a:hover, .g2[onclick]:hover {background: #7E7}
515 .g3 a:hover, .g3[onclick]:hover {background: #CE6}
516 .c-af:hover,
517 .g4 a:hover, .g4[onclick]:hover {background: #EE4}
518 .c-eu:hover,
519 .g5 a:hover, .g5[onclick]:hover {background: #FA6}
520 .g6 a:hover, .g6[onclick]:hover {background: #F97}
521 .c-as:hover,
522 .g7 a:hover, .g7[onclick]:hover {background: #F88}
523 .c-an:hover,
524 .g8 a:hover, .g8[onclick]:hover {background: #D9D}
525 .c-oc:hover,
526 .g9 a:hover, .g9[onclick]:hover {background: #99F}
527
528 .no {
529         background: #EEE; /* unassigned */
530 }
531 .keys td.ni {
532         border: 0;
533         padding: 1px; /* same size as borderlessless keys */
534         background: none;
535 }
536
537 dl.legend dt.more,
538 .keys td.more b {
539         text-shadow: #F20 0 0 0.1em;
540 }
541 dl.legend dt.more:hover,
542 .keys td.more:hover b {
543         text-shadow: #F20 0 0 0.5em, #FC0 0 0 0.2em;
544 }
545 dl.legend dt.ext,
546 .keys td.ext {
547         border-style: dashed;
548 }
549 dl.legend dt.new,
550 .keys td.new {
551         opacity: .6;
552 }
553
554 /* l/r help columns */
555
556 .help {
557         display: table;
558         width: 100%;
559 }
560 .help > * {
561         display: table-cell;
562         width: 20%;
563         vertical-align: top;
564 }
565
566 .left dl.legend {
567         margin-left: 6.4em; /* a bit over 6.2em to allow for borders+padding (border-sizing would work too) */
568 }
569 .left dl.legend dt {
570         margin-left: -6.4em; /* msie<=6 multiply this by two for some reason */
571         float: left;
572         clear: left;
573 }
574 .left dl.legend dd {
575         float: left; /* align next to dt (except msie<=7 does just the opposite) */
576 }
577 .right dl.legend {
578         margin-right: 6.4em;
579 }
580 .right dl.legend dt {
581         margin-right: -6.4em;
582         float: right;
583         clear: right;
584 }
585 .right dl.legend dd {
586         float: right;
587 }
588 .right {
589         text-align: right;
590 }
591
592 /* help/legend */
593
594 dl.legend dt {
595         margin: 0 0 1px; /* distinct keys */
596         height: auto; /* not key-height */
597         padding: 2px 0;
598 }
599 dl.legend dd {
600         margin: 3px 0.4em 0; /* align text (add dt border+padding height) */
601         padding: 0;
602 }
603
604 dl.legend-options dt {
605         background: #CCC;
606 }
607
608 ul.legend-set {
609         clear: right;
610         padding-top: 1ex;
611 }
612 ul.legend-set li {
613         margin: 6px 0; /* similar to dl legends */
614 }
615
616 .legend {
617         margin-top: 1em;
618 }
619 .legend table {
620         width: 100%;
621 }
622 .legend td {
623         padding: 0 0.2em;
624 }
625
626 /* page-specific */
627
628 #browser td > a {
629         text-decoration: none;
630 }
631 #browser td > a:active,
632 #browser td > a:hover {
633         text-decoration: underline;
634 }
635 #browser tr .aside {
636         font-size: 80%;
637         overflow: hidden;
638         height: 0;
639         -webkit-transition: all 1s ease-in;
640         -o-transition: all 1s ease-in;
641         -moz-transition: all 1s ease-in;
642         transition: height 1s ease-in;
643 }
644 #browser tr .aside p {
645         margin: 1ex 0;
646 }
647 #browser tr.target .aside,
648 #browser tr:target .aside {
649         height: auto;
650 }
651 #browser td.X {
652         white-space: nowrap; /* some browsers break on dashes */
653 }
654
655 #browser tr:target > td:first-of-type,
656 #browser tr.focus > td:first-of-type {
657         background: inherit;
658 }
659 #browser tr.focus > td {
660         border-bottom-color: #000;
661 }
662
663 form.aside {
664         position: absolute;
665         top: 3ex;
666         right: 1em;
667 }
668
669 /* printing hints */
670
671 @page {
672         size: landscape;
673         margin: 0;
674 }
675
676 @media print {
677         ul.legend-set {display: none} /* current options only relevant on dynamic media */
678 }
679