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