Skip to content

Commit cbb60bf

Browse files
committed
[css2] Some changes to make ediff with default.css easier. None of the added
style rules actually work in html2ps. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40947
1 parent 86a00fb commit cbb60bf

1 file changed

Lines changed: 56 additions & 2 deletions

File tree

css2/html2psrc

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@
4141
}
4242

4343
BODY {
44+
color: black;
4445
text-align: justify;
4546
font-family: helvetica, sans-serif;
47+
background: white;
48+
/* margin: 2em; */
49+
/* For the REC: background: #def url(recbg.jpg); */
4650
}
4751
H1, H2, H3, H4, H5, H6 {
4852
text-align: left;
@@ -52,10 +56,19 @@ P {
5256
margin-bottom: 0;
5357
text-indent: 1em;
5458
}
59+
60+
PRE {
61+
font-family: monospace;
62+
}
63+
5564
ADDRESS {
5665
text-align: right;
5766
font-style: italic;
5867
}
68+
69+
IMG {
70+
border: 0;
71+
}
5972
.note {
6073
font-weight: bold;
6174
margin-top: 1em;
@@ -71,6 +84,18 @@ P.toc-line {
7184
margin-bottom: 1em;
7285
text-indent: 0;
7386
}
87+
88+
A.propdef-title {
89+
background: yellow;
90+
}
91+
92+
A.descdef-title {
93+
color: yellow;
94+
background: green
95+
}
96+
97+
TABLE { text-align:center}
98+
7499
div.example { color: maroon }
75100
pre.example { color: maroon }
76101
pre.illegal-example { color: red }
@@ -93,22 +118,51 @@ pre.illegal-xml-example { color: red }
93118
div.illegal-xml-example { color: red }
94119
div.illegal-xml-example p { color: black }
95120

96-
a.normref {
121+
div.note { color: green; margin-left: 1em }
122+
p.note { color: green; margin-left: 1em }
123+
124+
.normref {
97125
color: red;
98126
}
99127

100-
a.informref {
128+
.informref {
101129
color: green;
102130
}
103131

132+
/* html2ps doesn't like complex selectors
104133
DIV.propdef TH {
105134
text-align: right;
106135
}
107136

108137
DIV.descdef TH {
109138
text-align: right;
110139
}
140+
*/
141+
142+
UL.toc, OL.toc {list-style: none}
143+
/* html2ps doesn't like complex selectors
144+
DIV.toc UL UL, DIV.toc OL OL {margin-left: 0}
145+
DIV.toc UL UL UL, DIV.toc OL OL OL {margin-left: 1em}
146+
DIV.toc UL UL UL UL, DIV.toc OL OL OL OL {margin-left: 0}
147+
*/
148+
LI.tocline1 {font-weight: bold}
149+
LI.tocline2 {font-weight: normal}
150+
LI.tocline4 {font-style: italic}
151+
/* DIV.subtoc UL, DIV.subtoc OL {list-style: none} */
152+
DIV.subtoc {padding: 1em; border: solid thin; margin: 1em 0;
153+
background: #ddd}
154+
155+
UL.index {list-style: none}
111156

157+
S, DEL {text-decoration: line-through; color: red}
158+
U, INS {text-decoration: underline; background: #bfa}
159+
160+
DIV.figure {
161+
text-align: center;
162+
font-style: italic;
163+
font-weight: bold;
164+
font-size: 90%
165+
}
112166

113167
/* the following doesn't work for now,
114168
instead we rely on a patched version of html2ps which has this built-in */

0 commit comments

Comments
 (0)