comparison etc/w3/stylesheet @ 136:b980b6286996 r20-2b2

Import from CVS: tag r20-2b2
author cvs
date Mon, 13 Aug 2007 09:31:12 +0200
parents 34a5b81f86ba
children 6608ceec7cf8
comparison
equal deleted inserted replaced
135:4636a6841cd6 136:b980b6286996
6 ** Created: William M. Perry <wmperry@aventail.com>, Aug-31-1995 6 ** Created: William M. Perry <wmperry@aventail.com>, Aug-31-1995
7 ** Maintainer: William M. Perry <wmperry@aventail.com> 7 ** Maintainer: William M. Perry <wmperry@aventail.com>
8 ** 8 **
9 ** This contains the top level fallback default styles for Emacs-w3 9 ** This contains the top level fallback default styles for Emacs-w3
10 ** 10 **
11 ****************************************************************************** 11 *******************************************************************************
12 ** 12 **
13 ** To specify device-dependent styles, you must mark a section with 13 ** To specify device-dependent styles, you must mark a section with
14 ** @media devicetype { ... } 14 ** @media devicetype { ... }
15 ** If you are not using 'devicetype', then anything within the { ... } 15 ** If you are not using 'devicetype', then anything within the { ... }
16 ** is ignored. 16 ** is ignored.
30 ** 30 **
31 ** emacs - only include this chunk if you are using Emacs 19 31 ** emacs - only include this chunk if you are using Emacs 19
32 ** xemacs - only include this chunk if you are using XEmacs 32 ** xemacs - only include this chunk if you are using XEmacs
33 ** light - only include this chunk if you are using a light background 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 34 ** dark - only include this chunk if you are using a dark background
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
35 ******************************************************************************/ 49 ******************************************************************************/
36 50
37 /* 51 /* Headers */
38 ** Headers
39 */
40 52
41 h1,h2,h3, 53 h1,h2,h3,
42 h4,h5,h6 { 54 h4,h5,h6 {
43 display: block; 55 display: block;
44 font-family : serif; 56 font-family : serif;
45 font-weight : bold; 57 font-weight : bold;
46 } 58 }
47 59
48 /*
49 ** Since Emacs-19 doesn't handle mixed-sized fonts very well just yet,
50 ** we only use them under XEmacs. Hopefully, this will change soon.
51 */
52 @media xemacs {
53 h1 { font-size : +12pt } 60 h1 { font-size : +12pt }
54 h2 { font-size : +6pt } 61 h2 { font-size : +6pt }
55 h3 { font-size : +4pt } 62 h3 { font-size : +4pt }
56 h5 { font-size : -2pt } 63 h5 { font-size : -2pt }
57 h6 { font-size : -4pt } 64 h6 { font-size : -4pt }
58 /* 65
59 ** Emacs-19 also doesn't handle how Emacs-W3 changes this type of font 66 /* Used to cause problems under Emacs 19, lets try once more, with feeling! */
60 ** very well, so lets only do it under XEmacs for now. Emacs-19 can only
61 ** do monospaced fonts anyway, so its redundant.
62 */
63 pre,xmp, 67 pre,xmp,
64 plaintext { font-family: monospace } 68 plaintext { font-family: monospace }
65 key,code,tt { font-family: monospace } 69 key,code,tt { font-family: monospace }
66 } // @media xemacs
67 70
68 /* 71 /*
69 ** Best we can do under Emacs-19 is use the default font and try to make 72 ** Best we can do under Emacs-19 is use the default font and try to make
70 ** the headers stand out somehow. 73 ** the headers stand out somehow.
71 */ 74 */
98 ** 101 **
99 ** This functionality will be removed as soon as the W3C comes up with 102 ** This functionality will be removed as soon as the W3C comes up with
100 ** the standard way to do this, perhaps in CSS level 2. 103 ** the standard way to do this, perhaps in CSS level 2.
101 */ 104 */
102 input:text, 105 input:text,
103 input:integer, 106 input:int,
104 input:float, 107 input:float,
105 input:url, 108 input:url,
106 input:text { text-decoration: underline; } 109 input:text { text-decoration: underline; }
107 input:submit { color: green; text-decoration: none; } 110 input:submit { color: green; text-decoration: none; }
108 input:reset { color: red; text-decoration: none; } 111 input:reset { color: red; text-decoration: none; }
211 insert-before: "[["; 214 insert-before: "[[";
212 insert-after: "]]" 215 insert-after: "]]"
213 } 216 }
214 217
215 input:text, 218 input:text,
216 input:integer, 219 input:int,
217 input:float, 220 input:float,
218 input:url, 221 input:url,
222 input:file,
223 input:password,
219 input:text { insert-before: "[{"; insert-after: "}]"; } 224 input:text { insert-before: "[{"; insert-after: "}]"; }
220 select { insert-before: "[{"; insert-after: "}]"; } 225 select { insert-before: "[{"; insert-after: "}]"; }
221 226
222 } // @media tty 227 } // @media tty
223 228
249 a:visited { color : magenta } 254 a:visited { color : magenta }
250 a:link { color : red } 255 a:link { color : red }
251 a:active { color : yellow } 256 a:active { color : yellow }
252 } // @media ansi-tty 257 } // @media ansi-tty
253 258
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 */
254 @media speech { 263 @media speech {
255 h1,h2,h3, 264 h1,h2,h3,
256 h4,h5,h6 { voice-family: paul; stress: 2; richness: 9; } 265 h4,h5,h6 { voice-family: paul; stress: 2; richness: 9; }
257 h1 { pitch: 1; pitch-range: 9; } 266 h1 { pitch: 1; pitch-range: 9; }
258 h2 { pitch: 2; pitch-range: 8; } 267 h2 { pitch: 2; pitch-range: 8; }