[Koha-docs] [PATCH] CSS file for us with generating PDF files

Nicole Engard nengard at gmail.com
Mon Jan 3 23:45:05 CET 2011


patch pushed to both 3.2 and 3.4 manuals.

On Mon, Jan 3, 2011 at 4:35 PM, Chris Cormack <chrisc at catalyst.net.nz> wrote:
> ---
>  css/manual-pdf.css |  220 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 220 insertions(+), 0 deletions(-)
>  create mode 100644 css/manual-pdf.css
>
> diff --git a/css/manual-pdf.css b/css/manual-pdf.css
> new file mode 100644
> index 0000000..c9f20b0
> --- /dev/null
> +++ b/css/manual-pdf.css
> @@ -0,0 +1,220 @@
> + at page {
> + size: a4;
> + margin: 1cm;
> + margin-bottom: 2.5cm;
> + @frame footer {
> +   -pdf-frame-content: footerContent;
> +   bottom: 1cm;
> +   margin-left: 10cm;
> +   height: 1cm;
> + }
> +}
> +img {
> + zoom: 75%;
> +}
> +html {
> +    font-family: Helvetica;
> +    font-size: 10px;
> +    font-weight: normal;
> +    color: #000000;
> +    background-color: transparent;
> +    margin: 0;
> +    padding: 0;
> +    line-height: 150%;
> +    border: 1px none;
> +    display: inline;
> +    width: auto;
> +    height: auto;
> +    white-space: normal;
> +}
> +
> +b,
> +strong {
> +    font-weight: bold;
> +}
> +
> +i,
> +em {
> +    font-style: italic;
> +}
> +
> +u {
> +    text-decoration: underline;
> +}
> +
> +s,
> +strike {
> +    text-decoration: line-through;
> +}
> +
> +a {
> +    text-decoration: underline;
> +    color: blue;
> +}
> +
> +ins {
> +    color: green;
> +    text-decoration: underline;
> +}
> +del {
> +    color: red;
> +    text-decoration: line-through;
> +}
> +
> +pre,
> +code,
> +kbd,
> +samp,
> +tt {
> +    font-family: "Courier New";
> +}
> +
> +h1,
> +h2,
> +h3,
> +h4,
> +h5,
> +h6 {
> +    font-weight:bold;
> +    -pdf-outline: true;
> +    -pdf-outline-open: false;
> +}
> +
> +h1 {
> +    /*18px via YUI Fonts CSS foundation*/
> +    font-size:138.5%;
> +    -pdf-outline-level: 0;
> +}
> +
> +h2 {
> +    /*16px via YUI Fonts CSS foundation*/
> +    font-size:123.1%;
> +    -pdf-outline-level: 1;
> +}
> +
> +h3 {
> +    /*14px via YUI Fonts CSS foundation*/
> +    font-size:108%;
> +    -pdf-outline-level: 2;
> +}
> +
> +h4 {
> +    -pdf-outline-level: 3;
> +}
> +
> +h5 {
> +    -pdf-outline-level: 4;
> +}
> +
> +h6 {
> +    -pdf-outline-level: 5;
> +}
> +
> +h1,
> +h2,
> +h3,
> +h4,
> +h5,
> +h6,
> +p,
> +pre,
> +hr {
> +    margin:1em 0;
> +}
> +
> +address,
> +blockquote,
> +body,
> +center,
> +dl,
> +dir,
> +div,
> +fieldset,
> +form,
> +h1,
> +h2,
> +h3,
> +h4,
> +h5,
> +h6,
> +hr,
> +isindex,
> +menu,
> +noframes,
> +noscript,
> +ol,
> +p,
> +pre,
> +table,
> +th,
> +tr,
> +td,
> +ul,
> +li,
> +dd,
> +dt,
> +pdftoc {
> +    display: block;
> +}
> +
> +table {
> +     -pdf-keep-in-frame-mode: shrink;
> +}
> +
> +tr,
> +th,
> +td {
> +
> +    vertical-align: middle;
> +    width: auto;
> +}
> +
> +th {
> +    text-align: center;
> +    font-weight: bold;
> +}
> +
> +center {
> +    text-align: center;
> +}
> +
> +big {
> +    font-size: 125%;
> +}
> +
> +small {
> +    font-size: 75%;
> +}
> +
> +
> +ul {
> +    margin-left: 1.5em;
> +    list-style-type: disc;
> +}
> +
> +ul ul {
> +    list-style-type: circle;
> +}
> +
> +ul ul ul {
> +    list-style-type: square;
> +}
> +
> +ol {
> +    list-style-type: decimal;
> +    margin-left: 1.5em;
> +}
> +
> +pre {
> +    white-space: pre;
> +}
> +
> +blockquote {
> +    margin-left: 1.5em;
> +    margin-right: 1.5em;
> +}
> +
> +noscript {
> +    display: none;
> +}
> +
> --
> 1.7.1
>
> _______________________________________________
> Koha-docs mailing list
> Koha-docs at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-docs
>


More information about the Koha-docs mailing list