PdfCSS:APRJA Minor Tech: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
--first-heading-line-height: 36px; | --first-heading-line-height: 36px; | ||
--second-heading-size: 18px; | --second-heading-size: 18px; | ||
--heading-font: "Times New Roman", serif; | |||
--author-font: "Arial", sans-serif; | |||
} | } | ||
Line 39: | Line 41: | ||
div.cover h1 { | div.cover > h1 { | ||
font-size: var(--first-heading-size); | font-size: var(--first-heading-size); | ||
line-height: var(--first-heading-line-height); | line-height: var(--first-heading-line-height); | ||
font-family: var(--heading-font); | |||
} | } | ||
div.cover p { | div.cover > p { | ||
font-size: var(--second-heading-size); | |||
font-family: var(--author-font); | |||
} | } |
Revision as of 11:17, 31 May 2023
@charset "utf-8";
:root{
--first-heading-size: 24px;
--first-heading-line-height: 36px;
--second-heading-size: 18px;
--heading-font: "Times New Roman", serif;
--author-font: "Arial", sans-serif;
}
/*------------------page rules */
@page:first {
background-color: lavender;
@bottom-left{
content: none;
}
}
@page{
size: 210mm 297mm portrait;
margin: 70px 40px 40px 40px;
@bottom-left{
content: counter(page);
}
}
/*-----------------cover */
div.cover {
div.cover > h1 {
font-size: var(--first-heading-size);
line-height: var(--first-heading-line-height);
font-family: var(--heading-font);
}
div.cover > p {
font-size: var(--second-heading-size);
font-family: var(--author-font);
}
div.cover small {
}
/*-----------------turning off embedded pads */
div.pad {
display: none;
}
/*-----------------page breaks */
h1.heading1-heading2, h2.heading2-heading3 {
break-before: always;
}
/*-----------------sections */