epub.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. h1 { margin-top: 0; }
  2. /* Keep lists a bit narrow to maximize page estate regarding width. */
  3. ol, ul {
  4. margin: 0;
  5. padding: 0 0 0 1.3em;
  6. }
  7. /* Images should never exceed the width of the page. */
  8. img { max-width: 100%; }
  9. /* Don't display URL after links, this is not print. */
  10. .link-target { display: none; }
  11. /* This is the front cover page of the book. */
  12. .epub-cover { text-align: center; }
  13. .epub-cover h1 { margin: 4em 0 0 0; }
  14. .epub-cover h2 { margin: 1em 0; }
  15. .epub-cover h3 { margin: 3em 0 2em 0; }
  16. /* Code examples should never exceed the width of the page, so wrap instead. */
  17. pre, span.pre { white-space: pre-wrap; }
  18. pre {
  19. background-color: #f6f6f6;
  20. border: 0;
  21. padding: 0.5em;
  22. font-size: 90%;
  23. }
  24. /* Header for some code blocks. */
  25. .code-block-caption {
  26. background-color: #393939;
  27. color: white;
  28. margin: 0;
  29. padding: 0.5em;
  30. font: bold 90% monospace;
  31. }
  32. .literal-block-wrapper pre {
  33. margin-top: 0;
  34. }
  35. a:link, a:visited { color: #396623; }
  36. a:hover { color: #1d3311; }
  37. /* Use special styled note boxes from the default theme, but with the left side
  38. fitted after the icon, to allow text resizing with breaking. */
  39. .note, .admonition {
  40. background-position: 9px 0.8em;
  41. background-repeat: no-repeat;
  42. padding: 0.8em 1em 0.8em 65px;
  43. margin: 1em 0;
  44. border: 0.01em solid black;
  45. }
  46. .note, .admonition { background-image: url(docicons-note.png); }
  47. div.admonition-philosophy { background-image: url(docicons-philosophy.png); }
  48. div.admonition-behind-the-scenes { background-image: url(docicons-behindscenes.png); }
  49. .admonition.warning { background-image: url(docicons-warning.png); }
  50. .admonition-title {
  51. font-weight: bold;
  52. margin: 0;
  53. }
  54. .admonition .last { margin-bottom: 0; }