/[suikacvs]/test/html-webhacc/cc-style.css
Suika

Contents of /test/html-webhacc/cc-style.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (hide annotations) (download) (as text)
Sun Nov 18 11:05:12 2007 UTC (16 years, 6 months ago) by wakaba
Branch: MAIN
Changes since 1.14: +4 -1 lines
File MIME type: text/css
++ ChangeLog	18 Nov 2007 11:04:51 -0000
	* cc-style.css: New rules for warnings.

	* cc-todo.en.txt: Updated.

	* cc.cgi: Default to |Windows-1252| instead of |ISO-8859-1|
	for |inner_html| with external source.  Set |manakai_charset|
	attribute if possible.
	(load_text_catalog): Interpret catalog file as UTF-8.

	* error-description-source.en.xml: New errors for character
	encodings are added.

2007-11-18  Wakaba  <wakaba@suika.fam.cx>

	* error-description-source.xml: s/charset declaration/character
	encoding declaration/g, since HTML5 spec says so.

2007-11-18  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 @import '/www/style/html/xoxo.css';
2    
3 wakaba 1.2 .section {
4     display: block;
5     margin: 1em;
6     border: #800080 1px solid;
7     padding: 0.5em 1em;
8     }
9    
10 wakaba 1.10 dt, strong, th {
11 wakaba 1.2 font-weight: bolder;
12     font-family: sans-serif;
13     }
14     dt:after {
15     content: ":";
16     }
17    
18 wakaba 1.5 h1 {
19     font-weight: bolder;
20     font-family: sans-serif;
21     font-size: 180%;
22     }
23    
24 wakaba 1.2 h2 {
25     margin: 0;
26     border-style: none;
27     padding: 0;
28     font-weight: bolder;
29     font-family: sans-serif;
30     font-size: 150%;
31     }
32    
33 wakaba 1.12 h3, th {
34 wakaba 1.5 font-weight: bolder;
35     font-family: sans-serif;
36     font-size: 100%;
37     background-color: #fff0f0;
38     color: black;
39     }
40    
41 wakaba 1.2 .tree-text q, .tree-cdata q, .tree-comment q {
42     display: block;
43     }
44    
45     q, #source-string li {
46 wakaba 1.1 white-space: pre;
47     white-space: -moz-pre-wrap;
48     white-space: pre-wrap;
49     }
50    
51 wakaba 1.2 q, #source-string ol {
52     background-color: #f0f0ff;
53     color: black;
54     line-height: 1.5;
55     }
56    
57     q:before, q:after {
58     content: "";
59     }
60    
61 wakaba 1.4 #parse-errors dl:empty:before {
62     content: "This document has no parse error.";
63     font-style: italic;
64     }
65    
66     #document-errors dl:empty:before {
67     content: "This document has no document error.";
68     font-style: italic;
69     }
70    
71 wakaba 1.2 #document-tree > ol {
72     margin-left: 0;
73     padding-left: 0;
74     }
75     #document-tree > ol > li {
76 wakaba 1.7 /* display: block;
77 wakaba 1.2 list-style: none;
78     margin-left: 0;
79 wakaba 1.7 padding-left: 0; */
80 wakaba 1.2 }
81    
82 wakaba 1.7 #document-tree ol /*ol*/ {
83 wakaba 1.2 margin-left: 1em;
84     padding-left: 0;
85     }
86    
87 wakaba 1.7 #document-tree ol /*ol*/ li {
88 wakaba 1.2 margin-left: 0;
89     padding-left: 0.4em;
90     }
91    
92     #document-tree ul.attributes {
93     margin-left: 3em;
94     padding: 0;
95     }
96    
97     #document-tree ul.attributes li {
98     display: inline;
99     list-style: none;
100     margin: 0 2em 0 0;
101     padding: 0;
102     text-indent: 0;
103     font-size: 90%;
104     }
105    
106 wakaba 1.11 #dump-manifest tbody:empty {
107     display: table-caption;
108     caption-side: bottom;
109     }
110    
111     #dump-manifest tbody:empty::after {
112     content: "This cache manifest contains no oppotunistic caching namespace.";
113     font-style: italic;
114     }
115    
116     #dump-manifest dt:first-child + dt::before,
117     #dump-manifest dt:last-child::after {
118     display: block;
119     content: "This cache manifest contains no explicit entry.";
120     margin-left: 2.5em;
121     font-style: italic;
122     font-weight: normal;
123     font-family: serif;
124     }
125    
126     #dump-manifest dt:last-child::after {
127     content: "This cache manifest has an empty online whitelist.";
128     }
129    
130 wakaba 1.10 #parse-errors dd, #document-errors dd, #error-description h3,
131     #result-para {
132 wakaba 1.4 margin-left: 20px;
133     padding-left: 40px;
134     min-height: 32px;
135     background-image: url(large-stop);
136 wakaba 1.6 background-position: center left;
137     background-repeat: no-repeat;
138     }
139    
140 wakaba 1.12 #levels-table tbody th:first-child {
141     padding-left: 42px;
142     min-height: 32px;
143     background-image: url(large-stop);
144     background-position: 5px center;
145     background-repeat: no-repeat;
146     text-align: left;
147     }
148    
149 wakaba 1.6 #identifiers dd, #terms dd {
150     margin-left: 20px;
151     padding-left: 20px;
152     min-height: 20px;
153     }
154    
155     #identifiers dd + dd, #terms dd + dd {
156     background-image: url(error);
157     background-position: center left;
158 wakaba 1.4 background-repeat: no-repeat;
159     }
160    
161 wakaba 1.5 #error-description h3 {
162     margin-left: 1em;
163     margin-right: 1em;
164     }
165    
166 wakaba 1.15 #parse-errors dd.should,
167 wakaba 1.10 #document-errors dd.should, #error-description .should h3,
168 wakaba 1.12 #result-para.SEE-RESULT, #levels-table #level-s th {
169 wakaba 1.4 background-image: url(large-alert);
170     }
171    
172 wakaba 1.15 #parse-errors dd.warning,
173     #document-errors dd.warning, #error-description .warning h3,
174 wakaba 1.12 #levels-table #level-w th {
175     background-image: url(large-info);
176     }
177    
178 wakaba 1.14 #parse-errors dd.unsupported,
179 wakaba 1.4 #document-errors dd.unsupported {
180     margin-left: 60px;
181     border: red 0.2em solid;
182     padding: 0.5em;
183 wakaba 1.5 }
184    
185 wakaba 1.14 #parse-errors dd.unsupported,
186 wakaba 1.10 #document-errors dd.unsupported, #error-description .unsupported h3,
187 wakaba 1.12 #result-para.uncertain, #levels-table #level-unsupported th {
188 wakaba 1.4 background-image: none;
189     }
190    
191 wakaba 1.10 #result-para.PASS {
192     background-image: url(ok);
193     }
194    
195 wakaba 1.1 #nav-items {
196     display: block;
197     position: fixed;
198     top: 0.5em;
199     right: 0.5em;
200     width: auto;
201     height: auto;
202     font-size: 90%;
203     background-color: #f4fff4;
204     color: black;
205     padding: 0;
206     line-height: 1.1;
207     }
208    
209     #nav-items li {
210     display: block;
211     list-style: none;
212     margin: 0;
213     border-style: none;
214     padding: 0;
215     text-align: center;
216     }
217    
218     #nav-items li a[href] {
219     display: block;
220     border-style: none;
221     color: inherit;
222     text-decoration: none;
223     }
224    
225 wakaba 1.3 img {
226     border-style: none;
227     }
228    
229 wakaba 1.4 code {
230     font-family: "Courier New", "Courier", monospace;
231     letter-spacing: 0.1em;
232     background-color: transparent;
233     color: orangered;
234 wakaba 1.7 white-space: -moz-pre-wrap;
235     white-space: pre-wrap;
236 wakaba 1.4 }
237    
238 wakaba 1.13 .example {
239     background-color: #ececff;
240     }
241    
242     pre.example {
243     margin-left: 1em;
244     margin-right: 1em;
245     padding: 0.2em 0.5em;
246     }
247    
248     .example.bad {
249     background-color: #fff7f7;
250     }
251    
252     code.example.bad {
253     color: inherit;
254     background-color: #ffeeee;
255     }
256    
257     h3 code.example.bad {
258     color: orangered;
259     background-color: transparent;
260     }
261    
262     pre.example::before {
263     content: "Example";
264     display: block;
265     color: #b0b0ff;
266     background-color: transparent;
267     font-weight: bolder;
268     font-family: sans-serif;
269     }
270    
271     pre.example.html::before {
272     content: "HTML Example";
273     }
274    
275     pre.example.xml::before {
276     content: "XML Example";
277     }
278    
279     pre.example.manifest::before {
280     content: "Cache Manifest Example";
281     }
282    
283     pre.example.bad::before {
284     content: "Bad Example";
285     color: #ffc1c1;
286     }
287    
288     pre.example.bad.html::before {
289     content: "HTML Bad Example";
290     }
291    
292     pre.example.bad.xml::before {
293     content: "XML Bad Example";
294     }
295    
296     pre.example.bad.manifest::before {
297     content: "Cache Manifest Bad Example";
298     }
299    
300 wakaba 1.9 .rfc2119 {
301     border-style: none;
302     text-transform: lowercase;
303     font-variant: small-caps;
304     font-style: normal;
305     text-decoration: none;
306     font-weight: normal;
307     font-family: sans-serif;
308     }
309    
310     #result-summary table {
311     margin-left: auto;
312     margin-right: auto;
313     border: 3px solid #800080;
314     border-collapse: collapse;
315     }
316    
317     #result-summary tbody, colgroup {
318     border: 3px solid #800080;
319     }
320    
321     #result-summary th {
322     background-color: #fff0f0;
323     color: black;
324     }
325    
326     #result-summary th, #result-summary td {
327     border: 1px solid #800080;
328     padding: 0.2em 0.5em;
329     text-align: center;
330     empty-cells: show;
331     }
332    
333 wakaba 1.12 .uncertain td, p.uncertain, #level-unsupported, #level-unsupported th {
334 wakaba 1.9 background-color: #e1e1ff;
335     color: black;
336     }
337    
338 wakaba 1.12 .FAIL, .uncertain td.FAIL, #level-m, #level-m th {
339 wakaba 1.9 background-color: #ffcece;
340     color: black;
341     }
342    
343 wakaba 1.12 .SEE-RESULT, .uncertain td.SEE-RESULT, #level-s, #level-s th {
344 wakaba 1.9 background-color: #e1e1ff;
345     color: black;
346     }
347    
348 wakaba 1.12 .PASS, #level-w, #level-w th {
349 wakaba 1.9 background-color: #ddffdd;
350     color: black;
351     }
352    
353     #result-para {
354 wakaba 1.10 padding-top: 0.2em;
355     padding-bottom: 0.2em;
356     padding-right: 1em;
357 wakaba 1.9 }
358    
359 wakaba 1.11 /* dl.switch from WHATWG specification style sheet */
360    
361     dl.switch {
362     padding-left: 2em;
363     }
364    
365     dl.switch dt {
366     display: block;
367     text-indent: -1.5em;
368     font-weight: bolder;
369     font-family: sans-serif;
370     font-style: normal;
371     }
372    
373     dl.switch dt:before {
374     content: '\21AA';
375     padding: 0 0.5em 0 0;
376     display: inline-block;
377     width: 1em;
378     text-align: right;
379     line-height: 0.5em;
380     }
381    
382     dl.switch dt:after {
383     content: " :";
384     }
385    
386 wakaba 1.1 /*
387    
388 wakaba 1.11 Copyright 2007 Wakaba <w@suika.fam.cx>.
389 wakaba 1.1
390     This library is free software; you can redistribute it
391     and/or modify it under the same terms as Perl itself.
392    
393 wakaba 1.15 $Date: 2007/11/11 06:57:16 $
394 wakaba 1.1
395     */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24