/[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.14 - (show annotations) (download) (as text)
Sun Nov 11 06:57:16 2007 UTC (17 years ago) by wakaba
Branch: MAIN
Changes since 1.13: +3 -1 lines
File MIME type: text/css
++ ChangeLog	11 Nov 2007 06:57:02 -0000
	* cc-style.css: Rules for "unsupported" parse errors.

	* cc.cgi (print_syntax_error_html_section): Use HTML
	parser for byte string.
	(print_result_unknown_type_section): Make output
	more consistent with other media types.

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

1 @import '/www/style/html/xoxo.css';
2
3 .section {
4 display: block;
5 margin: 1em;
6 border: #800080 1px solid;
7 padding: 0.5em 1em;
8 }
9
10 dt, strong, th {
11 font-weight: bolder;
12 font-family: sans-serif;
13 }
14 dt:after {
15 content: ":";
16 }
17
18 h1 {
19 font-weight: bolder;
20 font-family: sans-serif;
21 font-size: 180%;
22 }
23
24 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 h3, th {
34 font-weight: bolder;
35 font-family: sans-serif;
36 font-size: 100%;
37 background-color: #fff0f0;
38 color: black;
39 }
40
41 .tree-text q, .tree-cdata q, .tree-comment q {
42 display: block;
43 }
44
45 q, #source-string li {
46 white-space: pre;
47 white-space: -moz-pre-wrap;
48 white-space: pre-wrap;
49 }
50
51 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 #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 #document-tree > ol {
72 margin-left: 0;
73 padding-left: 0;
74 }
75 #document-tree > ol > li {
76 /* display: block;
77 list-style: none;
78 margin-left: 0;
79 padding-left: 0; */
80 }
81
82 #document-tree ol /*ol*/ {
83 margin-left: 1em;
84 padding-left: 0;
85 }
86
87 #document-tree ol /*ol*/ li {
88 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 #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 #parse-errors dd, #document-errors dd, #error-description h3,
131 #result-para {
132 margin-left: 20px;
133 padding-left: 40px;
134 min-height: 32px;
135 background-image: url(large-stop);
136 background-position: center left;
137 background-repeat: no-repeat;
138 }
139
140 #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 #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 background-repeat: no-repeat;
159 }
160
161 #error-description h3 {
162 margin-left: 1em;
163 margin-right: 1em;
164 }
165
166 #document-errors dd.should, #error-description .should h3,
167 #result-para.SEE-RESULT, #levels-table #level-s th {
168 background-image: url(large-alert);
169 }
170
171 #levels-table #level-w th {
172 background-image: url(large-info);
173 }
174
175 #parse-errors dd.unsupported,
176 #document-errors dd.unsupported {
177 margin-left: 60px;
178 border: red 0.2em solid;
179 padding: 0.5em;
180 }
181
182 #parse-errors dd.unsupported,
183 #document-errors dd.unsupported, #error-description .unsupported h3,
184 #result-para.uncertain, #levels-table #level-unsupported th {
185 background-image: none;
186 }
187
188 #result-para.PASS {
189 background-image: url(ok);
190 }
191
192 #nav-items {
193 display: block;
194 position: fixed;
195 top: 0.5em;
196 right: 0.5em;
197 width: auto;
198 height: auto;
199 font-size: 90%;
200 background-color: #f4fff4;
201 color: black;
202 padding: 0;
203 line-height: 1.1;
204 }
205
206 #nav-items li {
207 display: block;
208 list-style: none;
209 margin: 0;
210 border-style: none;
211 padding: 0;
212 text-align: center;
213 }
214
215 #nav-items li a[href] {
216 display: block;
217 border-style: none;
218 color: inherit;
219 text-decoration: none;
220 }
221
222 img {
223 border-style: none;
224 }
225
226 code {
227 font-family: "Courier New", "Courier", monospace;
228 letter-spacing: 0.1em;
229 background-color: transparent;
230 color: orangered;
231 white-space: -moz-pre-wrap;
232 white-space: pre-wrap;
233 }
234
235 .example {
236 background-color: #ececff;
237 }
238
239 pre.example {
240 margin-left: 1em;
241 margin-right: 1em;
242 padding: 0.2em 0.5em;
243 }
244
245 .example.bad {
246 background-color: #fff7f7;
247 }
248
249 code.example.bad {
250 color: inherit;
251 background-color: #ffeeee;
252 }
253
254 h3 code.example.bad {
255 color: orangered;
256 background-color: transparent;
257 }
258
259 pre.example::before {
260 content: "Example";
261 display: block;
262 color: #b0b0ff;
263 background-color: transparent;
264 font-weight: bolder;
265 font-family: sans-serif;
266 }
267
268 pre.example.html::before {
269 content: "HTML Example";
270 }
271
272 pre.example.xml::before {
273 content: "XML Example";
274 }
275
276 pre.example.manifest::before {
277 content: "Cache Manifest Example";
278 }
279
280 pre.example.bad::before {
281 content: "Bad Example";
282 color: #ffc1c1;
283 }
284
285 pre.example.bad.html::before {
286 content: "HTML Bad Example";
287 }
288
289 pre.example.bad.xml::before {
290 content: "XML Bad Example";
291 }
292
293 pre.example.bad.manifest::before {
294 content: "Cache Manifest Bad Example";
295 }
296
297 .rfc2119 {
298 border-style: none;
299 text-transform: lowercase;
300 font-variant: small-caps;
301 font-style: normal;
302 text-decoration: none;
303 font-weight: normal;
304 font-family: sans-serif;
305 }
306
307 #result-summary table {
308 margin-left: auto;
309 margin-right: auto;
310 border: 3px solid #800080;
311 border-collapse: collapse;
312 }
313
314 #result-summary tbody, colgroup {
315 border: 3px solid #800080;
316 }
317
318 #result-summary th {
319 background-color: #fff0f0;
320 color: black;
321 }
322
323 #result-summary th, #result-summary td {
324 border: 1px solid #800080;
325 padding: 0.2em 0.5em;
326 text-align: center;
327 empty-cells: show;
328 }
329
330 .uncertain td, p.uncertain, #level-unsupported, #level-unsupported th {
331 background-color: #e1e1ff;
332 color: black;
333 }
334
335 .FAIL, .uncertain td.FAIL, #level-m, #level-m th {
336 background-color: #ffcece;
337 color: black;
338 }
339
340 .SEE-RESULT, .uncertain td.SEE-RESULT, #level-s, #level-s th {
341 background-color: #e1e1ff;
342 color: black;
343 }
344
345 .PASS, #level-w, #level-w th {
346 background-color: #ddffdd;
347 color: black;
348 }
349
350 #result-para {
351 padding-top: 0.2em;
352 padding-bottom: 0.2em;
353 padding-right: 1em;
354 }
355
356 /* dl.switch from WHATWG specification style sheet */
357
358 dl.switch {
359 padding-left: 2em;
360 }
361
362 dl.switch dt {
363 display: block;
364 text-indent: -1.5em;
365 font-weight: bolder;
366 font-family: sans-serif;
367 font-style: normal;
368 }
369
370 dl.switch dt:before {
371 content: '\21AA';
372 padding: 0 0.5em 0 0;
373 display: inline-block;
374 width: 1em;
375 text-align: right;
376 line-height: 0.5em;
377 }
378
379 dl.switch dt:after {
380 content: " :";
381 }
382
383 /*
384
385 Copyright 2007 Wakaba <w@suika.fam.cx>.
386
387 This library is free software; you can redistribute it
388 and/or modify it under the same terms as Perl itself.
389
390 $Date: 2007/11/07 12:20:44 $
391
392 */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24