Fix de errata reported by tonib in the forum (https://www.projectaon.org/es/foro3...
[project-aon.git] / common / scripts / create-css-xhtml-single.pl
1 #!/usr/local/bin/perl -w
2
3 # See the following about font-size-adjust:
4 # http://www.w3.org/TR/REC-CSS2/fonts.html#font-size-props
5
6 #"Verdana, Arial, Helvetica", "Georgia, Times New Roman, Times", "Courier New, Courier". 
7
8 #Commonly-installed typefaces on Macs and PCs
9 # (Windows then Mac)
10 #
11 # Serif:
12 #  Georgia
13 #  MS Serif
14 #  Book Antiqua
15 #  Times New Roman 
16 #
17 #  Georgia*
18 #  New York
19 #  Palatino
20 #  Times  
21 #
22 # Sans-serif:
23 #  Verdana
24 #  MS Sans Serif
25 #  Arial
26 #  Trebuchet
27 #
28 #  Verdana*
29 #  Geneva
30 #  Helvetica
31 #  Chicago 
32 #
33 # Monospace:
34 #  Courier New
35 #  Courier 
36
37 ( $bookPath, $textColor, $backgroundColor, $scrollbarBaseColor, $scrollbarTrackColor, $scrollbarArrowColor, $linkColor, $alinkColor, $hlinkBackgroundColor, $hlinkColor ) = @ARGV;
38
39 open( CSSFILE, ">${bookPath}/main.css" ) or die( "Can\'t output to file: \"${bookPath}/main.css\"\n\t$!" );
40
41 print CSSFILE << "(END OF CSS)";
42 html {
43  /* scrollbar properties are currently IE specific (24 Aug 2002) */
44  scrollbar-base-color: ${scrollbarBaseColor};
45  scrollbar-track-color: ${scrollbarTrackColor};
46  scrollbar-arrow-color: ${scrollbarArrowColor};
47 }
48
49 html, body {
50  background-color: ${backgroundColor};
51  color: ${textColor};
52  font-family: Souvenir, Georgia, "Times New Roman", Times, serif;
53 }
54
55 #footnotes {
56  font-size: 0.8em;
57 }
58
59 hr { margin-left: 0px; }
60
61 ul.unbulleted { list-style-type: none }
62 /* ul { list-style-type: none } */
63
64 b { font-weight: bold }
65
66 h1, h2, h3, h4, h5, h6 {
67  margin-top: 0px;
68  border: 0px none;
69  padding: 0px;
70  text-align: left;
71 }
72
73 div.numbered h3 {
74  text-align: center;
75 }
76
77 div.glossary h3 {
78  text-align: center;
79 }
80
81 :link:focus, :visited:focus { 
82 }
83
84 :link, :visited {
85  background-color: transparent;
86  color: ${linkColor};
87  text-decoration: none;
88  font-weight: bold;
89 }
90
91 :link:hover, :visited:hover {
92  background-color: ${hlinkBackgroundColor};
93  color: ${hlinkColor};
94  text-decoration: none;
95  font-weight: bold;
96 }
97
98 :link:active, :visited:active {
99  background-color: transparent;
100  color: ${alinkColor};
101  text-decoration: none;
102  font-weight: bold;
103 }
104
105 dt {
106  font-weight: bold;
107 }
108
109 .navigation, .signpost, .illustraion, .caption, .center {
110  text-align: center;
111 }
112
113 .author {
114  text-align: center;
115  font-weight: bold;
116 }
117
118 .dedication { 
119  text-align: center;
120  font-style: italic;
121  font-weight: bold;
122  margin-top: 15ex;
123  margin-bottom: 15ex;
124 }
125
126 .copyright {
127  text-align: center;
128  font-style: italic;
129 }
130
131 .choice, .combat {
132  text-align: left;
133  margin-left: 15px;
134 }
135
136 .smallcaps {
137  font-size: 0.8em;
138 }
139
140 (END OF CSS)
141
142 close CSSFILE;