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
|
|
66 /* Used to cause problems under Emacs 19, lets try once more, with feeling! */
|
82
|
67 pre,xmp,
|
|
68 plaintext { font-family: monospace }
|
|
69 key,code,tt { font-family: monospace }
|
0
|
70
|
|
71 /*
|
|
72 ** Best we can do under Emacs-19 is use the default font and try to make
|
|
73 ** the headers stand out somehow.
|
|
74 */
|
|
75
|
82
|
76 @media emacs {
|
0
|
77 h1,h2,h3,
|
118
|
78 h4,h5,h6 { text-decoration: underline; }
|
|
79 h1 { color: rgb(0,255,255); } // cyan
|
|
80 h2 { color: rgb(70,130,180); } // steelblue
|
|
81 h3 { color: rgb(106,90,205); } // slateblue
|
|
82 h4 { color: rgb(135,206,235); } // skyblue
|
|
83 h5 { color: rgb(0,0,128); } // navy
|
|
84 h6 { color: rgb(173,216,230); } // lightblue
|
0
|
85
|
82
|
86 strong,em { color: red }
|
|
87 dfn { font-style: italic }
|
|
88 s,strike { color: green }
|
|
89
|
|
90 } // @media emacs
|
|
91
|
70
|
92 p { display: block }
|
82
|
93 pre,xmp { display: block; white-space: pre; }
|
116
|
94 blockquote{ display: block; margin-left: 5em; margin-right: 5em; }
|
20
|
95
|
|
96 /*
|
98
|
97 ** How to draw form elements.
|
|
98 ** This is an extension in Emacs-W3 (and perhaps soon E-Scape)
|
|
99 ** Since there are so many different types of input fields, you should be
|
|
100 ** able to control formatting based on that. Enter pseudo-classes.
|
|
101 **
|
|
102 ** This functionality will be removed as soon as the W3C comes up with
|
|
103 ** the standard way to do this, perhaps in CSS level 2.
|
|
104 */
|
|
105 input:text,
|
136
|
106 input:int,
|
98
|
107 input:float,
|
|
108 input:url,
|
|
109 input:text { text-decoration: underline; }
|
|
110 input:submit { color: green; text-decoration: none; }
|
|
111 input:reset { color: red; text-decoration: none; }
|
|
112 input:button { color: yellow; text-decoration: none; }
|
|
113 input:image { text-decoration: none; }
|
|
114
|
|
115 /*
|
0
|
116 ** List formatting instructions
|
|
117 */
|
|
118
|
82
|
119 ul { display: block; }
|
|
120 ol { display: block; }
|
|
121 dl { display: block; }
|
|
122 dir { display: block; }
|
|
123 menu { display: block; }
|
|
124 dt { font-weight: bold; display: list-item }
|
116
|
125 dd { display: list-item; margin-left: 5em; }
|
|
126 li { display: list-item; margin-left: 5em; }
|
82
|
127 ul li { list-style: circle; }
|
|
128 ol li { list-style: decimal; }
|
0
|
129
|
82
|
130 /* These are to make nested list items look better */
|
|
131 ul ul,ol ul,ol ol,ul ol { display: line; }
|
0
|
132
|
|
133 /*
|
|
134 ** All logical emphasis tags, the way god intended
|
|
135 */
|
|
136
|
82
|
137 div { display: line; }
|
|
138 strong,em { font-weight: bold }
|
|
139 dfn { font-style: italic }
|
0
|
140 s,strike { text-decoration: line-through }
|
82
|
141 sub { text-position: sub }
|
|
142 sup { text-position: sup }
|
|
143 secret { text-transform: rot13 }
|
0
|
144
|
|
145 /*
|
|
146 ** Physical emphasis - spawn of evil
|
|
147 */
|
|
148 b { font-weight: bold }
|
|
149 i { font-style: italic }
|
|
150 u { text-decoration: underline }
|
|
151 blink { text-decoration: blink }
|
82
|
152 center { display: line; text-align: center; }
|
0
|
153 /*
|
|
154 ** Various and sundry
|
|
155 */
|
82
|
156 br { display: line }
|
|
157 hr { display: line; text-align: center; }
|
0
|
158
|
|
159
|
|
160 /*
|
|
161 ** Hypertext link coloring
|
|
162 */
|
|
163
|
82
|
164 a:link { color: #FF0000 }
|
|
165 a:visited { color: #B22222 }
|
|
166 a:active { color: #FF0000 }
|
|
167
|
|
168 /*
|
|
169 ** Table formatting
|
|
170 */
|
|
171 table { display: block; }
|
|
172 th { display: block; font-weight: bold; text-align: center; }
|
|
173 td { display: block; text-align: left; }
|
|
174 caption { display: block; text-align: center; }
|
0
|
175
|
|
176 /*
|
|
177 ** Various other character-level formatting issues
|
|
178 */
|
|
179
|
82
|
180 address { text-align: right; display: line; }
|
|
181 abstract { font-style: bold & italic ; text-align : indent }
|
|
182 quote { font-style: italic ; text-align : indent }
|
0
|
183
|
|
184 /*
|
|
185 ** Now for monochrome defaults
|
|
186 */
|
82
|
187 @media mono {
|
|
188 a:link { color: black; text-decoration: underline }
|
|
189 a:visited { color: black; text-decoration: underline }
|
|
190 a:active { color: white }
|
|
191 } // @media mono
|
0
|
192 /*
|
|
193 ** All the TTY specific formatting
|
|
194 */
|
|
195
|
82
|
196 @media tty {
|
0
|
197 /*
|
|
198 ** First, handle some stuff for generic TTYs to emulate our old
|
|
199 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis
|
|
200 */
|
|
201
|
|
202 h1,h2,h3,
|
|
203 h4,h5,h6 {
|
|
204 insert-before: *;
|
|
205 insert-after: *
|
|
206 }
|
|
207
|
82
|
208 a:visited{
|
|
209 insert-before: "{{";
|
|
210 insert-after: "}}"
|
0
|
211 }
|
26
|
212
|
82
|
213 a:link {
|
|
214 insert-before: "[[";
|
|
215 insert-after: "]]"
|
70
|
216 }
|
102
|
217
|
|
218 input:text,
|
136
|
219 input:int,
|
102
|
220 input:float,
|
|
221 input:url,
|
136
|
222 input:file,
|
|
223 input:password,
|
102
|
224 input:text { insert-before: "[{"; insert-after: "}]"; }
|
|
225 select { insert-before: "[{"; insert-after: "}]"; }
|
|
226
|
82
|
227 } // @media tty
|
26
|
228
|
0
|
229
|
82
|
230 @media ansi-tty {
|
0
|
231 /*
|
|
232 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14
|
|
233 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from
|
|
234 ** these whatsoever. But if you are using one of these, wow, cool, eh?
|
|
235 **
|
|
236 ** ANSI specifies these colors, and most (all?) TTYs that support color
|
|
237 ** will generally have 2 versions. One normal and one bright or 'standout'
|
|
238 ** version.
|
|
239 **
|
|
240 ** Color R G B
|
|
241 ** --------------------------
|
|
242 ** white - 1.0 , 1.0 , 1.0
|
|
243 ** cyan - 0.0 , 1.0 , 1.0
|
|
244 ** magenta - 1.0 , 0.0 , 1.0
|
|
245 ** blue - 0.0 , 0.0 , 1.0
|
|
246 ** yellow - 1.0 , 1.0 , 0.0
|
|
247 ** green - 0.0 , 1.0 , 0.0
|
|
248 ** red - 1.0 , 0.0 , 0.0
|
|
249 ** black - 0.0 , 0.0 , 0.0
|
|
250 */
|
|
251
|
|
252 h1,h2,h3,
|
|
253 h4,h5,h6 { color : cyan }
|
82
|
254 a:visited { color : magenta }
|
|
255 a:link { color : red }
|
|
256 a:active { color : yellow }
|
|
257 } // @media ansi-tty
|
|
258
|
136
|
259 /*
|
|
260 ** Secial styles for the Emacspeak subsystem of emacs - an incredibly cool
|
|
261 ** speech synthesizer. This was contributed by T.V. Raman (raman@adobe.com)
|
|
262 */
|
82
|
263 @media speech {
|
|
264 h1,h2,h3,
|
|
265 h4,h5,h6 { voice-family: paul; stress: 2; richness: 9; }
|
|
266 h1 { pitch: 1; pitch-range: 9; }
|
|
267 h2 { pitch: 2; pitch-range: 8; }
|
|
268 h3 { pitch: 3; pitch-range: 7; }
|
|
269 h4 { pitch: 4; pitch-range: 6; }
|
|
270 h5 { pitch: 5; pitch-range: 5; }
|
|
271 h6 { pitch: 6; pitch-range: 4; }
|
|
272
|
|
273 li,dt,dd { pitch: 6; richness: 6; }
|
|
274 dt { stress: 8; }
|
|
275
|
134
|
276 pre,xmp,plaintext,key,code,tt { pitch: 5;
|
|
277 pitch-range: 0;
|
|
278 stress: 0;
|
82
|
279 richness: 8;
|
|
280 }
|
|
281 em { pitch: 6; pitch-range: 6; stress: 6; richness: 5; }
|
|
282 strong { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
|
|
283 dfn { pitch: 7; pitch-range: 6; stress: 6; }
|
|
284 s,strike { richness: 0; }
|
|
285 i { pitch: 6; pitch-range: 6; stress: 6; richness: 5 }
|
|
286 b { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
|
|
287 u { richness: 0; }
|
|
288 a:link { voice-family: harry; }
|
|
289 a:visited { voice-family: betty;}
|
|
290 a:active { voice-family: betty; pitch-range: 8; pitch: 8 }
|
|
291
|
|
292 } // @media speech
|