1 /******************************************************************************
3 ** Purpose: Default Stylesheet for Emacs/W3
4 ** Info: Copyright (c) 1995-1996 William M. Perry <wmperry@aventail.com>
5 ** Copyright (c) 1997 Free Software Foundation, Inc.
6 ** Created: William M. Perry <wmperry@aventail.com>, Aug-31-1995
7 ** Maintainer: William M. Perry <wmperry@aventail.com>
9 ** This contains the top level fallback default styles for Emacs/W3
11 *******************************************************************************
13 ** To specify device-dependent styles, you must mark a section with
14 ** @media devicetype { ... }
15 ** If you are not using 'devicetype', then anything within the { ... }
18 ** These sections are currently defined by
19 ** http://www.w3.org/pub/WWW/Style/Group/WD-PRINT-961220
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
29 ** There are a few special Emacs/W3 sections
31 ** emacs - only include this chunk if you are using Emacs 19
32 ** xemacs - only include this chunk if you are using XEmacs
33 ** multifont - only include this chunk if you are using a multi-font capable Emacs variant
34 ** unifont - only include this chunk if you are using a uni-font capable Emacs variant
35 ** light - only include this chunk if you are using a light background
36 ** dark - only include this chunk if you are using a dark background
37 ** tty - only include this chunk if you are using a TTY
38 ** ansi-tty - only include this chunk if you are using an ANSI-capable TTY
39 *******************************************************************************
41 ** There are some things this stylesheet cannot really specify, that we
42 ** must rely on the browser to explicitly handle correctly:
45 ** o actually creating a hyperlink from an <a> tag and its attributes
46 ** o specifying which tags open lists
48 ** o frames (perhaps with positioning)
49 ** o applet/script/embed/object
51 ******************************************************************************/
63 h1 { font-size : +12pt }
64 h2 { font-size : +6pt }
65 h3 { font-size : +4pt }
66 h5 { font-size : -2pt }
67 h6 { font-size : -4pt }
70 /* This causes problems with Emacs 19 */
73 plaintext { font-family: monospace }
74 key,code,tt { font-family: monospace }
78 ** Best we can do under Emacs-19 is use the default font and try to make
79 ** the headers stand out somehow.
84 h4,h5,h6 { text-decoration: underline; }
85 h1 { color: rgb(0,255,255); } // cyan
86 h2 { color: rgb(70,130,180); } // steelblue
87 h3 { color: rgb(106,90,205); } // slateblue
88 h4 { color: rgb(135,206,235); } // skyblue
89 h5 { color: rgb(0,0,128); } // navy
90 h6 { color: rgb(173,216,230); } // lightblue
92 strong,em { color: red }
93 dfn { font-style: italic }
94 s,strike { color: green }
99 pre,xmp { display: block; white-space: pre; }
100 blockquote{ display: block; margin-left: 5em; margin-right: 5em; }
103 ** How to draw form elements.
104 ** This is an extension in Emacs/W3 (and perhaps soon E-Scape)
105 ** Since there are so many different types of input fields, you should be
106 ** able to control formatting based on that. Enter pseudo-classes.
108 ** This functionality will be removed as soon as the W3C comes up with
109 ** the standard way to do this, perhaps in CSS level 2.
116 input:text { text-decoration: underline; }
117 input:submit { color: green; text-decoration: none; }
118 input:reset { color: red; text-decoration: none; }
119 input:button { color: yellow; text-decoration: none; }
120 input:image { text-decoration: none; }
123 ** List formatting instructions
126 ul { display: block; }
127 ol { display: block; }
128 dl { display: block; }
129 dir { display: block; }
130 menu { display: block; }
131 dt { font-weight: bold; display: line }
132 dd { display: line; margin-left: 5em; }
133 li { display: list-item; margin-left: 5em; }
134 ol { list-style: decimal; }
135 ul { list-style: circle; }
137 /* These are to make nested list items look better */
138 ul ul,ol ul,ol ol,ul ol { display: line; }
141 ** All logical emphasis tags, the way god intended
144 div { display: line; }
145 strong,em { font-weight: bold }
146 dfn { font-style: italic }
147 s,strike { text-decoration: line-through }
148 sub { text-position: sub }
149 sup { text-position: sup }
150 secret { text-transform: rot13 }
153 ** Physical emphasis - spawn of evil
155 b { font-weight: bold }
156 i { font-style: italic }
157 u { text-decoration: underline }
158 blink { text-decoration: blink }
159 center { display: line; text-align: center; }
161 ** Various and sundry
164 hr { display: line; text-align: center; }
168 ** Hypertext link coloring
171 a:link { color: #FF0000 }
172 a:visited { color: #B22222 }
173 a:active { color: #FF0000 }
178 table { display: block; }
179 th { display: block; font-weight: bold; text-align: center; }
180 td { display: block; text-align: left; }
181 caption { display: block; text-align: center; }
184 ** Various other character-level formatting issues
187 address { text-align: right; display: line; }
188 abstract { font-style: bold & italic ; text-align : indent }
189 quote { font-style: italic ; text-align : indent }
192 ** Now for monochrome defaults
195 a:link { color: black; text-decoration: underline }
196 a:visited { color: black; text-decoration: underline }
197 a:active { color: white }
200 ** All the TTY specific formatting
205 ** First, handle some stuff for generic TTYs to emulate our old
206 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis
231 input:text { insert-before: "[{"; insert-after: "}]"; }
232 select { insert-before: "[{"; insert-after: "}]"; }
239 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14
240 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from
241 ** these whatsoever. But if you are using one of these, wow, cool, eh?
243 ** ANSI specifies these colors, and most (all?) TTYs that support color
244 ** will generally have 2 versions. One normal and one bright or 'standout'
248 ** --------------------------
249 ** white - 1.0 , 1.0 , 1.0
250 ** cyan - 0.0 , 1.0 , 1.0
251 ** magenta - 1.0 , 0.0 , 1.0
252 ** blue - 0.0 , 0.0 , 1.0
253 ** yellow - 1.0 , 1.0 , 0.0
254 ** green - 0.0 , 1.0 , 0.0
255 ** red - 1.0 , 0.0 , 0.0
256 ** black - 0.0 , 0.0 , 0.0
260 h4,h5,h6 { color : cyan }
261 a:visited { color : magenta }
262 a:link { color : red }
263 a:active { color : yellow }
267 ** Secial styles for the Emacspeak subsystem of emacs - an incredibly cool
268 ** speech synthesizer. This was contributed by T.V. Raman (raman@adobe.com)
272 h4,h5,h6 { voice-family: paul; stress: 2; richness: 9; }
273 h1 { pitch: 1; pitch-range: 9; }
274 h2 { pitch: 2; pitch-range: 8; }
275 h3 { pitch: 3; pitch-range: 7; }
276 h4 { pitch: 4; pitch-range: 6; }
277 h5 { pitch: 5; pitch-range: 5; }
278 h6 { pitch: 6; pitch-range: 4; }
280 li,dt,dd { pitch: 6; richness: 6; }
282 th { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
284 pre,xmp,plaintext,key,code,tt { pitch: 5;
289 em { pitch: 6; pitch-range: 6; stress: 6; richness: 5; }
290 strong { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
291 dfn { pitch: 7; pitch-range: 6; stress: 6; }
292 s,strike { richness: 0; }
293 i { pitch: 6; pitch-range: 6; stress: 6; richness: 5 }
294 b { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
296 a:link { voice-family: harry; }
297 a:visited { voice-family: betty;}
298 a:active { voice-family: betty; pitch-range: 8; pitch: 8 }