Sha256: 9e3d04e3f90cf9791ab1c216349da12753b20c85d8958cd6b4354168f83bdf64

Contents?: true

Size: 1.33 KB

Versions: 9

Compression:

Stored size: 1.33 KB

Contents

// stylelint-disable scss/selector-no-redundant-nesting-selector

// Unbounded specific
html,
body {
  background: none;
  height: 100%;
}

@page {
  size: letter;
}

.o-page {
  @include m(pdf) {
    padding-left: $pdf-margin;
    padding-right: $pdf-margin;
  }
}

header,
footer,
o-sidebar-nav {
  display: none;
}

tr,
img,
table,
pre,
blockquote,
.callout {
  page-break-inside: avoid;
}

// Avoid page breaks after a heading
h1,
h2,
h3,
h4,
h5 {
  page-break-after: avoid;
}

h1,
h2,
h3,
h4 {
  font-weight: bold;
}

h1 {
  @include txt-pdf-element(h3);
  clear: both;
  padding-top: 1.25rem;

  & + h2 {
    padding-top: 0 !important; // stylelint-disable-line declaration-no-important
  }

  * {
    line-height: 1.1;
    margin-bottom: 0;
  }
}

h2 {
  @include txt-pdf-element(h4);
  padding-top: 1.25rem;

  & + h3 {
    padding-top: 0 !important; // stylelint-disable-line declaration-no-important
  }
}

h3 {
  @include txt-pdf-element(h5);
  padding-top: 1.25rem;

  & + h4 {
    padding-top: 0 !important; // stylelint-disable-line declaration-no-important
  }
}

h4 {
  @include txt-pdf-element(h6);
  padding-top: 1.25rem;
}

ul li {
  text-indent: 0 !important; // stylelint-disable-line declaration-no-important
}

img,
td,
span,
table {
  max-width: 100%;
}

img {
  height: auto !important; // stylelint-disable-line declaration-no-important
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 app/assets/stylesheets/lcms/engine/print/_base.scss
lcms-engine-0.5.4 app/assets/stylesheets/lcms/engine/print/_base.scss
lcms-engine-0.5.3 app/assets/stylesheets/lcms/engine/print/_base.scss
lcms-engine-0.5.2 app/assets/stylesheets/lcms/engine/print/_base.scss
lcms-engine-0.5.1 app/assets/stylesheets/lcms/engine/print/_base.scss
lcms-engine-0.5.0 app/assets/stylesheets/lcms/engine/print/_base.scss
lcms-engine-0.4.2 app/assets/stylesheets/lcms/engine/print/_base.scss
lcms-engine-0.4.1 app/assets/stylesheets/lcms/engine/print/_base.scss
lcms-engine-0.4.0 app/assets/stylesheets/lcms/engine/print/_base.scss