X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/ff415f6392ee38af55f1657c02d5a0069779b82f..c74ecf690c0c9047a11049d629a791de47857b53:/digraphs.css diff --git a/digraphs.css b/digraphs.css index 22c2d6f..5593697 100644 --- a/digraphs.css +++ b/digraphs.css @@ -21,6 +21,11 @@ h1 { font-size: 180%; /* 200% * 90% */ margin: 0 0 0.5ex; } +h2 { + margin: 0 1ex; + font-size: 100%; + clear: both; +} p { text-align: center; font-size: 90%; /* like base.css body */ @@ -32,26 +37,87 @@ p#footer { /* digraph table */ -table { +table.glyphs { border-collapse: collapse; +} +.glyphs thead th, .glyphs td { + text-align: center; + width: 1.6em; /* regular interval */ +} +.glyphs th, .glyphs td { + border-color: #778; + border: 1px solid #888; + background: #DDD; +} + +/* table headers */ + +.glyphs th { + text-align: left; + font-size: 50%; + background: #888; + background: #778; + background: #889; + color: #FFF; + padding: 0 0.2em; +} +.glyphs.dimap th, +.glyphs thead td { + /* reset to background styling */ + border: 0; + background: transparent; + color: inherit; + font-size: 90%; +} +.glyphs thead td { + width: auto; +} + +/* digraphs map */ + +table.glyphs.dimap { table-layout: fixed; /* prevent resizing, notably in msie6 */ } -tbody, colgroup { - border: 2px double #888; +.glyphs.dimap thead th, .glyphs.dimap td { + /* below-maximum size (but still average enough to be regular) so we can fit more */ + width: 1.2em; /* msie only looks at the first row */ + min-width: 1em; /* prevents gecko from restricting to page width */ +} +.glyphs.dimap th { + text-align: center; /* row headers are also glyph-sized */ } -tbody { - border-width: 2px 0; + +.glyphs.dimap tbody, .glyphs.dimap colgroup { + border: 2px double #888; /* major character group grid */ +} +.glyphs.dimap tbody { + border-width: 2px 0; /* horizontal group dividers */ +} +.glyphs.dimap colgroup { + border-width: 0 2px; /* vertical divides */ +} + +/* digraph selection */ + +.diinfo { + -moz-column-width: 24em; +} +.diinfo > div { + overflow: hidden; } -colgroup { - border-width: 0 2px; + +.diinfo table.glyphs { + margin: 1ex 1ex 2ex; + float: left; } +/* legend */ + #legend { margin-top: 1em; } #legend table { width: 100%; - table-layout: auto; } #legend tbody { border: 0; @@ -60,21 +126,38 @@ colgroup { padding: 0 0.2em; } -/* character cells */ +/* glyph cell overlay (digraph labels) */ -thead th, td { - width: 1.2em; /* msie only looks at the first row */ - min-width: 1em; /* prevents gecko from restricting to page width */ -} -th, td { - text-align: center; +.glyphs.dilabel td { + padding: 0; + padding-bottom: 1.1ex; /* reserve space for label */ + vertical-align: bottom; +} +.glyphs small { + font-size: 50%; + display: block; + margin-top: 0.2ex; + margin-bottom: -2.2ex; /* take cell padding */ +} +.glyphs small.digraph { + background: #888; + color: #FFF; + + background: #000; + color: #FFF; + opacity: 0.3; } -td { - border: 1px solid #888; - background: #DDD; +.glyphs small.value { + background: #CCC; + color: #666; + + background: #800; + color: #FFF; + opacity: 0.3; } -/* properties */ +/* character properties */ + td.X {background: #FFF} /* unidentified */ td.Xr {background: #EEE} /* reverse */ td.Xa {color: #0A0} /* ascii */ @@ -108,6 +191,13 @@ td.Zs {background: #ACB} /* space */ td.Zs span {background: #EEE} td.Co {background: #A99} /* private */ +/* implementation-based alternatives */ +td.Ascii {background: #EFD} /* ascii */ +td.Di {background: #FFD} /* rfc-1345 digraph */ +td.DiProp {background: #FED} /* proposed digraph */ +td.DiNone {background: #FDD} /* other unicode */ +td.Reserved {background: #BBB} /* impossible */ + /* hover effects */ td.X:hover {cursor: help} td.Greek:hover {background: #FA9}