16
|
1 /******************************************************************************
|
|
2 ** File: default.css
|
0
|
3 ** Purpose: Default Stylesheet for Emacs-W3
|
16
|
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
|
16
|
10 **
|
|
11 ******************************************************************************
|
|
12 **
|
|
13 ** To specify device-dependent styles, you must mark a section with
|
|
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
|
|
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;
|
16
|
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 */
|
16
|
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
|
16
|
71 @media emacs {
|
0
|
72 h1,h2,h3,
|
16
|
73 h4,h5,h6 {
|
|
74 text-decoration: underline;
|
|
75 color: blue;
|
|
76 }
|
0
|
77
|
16
|
78 strong,em { color: red }
|
|
79 dfn { font-style: italic }
|
|
80 s,strike { color: green }
|
|
81
|
|
82 } // @media emacs
|
|
83
|
0
|
84 p { display: block }
|
16
|
85 pre,xmp { display: block; white-space: pre; }
|
|
86 blockquote{ display: block; margin-left: 5; margin-right: 5; }
|
0
|
87
|
|
88 /*
|
20
|
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-decoration: underline; }
|
|
98 input:submit { color: green; text-decoration: none; }
|
|
99 input:reset { color: red; text-decoration: none; }
|
|
100 input:button { color: yellow; text-decoration: none; }
|
|
101 input:image { text-decoration: none; }
|
|
102
|
|
103 /*
|
0
|
104 ** List formatting instructions
|
|
105 */
|
|
106
|
16
|
107 ul { display: block; }
|
|
108 ol { display: block; }
|
|
109 dl { display: block; }
|
|
110 dir { display: block; }
|
|
111 menu { display: block; }
|
|
112 dt { font-weight: bold; display: list-item }
|
|
113 dd { display: list-item; margin-left: 5; }
|
|
114 li { display: list-item; margin-left: 5; }
|
|
115 ul li { list-style: circle; }
|
|
116 ol li { list-style: decimal; }
|
0
|
117
|
16
|
118 /* These are to make nested list items look better */
|
|
119 ul ul,ol ul,ol ol,ul ol { display: line; }
|
0
|
120
|
|
121 /*
|
|
122 ** All logical emphasis tags, the way god intended
|
|
123 */
|
|
124
|
16
|
125 div { display: line; }
|
|
126 strong,em { font-weight: bold }
|
|
127 dfn { font-style: italic }
|
0
|
128 s,strike { text-decoration: line-through }
|
16
|
129 sub { text-position: sub }
|
|
130 sup { text-position: sup }
|
|
131 secret { text-transform: rot13 }
|
0
|
132
|
|
133 /*
|
|
134 ** Physical emphasis - spawn of evil
|
|
135 */
|
|
136 b { font-weight: bold }
|
|
137 i { font-style: italic }
|
|
138 u { text-decoration: underline }
|
|
139 blink { text-decoration: blink }
|
16
|
140 center { display: line; text-align: center; }
|
0
|
141 /*
|
|
142 ** Various and sundry
|
|
143 */
|
16
|
144 br { display: line }
|
|
145 hr { display: line; text-align: center; }
|
0
|
146
|
|
147
|
|
148 /*
|
|
149 ** Hypertext link coloring
|
|
150 */
|
|
151
|
16
|
152 a:link { color: #FF0000 }
|
|
153 a:visited { color: #B22222 }
|
|
154 a:active { color: #FF0000 }
|
|
155
|
|
156 /*
|
|
157 ** Table formatting
|
|
158 */
|
|
159 table { display: block; }
|
|
160 th { display: block; font-weight: bold; text-align: center; }
|
|
161 td { display: block; text-align: left; }
|
|
162 caption { display: block; text-align: center; }
|
0
|
163
|
|
164 /*
|
|
165 ** Various other character-level formatting issues
|
|
166 */
|
|
167
|
16
|
168 address { text-align: right; display: line; }
|
|
169 abstract { font-style: bold & italic ; text-align : indent }
|
|
170 quote { font-style: italic ; text-align : indent }
|
0
|
171
|
|
172 /*
|
|
173 ** Now for monochrome defaults
|
|
174 */
|
16
|
175 @media mono {
|
|
176 a:link { color: black; text-decoration: underline }
|
|
177 a:visited { color: black; text-decoration: underline }
|
|
178 a:active { color: white }
|
|
179 } // @media mono
|
0
|
180 /*
|
|
181 ** All the TTY specific formatting
|
|
182 */
|
|
183
|
16
|
184 @media tty {
|
0
|
185 /*
|
|
186 ** First, handle some stuff for generic TTYs to emulate our old
|
|
187 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis
|
|
188 */
|
|
189
|
|
190 h1,h2,h3,
|
|
191 h4,h5,h6 {
|
|
192 insert-before: *;
|
|
193 insert-after: *
|
|
194 }
|
|
195
|
16
|
196 a:visited{
|
|
197 insert-before: "{{";
|
|
198 insert-after: "}}"
|
0
|
199 }
|
|
200
|
16
|
201 a:link {
|
|
202 insert-before: "[[";
|
|
203 insert-after: "]]"
|
0
|
204 }
|
16
|
205 } // @media tty
|
0
|
206
|
|
207
|
16
|
208 @media ansi-tty {
|
0
|
209 /*
|
|
210 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14
|
|
211 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from
|
|
212 ** these whatsoever. But if you are using one of these, wow, cool, eh?
|
|
213 **
|
|
214 ** ANSI specifies these colors, and most (all?) TTYs that support color
|
|
215 ** will generally have 2 versions. One normal and one bright or 'standout'
|
|
216 ** version.
|
|
217 **
|
|
218 ** Color R G B
|
|
219 ** --------------------------
|
|
220 ** white - 1.0 , 1.0 , 1.0
|
|
221 ** cyan - 0.0 , 1.0 , 1.0
|
|
222 ** magenta - 1.0 , 0.0 , 1.0
|
|
223 ** blue - 0.0 , 0.0 , 1.0
|
|
224 ** yellow - 1.0 , 1.0 , 0.0
|
|
225 ** green - 0.0 , 1.0 , 0.0
|
|
226 ** red - 1.0 , 0.0 , 0.0
|
|
227 ** black - 0.0 , 0.0 , 0.0
|
|
228 */
|
|
229
|
|
230 h1,h2,h3,
|
|
231 h4,h5,h6 { color : cyan }
|
16
|
232 a:visited { color : magenta }
|
|
233 a:link { color : red }
|
|
234 a:active { color : yellow }
|
|
235 } // @media ansi-tty
|
|
236
|
|
237 @media speech {
|
|
238 h1,h2,h3,
|
|
239 h4,h5,h6 { voice-family: paul; stress: 2; richness: 9; }
|
|
240 h1 { pitch: 1; pitch-range: 9; }
|
|
241 h2 { pitch: 2; pitch-range: 8; }
|
|
242 h3 { pitch: 3; pitch-range: 7; }
|
|
243 h4 { pitch: 4; pitch-range: 6; }
|
|
244 h5 { pitch: 5; pitch-range: 5; }
|
|
245 h6 { pitch: 6; pitch-range: 4; }
|
|
246
|
|
247 li,dt,dd { pitch: 6; richness: 6; }
|
|
248 dt { stress: 8; }
|
|
249
|
|
250 pre,xmp,plaintext,key,code,tt { pitch: 1;
|
|
251 pitch-range: 1;
|
|
252 stress: 1;
|
|
253 richness: 8;
|
|
254 }
|
|
255 em { pitch: 6; pitch-range: 6; stress: 6; richness: 5; }
|
|
256 strong { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
|
|
257 dfn { pitch: 7; pitch-range: 6; stress: 6; }
|
|
258 s,strike { richness: 0; }
|
|
259 i { pitch: 6; pitch-range: 6; stress: 6; richness: 5 }
|
|
260 b { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
|
|
261 u { richness: 0; }
|
|
262 a:link { voice-family: harry; }
|
|
263 a:visited { voice-family: betty;}
|
|
264 a:active { voice-family: betty; pitch-range: 8; pitch: 8 }
|
|
265
|
|
266 } // @media speech
|