82
|
1 /******************************************************************************
|
|
2 ** File: default.css
|
0
|
3 ** Purpose: Default Stylesheet for Emacs-W3
|
88
|
4 ** Info: Copyright (c) 1995 - 1996 William M. Perry <wmperry@spry.com>
|
|
5 ** Copyright (c) 1997 Free Software Foundation, Inc.
|
0
|
6 ** Created: William M. Perry <wmperry@spry.com>, Aug-31-1995
|
|
7 ** Maintainer: William M. Perry <wmperry@spry.com>
|
|
8 **
|
|
9 ** This contains the top level fallback default styles for Emacs-w3
|
82
|
10 **
|
|
11 ******************************************************************************
|
|
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
|
|
33 ******************************************************************************/
|
0
|
34
|
|
35 /*
|
|
36 ** Headers
|
|
37 */
|
|
38
|
|
39 h1,h2,h3,
|
|
40 h4,h5,h6 {
|
|
41 display: block;
|
82
|
42 font-family : serif;
|
0
|
43 font-weight : bold;
|
|
44 }
|
|
45
|
|
46 /*
|
|
47 ** Since Emacs-19 doesn't handle mixed-sized fonts very well just yet,
|
|
48 ** we only use them under XEmacs. Hopefully, this will change soon.
|
|
49 */
|
70
|
50
|
82
|
51 @media xemacs {
|
|
52 h1 { font-size : +12pt }
|
|
53 h2 { font-size : +6pt }
|
|
54 h3 { font-size : +4pt }
|
|
55 h5 { font-size : -2pt }
|
|
56 h6 { font-size : -4pt }
|
|
57 /*
|
|
58 ** Emacs-19 also doesn't handle how Emacs-W3 changes this type of font
|
|
59 ** very well, so lets only do it under XEmacs for now. Emacs-19 can only
|
|
60 ** do monospaced fonts anyway, so its redundant.
|
|
61 */
|
|
62 pre,xmp,
|
|
63 plaintext { font-family: monospace }
|
|
64 key,code,tt { font-family: monospace }
|
|
65 } // @media xemacs
|
0
|
66
|
|
67 /*
|
|
68 ** Best we can do under Emacs-19 is use the default font and try to make
|
|
69 ** the headers stand out somehow.
|
|
70 */
|
|
71
|
82
|
72 @media emacs {
|
0
|
73 h1,h2,h3,
|
82
|
74 h4,h5,h6 {
|
|
75 font-style: small-caps;
|
|
76 text-decoration: underline;
|
|
77 color: blue;
|
|
78 }
|
0
|
79
|
82
|
80 strong,em { color: red }
|
|
81 dfn { font-style: italic }
|
|
82 s,strike { color: green }
|
|
83
|
|
84 } // @media emacs
|
|
85
|
70
|
86 p { display: block }
|
82
|
87 pre,xmp { display: block; white-space: pre; }
|
|
88 blockquote{ display: block; margin-left: 5; margin-right: 5; }
|
20
|
89
|
|
90 /*
|
0
|
91 ** List formatting instructions
|
|
92 */
|
|
93
|
82
|
94 ul { display: block; }
|
|
95 ol { display: block; }
|
|
96 dl { display: block; }
|
|
97 dir { display: block; }
|
|
98 menu { display: block; }
|
|
99 dt { font-weight: bold; display: list-item }
|
|
100 dd { display: list-item; margin-left: 5; }
|
|
101 li { display: list-item; margin-left: 5; }
|
|
102 ul li { list-style: circle; }
|
|
103 ol li { list-style: decimal; }
|
0
|
104
|
82
|
105 /* These are to make nested list items look better */
|
|
106 ul ul,ol ul,ol ol,ul ol { display: line; }
|
0
|
107
|
|
108 /*
|
|
109 ** All logical emphasis tags, the way god intended
|
|
110 */
|
|
111
|
82
|
112 div { display: line; }
|
|
113 strong,em { font-weight: bold }
|
|
114 dfn { font-style: italic }
|
0
|
115 s,strike { text-decoration: line-through }
|
82
|
116 sub { text-position: sub }
|
|
117 sup { text-position: sup }
|
|
118 secret { text-transform: rot13 }
|
0
|
119
|
|
120 /*
|
|
121 ** Physical emphasis - spawn of evil
|
|
122 */
|
|
123 b { font-weight: bold }
|
|
124 i { font-style: italic }
|
|
125 u { text-decoration: underline }
|
|
126 blink { text-decoration: blink }
|
82
|
127 center { display: line; text-align: center; }
|
0
|
128 /*
|
|
129 ** Various and sundry
|
|
130 */
|
82
|
131 br { display: line }
|
|
132 hr { display: line; text-align: center; }
|
0
|
133
|
|
134
|
|
135 /*
|
|
136 ** Hypertext link coloring
|
|
137 */
|
|
138
|
70
|
139 a { cursor: hand2 }
|
82
|
140 a:link { color: #FF0000 }
|
|
141 a:visited { color: #B22222 }
|
|
142 a:active { color: #FF0000 }
|
|
143
|
|
144 /*
|
|
145 ** Table formatting
|
|
146 */
|
|
147 table { display: block; }
|
|
148 th { display: block; font-weight: bold; text-align: center; }
|
|
149 td { display: block; text-align: left; }
|
|
150 caption { display: block; text-align: center; }
|
0
|
151
|
|
152 /*
|
|
153 ** Various other character-level formatting issues
|
|
154 */
|
|
155
|
82
|
156 address { text-align: right; display: line; }
|
|
157 abstract { font-style: bold & italic ; text-align : indent }
|
|
158 quote { font-style: italic ; text-align : indent }
|
0
|
159
|
|
160 /*
|
|
161 ** Now for monochrome defaults
|
|
162 */
|
82
|
163 @media mono {
|
|
164 a:link { color: black; text-decoration: underline }
|
|
165 a:visited { color: black; text-decoration: underline }
|
|
166 a:active { color: white }
|
|
167 } // @media mono
|
0
|
168 /*
|
|
169 ** All the TTY specific formatting
|
|
170 */
|
|
171
|
82
|
172 @media tty {
|
0
|
173 /*
|
|
174 ** First, handle some stuff for generic TTYs to emulate our old
|
|
175 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis
|
|
176 */
|
|
177
|
|
178 h1,h2,h3,
|
|
179 h4,h5,h6 {
|
|
180 insert-before: *;
|
|
181 insert-after: *
|
|
182 }
|
|
183
|
82
|
184 a:visited{
|
|
185 insert-before: "{{";
|
|
186 insert-after: "}}"
|
0
|
187 }
|
26
|
188
|
82
|
189 a:link {
|
|
190 insert-before: "[[";
|
|
191 insert-after: "]]"
|
70
|
192 }
|
82
|
193 } // @media tty
|
26
|
194
|
0
|
195
|
82
|
196 @media ansi-tty {
|
0
|
197 /*
|
|
198 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14
|
|
199 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from
|
|
200 ** these whatsoever. But if you are using one of these, wow, cool, eh?
|
|
201 **
|
|
202 ** ANSI specifies these colors, and most (all?) TTYs that support color
|
|
203 ** will generally have 2 versions. One normal and one bright or 'standout'
|
|
204 ** version.
|
|
205 **
|
|
206 ** Color R G B
|
|
207 ** --------------------------
|
|
208 ** white - 1.0 , 1.0 , 1.0
|
|
209 ** cyan - 0.0 , 1.0 , 1.0
|
|
210 ** magenta - 1.0 , 0.0 , 1.0
|
|
211 ** blue - 0.0 , 0.0 , 1.0
|
|
212 ** yellow - 1.0 , 1.0 , 0.0
|
|
213 ** green - 0.0 , 1.0 , 0.0
|
|
214 ** red - 1.0 , 0.0 , 0.0
|
|
215 ** black - 0.0 , 0.0 , 0.0
|
|
216 */
|
|
217
|
|
218 h1,h2,h3,
|
|
219 h4,h5,h6 { color : cyan }
|
82
|
220 a:visited { color : magenta }
|
|
221 a:link { color : red }
|
|
222 a:active { color : yellow }
|
|
223 } // @media ansi-tty
|
|
224
|
|
225 @media speech {
|
|
226 h1,h2,h3,
|
|
227 h4,h5,h6 { voice-family: paul; stress: 2; richness: 9; }
|
|
228 h1 { pitch: 1; pitch-range: 9; }
|
|
229 h2 { pitch: 2; pitch-range: 8; }
|
|
230 h3 { pitch: 3; pitch-range: 7; }
|
|
231 h4 { pitch: 4; pitch-range: 6; }
|
|
232 h5 { pitch: 5; pitch-range: 5; }
|
|
233 h6 { pitch: 6; pitch-range: 4; }
|
|
234
|
|
235 li,dt,dd { pitch: 6; richness: 6; }
|
|
236 dt { stress: 8; }
|
|
237
|
|
238 pre,xmp,plaintext,key,code,tt { pitch: 1;
|
|
239 pitch-range: 1;
|
|
240 stress: 1;
|
|
241 richness: 8;
|
|
242 }
|
|
243 em { pitch: 6; pitch-range: 6; stress: 6; richness: 5; }
|
|
244 strong { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
|
|
245 dfn { pitch: 7; pitch-range: 6; stress: 6; }
|
|
246 s,strike { richness: 0; }
|
|
247 i { pitch: 6; pitch-range: 6; stress: 6; richness: 5 }
|
|
248 b { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
|
|
249 u { richness: 0; }
|
|
250 a:link { voice-family: harry; }
|
|
251 a:visited { voice-family: betty;}
|
|
252 a:active { voice-family: betty; pitch-range: 8; pitch: 8 }
|
|
253
|
|
254 } // @media speech
|