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