print-book.css 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* "Book" style; recto/verso pages, chapters start on the right */
  2. @page normal-flow::right {
  3. @top-center {
  4. content: string(ComponentTitle);
  5. }
  6. @bottom-right {
  7. content: counter(page);
  8. }
  9. }
  10. @page normal-flow::left {
  11. @top-center {
  12. content: string(ComponentTitle);
  13. }
  14. @bottom-left {
  15. content: counter(page);
  16. }
  17. }
  18. @page normal-flow:first::right {
  19. @top-center {
  20. content: "";
  21. }
  22. @bottom-right {
  23. content: counter(page);
  24. }
  25. }
  26. @page normal-flow:first::left {
  27. @top-center {
  28. content: "";
  29. }
  30. @bottom-left {
  31. content: counter(page);
  32. }
  33. }
  34. html {
  35. page: title;
  36. }
  37. main {
  38. page: normal-flow;
  39. }
  40. body > header {
  41. page-break-after: right;
  42. }
  43. .book > header .revhistory {
  44. page-break-before: always;
  45. }
  46. .book > header .copyright {
  47. float: bottom;
  48. }
  49. main {
  50. page-break-before: always;
  51. }
  52. .book .list-of-titles {
  53. break-before: right;
  54. }
  55. .book .chapter,
  56. .book .preface,
  57. .book .appendix,
  58. .book .refentry,
  59. .book .part,
  60. .book .partintro,
  61. .book .dedication,
  62. .book .glossary,
  63. .book .bibliography,
  64. .book .index,
  65. .book .colophon {
  66. break-before: right;
  67. page: normal-flow;
  68. }