learningtapestry/lcms-engine

View on GitHub
app/assets/stylesheets/lcms/engine/print/_helpers.scss

Summary

Maintainability
Test Coverage
.nobreak {
  page-break-before: avoid !important; // stylelint-disable-line declaration-no-important
}

.u-pdf-alwaysbreak,
%u-pdf-alwaysbreak {
  page-break-before: always;
}

.u-pdf-nobreak,
%u-pdf-nobreak {
  page-break-inside: avoid;

  &::before {
    clear: both;
  }
}

.u-pdf-nobreak--around {
  page-break-after: avoid;
  page-break-before: avoid;
}