PdfCSS:APRJA Minor Tech: Difference between revisions

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


blockquote {
blockquote {
border-right: 1px solid grey;
border-left: 1px solid grey;
padding-left: var(--line-height);
}
}


Line 210: Line 211:
}
}


h2#mw-toc-heading {
h1#mw-toc-heading {
     color: var(--accent-color);
     color: var(--accent-color);
     font-size: var(--first-heading-size);
     font-size: var(--first-heading-size);

Revision as of 13:41, 20 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)*2); 
    --second-heading-size: 21px;
    --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: 21px;
    --body-size: 15px;
    --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";
        color: var(--accent-color);
    }

    @bottom-left{
        content: counter(page);
    }
}
@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;
    }

    @bottom-right{
        content: counter(page);
    }
}
@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);
    font-weight: 400;
    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);
    padding-top: var(--second-heading-size);
    line-height: var(--second-heading-line-height);
}

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

div.article{
    break-after: always;
}

div.article p,
div.article h2{
    /*columns: 2;
    column-fill: auto;*/
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: var(--body-size);
    font-family: var(--body-font);
    line-height: var(--line-height);
}

/* text indent paragraphs  <-- hard to get this to work well, so commenting out for now
div.article p{
    display: block;
    text-indent: 1em;
}
div.article p:nth-of-type(2),
blockquote p{
    text-indent: 0;
}*/

blockquote {
border-left: 1px solid grey;
padding-left: var(--line-height);
}

div.article img{
    width: 100%;
}

/*----article author*/
div.article h1 {
    color: var(--accent-color);
    font-weight: 400;
    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;
    columns: 1;
    width: 75%;
}

/*----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;
    text-transform: uppercase;
    /*position: running(titleRunning);*/
    string-set: title content(text);
    break-after: always;
}

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

/*----prevent sup, sub from interfering with baseline*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

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

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

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

div#colophon {
    width: 100%;
    break-before: always;
    break-after: always;
}

div#contributors {

}

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

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

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

h1#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;
}

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

div.two-column-span-img > figure{
    float-reference: page; 
    float: top;
    width: 100%;
}

div#aprja-logo img{
    width: 80px;
    height: auto;
}

div.thumbinner {
    width: 100%;
}

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

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