PdfCSS:APRJA Minor Tech: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 70: | Line 70: | ||
} | } | ||
/*-----------------turning off embedded pads */ | /*-----------------turning off embedded pads, doesn't work! */ | ||
div#article-1 { | div > #article-1 { | ||
display: none; | display: none; | ||
} | } |
Revision as of 12:17, 1 June 2023
@charset "utf-8";
:root{
--first-heading-size: 36px;
--first-heading-line-height: 150%;
--second-heading-size: 18px;
--second-heading-line-height: 130%;
--heading-font: "Times New Roman", serif;
--author-font: "Arial", sans-serif;
--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{
@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);
line-height: var(--second-heading-line-height);
}
/*----------------table of contents */
div.TOC {
display:none;
}
/*-----------------turning off embedded pads, doesn't work! */
div > #article-1 {
display: none;
}
/*-----------------page breaks */
div.heading1-heading2 > h1, div.heading2-heading3 > h2 {
break-before:always;
font-size: var(--first-heading-size);
line-height: var(--first-heading-line-height);
color: var(--accent-color);
}
/*-----------------sections */
section.article {
break-before: always;
}