PdfCSS:APRJA Minor Tech: Difference between revisions

From creative crowd wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 113: Line 113:
}
}


/*----article author*/
div.article > h1 {
div.article > h1 {
     color: var(--accent-color);
     color: var(--accent-color);
Line 120: Line 121:
     padding-bottom: var(--first-heading-size);
     padding-bottom: var(--first-heading-size);
     margin-top: 0;
     margin-top: 0;
    text-transform: uppercase;
}
}


/*----article title*/
div.article > h1 + h1{
div.article > h1 + h1{
     color: var(--accent-color);
     color: var(--accent-color);

Revision as of 08:04, 19 June 2023

@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: calc(var(--line-height)*3); 
    --second-heading-size: 20px;
    --second-heading-line-height: calc(var(--line-height)*1.5);
    --heading-font: "happy-times-regular", serif;
    --author-font: "AllCon-Regular", sans-serif;
    --body-font: var(--author-font);
    --line-height: 20px;
    --body-size: 16px;
    --small-text: 12px;
    --accent-color: #2A9277;

}

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

@page{
    size: 210mm 297mm portrait;
    /*margin: 100px 100px 90px 90px;*/
    margin: 80px;
}
@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);

    @top-right {
    /*content: element(titleRunning);*/
    content: string(title);
    color: var(--accent-color);
    text-overflow: ellipsis;
    overflow:hidden;
    white-space:nowrap;
    /*width: 300px;*/
    }

    @bottom-right{
        content: counter(page);
        font-weight: bold;
    }
}
@page:first{
    background-color: var(--accent-color);

    @bottom-right, 
    @top-left, 
    @top-right {
        content: none;
    }
}

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

div#cover {
    break-after: always;
}

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.authors{
    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);
}

/*-----------------articles */
body{
    hyphens: auto;
    line-height: var(--line-height);
}

div.article {
    columns: 2;
    column-fill: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    break-before: always;
}

div.article > p, blockquote {
    font-size: var(--body-size);
    font-family: var(--body-font);
    line-height: var(--line-height);
}

/*----article author*/
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;
}

/*----article title*/
div.article > h1 + 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;
    /*position: running(titleRunning);*/
    string-set: title content(text);
}

div.article > h3 {
    font-family: var(--heading-font);
    font-style: italic;
    font-size: var(--second-heading-size);
    line-height: var(--second-heading-line-height);
}

/*----------------manual page and column breaks*/

div.page-break {
    break-after: always;
}

/*---------------colophon, contributors, editorial*/

div#colophon {
    width: 100%;
    display: table-cell;
}

div#contributors {

}

div#editorial h1{
    font-size:var(--first-heading-size);
    line-height:var(--first-heading-line-height);
}

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

li.toclevel-2::marker, li.toclevel-2, span.tocnumber {
    display:none;
}

h2#mw-toc-heading {
    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;
}

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

/*-----------------images */

div#aprja-logo img{
    border: 1px solid red;
    max-width: 200px;
}

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

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