stylesheet.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. ** Banner
  25. ** Only affects EPUB, kindle ignores this type of formatting
  26. */
  27. .cbj_banner {
  28. background: #eee;
  29. color: black;
  30. border: thin solid black;
  31. margin: 1em;
  32. padding: 1em;
  33. border-radius:8px;
  34. }
  35. /*
  36. ** Title
  37. */
  38. table.cbj_header td.cbj_title {
  39. font-size: 1.5em;
  40. font-style: italic;
  41. text-align: center;
  42. }
  43. /*
  44. ** Series
  45. */
  46. table.cbj_header td.cbj_series {
  47. text-align: center;
  48. }
  49. /*
  50. ** Author
  51. */
  52. table.cbj_header td.cbj_author {
  53. text-align: center;
  54. }
  55. /*
  56. ** Publisher/published
  57. */
  58. table.cbj_header td.cbj_pubdata {
  59. text-align: center;
  60. }
  61. /*
  62. ** Table containing Rating and Tags
  63. */
  64. table.cbj_header {
  65. width: 100%;
  66. }
  67. /*
  68. ** General formatting for banner labels
  69. */
  70. table.cbj_header td.cbj_label {
  71. font-family: sans-serif;
  72. text-align: right;
  73. width: 33%;
  74. }
  75. /*
  76. ** General formatting for banner content
  77. */
  78. table.cbj_header td.cbj_content {
  79. font-family: sans-serif;
  80. text-align: left;
  81. width:67%;
  82. }
  83. /*
  84. ** Metadata divider
  85. */
  86. hr.metadata_divider {
  87. width:90%;
  88. margin-left:5%;
  89. border-top: solid white 0px;
  90. border-right: solid white 0px;
  91. border-bottom: solid black 1px;
  92. border-left: solid white 0px;
  93. }
  94. /*
  95. ** To skip a banner item (Series|Published|Rating|Tags),
  96. ** uncomment the appropriate CSS rule below.
  97. */
  98. /* Uncomment the next line to remove 'Series' from banner section */
  99. /* table.cbj_header tr.cbj_series { display: none } */
  100. /* Uncomment the next line to remove 'Published (year of publication)' from banner section */
  101. /* table.cbj_header tr.cbj_pubdata { display:none } */
  102. /* Uncomment the next line to remove 'Rating' from banner section */
  103. /* table.cbj_header tr.cbj_rating { display:none } */
  104. /* Uncomment the next line to remove 'Tags' from banner section */
  105. /* table.cbj_header tr.cbj_tags { display:none } */
  106. hr {
  107. /* This rule controls formatting for any hr elements contained in the jacket */
  108. border-top: 0px solid white;
  109. border-right: 0px solid white;
  110. border-bottom: 2px solid black;
  111. border-left: 0px solid white;
  112. margin-left: 10%;
  113. width: 80%;
  114. }
  115. .cbj_footer {
  116. font-family: sans-serif;
  117. font-size: 0.8em;
  118. margin-top: 8px;
  119. text-align: center;
  120. }
  121. .cbj_comments {
  122. font-family: sans-serif;
  123. }