PdfCSS:APRJA Minor Tech: Difference between revisions

From creative crowd wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
:root{
:root{
     --first-heading-size: 36px;
     --first-heading-size: 36px;
     --first-heading-line-height: 110%;  
     --first-heading-line-height: 120%;  
     --second-heading-size: 18px;
     --second-heading-size: 18px;
     --heading-font: "Times New Roman", serif;
     --heading-font: "Times New Roman", serif;

Revision as of 12:58, 31 May 2023

@charset "utf-8"; 

:root{
    --first-heading-size: 36px;
    --first-heading-line-height: 120%; 
    --second-heading-size: 18px;
    --heading-font: "Times New Roman", serif;
    --author-font: "Arial", sans-serif;

}

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

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

@page:first {

    background-color: #2A9277;
    /*margin: 55px 55px 80px 40px;*/


    @bottom-right{
        content: none;
    }

}


@page:left{

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

@page:right{

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

/*-----------------cover */

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

div.cover > p {
    font-size: var(--second-heading-size);
    font-family: var(--author-font);
    font-weight: bold;
    padding-top: var(--second-heading-size);
}


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

div.TOC {
    display:none;
}

/*-----------------turning off embedded pads */
div.pad {
    display: none;
}

/*-----------------page breaks */


section.article {
  break-before: always;
}

/*-----------------sections */