-
Notifications
You must be signed in to change notification settings - Fork 791
Expand file tree
/
Copy pathdefault.css
More file actions
executable file
·394 lines (350 loc) · 10 KB
/
default.css
File metadata and controls
executable file
·394 lines (350 loc) · 10 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
/*
* Style sheet for the CSS3 specification,
* to be used in addition to http://www.w3.org/StyleSheets/TR/W3C-{WD,PR,REC}
* $Id$
*/
@media print {
/* the following doesn't work for now,
instead we rely on a patched version of html2ps which has this built-in */
.dlink { display: none }
/* the following doesn't work for now,
instead we rely on a patched version of html2ps which has this built-in */
div.navbar {
display: none;
}
html { margin: 0 !important }
body { font-family: serif }
th, td { font-family: inherit }
a { color: inherit !important }
div.example:before { font-family: serif !important }
pre.example:before { font-family: serif !important }
a:link, a:visited { text-decoration: none !important }
a:link:after, a:visited:after { /* create a cross-ref "see..." */ }
}
@page {
margin: 1.5cm 1.1cm;
}
/* html body { margin-left: 8.5em } /* Overrides 70px in base.css */
body {counter-reset: exampleno figure}
h2, h3, h5, h6 { margin-top: 2em }
h1, h2, h3, h4, h5, h6 { page-break-after: avoid; font-family: inherit }
div.figure, div.sidefigure, pre, table.propdef, table.propdef-extra,
div.example { page-break-inside: avoid }
dt { page-break-after: avoid }
span.id {float: right; font-weight: bold}
/* p, p.note + p, p.testlink + p, p.note, p.issue { */
p, p.testlink + p, p.issue, p.mtb {
text-indent: 0;
margin-bottom: 0;
margin-top: 0.8em
}
p + p, p + div.sidefigure + p {
text-indent: 2em;
margin-top: 0
}
dd p {
margin-top: 0
}
h1 + h2 {
margin-top: 0;
}
pre {
text-align: left; /* fixes justification in Mac IE 5 */
text-indent: 0; /* fixes indent in Mac Netscape 6 */
margin-top: 1em;
margin-bottom: 1em;
font-size: 90% /*smaller*/;
}
/*
var {
font-style: normal;
}
*/
img {
border-style: none;
color: white;
}
.toc {
text-indent: 0;
}
@media all { /* NS < 6 doesn't like borders around inline elements... */
body {
line-height: 1.3;
}
a:link, a:visited {
color: inherit;
}
a.logo:link, a.logo:visited {
padding: 0;
border-style: none;
}
/* Hmm, this seems to confuse many browsers... */
dt { margin-left: 0 }
dd { margin-left: 2em }
dl, ul, ol { margin-left: 0; padding-left: 0 }
li { margin-left: 2em; padding-left: 0 }
}
ul.indexlist { margin-left: 0; /*column-width: 13em; columns: 13em*/ }
ul.indexlist li { margin-left: 0; list-style: none }
ul.indexlist li li { margin-left: 1em }
div.example:before {
content: "Example";
content: "Example " counter(exampleno, upper-roman);
font: bold small sans-serif;
/*float: left;*/
position: absolute;
top: -0.6em;
left: -2.5em;
width: 7.5em;
text-align: center;
line-height: 1em;
color: #FFF8DD;
background: #600;
padding: 0.1em;
border: thin solid #999;
/*margin: -1.3em 0 0.3em -2.5em;*/
}
div.example {
counter-increment: exampleno;
}
pre.example:before {
content: "Example";
content: "Example " counter(exampleno, upper-roman);
font: bold small sans-serif;
/*float: left;*/
position: absolute;
top: -0.6em;
left: -2.5em;
width: 7.5em;
text-align: center;
line-height: 1em;
color: #FFF8DD;
background: #600;
padding: 0.1em;
border: thin solid #999;
/*margin: -1.3em 0 0.3em -2.5em;*/
}
pre.example {
counter-increment: exampleno;
}
div.example, div.illegal-example, div.html, div.illegal-html, div.xml,
div.illegal-xml, pre.example, pre.illegal-example, pre.html,
pre.illegal-html, pre.xml, pre.illegal-xml {
background: #FFF8DD;
padding: 0.5em;
margin: 1em 0;
border: thin solid #999;
position: relative;
}
pre.example, pre.illegal-example, pre.html,
pre.illegal-html, pre.xml, pre.illegal-xml {
padding-top: 1.5em;
}
div.example { color: #600 }
pre.example { color: #600 }
pre.illegal-example { color: red }
div.illegal-example { color: red }
div.illegal-example p { color: black }
div.html { color: #600 }
pre.html { color: #600 }
pre.illegal-html { color: red }
div.illegal-html { color: red }
div.illegal-html p { color: black }
pre.deprecated-html { color: red }
div.deprecated-html { color: red }
div.deprecated-html p { color: black }
div.xml { color: #600 }
pre.xml { color: #600 }
pre.illegal-xml { color: red }
div.illegal-xml { color: red }
div.illegal-xml p { color: black }
code { font-size: 90% }
.css { color: #800 } /* inline CSS code (SPAN/CODE) */
code.css { font-family: inherit; font-size: 100% }
code.html { color: #600 } /* inline HTML */
code.xml { color: #600 } /* inline XML */
.property { } /* name of a CSS property (SPAN) */
.descriptor { } /* name of a CSS descriptor (SPAN) */
p.issue, div.issue, span.issue { color: #c00 } /* editorial remark, open issue */
.type { font-style: italic } /* A <type> value for a property */
dfn { font-weight: bolder; /*font-size: 1em*/ }
/* Class note is a non-normative note. May be inline or a P or DIV */
.note {
/* font-weight: bold; */
color: green
}
p.note, div.note {
/* margin: 1em 2em; */
}
p.note:before, span.note:before { content: "\25B6" " " }
div.note > p:first-child:before { content: "\25B6" " " }
.normref { color: red }
.informref { color: green }
/* ToC not indented, but font style shows hierarchy */
ul.toc {margin: 1em 0; padding: 0; font-weight: bold}
ul.toc ul {margin: 0; padding: 0; font-weight: normal}
ul.toc ul ul {margin: 0 /*0 0 2em*/; font-style: italic}
ul.toc ul ul ul {margin: 0}
ul.toc li {margin: 0.6em 0; padding: 0}
ul.toc li li {margin: 0}
/*
ul.toc li li li, ul.toc li li li ul {margin-left: 0; display: inline}
ul.toc li li li ul, ul.toc li li li ul li {margin-left: 0; display: inline}
*/
@media all { /* NS4 doesn't align the floats properly :-( */
/* Section numbers in a column of their own */
ul.toc span.secno {margin-right: 1em} /* workaround for Opera6 */
ul.toc span.secno {float: left; width: 4em; margin-left: -5em}
/*ul.toc span.secno {text-align: right}*/
ul.toc li {clear: both}
ul.toc {margin-left: 5em}
/* If we had 'tab', floats would not be needed here:
ul.toc span.secno {tab: 5em right; margin-right: 1em}
ul.toc li {text-indent: 5em hanging}
The second line in case items wrap
*/
}
ul.index {
list-style: disc; /* Mac NS has problem with 'none' */
list-style: none;
}
s, del {text-decoration: line-through; color: red}
u, ins {text-decoration: underline; background: #bfa}
div.figure, div.sidefigure {
text-align: center;
margin: 2.5em 0;
}
div.sidefigure {
float: right;
width: 50%;
margin: 0 0 0.5em 0.5em
}
div.figure img, div.sidefigure img {
display: block;
margin: auto;
max-width: 100%
}
p.caption, caption {
text-align: center;
font-style: italic;
font-size: 90%;
margin: 1.5em 2em;
text-indent: 0;
}
p.caption:before {
content: "Figure " counter(figure) ". ";
font-weight: bold;
}
p.caption {
counter-increment: figure;
}
/* DL list is indented, but figure inside it is not */
dd { margin-left: 2em }
dd div.figure { margin-left: -2em }
sup {
vertical-align: super;
font-size: 80%
}
/* "Equations" (not real MathML, but simple HTML) are put in a
blockquote and may have an equation number. We make sure the
blockquote has enough margin on the right and then put the equation
number there. */
blockquote {
margin: 0.5em 4em 0.5em 2em;
text-indent: 0;
}
.eqno {
text-align: right;
float: right;
width: 3em;
margin: 0 -4em 0 0;
font-weight: bold;
/* background: silver; color: black; padding: 0.1em */
}
table.equiv-table { border-spacing: 0; margin: 0.5em 0 }
table.equiv-table th, table.equiv-table td { padding: 0.3em }
table.equiv-table th { text-align: left }
/* table.equiv-table th:first-child { text-align: right } */
table.equiv-table td, table.equiv-table th { border-bottom: thin solid #666 }
table.equiv-table { border-bottom: hidden }
table.equiv-table { empty-cells: show }
table.equiv-table caption { margin: 0.5em 0 0 0 }
/* Almost every section starts with a link to the test suite. We put
that link in the margin and make it look like a button. */
p.testlink {
float: left;
width: 3em;
margin: 0 0 0 -3.6em;
font-weight: bold
}
p.testlink a {
color: black;
background: silver;
border: thin outset silver;
text-decoration: none;
padding: 0.2em 0.6em;
font-size: smaller;
text-shadow: -1px -1px white;
}
p.testlink a:active {
border-style: inset;
}
/* Style for table of properties */
table.proptable {
font-size: small;
border-collapse: collapse;
border-spacing: 0;
text-align: left;
margin: 1em 0;
}
@media print { /* Use the wide margin in print */
table.proptable {margin: 1em 0 1em -8.5em}
}
table.proptable td, table.proptable th {
padding: 0.4em;
border-style: solid none none dotted;
border-width: thin;
border-color: red;
}
table.proptable th:first-child, table.proptable td:first-child {
border-left-style: none;
}
/* Style for table that defines a property or a descriptor */
table.propdef, table.propdef-extra, table.descdef {
border-spacing: 0;
border-collapse: collapse;
width: 100%;
table-layout: fixed;
background: #DEF;
margin-top: 1.2em;
margin-bottom: 1.2em
}
table.propdef td, table.propdef-extra td, table.descdef td {
padding: 0 0.3em;
vertical-align: baseline;
}
/*
table.propdef dfn, table.propdef-extra dfn, table.descdef dfn {
font-weight: bold;
font-style: normal
}
*/
table.propdef td:first-child,
table.propdef-extra td:first-child,
table.descdef td:first-child {
width: 8.1em
}
table.propdef tr:first-child,
table.propdef-extra tr:first-child,
table.descdef tr:first-child {
background: #005A9C;
color: white
}
/* table.propdef tr:first-child td { padding-top: 0.1em; padding-bottom: 0.1em } */
/* This would replace :first-child for Opera, but it confuses WinIE :-( */
/*
table.propdef td { width: 8em }
table.propdef td + td { width: auto }
table.propdef tr { background: #005A9C; color: white }
table.propdef tr + tr { background: transparent; color: black }
*/