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