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