Commit be26efa1 authored by eric's avatar eric

Remove generated CSS because using LESS for now

parent 251bcd60
/**
* Computation
*/
/* EXTRA SPACE AROUND THE PAGE: BLEED + CROP */
/* GEOMETRY OF THE PAPER SHEET */
/* SIZE OF SPREAD */
/**
* DEFINITION OF THE PAPER SHEET
*/
@page {
size: 297mm 213mm;
margin: 0;
}
/**
* CANVAS
*/
@media all {
body {
margin: 0;
}
.h2p-paper {
width: 297mm;
height: 208mm;
box-sizing: border-box;
/* Crop marks */
padding: 0mm;
counter-increment: page-counter;
/* utile ou non? pour éviter qu'un papier soit coupé par le format de la
* page lors de la conversion et l'arrondis des unités */
page-break-inside: avoid;
overflow: hidden;
/* Crop marks */
background-image: -webkit-linear-gradient(90deg, black 0, black 100%), -webkit-linear-gradient(0deg, black 0, black 100%), -webkit-linear-gradient(90deg, black 0, black 100%), -webkit-linear-gradient(0deg, black 0, black 100%), -webkit-linear-gradient(90deg, black 0, black 100%), -webkit-linear-gradient(0deg, black 0, black 100%), -webkit-linear-gradient(90deg, black 0, black 100%), -webkit-linear-gradient(0deg, black 0, black 100%);
background-size: 0mm 1px, 1px 0mm, 0mm 1px, 1px 0mm, 0mm 1px, 1px 0mm, 0mm 1px, 1px 0mm;
background-position: left 0mm, 0mm top, right 0mm, 297mm top, right 208mm, 297mm bottom, left 208mm, 0mm bottom;
background-repeat: no-repeat;
}
.h2p-page {
width: 297mm;
height: 208mm;
box-sizing: border-box;
position: absolute;
text-rendering: optimizeLegibility;
}
}
@media screen {
body {
background-color: #F0F0F0 !important;
}
#h2p-pages {
width: 297mm;
height: 208mm;
margin-left: auto;
margin-right: auto;
}
.h2p-spread #h2p-pages {
width: 594mm;
height: 416mm;
}
.h2p-paper {
/* centrer la page à l'écran */
background-color: white;
margin-top: 1em;
margin-bottom: 1em;
}
}
@media print {
html {
width: 297mm;
}
body {
/* Allows printing of background colors */
background-color: white;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
#h2p-pages {
position: absolute;
top: 0;
}
}
/**
* Helpers
*/
.h2p-region-break {
/* Apply this class to an element to put it on a new region.
* Hint:
* You can also use an empty <div class="page-break"></div>
* if you want to put manual page breaks without attaching it to an HTML element
*/
-webkit-region-break-before: always;
}
.h2p-header,
.h2p-body,
.h2p-footer {
box-sizing: border-box;
}
/* __________________________________ HEADER __________________________________ */
.h2p-header {
/*position: absolute;*/
/*margin-top: @page-margin-top;*/
margin: 0;
padding-top: 15mm;
height: 20mm;
text-align: left;
padding-right: 15mm !important;
}
.h2p-header:after {
content: "Header Text";
right: 15mm !important;
}
/* __________________________________ MAIN SECTION __________________________________ */
.h2p-body {
height: 173mm;
width: 100%;
padding-top: 0;
overflow: hidden;
}
/* __________________________________ FOOTER __________________________________ */
.h2p-footer {
margin: 0;
width: 100%;
height: 5mm;
text-align: center;
}
.h2p-footer:after {
content: counter(page-counter);
}
/* for spreads only */
.h2p-paper:nth-child(odd) .header {
text-align: right;
}
.h2p-paper:nth-child(odd) .header,
.h2p-paper:nth-child(odd) .body,
.h2p-paper:nth-child(odd) .footer {
padding-left: 15mm;
padding-right: 15mm;
}
.h2p-paper:nth-child(even) .header,
.h2p-paper:nth-child(even) .body,
.h2p-paper:nth-child(even) .footer {
padding-left: 15mm;
padding-right: 15mm;
}
body {
text-rendering: optimizeLegibility;
}
img {
max-width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
/* Avoids headings to be cut or to be orphans.
* But it doesn't seem to work
* if the element after has a page-break-inside avoid. It tries its best! */
-webkit-region-break-inside: avoid;
-webkit-region-break-after: avoid;
break-inside: avoid;
break-after: avoid;
}
/* AN EXAMPLE TO AVOID PAGE BREAK INSIDE,
* HERE NO PARAGRAPH WILL BE CUT,
* BUT YOU MIGHT WANT TO DEACTIVATE THIS */
p {
/*-webkit-region-break-inside: avoid;*/
}
* {
-webkit-font-feature-settings: "liga", "dlig", "clig", "kern";
}
.debug .h2p-header {
outline: 1pt solid pink;
}
.debug .h2p-body {
outline: 1pt solid purple;
}
.debug .h2p-footer {
outline: 1pt solid pink;
}
/* PAGE FORMAT */
/* CROP MARKS */
/* BLEED */
/* MARGINS */
/* HEADER & FOOTER */
/* FLOW */
.h2p-recipient {
flow-from: myArticle;
}
#h2p-content {
flow-into: myArticle;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment