layout.scss 1.6 KB

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