comparison etc/w3/stylesheet @ 82:6a378aca36af r20-0b91

Import from CVS: tag r20-0b91
author cvs
date Mon, 13 Aug 2007 09:07:36 +0200
parents 131b0175ea99
children 821dec489c24
comparison
equal deleted inserted replaced
81:ebca3d831cea 82:6a378aca36af
1 /* File: default.css 1 /******************************************************************************
2 ** File: default.css
2 ** Purpose: Default Stylesheet for Emacs-W3 3 ** Purpose: Default Stylesheet for Emacs-W3
3 ** Info: Copyright (c) 1995 William M. Perry <wmperry@spry.com> 4 ** Info: Copyright (c) 1995 William M. Perry <wmperry@spry.com>
4 ** Created: William M. Perry <wmperry@spry.com>, Aug-31-1995 5 ** Created: William M. Perry <wmperry@spry.com>, Aug-31-1995
5 ** Maintainer: William M. Perry <wmperry@spry.com> 6 ** Maintainer: William M. Perry <wmperry@spry.com>
6 ** 7 **
7 ** This contains the top level fallback default styles for Emacs-w3 8 ** This contains the top level fallback default styles for Emacs-w3
8 */ 9 **
10 ******************************************************************************
11 **
12 ** To specify device-dependent styles, you must mark a section with
13 ** :devicetype:
14 ** If you are not using 'devicetype', then anything up to the next
15 ** :xxx: media descriptor is ignored.
16 **
17 ** There are a few special Emacs-W3 sections
18 **
19 ** emacs - only include this chunk if you are using Emacs 19
20 ** speech - only include this chunk if you are using Emacspeak for audio
21 ** xemacs - only include this chunk if you are using XEmacs
22 ** normal - always include this chunk (useful for switching out of another
23 ** device-type block
24 ******************************************************************************/
9 25
10 /* 26 /*
11 ** Headers 27 ** Headers
12 */ 28 */
13 29
14 h1,h2,h3, 30 h1,h2,h3,
15 h4,h5,h6 { 31 h4,h5,h6 {
16 display: block; 32 display: block;
17 font-family : utopia charter times itc-zapf-chancery inja; 33 font-family : serif;
18 font-weight : bold; 34 font-weight : bold;
19 } 35 }
20 36
21 /* 37 /*
22 ** Since Emacs-19 doesn't handle mixed-sized fonts very well just yet, 38 ** Since Emacs-19 doesn't handle mixed-sized fonts very well just yet,
23 ** we only use them under XEmacs. Hopefully, this will change soon. 39 ** we only use them under XEmacs. Hopefully, this will change soon.
24 */ 40 */
25 41
26 :xemacs: 42 @media xemacs {
27 h1 { font-size : 24pt } 43 h1 { font-size : +12pt }
28 h2 { font-size : 18pt } 44 h2 { font-size : +6pt }
29 h3 { font-size : 16pt } 45 h3 { font-size : +4pt }
30 h4 { font-size : 14pt } 46 h5 { font-size : -2pt }
31 h5 { font-size : 12pt } 47 h6 { font-size : -4pt }
32 h6 { font-size : 10pt } 48 /*
49 ** Emacs-19 also doesn't handle how Emacs-W3 changes this type of font
50 ** very well, so lets only do it under XEmacs for now. Emacs-19 can only
51 ** do monospaced fonts anyway, so its redundant.
52 */
53 pre,xmp,
54 plaintext { font-family: monospace }
55 key,code,tt { font-family: monospace }
56 } // @media xemacs
33 57
34 /* 58 /*
35 ** Best we can do under Emacs-19 is use the default font and try to make 59 ** Best we can do under Emacs-19 is use the default font and try to make
36 ** the headers stand out somehow. 60 ** the headers stand out somehow.
37 */ 61 */
38 62
39 :emacs: 63 @media emacs {
40 h1,h2,h3, 64 h1,h2,h3,
41 h4,h5,h6 { font-style: small-caps; text-decoration: underline } 65 h4,h5,h6 {
42 66 font-style: small-caps;
43 :normal: 67 text-decoration: underline;
68 color: blue;
69 }
70
71 strong,em { color: red }
72 dfn { font-style: italic }
73 s,strike { color: green }
74
75 } // @media emacs
76
44 p { display: block } 77 p { display: block }
78 pre,xmp { display: block; white-space: pre; }
79 blockquote{ display: block; margin-left: 5; margin-right: 5; }
45 80
46 /* 81 /*
47 ** List formatting instructions 82 ** List formatting instructions
48 */ 83 */
49 84
50 dl,ul,ol { 85 ul { display: block; }
51 display: block; 86 ol { display: block; }
52 margin-left: 5em 87 dl { display: block; }
53 } 88 dir { display: block; }
54 89 menu { display: block; }
55 li { display: list-item } 90 dt { font-weight: bold; display: list-item }
56 dt { font-weight: bold; display: block } 91 dd { display: list-item; margin-left: 5; }
57 dd { insert-before: 3em; display: list-item } 92 li { display: list-item; margin-left: 5; }
58 93 ul li { list-style: circle; }
59 /* 94 ol li { list-style: decimal; }
60 ** All items that require fixed-width fonts 95
61 */ 96 /* These are to make nested list items look better */
62 97 ul ul,ol ul,ol ol,ul ol { display: line; }
63 pre,xmp,
64 plaintext { font-family: monospace; display: block }
65 key,code,tt { font-family: monospace }
66 98
67 /* 99 /*
68 ** All logical emphasis tags, the way god intended 100 ** All logical emphasis tags, the way god intended
69 */ 101 */
70 102
71 strong,em { font-weight: bold } 103 div { display: line; }
72 dfn { font-style: italic } 104 strong,em { font-weight: bold }
105 dfn { font-style: italic }
73 s,strike { text-decoration: line-through } 106 s,strike { text-decoration: line-through }
74 sub { text-position: sub } 107 sub { text-position: sub }
75 sup { text-position: sup } 108 sup { text-position: sup }
76 secret { text-transform: rot13 } 109 secret { text-transform: rot13 }
77 110
78 /* 111 /*
79 ** Physical emphasis - spawn of evil 112 ** Physical emphasis - spawn of evil
80 */ 113 */
81 b { font-weight: bold } 114 b { font-weight: bold }
82 i { font-style: italic } 115 i { font-style: italic }
83 u { text-decoration: underline } 116 u { text-decoration: underline }
84 blink { text-decoration: blink } 117 blink { text-decoration: blink }
85 118 center { display: line; text-align: center; }
86 /* 119 /*
87 ** Various and sundry 120 ** Various and sundry
88 */ 121 */
89 br { display: list-item } 122 br { display: line }
90 hr { display: list-item } 123 hr { display: line; text-align: center; }
91 hr[SRC] { replace: {SRC} }
92 124
93 125
94 /* 126 /*
95 ** Hypertext link coloring 127 ** Hypertext link coloring
96 */ 128 */
97 129
98 a { cursor: hand2 } 130 a { cursor: hand2 }
99 a.link { color: #FF0000 } 131 a:link { color: #FF0000 }
100 a.visited { color: #B22222 } 132 a:visited { color: #B22222 }
101 a.active { color: #FF0000 } 133 a:active { color: #FF0000 }
134
135 /*
136 ** Table formatting
137 */
138 table { display: block; }
139 th { display: block; font-weight: bold; text-align: center; }
140 td { display: block; text-align: left; }
141 caption { display: block; text-align: center; }
102 142
103 /* 143 /*
104 ** Various other character-level formatting issues 144 ** Various other character-level formatting issues
105 */ 145 */
106 146
107 address { align : right } 147 address { text-align: right; display: line; }
108 abstract { font-style : bold & italic ; align : indent } 148 abstract { font-style: bold & italic ; text-align : indent }
109 quote { font-style : italic ; align : indent } 149 quote { font-style: italic ; text-align : indent }
110 150
111 /* 151 /*
112 ** Now for monochrome defaults 152 ** Now for monochrome defaults
113 ** Anything up to the next :xxx: media descriptor is only used if 153 */
114 ** you are on that type of media. 154 @media mono {
115 */ 155 a:link { color: black; text-decoration: underline }
116 :mono: 156 a:visited { color: black; text-decoration: underline }
117 a.link { color: black; text-decoration: underline } 157 a:active { color: white }
118 a.visited { color: black; text-decoration: underline } 158 } // @media mono
119 a.active { color: white }
120
121 /* 159 /*
122 ** All the TTY specific formatting 160 ** All the TTY specific formatting
123 */ 161 */
124 162
125 :tty: 163 @media tty {
126
127 /* 164 /*
128 ** First, handle some stuff for generic TTYs to emulate our old 165 ** First, handle some stuff for generic TTYs to emulate our old
129 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis 166 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis
130 */ 167 */
131 168
133 h4,h5,h6 { 170 h4,h5,h6 {
134 insert-before: *; 171 insert-before: *;
135 insert-after: * 172 insert-after: *
136 } 173 }
137 174
138 a.visited{ 175 a:visited{
139 insert.before: "{{"; 176 insert-before: "{{";
140 insert.after: "}}" 177 insert-after: "}}"
141 } 178 }
142 179
143 a.link { 180 a:link {
144 insert.before: "[["; 181 insert-before: "[[";
145 insert.after: "]]" 182 insert-after: "]]"
146 } 183 }
147 184 } // @media tty
148 /* End Generic TTY */ 185
149 186
150 :ansi-tty: 187 @media ansi-tty {
151
152 /* 188 /*
153 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14 189 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14
154 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from 190 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from
155 ** these whatsoever. But if you are using one of these, wow, cool, eh? 191 ** these whatsoever. But if you are using one of these, wow, cool, eh?
156 ** 192 **
170 ** black - 0.0 , 0.0 , 0.0 206 ** black - 0.0 , 0.0 , 0.0
171 */ 207 */
172 208
173 h1,h2,h3, 209 h1,h2,h3,
174 h4,h5,h6 { color : cyan } 210 h4,h5,h6 { color : cyan }
175 a.visited { color : magenta } 211 a:visited { color : magenta }
176 a.link { color : red } 212 a:link { color : red }
177 a.active { color : yellow } 213 a:active { color : yellow }
214 } // @media ansi-tty
215
216 @media speech {
217 h1,h2,h3,
218 h4,h5,h6 { voice-family: paul; stress: 2; richness: 9; }
219 h1 { pitch: 1; pitch-range: 9; }
220 h2 { pitch: 2; pitch-range: 8; }
221 h3 { pitch: 3; pitch-range: 7; }
222 h4 { pitch: 4; pitch-range: 6; }
223 h5 { pitch: 5; pitch-range: 5; }
224 h6 { pitch: 6; pitch-range: 4; }
225
226 li,dt,dd { pitch: 6; richness: 6; }
227 dt { stress: 8; }
228
229 pre,xmp,plaintext,key,code,tt { pitch: 1;
230 pitch-range: 1;
231 stress: 1;
232 richness: 8;
233 }
234 em { pitch: 6; pitch-range: 6; stress: 6; richness: 5; }
235 strong { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
236 dfn { pitch: 7; pitch-range: 6; stress: 6; }
237 s,strike { richness: 0; }
238 i { pitch: 6; pitch-range: 6; stress: 6; richness: 5 }
239 b { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
240 u { richness: 0; }
241 a:link { voice-family: harry; }
242 a:visited { voice-family: betty;}
243 a:active { voice-family: betty; pitch-range: 8; pitch: 8 }
244
245 } // @media speech