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