o Made several changes in response to suggestions in Wiki.
[project-aon.git] / scripts / create-pdacss.pl
1 #!/usr/local/bin/perl -w
2
3 ( $bookPath, $textColor, $backgroundColor, $linkColor, $alinkColor ) = @ARGV;
4
5 open( CSSFILE, ">${bookPath}/main.css" ) or die( "Can\'t output to file: \"${bookPath}/main.css\"\n\t$!" );
6
7 print CSSFILE << "(END OF CSS)";
8 html, body {
9  background-color: ${backgroundColor};
10  color: ${textColor};
11  font-family: Souvenir, Times, serif;
12 }
13
14 #footnotes {
15  font-size: 0.8em;
16 }
17
18 p, ol, ul, dl, blockquote { text-align: justify }
19
20 ul.unbulleted { list-style-type: none }
21
22 b { font-weight: bold }
23
24 h1, h2, h3, h4, h5, h6 {
25  margin-top: 0px;
26  border: 0px none;
27  padding: 0px;
28  text-align: left;
29 }
30
31 :link:focus, :visited:focus { 
32 }
33
34 :link, :visited {
35  background-color: transparent;
36  color: ${linkColor};
37 /* text-decoration: none;*/
38  font-weight: bold;
39 }
40
41 :link:hover, :visited:hover {
42 }
43
44 :link:active, :visited:active {
45  background-color: transparent;
46  color: ${alinkColor};
47 /* text-decoration: none;*/
48  font-weight: bold;
49 }
50
51 dt {
52  font-weight: bold;
53 }
54
55 .navigation, .signpost, .illustraion, .caption, .center {
56  text-align: center;
57 }
58
59 .author {
60  text-align: center;
61  font-weight: bold;
62 }
63
64 .dedication { 
65  text-align: center;
66  font-style: italic;
67  font-weight: bold;
68  margin-top: 15ex;
69  margin-bottom: 15ex;
70 }
71
72 .copyright {
73  text-align: center;
74  font-style: italic;
75 }
76
77 .choice, .combat {
78  text-align: left;
79  margin-left: 5%;
80 }
81
82 .smallcaps {
83  font-size: 0.8em;
84 }
85
86 (END OF CSS)
87
88 close CSSFILE;