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