pagedjs.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /* CSS for Paged.js interface – v0.4 */
  2. /* Change the look */
  3. :root {
  4. --color-background: whitesmoke;
  5. --color-pageSheet: #cfcfcf;
  6. --color-pageBox: violet;
  7. --color-paper: white;
  8. --color-marginBox: transparent;
  9. --pagedjs-crop-color: black;
  10. --pagedjs-crop-shadow: white;
  11. --pagedjs-crop-stroke: 1px;
  12. }
  13. /* To define how the book look on the screen: */
  14. @media screen, pagedjs-ignore {
  15. #chargement {
  16. position: fixed;
  17. background-color: chocolate;
  18. padding: 5px;
  19. color: white;
  20. top: 10px;
  21. left: 10px;
  22. content: 'chargement';
  23. opacity: 1;
  24. transition: opacity 0.3s ease-out;
  25. }
  26. body {
  27. background-color: var(--color-background);
  28. }
  29. .pagedjs_pages {
  30. display: flex;
  31. width: calc(var(--pagedjs-width) * 2);
  32. flex: 0;
  33. flex-wrap: wrap;
  34. margin: 0 auto;
  35. }
  36. .pagedjs_page {
  37. background-color: var(--color-paper);
  38. box-shadow: 0 0 0 1px var(--color-pageSheet);
  39. margin: 0;
  40. flex-shrink: 0;
  41. flex-grow: 0;
  42. margin-top: 10mm;
  43. }
  44. .pagedjs_first_page {
  45. margin-left: var(--pagedjs-width);
  46. }
  47. .pagedjs_page:last-of-type {
  48. margin-bottom: 10mm;
  49. }
  50. .pagedjs_pagebox{
  51. box-shadow: 0 0 0 1px var(--color-pageBox);
  52. }
  53. .pagedjs_left_page{
  54. z-index: 20;
  55. width: calc(var(--pagedjs-bleed-left) + var(--pagedjs-pagebox-width))!important;
  56. }
  57. .pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-crop {
  58. border-color: transparent;
  59. }
  60. .pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-middle{
  61. width: 0;
  62. }
  63. .pagedjs_right_page{
  64. z-index: 10;
  65. position: relative;
  66. left: calc(var(--pagedjs-bleed-left)*-1);
  67. }
  68. /* show the margin-box */
  69. .pagedjs_margin-top-left-corner-holder,
  70. .pagedjs_margin-top,
  71. .pagedjs_margin-top-left,
  72. .pagedjs_margin-top-center,
  73. .pagedjs_margin-top-right,
  74. .pagedjs_margin-top-right-corner-holder,
  75. .pagedjs_margin-bottom-left-corner-holder,
  76. .pagedjs_margin-bottom,
  77. .pagedjs_margin-bottom-left,
  78. .pagedjs_margin-bottom-center,
  79. .pagedjs_margin-bottom-right,
  80. .pagedjs_margin-bottom-right-corner-holder,
  81. .pagedjs_margin-right,
  82. .pagedjs_margin-right-top,
  83. .pagedjs_margin-right-middle,
  84. .pagedjs_margin-right-bottom,
  85. .pagedjs_margin-left,
  86. .pagedjs_margin-left-top,
  87. .pagedjs_margin-left-middle,
  88. .pagedjs_margin-left-bottom {
  89. box-shadow: 0 0 0 1px inset var(--color-marginBox);
  90. }
  91. /* uncomment this part for recto/verso book : ------------------------------------ */
  92. /*
  93. .pagedjs_pages {
  94. flex-direction: column;
  95. width: 100%;
  96. }
  97. .pagedjs_first_page {
  98. margin-left: 0;
  99. }
  100. .pagedjs_page {
  101. margin: 0 auto;
  102. margin-top: 10mm;
  103. }
  104. .pagedjs_left_page{
  105. width: calc(var(--pagedjs-bleed-left) + var(--pagedjs-pagebox-width) + var(--pagedjs-bleed-left))!important;
  106. }
  107. .pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-crop{
  108. border-color: var(--pagedjs-crop-color);
  109. }
  110. .pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-middle{
  111. width: var(--pagedjs-cross-size)!important;
  112. }
  113. .pagedjs_right_page{
  114. left: 0;
  115. }
  116. */
  117. /*--------------------------------------------------------------------------------------*/
  118. /* uncomment this par to see the baseline : -------------------------------------------*/
  119. /* .pagedjs_pagebox {
  120. --pagedjs-baseline: 22px;
  121. --pagedjs-baseline-position: 5px;
  122. --pagedjs-baseline-color: cyan;
  123. background: linear-gradient(transparent 0%, transparent calc(var(--pagedjs-baseline) - 1px), var(--pagedjs-baseline-color) calc(var(--pagedjs-baseline) - 1px), var(--pagedjs-baseline-color) var(--pagedjs-baseline)), transparent;
  124. background-size: 100% var(--pagedjs-baseline);
  125. background-repeat: repeat-y;
  126. background-position-y: var(--pagedjs-baseline-position);
  127. } */
  128. /*--------------------------------------------------------------------------------------*/
  129. }
  130. /* Marks (to delete when merge in paged.js) */
  131. .pagedjs_marks-crop{
  132. z-index: 999999999999;
  133. }
  134. .pagedjs_bleed-top .pagedjs_marks-crop,
  135. .pagedjs_bleed-bottom .pagedjs_marks-crop{
  136. box-shadow: 1px 0px 0px 0px var(--pagedjs-crop-shadow);
  137. }
  138. .pagedjs_bleed-top .pagedjs_marks-crop:last-child,
  139. .pagedjs_bleed-bottom .pagedjs_marks-crop:last-child{
  140. box-shadow: -1px 0px 0px 0px var(--pagedjs-crop-shadow);
  141. }
  142. .pagedjs_bleed-left .pagedjs_marks-crop,
  143. .pagedjs_bleed-right .pagedjs_marks-crop{
  144. box-shadow: 0px 1px 0px 0px var(--pagedjs-crop-shadow);
  145. }
  146. .pagedjs_bleed-left .pagedjs_marks-crop:last-child,
  147. .pagedjs_bleed-right .pagedjs_marks-crop:last-child{
  148. box-shadow: 0px -1px 0px 0px var(--pagedjs-crop-shadow);
  149. }