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