PdfCSS:APRJA Minor Tech

From creative crowd wiki
Revision as of 11:33, 5 June 2023 by Simoon (talk | contribs)
Jump to navigation Jump to search
@charset "utf-8"; 

@import url("https://cc.vvvvvvaria.org/fonts/velvetyne/happy-times-at-the-IKOB/stylesheet.css");
@import url("https://cc.vvvvvvaria.org/fonts/simoon/AC/stylesheet.css");

:root{
    --first-heading-size: 36px;
    --first-heading-line-height: 150%; 
    --second-heading-size: 18px;
    --second-heading-line-height: 130%;
    --heading-font: "happy-times-regular", serif;
    --author-font: "AllCon-Regular", sans-serif;
    --body-font: var(--author-font);
    --body-line-height: 120%;
    --small-text: 12px;
    --accent-color: #2A9277;

}

/*------------------page rules */

@page {
    size: 210mm 297mm portrait;
    margin: 100px 90px 90px 90px;
}

@page:first {
    background-color: var(--accent-color);
    /*background-color: #13322b; this is the rgb value of the pantone we used for the newspaper*/

    @bottom-right{
        content: none;
    }

}

@page:left{

    font-family: var(--heading-font);

    @top-left{
        content: "APRJA Volume 12, Issue 1, 2023";
        font-weight: bold;
        color: var(--accent-color);
    }

    @bottom-left{
        content: counter(page);
        font-weight: bold;
    }
}

@page:right{
    
    font-family: var(--heading-font);

    @bottom-right{
        content: counter(page);
        font-weight: bold;
    }
}

/*-----------------cover & titles */

div#cover > .title{
    font-size: var(--first-heading-size);
    line-height: var(--first-heading-line-height);
    font-family: var(--heading-font);
    padding-bottom: var(--first-heading-size);
    margin-top: 0;
}


div.article > h1 {
    color: var(--accent-color);
    font-size: var(--first-heading-size);
    line-height: var(--first-heading-line-height);
    font-family: var(--heading-font);
    padding-bottom: var(--first-heading-size);
    margin-top: 0;
    text-transform: uppercase;
    break-before: always;
}


div#cover > p {
    font-size: var(--second-heading-size);
    font-family: var(--body-font);
    font-weight: bold;
    padding-top: var(--second-heading-size);
    line-height: var(--second-heading-line-height);
}


/*----------------table of contents */

div.TOC {
    display:none;
}


/*-----------------turning off all iframes */
iframe {
    display: none;
}

/*----------------- image captions */

div.thumbcaption {
    font-size: var(--small-text);
    font-weight: bold;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/*-----------------body text */

div.article > p, div.article > h2 {
    font-family: var(--body-font);
    line-height: var(--body-line-height);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    columns: 2;
    column-fill: auto;
    /*text-align: justify; justified text looks terrible */
}