layout.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .pagedjs_page_content > div {
  2. height: 100%;
  3. }
  4. .layout {
  5. display: flex;
  6. flex-direction: column;
  7. height: 100%;
  8. }
  9. .no-folio {
  10. page: nofolio;
  11. page-break-before: avoid !important;
  12. page-break-inside: avoid !important;
  13. page-break-after: avoid !important;
  14. }
  15. .blank-page {
  16. page-break-after: always;
  17. }
  18. .image-bleed {
  19. position: absolute;
  20. width: calc(100% + #{$fond-perdu} * 6);
  21. height: calc(100% + #{$fond-perdu} * 6);
  22. margin-left: -$fond-perdu - 24;
  23. margin-top: -$fond-perdu - 16;
  24. }
  25. .image-cover {
  26. page: imagecover;
  27. background-size: cover;
  28. background-position: center;
  29. background-color: lightgray;
  30. background-repeat: no-repeat;
  31. }
  32. .cover-left {
  33. background-position: 0 50%;
  34. }
  35. .cover-right {
  36. background-position: -$largeur 50%;
  37. }
  38. .grow {
  39. flex: 1;
  40. }
  41. .column {
  42. flex: 1;
  43. display: flex;
  44. flex-direction: column;
  45. }
  46. .justify-end {
  47. justify-content: flex-end;
  48. }
  49. .canbreak {
  50. page-break-before: always;
  51. }
  52. .breakBefore{
  53. page-break-before: always;
  54. }
  55. .breakBeforeRight{
  56. page-break-before: right;
  57. }
  58. .breakBeforeLeft{
  59. page-break-before: left;
  60. }
  61. .breakAfter{
  62. page-break-after: always;
  63. }
  64. .v-center {
  65. display: flex;
  66. flex-direction: column;
  67. justify-content: center;
  68. align-items: center;
  69. }
  70. #image-3,#image-3-end{
  71. position: absolute;
  72. max-width: none;
  73. width: 276mm;
  74. }
  75. #image-3{
  76. margin-right: calc(-#{$marge} - #{$fond-perdu});
  77. right:0;
  78. object-position: calc(276mm / 2) 0;
  79. }
  80. #image-3-end{
  81. margin-left: calc(-#{$marge} - #{$fond-perdu});
  82. left:0;
  83. object-position: calc(-276mm / 2) 0;
  84. }
  85. .layout *:first-child{
  86. margin-top: 0;
  87. }
  88. .layout p:first-child:empty{
  89. margin: 0;
  90. margin-top: -1em;
  91. }