Debian Codegraph @

resources/jacket/stylesheet.css

raw
1 /*
2 ** Book Jacket generation
3 **
4 ** The template for Book Jackets is template.xhtml
5 ** This CSS is inserted into the generated HTML at conversion time
6 **
7 ** Users can control parts of the presentation of a generated book jacket by
8 ** editing this file and template.xhtml
9 **
10 ** The general form of a generated Book Jacket:
11 **
12 ** Title
13 ** Series: series [series_index]
14 ** Published: year_of_publication
15 ** Rating: #_of_stars
16 ** Tags: tag1, tag2, tag3 ...
17 **
18 ** Comments
19 **
20 ** If a book does not have Series information, a date of publication, a rating or tags
21 ** the corresponding row is automatically removed from the generated book jacket.
22 */
23
24 /*
25 ** Banner
26 ** Only affects EPUB, kindle ignores this type of formatting
27 */
28 .cbj_banner {
29 background: #eee;
30 color: black;
31 border: thin solid black;
32 margin: 1em;
33 padding: 1em;
34 border-radius:8px;
35 }
36
37 /*
38 ** Title
39 */
40 table.cbj_header td.cbj_title {
41 font-size: 1.5em;
42 font-style: italic;
43 text-align: center;
44 }
45
46 /*
47 ** Series
48 */
49 table.cbj_header td.cbj_series {
50 text-align: center;
51 }
52
53 /*
54 ** Author
55 */
56 table.cbj_header td.cbj_author {
57 text-align: center;
58 }
59
60 /*
61 ** Publisher/published
62 */
63 table.cbj_header td.cbj_pubdata {
64 text-align: center;
65 }
66
67 /*
68 ** Table containing Rating and Tags
69 */
70 table.cbj_header {
71 width: 100%;
72 }
73
74 /*
75 ** General formatting for banner labels
76 */
77 table.cbj_header td.cbj_label {
78 font-family: sans-serif;
79 text-align: right;
80 width: 33%;
81 }
82
83 /*
84 ** General formatting for banner content
85 */
86 table.cbj_header td.cbj_content {
87 font-family: sans-serif;
88 text-align: left;
89 width:67%;
90 }
91
92 /*
93 ** Metadata divider
94 */
95 hr.metadata_divider {
96 width:90%;
97 margin-left:5%;
98 border-top: solid white 0px;
99 border-right: solid white 0px;
100 border-bottom: solid black 1px;
101 border-left: solid white 0px;
102 }
103
104
105
106 /*
107 ** To skip a banner item (Series|Published|Rating|Tags),
108 ** uncomment the appropriate CSS rule below.
109 */
110
111 /* Uncomment the next line to remove 'Series' from banner section */
112 /* table.cbj_header tr.cbj_series { display: none } */
113
114 /* Uncomment the next line to remove 'Published (year of publication)' from banner section */
115 /* table.cbj_header tr.cbj_pubdata { display:none } */
116
117 /* Uncomment the next line to remove 'Rating' from banner section */
118 /* table.cbj_header tr.cbj_rating { display:none } */
119
120 /* Uncomment the next line to remove 'Tags' from banner section */
121 /* table.cbj_header tr.cbj_tags { display:none } */
122
123 hr {
124 /* This rule controls formatting for any hr elements contained in the jacket */
125 border-top: 0px solid white;
126 border-right: 0px solid white;
127 border-bottom: 2px solid black;
128 border-left: 0px solid white;
129 margin-left: 10%;
130 width: 80%;
131 }
132
133 .cbj_footer {
134 font-family: sans-serif;
135 font-size: 0.8em;
136 margin-top: 8px;
137 text-align: center;
138 }
139
140 .cbj_comments {
141 font-family: sans-serif;
142 }