Mercurial > hg > xemacs-beta
comparison etc/w3/stylesheet @ 16:0293115a14e9 r19-15b91
Import from CVS: tag r19-15b91
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:49:20 +0200 |
parents | 376386a54a3c |
children | 859a2309aef8 |
comparison
equal
deleted
inserted
replaced
15:ad457d5f7d04 | 16:0293115a14e9 |
---|---|
1 /* File: default.css | 1 /****************************************************************************** |
2 ** File: default.css | |
2 ** Purpose: Default Stylesheet for Emacs-W3 | 3 ** Purpose: Default Stylesheet for Emacs-W3 |
3 ** Info: Copyright (c) 1995 William M. Perry <wmperry@spry.com> | 4 ** Info: Copyright (c) 1995 - 1996 William M. Perry <wmperry@spry.com> |
5 ** Copyright (c) 1997 Free Software Foundation, Inc. | |
4 ** Created: William M. Perry <wmperry@spry.com>, Aug-31-1995 | 6 ** Created: William M. Perry <wmperry@spry.com>, Aug-31-1995 |
5 ** Maintainer: William M. Perry <wmperry@spry.com> | 7 ** Maintainer: William M. Perry <wmperry@spry.com> |
6 ** | 8 ** |
7 ** This contains the top level fallback default styles for Emacs-w3 | 9 ** This contains the top level fallback default styles for Emacs-w3 |
8 */ | 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 ******************************************************************************/ | |
9 | 34 |
10 /* | 35 /* |
11 ** Headers | 36 ** Headers |
12 */ | 37 */ |
13 | 38 |
14 h1,h2,h3, | 39 h1,h2,h3, |
15 h4,h5,h6 { | 40 h4,h5,h6 { |
16 display: block; | 41 display: block; |
17 font-family : utopia charter times itc-zapf-chancery inja; | 42 font-family : serif; |
18 font-weight : bold; | 43 font-weight : bold; |
19 } | 44 } |
20 | 45 |
21 /* | 46 /* |
22 ** Since Emacs-19 doesn't handle mixed-sized fonts very well just yet, | 47 ** Since Emacs-19 doesn't handle mixed-sized fonts very well just yet, |
23 ** we only use them under XEmacs. Hopefully, this will change soon. | 48 ** we only use them under XEmacs. Hopefully, this will change soon. |
24 */ | 49 */ |
25 | 50 |
26 :xemacs: | 51 @media xemacs { |
27 h1 { font-size : 24pt } | 52 h1 { font-size : +12pt } |
28 h2 { font-size : 18pt } | 53 h2 { font-size : +6pt } |
29 h3 { font-size : 16pt } | 54 h3 { font-size : +4pt } |
30 h4 { font-size : 14pt } | 55 h5 { font-size : -2pt } |
31 h5 { font-size : 12pt } | 56 h6 { font-size : -4pt } |
32 h6 { font-size : 10pt } | 57 /* |
58 ** Emacs-19 also doesn't handle how Emacs-W3 changes this type of font | |
59 ** very well, so lets only do it under XEmacs for now. Emacs-19 can only | |
60 ** do monospaced fonts anyway, so its redundant. | |
61 */ | |
62 pre,xmp, | |
63 plaintext { font-family: monospace } | |
64 key,code,tt { font-family: monospace } | |
65 } // @media xemacs | |
33 | 66 |
34 /* | 67 /* |
35 ** Best we can do under Emacs-19 is use the default font and try to make | 68 ** Best we can do under Emacs-19 is use the default font and try to make |
36 ** the headers stand out somehow. | 69 ** the headers stand out somehow. |
37 */ | 70 */ |
38 | 71 |
39 :emacs: | 72 @media emacs { |
40 h1,h2,h3, | 73 h1,h2,h3, |
41 h4,h5,h6 { font-style: small-caps; text-decoration: underline } | 74 h4,h5,h6 { |
42 | 75 font-style: small-caps; |
43 :normal: | 76 text-decoration: underline; |
77 color: blue; | |
78 } | |
79 | |
80 strong,em { color: red } | |
81 dfn { font-style: italic } | |
82 s,strike { color: green } | |
83 | |
84 } // @media emacs | |
85 | |
44 p { display: block } | 86 p { display: block } |
87 pre,xmp { display: block; white-space: pre; } | |
88 blockquote{ display: block; margin-left: 5; margin-right: 5; } | |
45 | 89 |
46 /* | 90 /* |
47 ** List formatting instructions | 91 ** List formatting instructions |
48 */ | 92 */ |
49 | 93 |
50 dl,ul,ol { | 94 ul { display: block; } |
51 display: block; | 95 ol { display: block; } |
52 margin-left: 5em | 96 dl { display: block; } |
53 } | 97 dir { display: block; } |
54 | 98 menu { display: block; } |
55 li { display: list-item } | 99 dt { font-weight: bold; display: list-item } |
56 dt { font-weight: bold; display: block } | 100 dd { display: list-item; margin-left: 5; } |
57 dd { insert-before: 3em; display: list-item } | 101 li { display: list-item; margin-left: 5; } |
58 | 102 ul li { list-style: circle; } |
59 /* | 103 ol li { list-style: decimal; } |
60 ** All items that require fixed-width fonts | 104 |
61 */ | 105 /* These are to make nested list items look better */ |
62 | 106 ul ul,ol ul,ol ol,ul ol { display: line; } |
63 pre,xmp, | |
64 plaintext { font-family: monospace; display: block } | |
65 key,code,tt { font-family: monospace } | |
66 | 107 |
67 /* | 108 /* |
68 ** All logical emphasis tags, the way god intended | 109 ** All logical emphasis tags, the way god intended |
69 */ | 110 */ |
70 | 111 |
71 strong,em { font-weight: bold } | 112 div { display: line; } |
72 dfn { font-style: italic } | 113 strong,em { font-weight: bold } |
114 dfn { font-style: italic } | |
73 s,strike { text-decoration: line-through } | 115 s,strike { text-decoration: line-through } |
74 sub { text-position: sub } | 116 sub { text-position: sub } |
75 sup { text-position: sup } | 117 sup { text-position: sup } |
76 secret { text-transform: rot13 } | 118 secret { text-transform: rot13 } |
77 | 119 |
78 /* | 120 /* |
79 ** Physical emphasis - spawn of evil | 121 ** Physical emphasis - spawn of evil |
80 */ | 122 */ |
81 b { font-weight: bold } | 123 b { font-weight: bold } |
82 i { font-style: italic } | 124 i { font-style: italic } |
83 u { text-decoration: underline } | 125 u { text-decoration: underline } |
84 blink { text-decoration: blink } | 126 blink { text-decoration: blink } |
85 | 127 center { display: line; text-align: center; } |
86 /* | 128 /* |
87 ** Various and sundry | 129 ** Various and sundry |
88 */ | 130 */ |
89 br { display: list-item } | 131 br { display: line } |
90 hr { display: list-item } | 132 hr { display: line; text-align: center; } |
91 hr[SRC] { replace: {SRC} } | |
92 | 133 |
93 | 134 |
94 /* | 135 /* |
95 ** Hypertext link coloring | 136 ** Hypertext link coloring |
96 */ | 137 */ |
97 | 138 |
98 a { cursor: hand2 } | 139 a { cursor: hand2 } |
99 a.link { color: #FF0000 } | 140 a:link { color: #FF0000 } |
100 a.visited { color: #B22222 } | 141 a:visited { color: #B22222 } |
101 a.active { color: #FF0000 } | 142 a:active { color: #FF0000 } |
143 | |
144 /* | |
145 ** Table formatting | |
146 */ | |
147 table { display: block; } | |
148 th { display: block; font-weight: bold; text-align: center; } | |
149 td { display: block; text-align: left; } | |
150 caption { display: block; text-align: center; } | |
102 | 151 |
103 /* | 152 /* |
104 ** Various other character-level formatting issues | 153 ** Various other character-level formatting issues |
105 */ | 154 */ |
106 | 155 |
107 address { align : right } | 156 address { text-align: right; display: line; } |
108 abstract { font-style : bold & italic ; align : indent } | 157 abstract { font-style: bold & italic ; text-align : indent } |
109 quote { font-style : italic ; align : indent } | 158 quote { font-style: italic ; text-align : indent } |
110 | 159 |
111 /* | 160 /* |
112 ** Now for monochrome defaults | 161 ** Now for monochrome defaults |
113 ** Anything up to the next :xxx: media descriptor is only used if | 162 */ |
114 ** you are on that type of media. | 163 @media mono { |
115 */ | 164 a:link { color: black; text-decoration: underline } |
116 :mono: | 165 a:visited { color: black; text-decoration: underline } |
117 a.link { color: black; text-decoration: underline } | 166 a:active { color: white } |
118 a.visited { color: black; text-decoration: underline } | 167 } // @media mono |
119 a.active { color: white } | |
120 | |
121 /* | 168 /* |
122 ** All the TTY specific formatting | 169 ** All the TTY specific formatting |
123 */ | 170 */ |
124 | 171 |
125 :tty: | 172 @media tty { |
126 | |
127 /* | 173 /* |
128 ** First, handle some stuff for generic TTYs to emulate our old | 174 ** First, handle some stuff for generic TTYs to emulate our old |
129 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis | 175 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis |
130 */ | 176 */ |
131 | 177 |
133 h4,h5,h6 { | 179 h4,h5,h6 { |
134 insert-before: *; | 180 insert-before: *; |
135 insert-after: * | 181 insert-after: * |
136 } | 182 } |
137 | 183 |
138 a.visited{ | 184 a:visited{ |
139 insert.before: "{{"; | 185 insert-before: "{{"; |
140 insert.after: "}}" | 186 insert-after: "}}" |
141 } | 187 } |
142 | 188 |
143 a.link { | 189 a:link { |
144 insert.before: "[["; | 190 insert-before: "[["; |
145 insert.after: "]]" | 191 insert-after: "]]" |
146 } | 192 } |
147 | 193 } // @media tty |
148 /* End Generic TTY */ | 194 |
149 | 195 |
150 :ansi-tty: | 196 @media ansi-tty { |
151 | |
152 /* | 197 /* |
153 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14 | 198 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14 |
154 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from | 199 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from |
155 ** these whatsoever. But if you are using one of these, wow, cool, eh? | 200 ** these whatsoever. But if you are using one of these, wow, cool, eh? |
156 ** | 201 ** |
170 ** black - 0.0 , 0.0 , 0.0 | 215 ** black - 0.0 , 0.0 , 0.0 |
171 */ | 216 */ |
172 | 217 |
173 h1,h2,h3, | 218 h1,h2,h3, |
174 h4,h5,h6 { color : cyan } | 219 h4,h5,h6 { color : cyan } |
175 a.visited { color : magenta } | 220 a:visited { color : magenta } |
176 a.link { color : red } | 221 a:link { color : red } |
177 a.active { color : yellow } | 222 a:active { color : yellow } |
223 } // @media ansi-tty | |
224 | |
225 @media speech { | |
226 h1,h2,h3, | |
227 h4,h5,h6 { voice-family: paul; stress: 2; richness: 9; } | |
228 h1 { pitch: 1; pitch-range: 9; } | |
229 h2 { pitch: 2; pitch-range: 8; } | |
230 h3 { pitch: 3; pitch-range: 7; } | |
231 h4 { pitch: 4; pitch-range: 6; } | |
232 h5 { pitch: 5; pitch-range: 5; } | |
233 h6 { pitch: 6; pitch-range: 4; } | |
234 | |
235 li,dt,dd { pitch: 6; richness: 6; } | |
236 dt { stress: 8; } | |
237 | |
238 pre,xmp,plaintext,key,code,tt { pitch: 1; | |
239 pitch-range: 1; | |
240 stress: 1; | |
241 richness: 8; | |
242 } | |
243 em { pitch: 6; pitch-range: 6; stress: 6; richness: 5; } | |
244 strong { pitch: 6; pitch-range: 6; stress: 9; richness: 9; } | |
245 dfn { pitch: 7; pitch-range: 6; stress: 6; } | |
246 s,strike { richness: 0; } | |
247 i { pitch: 6; pitch-range: 6; stress: 6; richness: 5 } | |
248 b { pitch: 6; pitch-range: 6; stress: 9; richness: 9; } | |
249 u { richness: 0; } | |
250 a:link { voice-family: harry; } | |
251 a:visited { voice-family: betty;} | |
252 a:active { voice-family: betty; pitch-range: 8; pitch: 8 } | |
253 | |
254 } // @media speech |