annotate etc/w3/stylesheet @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 0293115a14e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* File: default.css
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ** Purpose: Default Stylesheet for Emacs-W3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ** Info: Copyright (c) 1995 William M. Perry <wmperry@spry.com>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ** Created: William M. Perry <wmperry@spry.com>, Aug-31-1995
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ** Maintainer: William M. Perry <wmperry@spry.com>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 **
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ** This contains the top level fallback default styles for Emacs-w3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ** Headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 h1,h2,h3,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 h4,h5,h6 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 display: block;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 font-family : utopia charter times itc-zapf-chancery inja;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 font-weight : bold;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ** Since Emacs-19 doesn't handle mixed-sized fonts very well just yet,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ** we only use them under XEmacs. Hopefully, this will change soon.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 :xemacs:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 h1 { font-size : 24pt }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 h2 { font-size : 18pt }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 h3 { font-size : 16pt }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 h4 { font-size : 14pt }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 h5 { font-size : 12pt }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 h6 { font-size : 10pt }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ** Best we can do under Emacs-19 is use the default font and try to make
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ** the headers stand out somehow.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 :emacs:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 h1,h2,h3,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 h4,h5,h6 { font-style: small-caps; text-decoration: underline }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 :normal:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 p { display: block }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ** List formatting instructions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 dl,ul,ol {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 display: block;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 margin-left: 5em
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 li { display: list-item }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 dt { font-weight: bold; display: block }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 dd { insert-before: 3em; display: list-item }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ** All items that require fixed-width fonts
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 pre,xmp,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 plaintext { font-family: monospace; display: block }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 key,code,tt { font-family: monospace }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ** All logical emphasis tags, the way god intended
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 strong,em { font-weight: bold }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 dfn { font-style: italic }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 s,strike { text-decoration: line-through }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 sub { text-position: sub }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 sup { text-position: sup }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 secret { text-transform: rot13 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ** Physical emphasis - spawn of evil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 b { font-weight: bold }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 i { font-style: italic }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 u { text-decoration: underline }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 blink { text-decoration: blink }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 ** Various and sundry
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 br { display: list-item }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 hr { display: list-item }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 hr[SRC] { replace: {SRC} }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ** Hypertext link coloring
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 a { cursor: hand2 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 a.link { color: #FF0000 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 a.visited { color: #B22222 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 a.active { color: #FF0000 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 ** Various other character-level formatting issues
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 address { align : right }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 abstract { font-style : bold & italic ; align : indent }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 quote { font-style : italic ; align : indent }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ** Now for monochrome defaults
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 ** Anything up to the next :xxx: media descriptor is only used if
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 ** you are on that type of media.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 :mono:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 a.link { color: black; text-decoration: underline }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 a.visited { color: black; text-decoration: underline }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 a.active { color: white }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ** All the TTY specific formatting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 :tty:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 ** First, handle some stuff for generic TTYs to emulate our old
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 ** behaviour with w3-delimit-links and a subset of w3-delimit-emphasis
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 h1,h2,h3,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 h4,h5,h6 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 insert-before: *;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 insert-after: *
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 a.visited{
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 insert.before: "{{";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 insert.after: "}}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 a.link {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 insert.before: "[[";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 insert.after: "]]"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 /* End Generic TTY */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 :ansi-tty:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ** Now comes the cool TTY stuff. You will need to be using XEmacs 19.14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ** or later (or Emacs 19.30 under DOS) in order to get any benefit from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 ** these whatsoever. But if you are using one of these, wow, cool, eh?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 **
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 ** ANSI specifies these colors, and most (all?) TTYs that support color
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 ** will generally have 2 versions. One normal and one bright or 'standout'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 ** version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 **
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ** Color R G B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 ** --------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 ** white - 1.0 , 1.0 , 1.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 ** cyan - 0.0 , 1.0 , 1.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 ** magenta - 1.0 , 0.0 , 1.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ** blue - 0.0 , 0.0 , 1.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ** yellow - 1.0 , 1.0 , 0.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 ** green - 0.0 , 1.0 , 0.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 ** red - 1.0 , 0.0 , 0.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 ** black - 0.0 , 0.0 , 0.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 h1,h2,h3,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 h4,h5,h6 { color : cyan }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 a.visited { color : magenta }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 a.link { color : red }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 a.active { color : yellow }