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