82
|
1 /******************************************************************************
|
|
2 ** File: default.css
|
0
|
3 ** Purpose: Default Stylesheet for Emacs-W3
|
134
|
4 ** Info: Copyright (c) 1995-1996 William M. Perry <wmperry@aventail.com>
|
88
|
5 ** Copyright (c) 1997 Free Software Foundation, Inc.
|
134
|
6 ** Created: William M. Perry <wmperry@aventail.com>, Aug-31-1995
|
|
7 ** Maintainer: William M. Perry <wmperry@aventail.com>
|
0
|
8 **
|
|
9 ** This contains the top level fallback default styles for Emacs-w3
|
82
|
10 **
|
136
|
11 *******************************************************************************
|
82
|
12 **
|
|
13 ** To specify device-dependent styles, you must mark a section with
|
88
|
14 ** @media devicetype { ... }
|
|
15 ** If you are not using 'devicetype', then anything within the { ... }
|
|
16 ** is ignored.
|
|
17 **
|
|
18 ** These sections are currently defined by
|
|
19 ** http://www.w3.org/pub/WWW/Style/Group/WD-PRINT-961220
|
|
20 **
|
|
21 ** print - output for paged opaque material, and for documents viewed
|
|
22 ** on screen in print preview mode
|
|
23 ** screen - a continuous presentation of computer screens
|
|
24 ** projector - paged presentation for projected presentations
|
|
25 ** braille - for braille tactile feedback devices
|
|
26 ** speech - aural presentation
|
|
27 ** all - the default value, applies to all output devices
|
82
|
28 **
|
|
29 ** There are a few special Emacs-W3 sections
|
|
30 **
|
|
31 ** emacs - only include this chunk if you are using Emacs 19
|
|
32 ** xemacs - only include this chunk if you are using XEmacs
|
118
|
33 ** light - only include this chunk if you are using a light background
|
|
34 ** dark - only include this chunk if you are using a dark background
|
136
|
35 ** tty - only include this chunk if you are using a TTY
|
|
36 ** ansi-tty - " include this chunk if you are using an ANSI-capable TTY
|
|
37 *******************************************************************************
|
|
38 **
|
|
39 ** There are some things this stylesheet cannot really specify, that we
|
|
40 ** must rely on the browser to explicitly handle correctly:
|
|
41 **
|
|
42 ** o table formatting
|
|
43 ** o actually creating a hyperlink from an <a> tag and its attributes
|
|
44 ** o specifying which tags open lists
|
|
45 ** o inlined images
|
|
46 ** o frames (perhaps with positioning)
|
|
47 ** o applet/script/embed/object
|
|
48 ** o horizontal rules
|
82
|
49 ******************************************************************************/
|
0
|
50
|
136
|
51 /* Headers */
|
0
|
52
|
|
53 h1,h2,h3,
|
|
54 h4,h5,h6 {
|
|
55 display: block;
|
82
|
56 font-family : serif;
|
0
|
57 font-weight : bold;
|
|
58 }
|
|
59
|
82
|
60 h1 { font-size : +12pt }
|
|
61 h2 { font-size : +6pt }
|
|
62 h3 { font-size : +4pt }
|
|
63 h5 { font-size : -2pt }
|
|
64 h6 { font-size : -4pt }
|
136
|
65
|
138
|
66 /* This causes problems with Emacs 19 */
|
|
67 @media xemacs {
|
82
|
68 pre,xmp,
|
|
69 plaintext { font-family: monospace }
|
|
70 key,code,tt { font-family: monospace }
|
138
|
71 }
|
0
|
72
|
|
73 /*
|
|
74 ** Best we can do under Emacs-19 is use the default font and try to make
|
|
75 ** the headers stand out somehow.
|
|
76 */
|
|
77
|
82
|
78 @media emacs {
|
0
|
79 h1,h2,h3,
|
118
|
80 h4,h5,h6 { text-decoration: underline; }
|
|
81 h1 { color: rgb(0,255,255); } // cyan
|
|
82 h2 { color: rgb(70,130,180); } // steelblue
|
|
83 h3 { color: rgb(106,90,205); } // slateblue
|
|
84 h4 { color: rgb(135,206,235); } // skyblue
|
|
85 h5 { color: rgb(0,0,128); } // navy
|
|
86 h6 { color: rgb(173,216,230); } // lightblue
|
0
|
87
|
82
|
88 strong,em { color: red }
|
|
89 dfn { font-style: italic }
|
|
90 s,strike { color: green }
|
|
91
|
|
92 } // @media emacs
|
|
93
|
70
|
94 p { display: block }
|
82
|
95 pre,xmp { display: block; white-space: pre; }
|
116
|
96 blockquote{ display: block; margin-left: 5em; margin-right: 5em; }
|
20
|
97
|
|
98 /*
|
98
|
99 ** How to draw form elements.
|
|
100 ** This is an extension in Emacs-W3 (and perhaps soon E-Scape)
|
|
101 ** Since there are so many different types of input fields, you should be
|
|
102 ** able to control formatting based on that. Enter pseudo-classes.
|
|
103 **
|
|
104 ** This functionality will be removed as soon as the W3C comes up with
|
|
105 ** the standard way to do this, perhaps in CSS level 2.
|
|
106 */
|
|
107 input:text,
|
136
|
108 input:int,
|
98
|
109 input:float,
|
|
110 input:url,
|
|
111 input:text { text-decoration: underline; }
|
|
112 input:submit { color: green; text-decoration: none; }
|
|
113 input:reset { color: red; text-decoration: none; }
|
|
114 input:button { color: yellow; text-decoration: none; }
|
|
115 input:image { text-decoration: none; }
|
|
116
|
|
117 /*
|
0
|
118 ** List formatting instructions
|
|
119 */
|
|
120
|
82
|
121 ul { display: block; }
|
|
122 ol { display: block; }
|
|
123 dl { display: block; }
|
|
124 dir { display: block; }
|
|
125 menu { display: block; }
|
|
126 dt { font-weight: bold; display: list-item }
|
116
|
127 dd { display: list-item; margin-left: 5em; }
|
|
128 li { display: list-item; margin-left: 5em; }
|
82
|
129 ul li { list-style: circle; }
|
|
130 ol li { list-style: decimal; }
|
0
|
131
|
82
|
132 /* These are to make nested list items look better */
|
|
133 ul ul,ol ul,ol ol,ul ol { display: line; }
|
0
|
134
|
|
135 /*
|
|
136 ** All logical emphasis tags, the way god intended
|
|
137 */
|
|
138
|
82
|
139 div { display: line; }
|
|
140 strong,em { font-weight: bold }
|
|
141 dfn { font-style: italic }
|
0
|
142 s,strike { text-decoration: line-through }
|
82
|
143 sub { text-position: sub }
|
|
144 sup { text-position: sup }
|
|
145 secret { text-transform: rot13 }
|
0
|
146
|
|
147 /*
|
|
148 ** Physical emphasis - spawn of evil
|
|
149 */
|
|
150 b { font-weight: bold }
|
|
151 i { font-style: italic }
|
|
152 u { text-decoration: underline }
|
|
153 blink { text-decoration: blink }
|
82
|
154 center { display: line; text-align: center; }
|
0
|
155 /*
|
|
156 ** Various and sundry
|
|
157 */
|
82
|
158 br { display: line }
|
|
159 hr { display: line; text-align: center; }
|
0
|
160
|
|
161
|
|
162 /*
|
|
163 ** Hypertext link coloring
|
|
164 */
|
|
165
|
82
|
166 a:link { color: #FF0000 }
|
|
167 a:visited { color: #B22222 }
|
|
168 a:active { color: #FF0000 }
|
|
169
|
|
170 /*
|
|
171 ** Table formatting
|
|
172 */
|
|
173 table { display: block; }
|
|
174 th { display: block; font-weight: bold; text-align: center; }
|
|
175 td { display: block; text-align: left; }
|
|
176 caption { display: block; text-align: center; }
|
0
|
177
|
|
178 /*
|
|
179 ** Various other character-level formatting issues
|
|
180 */
|
|
181
|
82
|
182 address { text-align: right; display: line; }
|
|
183 abstract { font-style: bold & italic ; text-align : indent }
|
|
184 quote { font-style: italic ; text-align : indent }
|
0
|
185
|
|
186 /*
|
|
187 ** Now for monochrome defaults
|
|
188 */
|
82
|
189 @media mono {
|
|
190 a:link { color: black; text-decoration: underline }
|
|
191 a:visited { color: black; text-decoration: underline }
|
|
192 a:active { color: white }
|
|
193 } // @media mono
|
0
|
194 /*
|
|
195 ** All the TTY specific formatting
|
|
196 */
|
|
197
|
82
|
198 @media tty {
|
0
|
199 /*
|
|
200 ** First, handle some stuff for generic TTYs to emulate our old
|
|
201 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis
|
|
202 */
|
|
203
|
|
204 h1,h2,h3,
|
|
205 h4,h5,h6 {
|
|
206 insert-before: *;
|
|
207 insert-after: *
|
|
208 }
|
|
209
|
82
|
210 a:visited{
|
|
211 insert-before: "{{";
|
|
212 insert-after: "}}"
|
0
|
213 }
|
26
|
214
|
82
|
215 a:link {
|
|
216 insert-before: "[[";
|
|
217 insert-after: "]]"
|
70
|
218 }
|
102
|
219
|
|
220 input:text,
|
136
|
221 input:int,
|
102
|
222 input:float,
|
|
223 input:url,
|
136
|
224 input:file,
|
|
225 input:password,
|
102
|
226 input:text { insert-before: "[{"; insert-after: "}]"; }
|
|
227 select { insert-before: "[{"; insert-after: "}]"; }
|
|
228
|
82
|
229 } // @media tty
|
26
|
230
|
0
|
231
|
82
|
232 @media ansi-tty {
|
0
|
233 /*
|
|
234 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14
|
|
235 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from
|
|
236 ** these whatsoever. But if you are using one of these, wow, cool, eh?
|
|
237 **
|
|
238 ** ANSI specifies these colors, and most (all?) TTYs that support color
|
|
239 ** will generally have 2 versions. One normal and one bright or 'standout'
|
|
240 ** version.
|
|
241 **
|
|
242 ** Color R G B
|
|
243 ** --------------------------
|
|
244 ** white - 1.0 , 1.0 , 1.0
|
|
245 ** cyan - 0.0 , 1.0 , 1.0
|
|
246 ** magenta - 1.0 , 0.0 , 1.0
|
|
247 ** blue - 0.0 , 0.0 , 1.0
|
|
248 ** yellow - 1.0 , 1.0 , 0.0
|
|
249 ** green - 0.0 , 1.0 , 0.0
|
|
250 ** red - 1.0 , 0.0 , 0.0
|
|
251 ** black - 0.0 , 0.0 , 0.0
|
|
252 */
|
|
253
|
|
254 h1,h2,h3,
|
|
255 h4,h5,h6 { color : cyan }
|
82
|
256 a:visited { color : magenta }
|
|
257 a:link { color : red }
|
|
258 a:active { color : yellow }
|
|
259 } // @media ansi-tty
|
|
260
|
136
|
261 /*
|
|
262 ** Secial styles for the Emacspeak subsystem of emacs - an incredibly cool
|
|
263 ** speech synthesizer. This was contributed by T.V. Raman (raman@adobe.com)
|
|
264 */
|
82
|
265 @media speech {
|
|
266 h1,h2,h3,
|
|
267 h4,h5,h6 { voice-family: paul; stress: 2; richness: 9; }
|
|
268 h1 { pitch: 1; pitch-range: 9; }
|
|
269 h2 { pitch: 2; pitch-range: 8; }
|
|
270 h3 { pitch: 3; pitch-range: 7; }
|
|
271 h4 { pitch: 4; pitch-range: 6; }
|
|
272 h5 { pitch: 5; pitch-range: 5; }
|
|
273 h6 { pitch: 6; pitch-range: 4; }
|
|
274
|
|
275 li,dt,dd { pitch: 6; richness: 6; }
|
|
276 dt { stress: 8; }
|
|
277
|
134
|
278 pre,xmp,plaintext,key,code,tt { pitch: 5;
|
|
279 pitch-range: 0;
|
|
280 stress: 0;
|
82
|
281 richness: 8;
|
|
282 }
|
|
283 em { pitch: 6; pitch-range: 6; stress: 6; richness: 5; }
|
|
284 strong { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
|
|
285 dfn { pitch: 7; pitch-range: 6; stress: 6; }
|
|
286 s,strike { richness: 0; }
|
|
287 i { pitch: 6; pitch-range: 6; stress: 6; richness: 5 }
|
|
288 b { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
|
|
289 u { richness: 0; }
|
|
290 a:link { voice-family: harry; }
|
|
291 a:visited { voice-family: betty;}
|
|
292 a:active { voice-family: betty; pitch-range: 8; pitch: 8 }
|
|
293
|
|
294 } // @media speech
|