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