PdfCSS:APRJA Minor Tech: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
@top-left{ | @top-left{ | ||
content: "APRJA Volume 12, Issue 1, 2023"; | content: "APRJA Volume 12, Issue 1, 2023"; | ||
color: var(--accent-color); | color: var(--accent-color); | ||
} | } | ||
Line 38: | Line 37: | ||
@bottom-left{ | @bottom-left{ | ||
content: counter(page); | content: counter(page); | ||
} | } | ||
} | } | ||
Line 56: | Line 54: | ||
@bottom-right{ | @bottom-right{ | ||
content: counter(page); | content: counter(page); | ||
} | } | ||
} | } | ||
Line 86: | Line 83: | ||
font-size: var(--second-heading-size); | font-size: var(--second-heading-size); | ||
font-family: var(--body-font); | font-family: var(--body-font); | ||
padding-top: var(--second-heading-size); | padding-top: var(--second-heading-size); | ||
line-height: var(--second-heading-line-height); | line-height: var(--second-heading-line-height); | ||
Line 183: | Line 179: | ||
padding-bottom: var(--first-heading-size); | padding-bottom: var(--first-heading-size); | ||
margin-top: 0; | margin-top: 0; | ||
} | } | ||
Line 201: | Line 192: | ||
div.thumbcaption { | div.thumbcaption { | ||
font-size: var(--small-text); | font-size: var(--small-text); | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
word-wrap: break-word; | word-wrap: break-word; | ||
hyphens: auto; | hyphens: auto; | ||
} | } |
Revision as of 09:18, 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)*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: 18px;
--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);
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);
}
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);
}
div.article img{
width: 100%;
}
/*----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: none;
columns: 1;
width: 100%;
break-before: always;
}
/*----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);
}
/*----------------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-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;
}
/*-----------------images */
div#aprja-logo img{
border: 1px solid red;
max-width: 200px;
}
/*-----------------image captions */
div.thumbcaption {
font-size: var(--small-text);
overflow-wrap: break-word;
word-wrap: break-word;
hyphens: auto;
}