UnfoldingCSS:StyleBox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
--page-size: A4; | --page-size: A4; | ||
--color-paper: HoneyDew; | --color-paper: HoneyDew; | ||
| Line 27: | Line 27: | ||
--h2-font-size: 18pt; | --h2-font-size: 18pt; | ||
--h3-font-size: 15pt; | --h3-font-size: 15pt; | ||
--p-font-size: | --p-font-size: 12pt; | ||
| Line 117: | Line 117: | ||
h1 | h1{ | ||
color: var(--text-color); | |||
font-family: var(--title-font); | |||
font-size: var(--h1-font-size); | |||
line-height: calc(var(--h1-font-size) + 1.5pt); | |||
text-wrap: pretty; | |||
} | } | ||
h2{ | |||
color: var(--text-color); | |||
font-family: var(--title-font); | |||
font-size: var(--h2-font-size); | |||
line-height: calc(var(--h2-font-size) + 1.5pt); | |||
text-wrap: pretty; | |||
} | |||
h3{ | |||
color: var(--text-color); | |||
font-family: var(--title-font); | |||
font-size: var(--h3-font-size); | |||
line-height: calc(var(--h3-font-size) + 1.5pt); | |||
text-wrap: pretty; | |||
} | |||
b{ | b{ | ||
color: var(--sparkling-color); | |||
} | } | ||
p{ | p{ | ||
| Line 131: | Line 151: | ||
font-size: var(--p-font-size); | font-size: var(--p-font-size); | ||
line-height: calc(var(--p-font-size) + 2pt); | line-height: calc(var(--p-font-size) + 2pt); | ||
text-indent: | text-indent: calc(var(--p-font-size) - 2pt); | ||
text-wrap: pretty; | text-wrap: pretty; | ||
} | } | ||
Revision as of 11:04, 7 June 2024
:root {
/* ************* P A G E ****************** */
--page-size: A4;
--color-paper: HoneyDew;
/* ************* C O N T E N T ************ */
--PUB-title: 'PUB Title';
--PUB-collective: 'Enter your collective here';
--PUB-year: '3000';
/* ************* F O N T S **************** */
--title-font: Serif;
--body-font: Sanserif;
--code-font: Monospace;
--quote-font: Serif;
--footnote-font: Sanserif;
--page-number-font: Monospace;
--h1-font-size: 24pt;
--h2-font-size: 18pt;
--h3-font-size: 15pt;
--p-font-size: 12pt;
/* ************* C O L O R **************** */
--text-color: MidnightBlue;
--highlight-color: Salmon;
--sparkling-color: LimeGreen;
}
/* -------------- P A G E - B L O C K ----------- */
@page {
size: var(--page-size);
margin-top: 1.5cm;
margin-bottom: 1.5cm;
}
@page:first{
@right-middle {
content: none;
}
@right-top {
content: none;
}
}
@page:right {
margin-left: 35mm;
margin-right: 20mm;
@right-middle {
content: counter(page);
font-family: var(--page-number-font);
}
@right-top {
content: var(--PUB-title);
font-family: var(--title-font);
margin-right: 0.8cm;
writing-mode: vertical-rl;
text-orientation: mixed;
}
}
@page:left {
margin-right: 35mm;
margin-left: 20mm;
@left-middle {
content: counter(page);
font-family: var(--page-number-font);
}
@left-top {
content: var(--PUB-title);
font-family: var(--title-font);
margin-right: 0.8cm;
writing-mode: vertical-rl;
text-orientation: mixed;
}
}
.pagedjs_sheet {
box-shadow: -5px 5px 12px 0px var(--color-pageSheet);
}
body{
background-color: var(--color-paper);
}
/* -------------- P A G E - B L O C K - E N D S ----------- */
/* -------------- T E X T - B L O C K --------------------- */
h1{
color: var(--text-color);
font-family: var(--title-font);
font-size: var(--h1-font-size);
line-height: calc(var(--h1-font-size) + 1.5pt);
text-wrap: pretty;
}
h2{
color: var(--text-color);
font-family: var(--title-font);
font-size: var(--h2-font-size);
line-height: calc(var(--h2-font-size) + 1.5pt);
text-wrap: pretty;
}
h3{
color: var(--text-color);
font-family: var(--title-font);
font-size: var(--h3-font-size);
line-height: calc(var(--h3-font-size) + 1.5pt);
text-wrap: pretty;
}
b{
color: var(--sparkling-color);
}
p{
color: var(--text-color);
font-family: var(--body-font);
font-size: var(--p-font-size);
line-height: calc(var(--p-font-size) + 2pt);
text-indent: calc(var(--p-font-size) - 2pt);
text-wrap: pretty;
}
p:nth-of-type(3n) {
border: 2px solid orange;
margin-left: -10px;
}
/* -------------- P A G E - B L O C K - E N D S ----------- */