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