-
Notifications
You must be signed in to change notification settings - Fork 790
Expand file tree
/
Copy pathdefault.css
More file actions
277 lines (234 loc) · 6.33 KB
/
default.css
File metadata and controls
277 lines (234 loc) · 6.33 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
/*
* Style sheet for the CSS2 specification
*/
BODY {
/* text-align: justify; */
font-family: helvetica, sans-serif;
/* For the REC: background: #def url(recbg.jpg); */
}
H2, H3, H4, H5, H6 {
text-align: left;
}
H1 {
clear: left;
margin-top: 2em;
}
DIV.navbar {
text-align: center;
}
PRE {
font-family: monospace;
margin-left: 1em;
font-size: 90%
}
ADDRESS {
text-align: right;
font-style: italic;
}
VAR {
font-style: normal;
}
IMG {
border: 0;
}
.toc {
text-indent: 0;
}
P.toc-line {
margin-top: 1em;
margin-bottom: 1em;
text-indent: 0;
}
TR {
vertical-align: baseline;
}
/* I don't like all that blue text, how about this: */
/* It should be 'inherit', but Netscape inserts a random color :-( */
A.noxref:link, A.noxref:visited {color: black; /*color: inherit*/}
DIV.example A:link, DIV.example A:visited {color: maroon; /*color: inherit*/}
DIV.deprecated-html-example A:link,
DIV.deprecated-html-example A:visited {color: red; /*color: inherit*/}
.note A:link, .note A:visited {color: green; /*color: inherit*/}
A.propdef-title {
background: yellow;
}
A.descdef-title {
color: yellow;
background: green
}
/* TABLE {margin-left: 1em} */
DIV.propdef {margin: 1.2em 0}
div.example { color: maroon }
pre.example { color: maroon }
pre.illegal-example { color: red }
div.illegal-example { color: red }
div.illegal-example p { color: black }
div.html-example { color: maroon }
pre.html-example { color: maroon }
pre.illegal-html-example { color: red }
div.illegal-html-example { color: red }
div.illegal-html-example p { color: black }
pre.deprecated-html-example { color: red }
div.deprecated-html-example { color: red }
div.deprecated-html-example p { color: black }
div.xml-example { color: maroon }
pre.xml-example { color: maroon }
pre.illegal-xml-example { color: red }
div.illegal-xml-example { color: red }
div.illegal-xml-example p { color: black }
div.dtd-example { color: maroon }
pre.dtd-example { color: maroon }
pre.illegal-dtd-example { color: red }
div.illegal-dtd-example { color: red }
div.illegal-dtd-example p { color: black }
.note {
/*font-weight: bold;*/
margin-top: 1em;
margin-bottom: 1em;
margin-left: 1em;
margin-right: 1em;
color: green
}
.normref {
color: red;
}
.informref {
color: green;
}
DIV.propdef TH {
text-align: right;
}
DIV.descdef TH {
text-align: right;
}
UL {margin-left: 0; padding-left: 1em}
OL {margin-left: 0; padding-left: 2em}
DIV.toc UL {padding-left: 0}
DIV.toc UL UL UL {padding-left: 1em}
DIV.toc UL UL UL UL {padding-left: 0}
LI.tocline1 {font-weight: bold}
LI.tocline2 {font-weight: normal}
LI.tocline4 {font-style: italic}
/* DIV.subtoc UL, DIV.subtoc OL {list-style: none} */
/* The border in the following rule crashes NN4 on fonts.html :-(
DIV.subtoc {padding: 1em; border: solid black thin; margin: 1em 0;
background: #ddd}
*/
UL.index {
list-style: disc; /* Mac NS has problem with 'none' */
list-style: none;
}
DIV.index {columns: 12em; margin-top: 1.2em}
DIV.index UL {padding-left: 2em}
DIV.index > UL {padding-left: 0}
DT {
font-weight: bold
}
S, DEL {text-decoration: line-through; color: red; background: #fbb}
U, INS {text-decoration: underline; background: #bfb}
BODY>DEL,BODY>INS {display: block}
DIV.figure {
text-align: center;
/*border: solid thin;
width: 100%;*/
margin: 2.5em 0
}
P.caption, CAPTION {
text-align: center;
font-style: italic;
font-weight: bold;
font-size: 90%;
color: #088;
margin: 1.5em 25% 0 25%;
}
DIV.toc, UL.index, DT {
text-align: left
}
SUP {
vertical-align: super;
font-size: 80%
}
/* In zindex.html: */
OL.stack P {
margin-bottom: 0
}
/* Open issues. Should be resolved before going to CR */
.issue {color: red}
div.issue, p.issue {border: thin solid red; padding: 0.5em}
.issue:before {content: "Issue:"; background: red; color: white;
padding: 0 0.5em; font-weight: bold; margin: 0 1em 0 0}
/*
@page {
@bottom-right {
font-family: helvetica, sans-serif;
content: counter(page);
text-align: right;
vertical-align: top;
padding-top: 2em;
}
}
*/
@page {
margin: 2cm 0.6cm 2cm 0.6cm
}
@media print {
HTML > BODY {
padding: 0 60px; /* Override /StyleSheets/TR/W3C-REC.css */
}
P {
margin-top: 0;
margin-bottom: 0;
text-indent: 1em;
}
H1 + P, H2 + P, H3 + P, H4 + P, H5 + P, H6 + P,
UL + P, OL + P, PRE + P, LI > P:first-child {
text-indent: 0;
}
/* 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, HR.navbar {
display: none;
}
H1 { page-break-before: always; margin-top: 0 }
.head H1 { page-break-before: avoid }
.NOPRINT {display: none}
}
/* This is mostly to make the list inside the CR exit criteria more compact. */
ol.inline, ol.inline li {display: inline; padding: 0; margin: 0}
ol.inline {counter-reset: list-item}
ol.inline li {counter-increment: list-item}
ol.inline li:before {content: "(" counter(list-item) ") "; font-weight: bold}
/* Put .annoying-warning in a red box fixed at the bottom of the
viewport. Adding INPUT and LABEL as below allows the box to be clicked
away, after which it will appear inline:
<INPUT ID=annoying-warning TYPE=CHECKBOX TITLE="hide warning">
<LABEL FOR=annoying-warning>(hide)</LABEL> <DIV
CLASS=annoying-warning> <P><STRONG>Warning:</STRONG> Text of the
warning... </DIV>
*/
.annoying-warning {
background: #fdd;
color: red;
font-weight: bold;
padding: .75em 1em;
border: solid red;
border-radius: 1em;
margin-top: 1.2em;
}
.annoying-warning :last-child {margin-bottom: 0}
.annoying-warning :first-child {margin-top: 0}
#annoying-warning, #annoying-warning + * {display: none}
@media screen {
#annoying-warning:not(:checked) + * + * {position: fixed; z-index: 3;
bottom: 2em; left: 1em; right: 1em; text-align: center;
box-shadow: 0 2px 8px black; border-radius: 1em}
#annoying-warning:not(:checked), #annoying-warning:not(:checked) + * {
display: block; position: fixed; z-index: 4}
#annoying-warning {font-size: 1em; bottom: 2.3em; right: 1.5em;
margin: 0}
#annoying-warning + * {font-size: 80%; bottom: 2.5em; right: 3.3em}
html {margin-bottom: 15em}
}