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