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