epub.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. html, body, div, span,
  2. h1, h2, h3, h4, h5, h6,
  3. p, a, em, strong, b, u, i, pre, code, del, strike,
  4. abbr, acronym, address, q, cite, blockquote,
  5. big, small, sub, sup, tt, var, center,
  6. img, dfn, ins, kbd, s, samp,
  7. dl, dt, dd, ol, ul, li,
  8. fieldset, legend, label,
  9. table, caption, tbody, tfoot, thead, tr, th, td
  10. {
  11. margin: 0;
  12. padding: 0;
  13. border: 0;
  14. outline: 0;
  15. font-size: 100%;
  16. vertical-align: baseline;
  17. background: transparent;
  18. }
  19. @page {
  20. margin: 5px;
  21. }
  22. p {
  23. margin-bottom: 9px;
  24. line-height: 1.4;
  25. }
  26. a {
  27. color: #0069d6;
  28. }
  29. a:hover {
  30. color: #0050a3;
  31. text-decoration: none;
  32. }
  33. a img {
  34. border: none;
  35. }
  36. h1,
  37. h2,
  38. h3,
  39. h4,
  40. h5,
  41. h6 {
  42. color: #404040;
  43. line-height: 1.5;
  44. margin: 1em 0 0.5em;
  45. -webkit-hyphens: none;
  46. hyphens: none;
  47. adobe-hyphenate: none;
  48. }
  49. h1 {
  50. font-size: 220%;
  51. margin-bottom: 1.5em;
  52. }
  53. h2 {
  54. font-size: 190%;
  55. }
  56. h3 {
  57. font-size: 160%;
  58. }
  59. h4 {
  60. font-size: 140%;
  61. }
  62. h5 {
  63. font-size: 130%;
  64. }
  65. h6 {
  66. font-size: 120%;
  67. }
  68. hr {
  69. margin: 0 0 19px;
  70. border: 0;
  71. border-bottom: 1px solid #ccc;
  72. }
  73. blockquote {
  74. padding: 13px 13px 21px 15px;
  75. margin-bottom: 18px;
  76. font-family:georgia,serif;
  77. font-style: italic;
  78. }
  79. blockquote:before {
  80. content: "\201C";
  81. font-size: 300%;
  82. margin-left: -10px;
  83. font-family: serif;
  84. color: #eee;
  85. }
  86. blockquote p {
  87. font-size: 120%;
  88. margin-bottom: 0;
  89. font-style: italic;
  90. }
  91. code, pre {
  92. font-family: monospace;
  93. }
  94. code {
  95. background-color: #fee9cc;
  96. color: rgba(0, 0, 0, 0.75);
  97. padding: 1px 3px;
  98. -webkit-border-radius: 5px;
  99. border-radius: 5px;
  100. font-size: 85%;
  101. }
  102. pre {
  103. display: block;
  104. padding: 14px;
  105. margin: 0 0 18px;
  106. font-size: 85%;
  107. line-height: 1.3;
  108. border: 1px solid #d9d9d9;
  109. white-space: pre-wrap;
  110. word-wrap: break-word;
  111. -webkit-hyphens: none;
  112. hyphens: none;
  113. adobe-hyphenate: none;
  114. }
  115. pre code {
  116. background-color: #fff;
  117. color: #737373;
  118. padding: 0;
  119. }
  120. code.sourceCode span.kw { color: #007020; font-weight: bold; }
  121. code.sourceCode span.dt { color: #902000; }
  122. code.sourceCode span.dv { color: #40a070; }
  123. code.sourceCode span.bn { color: #40a070; }
  124. code.sourceCode span.fl { color: #40a070; }
  125. code.sourceCode span.ch { color: #4070a0; }
  126. code.sourceCode span.st { color: #4070a0; }
  127. code.sourceCode span.co { color: #60a0b0; font-style: italic; }
  128. code.sourceCode span.ot { color: #007020; }
  129. code.sourceCode span.al { color: red; font-weight: bold; }
  130. code.sourceCode span.fu { color: #06287e; }
  131. code.sourceCode span.re { }
  132. code.sourceCode span.er { color: red; font-weight: bold; }
  133. body {
  134. font-family: serif;
  135. }