index: link to mutt page
[sheet.git] / base.css
1 /* media features */
2
3 @import url(terse.css) all and (max-width: 80em);
4
5 @import url(mono.css) all and (monochrome);
6
7 /* general */
8
9 body {
10         background: #FFF;
11         color: #000;
12         font-size: 90%;
13 }
14 a, a:visited {
15         color: #000;
16         text-decoration: underline;
17 }
18 a:active, a:hover {
19         color: #00F;
20         text-decoration: none;
21 }
22
23 /* common sections */
24
25 h1, h2 {
26         text-align: center;
27         font-size: 200%;
28         margin: 0;
29 }
30 h2, caption {
31         font-size: 125%;
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 .diinfo h2 {
46         margin: 0 1ex;
47         clear: both;
48         font-size: 110%;
49         text-align: left;
50 }
51
52 p {
53         text-align: center;
54         margin: 1ex 0 1em;
55 }
56 p.aside {
57         font-size: 80%;
58 }
59 p.footer {
60         margin: 1em 0 0;
61 }
62 .help + .footer {
63         margin: 0;
64 }
65
66 ul {
67         margin: 0;
68         padding: 0;
69         list-style: none;
70 }
71
72 /* "keyboard" (list of keys) */
73
74 ul#rows {margin-top: -5ex} /* top (esc) row fits besides header */
75 li.row1 {margin-left: 7em} /* row offsets relative to ~6em key width */
76 li.row2 {margin-left: 8em}
77 li.row3 {margin-left: 10em} /* should actually align to next key on row0 */
78         /* ...however rows>=1 are shifted a bit, to make space */
79
80 li.row {
81         clear: both; /* start new row block (keyboard row) */
82         padding-top: 1ex;
83 }
84 li.row > ul > li {
85         clear: both; /* start new row (screen row) */
86 } /* css2 selectors ignored by msie<=6 */
87 li.row ul ul {
88         clear: both;
89 } /* css1 alternative as well (doesn't match in gecko for some reason) */
90
91 h3      {display: none} /* semantic details (non-css/js) */
92 li.mode {display: none} /* initially hidden (only show interactively (js)) */
93
94 #rows {
95         width: 82.5em; /*       12 * (2px + 1px + 6.2em + 1px + 2px) + 8em*/
96         padding-right: 72px;
97 }
98 #rows > li {
99         margin-right: -72px;
100 }
101
102 /* individual keys */
103
104 dl.legend dt,
105 ul.keys li {
106         float: left;
107         width: 6.2em;
108         line-height: 2.25ex; /* a little terser (seems to be gecko's default anyway) */
109         height: 4.5ex; /* 2 lines */
110         overflow: hidden;
111         margin: 0 2px -1px;
112         text-align: center;
113         border: 1px solid #000;
114         border-radius: 4px;
115         -moz-border-radius: 4px;
116 }
117 ul.keys li b {
118         float: left;
119         font-size: 200%;
120         line-height: 2.5ex; /* inherits otherwise */
121         padding-left: 2px;
122 }
123 ul.keys.omni li { /* omni-present esc */
124         width: 8.5em;
125 }
126
127 /* fine tuning of special occurrences */
128
129 ul.keys li b[title] { /* mnemonic hover */
130         cursor: help;
131 }
132 ul.keys li[onclick]:hover { /* link */
133         cursor: pointer;
134 }
135 ul.keys.meta li b,
136 ul.keys.ctrl li b,
137 ul.keys.lead li b { /* char with ctrl or leading key */
138         font-size: 100%; /* space is too limited for 2+ double-sized chars */
139         line-height: 5ex; /* keep double height though */
140 }
141 ul.keys.meta li b small,
142 ul.keys.ctrl li b small { /* meta key indicator */
143         font-size: 70%;
144         font-weight: normal; /* nice and subtle */
145 }
146
147 /* character table */
148
149 li table {
150         float: left;
151         position: relative; /* prevents buggy hovering if table-caption present in gecko */
152 }
153
154 table.glyphs {
155         border-collapse: collapse;
156 }
157 .glyphs thead th, .glyphs td {
158         text-align: center;
159         width: 1.6em; /* regular interval */
160 }
161 .glyphs th, .glyphs td {
162         border-color: #778;
163         border: 1px solid #888;
164         background: #DDD;
165 }
166 .glyphs tbody td {
167         font-size: 112%;
168 }
169 .glyphs.big tbody td {
170         font-size: 200%;
171 }
172 .glyphs .glyphs {
173         margin: 0.5ex 0;
174 }
175 .glyphs .glyphs td {
176         font-size: 100%;
177 }
178
179 /* table headers */
180
181 .glyphs th,
182 .glyphs thead td {
183         border: 0;
184         background: transparent !important;
185 }
186 .glyphs thead td {
187         width: auto; /* no glyph cells in header */
188 }
189 .glyphs th {
190         padding: 0 0.2em;
191 }
192 .diinfo .glyphs th {
193         font-size: 50%; /* mostly insignificant here */
194         font-weight: normal;
195 }
196 .diinfo .glyphs tbody th {
197         text-align: right; /* variable width so keep near cells */
198         padding: 0 0.5em;
199 }
200
201 /* digraphs map */
202
203 table.glyphs.dimap {
204         table-layout: fixed; /* prevent resizing, notably in msie6 */
205 }
206 .glyphs.dimap thead th, .glyphs.dimap td {
207         /* below-maximum size (but still average enough to be regular) so we can fit more */
208         width: 1.2em; /* msie only looks at the first row */
209         min-width: 1em; /* prevents gecko from restricting to page width */
210 }
211 .glyphs.dimap th {
212         text-align: center; /* row headers are also glyph-sized */
213 }
214
215 .glyphs.dimap tbody, .glyphs.dimap colgroup {
216         border: 2px double #888; /* major character group grid */
217 }
218 .glyphs.dimap tbody {
219         border-width: 2px 0; /* horizontal group dividers */
220 }
221 .glyphs.dimap colgroup {
222         border-width: 0 2px; /* vertical divides */
223 }
224
225 /* digraph selection */
226
227 .diinfo {
228         -moz-column-width: 24em;
229 }
230 .diinfo > div {
231         overflow: hidden;
232 }
233
234 .diinfo table.glyphs {
235         margin: 1ex 1ex 2ex;
236         float: left;
237 }
238
239 /* glyph cell overlay (digraph labels) */
240
241 .glyphs.dilabel td {
242         padding: 0;
243         padding-bottom: 1.1ex; /* reserve space for label */
244         vertical-align: bottom;
245 }
246 .glyphs small {
247         font-size: 50%;
248         display: block;
249         margin-top: 0.2ex;
250         margin-bottom: -2.2ex; /* take cell padding */
251 }
252 .glyphs small.digraph {
253         background: #000;
254         color: #FFF;
255         opacity: 0.3;
256 }
257 .glyphs small.value {
258         background: #600;
259         color: #FFF;
260         opacity: 0.3;
261 }
262
263 /* character properties */
264
265 td.X  {background: #FFF} /* unidentified */
266 #digraphs td.Xa {color: #0A0} /* ascii */
267 #digraphs td.Xl {color: #070} /* latin1 */
268 #digraphs   .Xz {color: #D00} /* proposed */
269
270 td.Lm, td.Mc, td.Me, td.Zl, td.Zp {background: #F00} /* unstyled */
271
272 /* letter scripts */
273 td.Armenian,
274 td.Greek    {background: #FFE8CF}
275 td.Cyrillic {background: #FFDDA8}
276 td.Latin    {background: #FFB}
277 td.Aramaic,
278 td.Hebrew   {background: #FFD}
279 td.Arabic   {background: #EFE}
280 td.African  {background: #DED}
281 td.Brahmic  {background: #FBB} /* same as number */
282 td.Khmer    {background: #FBA}
283 td.Hangul,
284 td.Syllabic {background: #DEA}
285 td.Katakana {background: #DFA}
286 td.Hiragana {background: #DFC}
287 td.Bopomofo {background: #BFC}
288 td.Han      {background: #CFD}
289 td.Alpha    {background: #ADA} /* other scripts */
290
291 /* other categories */
292 td.Nd, td.Nl, td.No        {background: #FDD} /* number */
293 td.Sc                      {background: #FCD} /* currency */
294 td.Sm                      {background: #ECE} /* math */
295 td.So                      {background: #DCF} /* symbol */
296 td.Pd, td.Po, td.Pc        {background: #CDF} /* punctuation */
297 td.Ps, td.Pe, td.Pi, td.Pf {background: #BEF} /* quote */
298 td.Lm, td.Sk               {background: #CEE} /* spacing modifier */
299 td.Mn                      {background: #ACC} /* modifier */
300 td.Cc, td.Cf  {color: #666; background: #BBB} /* control */
301 td.Zs                      {background: #ACB} /* space */
302 td.Zs span                 {background: #EEE}
303 td.Co                      {background: #A99} /* private */
304 td.Xi, td.Cs               {background: #CCC} /* invalid */
305 td.Xd                      {color: #844} /* deprecated */
306 td.Xr                      {color: #888} /* reserved (digraph reverse or proposal) */
307 .dimap td.Xr               {background: #EEE} /* reversed digraph */
308 .ccmap td.Xr {opacity:.4}
309
310 /* implementation-based alternatives */
311 td.di-b       {background: #FDD} /* bmp */
312 td.di-d       {background: #FFD} /* rfc-1345 digraph */
313 td.di-prop    {background: #FED} /* proposed digraph */
314 td.di-a       {background: #EFD} /* ascii */
315 td.di-rare    {background: #EEE} /* disfavoured */
316 td.di-invalid {background: #BBB} /* impossible */
317
318 /* continents */
319 td.c-af       {background: #FFC}
320 td.c-eu       {background: #FDC}
321 td.c-as       {background: #FDD}
322 td.c-oc       {background: #EEDDF4}
323 td.c-aa       {background: #E3E8FF}
324 td.c-sa       {background: #DFF}
325 td.c-na       {background: #DFD}
326
327 /* hover effects */
328 td.di-d,
329 td.X:hover {cursor: help}
330 td.Greek:hover, td.Armenian:hover                  {background: #FA8}
331 td.Cyrillic:hover                                  {background: #FB7}
332 td.Latin:hover                                     {background: #EE4}
333 td.Hebrew:hover, td.Aramaic:hover                  {background: #FFA}
334 td.Arabic:hover                                    {background: #CFD}
335 td.African:hover                                   {background: #BDB}
336 td.Syllabic:hover, td.Hangul:hover                 {background: #CE6}
337 td.Katakana:hover                                  {background: #BF7}
338 td.Hiragana:hover                                  {background: #AF8}
339 td.Bopomofo:hover                                  {background: #8FA}
340 td.Brahmic:hover                                   {background: #F77}
341 td.Khmer:hover                                     {background: #F87}
342 td.Han:hover                                       {background: #5EB}
343 td.Alpha:hover                                     {background: #5C5}
344 td.Nd:hover, td.Nl:hover, td.No:hover              {background: #F99} /* number */
345 td.Sc:hover                                        {background: #F8C} /* currency */
346 td.Sm:hover                                        {background: #F8F} /* math */
347 td.So:hover                                        {background: #A8F} /* symbol */
348 td.Pd:hover, td.Po:hover, td.Pc:hover              {background: #8AF} /* punctuation */
349 td.Ps:hover, td.Pe:hover, td.Pi:hover, td.Pf:hover {background: #8DF} /* quote */
350 td.Lm:hover, td.Sk:hover                           {background: #BFF} /* spacing modifier */
351 td.Mn:hover                                        {background: #CDE} /* modifier */
352 td.Zs:hover                                        {background: #CED} /* space */
353 td.Cc:hover, td.Cf:hover                           {background: #DDD} /* control */
354 td.Co:hover                                        {background: #A77} /* private */
355 td.Xr:hover                                        {background: #FFF} /* reserved */
356 td.Xa:hover {outline: 1px solid #0F0} /* ascii */
357 td.Xl:hover {outline: 1px solid #0C0} /* latin1 */
358 td.Xz:hover {outline: 1px solid #F00} /* proposed */
359 td.di-rare:hover                                   {background: #BBB}
360 td.di-b:hover                                      {background: #F88}
361 td.di-d:hover                                      {background: #FF8}
362 td.di-prop:hover                                   {background: #FC8}
363 td.di-a:hover                                      {background: #CF8}
364
365 /* key type colorization */
366
367 .pm {background: #BFB}   /* motion */
368 .po {background: #DFA}   /* window */
369 .co {background: #FFA}   /* command */
370 .ci {background: #BFE}   /* info */
371 .cp {background: #FDA}   /* TODO */
372 .mi {background: #FCA}   /* insert mode */
373 .mo {background: #FCC}   /* mode */
374 .mv {background: #ECE}   /* visual mode */
375 .me {background: #CCF}   /* key mode */
376
377 .pm[onclick]:hover {background: #7E7}
378 .po[onclick]:hover {background: #CE6}
379 .ci[onclick]:hover {background: #5ED}
380 .mi[onclick]:hover {background: #F97}
381 .mo[onclick]:hover {background: #F88}
382 .me[onclick]:hover {background: #99F}
383 .mv[onclick]:hover {background: #D9D}
384 .co[onclick]:hover {background: #EE4}
385
386 .no {
387         background: #EEE;
388 }
389 ul.keys li.ni {
390         border: 0;
391         padding: 1px; /* same size as borderlessless keys */
392 }
393
394 dl.legend dt.ext,
395 ul.keys li.ext {
396         border-style: dashed;
397 }
398 dl.legend dt.new,
399 ul.keys li.new {
400         opacity: .6;
401 }
402
403 /* l/r help columns */
404
405 .help {
406         display: table;
407         width: 100%;
408 }
409 .help > * {
410         display: table-cell;
411         width: 20%;
412         vertical-align: top;
413 }
414
415 .left dl.legend {
416         margin-left: 6.4em; /* a bit over 6.2em to allow for borders+padding (border-sizing would work too) */
417 }
418 .left dl.legend dt {
419         margin-left: -6.4em; /* msie<=6 multiply this by two for some reason */
420         float: left;
421         clear: left;
422 }
423 .left dl.legend dd {
424         float: left; /* align next to dt (except msie<=7 does just the opposite) */
425 }
426 .right dl.legend {
427         margin-right: 6.4em;
428 }
429 .right dl.legend dt {
430         margin-right: -6.4em;
431         float: right;
432         clear: right;
433 }
434 .right dl.legend dd {
435         float: right;
436 }
437 .right {
438         text-align: right;
439 }
440
441 /* help/legend */
442
443 dl.legend dt {
444         margin: 0 0 1px; /* distinct keys */
445         height: auto; /* not key-height */
446         padding: 2px 0;
447 }
448 dl.legend dd {
449         margin: 3px 0.4em 0; /* align text (add dt border+padding height) */
450 }
451
452 dl.legend-options dt {
453         background: #CCC;
454 }
455
456 ul.legend-set {
457         clear: right;
458         padding-top: 1ex;
459 }
460 ul.legend-set li {
461         margin: 6px 0; /* similar to dl legends */
462 }
463
464 .legend {
465         margin-top: 1em;
466 }
467 .legend table {
468         width: 100%;
469 }
470 .legend td {
471         padding: 0 0.2em;
472 }
473
474 /* printing hints */
475
476 @page {
477         size: landscape;
478         margin: 0;
479 }
480
481 @media print {
482         ul.legend-set {display: none} /* current options only relevant on dynamic media */
483 }
484