Skip to content

Commit 42c37eb

Browse files
committed
[css2] Indented PRE.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401090
1 parent 1b44b72 commit 42c37eb

1 file changed

Lines changed: 41 additions & 11 deletions

File tree

css2/html2psrc

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
BODY {
4444
color: black;
45-
text-align: justify;
45+
/* text-align: justify; */
4646
font-family: helvetica, sans-serif;
4747
background: white;
4848
/* margin: 2em; */
@@ -51,6 +51,12 @@ BODY {
5151
H1, H2, H3, H4, H5, H6 {
5252
text-align: left;
5353
}
54+
55+
H1 {
56+
clear: left;
57+
margin-top: 2em;
58+
}
59+
5460
P {
5561
margin-top: 0;
5662
margin-bottom: 0;
@@ -59,6 +65,8 @@ P {
5965

6066
PRE {
6167
font-family: monospace;
68+
margin-left: 2em;
69+
font-size: 90%
6270
}
6371

6472
ADDRESS {
@@ -69,13 +77,6 @@ ADDRESS {
6977
IMG {
7078
border: 0;
7179
}
72-
.note {
73-
font-weight: bold;
74-
margin-top: 1em;
75-
margin-bottom: 1em;
76-
margin-left: 1em;
77-
margin-right: 1em;
78-
}
7980
.toc {
8081
text-indent: 0;
8182
}
@@ -85,6 +86,14 @@ P.toc-line {
8586
text-indent: 0;
8687
}
8788

89+
/*
90+
A:link, A:visited {color: black; /*color: inherit*/}
91+
DIV.example A:link, DIV.example A:visited {color: maroon; /*color: inherit*/}
92+
DIV.deprecated-html-example A:link,
93+
DIV.deprecated-html-example A:visited {color: red; /*color: inherit*/}
94+
.note A:link, .note A:visited {color: green; /*color: inherit*/}
95+
*/
96+
8897
A.propdef-title {
8998
background: yellow;
9099
}
@@ -118,8 +127,14 @@ pre.illegal-xml-example { color: red }
118127
div.illegal-xml-example { color: red }
119128
div.illegal-xml-example p { color: black }
120129

121-
div.note { color: green; margin-left: 1em }
122-
p.note { color: green; margin-left: 1em }
130+
.note {
131+
font-weight: bold;
132+
margin-top: 1em;
133+
margin-bottom: 1em;
134+
margin-left: 1em;
135+
margin-right: 1em;
136+
color: green
137+
}
123138

124139
.normref {
125140
color: red;
@@ -158,10 +173,25 @@ S, DEL {text-decoration: line-through; color: red}
158173
U, INS {text-decoration: underline; background: #bfa}
159174

160175
DIV.figure {
176+
text-align: center;
177+
/*border: solid thin;
178+
width: 100%;*/
179+
margin: 2.5em 0
180+
}
181+
P.caption {
161182
text-align: center;
162183
font-style: italic;
163184
font-weight: bold;
164-
font-size: 90%
185+
font-size: 90%;
186+
color: #088;
187+
margin: 1.5em 25% 0 25%;
188+
}
189+
DIV.toc, UL.index, DT {
190+
text-align: left
191+
}
192+
SUP {
193+
vertical-align: super;
194+
font-size: 80%
165195
}
166196

167197
/* the following doesn't work for now,

0 commit comments

Comments
 (0)