comparison lisp/w3/default.css @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents
children 1ce6082ce73f
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
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
20 ** xemacs - only include this chunk if you are using XEmacs
21 ** normal - always include this chunk (useful for switching out of another
22 ** device-type block
23 ******************************************************************************/
24
25 /*
26 ** Headers
27 */
28
29 h1,h2,h3,
30 h4,h5,h6 {
31 display: block;
32 font-family : serif;
33 font-weight : bold;
34 }
35
36 /*
37 ** Since Emacs-19 doesn't handle mixed-sized fonts very well just yet,
38 ** we only use them under XEmacs. Hopefully, this will change soon.
39 */
40
41 :xemacs:
42 h1 { font-size : +10pt }
43 h2 { font-size : +6pt }
44 h3 { font-size : +3pt }
45 h4 { } /* Do nothing, normal sized font, just bold */
46 h5 { font-size : -3pt }
47 h6 { font-size : -6pt }
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,
55 plaintext { font-family: monospace; display: block }
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 }
77
78 /*
79 ** List formatting instructions
80 */
81
82 dl,ul,ol {
83 display: block;
84 margin-left: 5em
85 }
86
87 li { display: list-item }
88 dt { font-weight: bold; display: block }
89 dd { insert-before: 3em; display: list-item }
90
91 /*
92 ** All logical emphasis tags, the way god intended
93 */
94
95 strong,em { font-weight: bold }
96 dfn { font-style: italic }
97 s,strike { text-decoration: line-through }
98 sub { text-position: sub }
99 sup { text-position: sup }
100 secret { text-transform: rot13 }
101
102 /*
103 ** Physical emphasis - spawn of evil
104 */
105 b { font-weight: bold }
106 i { font-style: italic }
107 u { text-decoration: underline }
108 blink { text-decoration: blink }
109
110 /*
111 ** Various and sundry
112 */
113 br { display: list-item }
114 hr { display: list-item }
115 hr[SRC] { replace: {SRC} }
116
117
118 /*
119 ** Hypertext link coloring
120 */
121
122 a { cursor: hand2 }
123 a:link { color: #FF0000 }
124 a:visited { color: #B22222 }
125 a:active { color: #FF0000 }
126
127 /*
128 ** Various other character-level formatting issues
129 */
130
131 address { align : right }
132 abstract { font-style : bold & italic ; align : indent }
133 quote { font-style : italic ; align : indent }
134
135 /*
136 ** Now for monochrome defaults
137 */
138 :mono:
139 a:link { color: black; text-decoration: underline }
140 a:visited { color: black; text-decoration: underline }
141 a:active { color: white }
142
143 /*
144 ** All the TTY specific formatting
145 */
146
147 :tty:
148
149 /*
150 ** First, handle some stuff for generic TTYs to emulate our old
151 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis
152 */
153
154 h1,h2,h3,
155 h4,h5,h6 {
156 insert.before: *;
157 insert.after: *
158 }
159
160 a:visited{
161 insert.before: "{{";
162 insert.after: "}}"
163 }
164
165 a:link {
166 insert.before: "[[";
167 insert.after: "]]"
168 }
169
170 /* End Generic TTY */
171
172 :ansi-tty:
173
174 /*
175 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14
176 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from
177 ** these whatsoever. But if you are using one of these, wow, cool, eh?
178 **
179 ** ANSI specifies these colors, and most (all?) TTYs that support color
180 ** will generally have 2 versions. One normal and one bright or 'standout'
181 ** version.
182 **
183 ** Color R G B
184 ** --------------------------
185 ** white - 1.0 , 1.0 , 1.0
186 ** cyan - 0.0 , 1.0 , 1.0
187 ** magenta - 1.0 , 0.0 , 1.0
188 ** blue - 0.0 , 0.0 , 1.0
189 ** yellow - 1.0 , 1.0 , 0.0
190 ** green - 0.0 , 1.0 , 0.0
191 ** red - 1.0 , 0.0 , 0.0
192 ** black - 0.0 , 0.0 , 0.0
193 */
194
195 h1,h2,h3,
196 h4,h5,h6 { color : cyan }
197 a:visited { color : magenta }
198 a:link { color : red }
199 a:active { color : yellow }
200
201 :speech:
202 h1,h2,h3,
203 h4,h5,h6 { voice-family: paul; stress: 8; }
204 h1 { pitch: 9; pitch-range: 9; }
205 h2 { pitch: 8; pitch-range: 8; }
206 h3 { pitch: 7; pitch-range: 7; }
207 h4 { pitch: 6; pitch-range: 6; }
208 h5,h6 { pitch: 5; pitch-range: 5; }
209 li { pitch: 6; richness: 6; }
210 dt { voice-family: harry; }
211 dd { pitch: 6; richness: 6; }
212 pre,xmp,
213 plaintext { pitch: 1; pitch-range: 1; stress: 1; richness: 9; }
214 key,code,
215 tt { pitch: 1; pitch-range: 1; stress: 1; richness: 9; }
216 strong,em { pitch: 6; stress: 8; pitch-range: 9; }
217 dfn { pitch: 7; pitch-range: 6; stress: 6; }
218 s,strike { richness: 9; }
219 b { pitch: 6; pitch-range: 9; stress: 8; }
220 i { pitch: 7; pitch-range: 6; stress: 6; }
221 u { richness: 0; }
222 a:link { voice-family: harry; }
223 a:visited { voice-family: betty; }
224 a:active { voice-family: ursula; }