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