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