a4b903a3629f5693260df50ff5119f910eba9db0
[sheet.git] / digraphs.css
1 /* general */
2
3 body {
4         background: #FFF;
5         color: #000;
6 }
7
8 a, a:visited {
9         color: #000;
10         text-decoration: underline;
11 }
12 a:active, a:hover {
13         color: #00F;
14         text-decoration: none;
15 }
16
17 /* head/foot */
18
19 h1 {
20         text-align: center;
21         font-size: 180%;  /* 200% * 90% */
22         margin: 0 0 0.5ex;
23 }
24 h2 {
25         margin: 0 1ex;
26         font-size: 100%;
27         clear: both;
28 }
29 p {
30         text-align: center;
31         font-size: 90%;  /* like base.css body */
32         margin: 1ex 0 1em;
33 }
34 p#footer {
35         margin: 1em 0 0;
36 }
37
38 /* digraph table */
39
40 table.glyphs {
41         border-collapse: collapse;
42 }
43 .glyphs thead th, .glyphs td {
44         text-align: center;
45         width: 1.6em; /* regular interval */
46 }
47 .glyphs th, .glyphs td {
48         border-color: #778;
49         border: 1px solid #888;
50         background: #DDD;
51 }
52
53 /* table headers */
54
55 .glyphs th {
56         text-align: left;
57         font-size: 50%;
58         background: #888;
59         background: #778;
60         background: #889;
61         color: #FFF;
62         padding: 0 0.2em;
63 }
64 .glyphs.dimap th,
65 .glyphs thead td {
66         /* reset to background styling */
67         border: 0;
68         background: transparent;
69         color: inherit;
70         font-size: 90%;
71 }
72 .glyphs thead td {
73         width: auto;
74 }
75
76 /* digraphs map */
77
78 table.glyphs.dimap {
79         table-layout: fixed; /* prevent resizing, notably in msie6 */
80 }
81 .glyphs.dimap thead th, .glyphs.dimap td {
82         /* below-maximum size (but still average enough to be regular) so we can fit more */
83         width: 1.2em; /* msie only looks at the first row */
84         min-width: 1em; /* prevents gecko from restricting to page width */
85 }
86 .glyphs.dimap th {
87         text-align: center; /* row headers are also glyph-sized */
88 }
89
90 .glyphs.dimap tbody, .glyphs.dimap colgroup {
91         border: 2px double #888; /* major character group grid */
92 }
93 .glyphs.dimap tbody {
94         border-width: 2px 0; /* horizontal group dividers */
95 }
96 .glyphs.dimap colgroup {
97         border-width: 0 2px; /* vertical divides */
98 }
99
100 /* digraph selection */
101
102 .diinfo {
103         -moz-column-width: 24em;
104 }
105 .diinfo > div {
106         overflow: hidden;
107 }
108
109 .diinfo table.glyphs {
110         margin: 1ex 1ex 2ex;
111         float: left;
112 }
113
114 /* legend */
115
116 #legend {
117         margin-top: 1em;
118 }
119 #legend table {
120         width: 100%;
121 }
122 #legend tbody {
123         border: 0;
124 }
125 #legend td {
126         padding: 0 0.2em;
127 }
128
129 /* glyph cell overlay (digraph labels) */
130
131 .glyphs.dilabel td {
132         padding: 0;
133         padding-bottom: 1.1ex; /* reserve space for label */
134         vertical-align: bottom;
135 }
136 .glyphs small {
137         font-size: 50%;
138         display: block;
139         margin-top: 0.2ex;
140         margin-bottom: -2.2ex; /* take cell padding */
141 }
142 .glyphs small.digraph {
143         background: #888;
144         color: #FFF;
145
146         background: #000;
147         color: #FFF;
148         opacity: 0.3;
149 }
150 .glyphs small.value {
151         background: #CCC;
152         color: #666;
153
154         background: #600;
155         color: #FFF;
156         opacity: 0.3;
157 }
158
159 /* character properties */
160
161 td.X  {background: #FFF} /* unidentified */
162 td.Xr {background: #EEE} /* reverse */
163 td.Xa {color: #0A0} /* ascii */
164 td.Xl {color: #070} /* latin1 */
165   .Xz {color: #D00} /* proposed */
166
167 td.Lm, td.Mc, td.Me, td.Zl, td.Zp, td.Cs {background: #F00} /* unstyled */
168
169 /* letter scripts */
170 td.Greek    {background: #FFE0CF}
171 td.Cyrillic {background: #FFDDA8}
172 td.Latin    {background: #FFB}
173 td.Hebrew   {background: #FFD}
174 td.Arabic   {background: #EFE}
175 td.Hangul   {background: #DEA}
176 td.Katakana {background: #DFA}
177 td.Hiragana {background: #DFC}
178 td.Bopomofo {background: #BFC}
179
180 /* other categories */
181 td.Nd, td.Nl, td.No        {background: #FBB} /* number */
182 td.Sc                      {background: #FCD} /* currency */
183 td.Sm                      {background: #ECE} /* math */
184 td.So                      {background: #DCF} /* symbol */
185 td.Cf, td.Pd, td.Po        {background: #CDF} /* punctuation */
186 td.Ps, td.Pe, td.Pi, td.Pf {background: #BEF} /* quote */
187 td.Lm, td.Sk               {background: #CEE} /* spacing modifier */
188 td.Mn                      {background: #ACC} /* modifier */
189 td.Cc         {color: #666; background: #BBB} /* control */
190 td.Zs                      {background: #ACB} /* space */
191 td.Zs span                 {background: #EEE}
192 td.Co                      {background: #A99} /* private */
193
194 /* implementation-based alternatives */
195 td.di-b       {background: #FDD} /* bmp */
196 td.di-d       {background: #FFD} /* rfc-1345 digraph */
197 td.di-prop    {background: #FED} /* proposed digraph */
198 td.di-a       {background: #EFD} /* ascii */
199 td.di-rare    {background: #EEE} /* disfavoured */
200 td.di-invalid {background: #BBB} /* impossible */
201
202 /* hover effects */
203 td.di-d,
204 td.X:hover {cursor: help}
205 td.Greek:hover                                     {background: #FA9}
206 td.Cyrillic:hover                                  {background: #FB7}
207 td.Latin:hover                                     {background: #FF6}
208 td.Hebrew:hover                                    {background: #FFA}
209 td.Arabic:hover                                    {background: #CFD}
210 td.Hangul:hover                                    {background: #CE6}
211 td.Katakana:hover                                  {background: #BF7}
212 td.Hiragana:hover                                  {background: #AF8}
213 td.Bopomofo:hover                                  {background: #8FA}
214 td.Nd:hover, td.Nl:hover, td.No:hover              {background: #F88} /* number */
215 td.Sc:hover                                        {background: #F8C} /* currency */
216 td.Sm:hover                                        {background: #F8F} /* math */
217 td.So:hover                                        {background: #A8F} /* symbol */
218 td.Cf:hover, td.Pd:hover, td.Po:hover              {background: #8AF} /* punctuation */
219 td.Ps:hover, td.Pe:hover, td.Pi:hover, td.Pf:hover {background: #8DF} /* quote */
220 td.Lm:hover, td.Sk:hover                           {background: #BFF} /* spacing modifier */
221 td.Mn:hover                                        {background: #CDE} /* modifier */
222 td.Zs:hover                                        {background: #CED} /* space */
223 td.Cc:hover                                        {background: #DDD} /* control */
224 td.Co:hover                                        {background: #A77} /* private */
225 td.Xa:hover {outline: 1px solid #0F0} /* ascii */
226 td.Xl:hover {outline: 1px solid #0C0} /* latin1 */
227 td.Xz:hover {outline: 1px solid #F00} /* proposed */
228 td.di-rare:hover                                   {background: #BBB}
229 td.di-b:hover                                      {background: #F88}
230 td.di-d:hover                                      {background: #FF8}
231 td.di-prop:hover                                   {background: #FC8}
232 td.di-a:hover                                      {background: #CF8}
233