UnfoldingCSS:StyleBox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
:root { | :root { | ||
/* ***** PAGE OPTIONS **** */ | |||
--page-size: A4; | |||
/* ***** FONTS ****** */ | /* ***** FONTS ****** */ | ||
| Line 12: | Line 14: | ||
/* ****** COLOR ****** */ | /* ****** COLOR ****** */ | ||
--background-color: #ffffff; | --background-color: #ffffff; | ||
--text-color: | --text-color: 'MidnightBlue'; | ||
| Line 18: | Line 20: | ||
--PUB-title: 'The Title'; | --PUB-title: 'The Title'; | ||
} | |||
@page { | |||
size: var(--page-size); | |||
margin-top: 1.5cm; | |||
margin-bottom: 1.5cm; | |||
} | } | ||
Revision as of 08:56, 7 June 2024
:root {
/* ***** PAGE OPTIONS **** */
--page-size: A4;
/* ***** FONTS ****** */
--title-font: 'Serif';
--body-font: 'Sanserif';
--code-font: 'Monospace';
--quote-font: 'Serif';
--footnote-font: 'Sanserif';
--page-number-font: 'Monospace';
/* ****** COLOR ****** */
--background-color: #ffffff;
--text-color: 'MidnightBlue';
/* ***** CONTENT ****** */
--PUB-title: 'The Title';
}
@page {
size: var(--page-size);
margin-top: 1.5cm;
margin-bottom: 1.5cm;
}
@page:first{
@bottom-center{
font-family: var(--title-font);
content: "ENTER COLLECTIVE HERE";
font-size:12pt;
}
}
@page:right {
margin-left: 35mm;
margin-right: 20mm;
@right-middle {
content: counter(page);
font-family: var(--code-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(--title);
}
@left-top {
content: "TITLE";
font-family: Serif;
margin-right: 0.8cm;
writing-mode: vertical-rl;
text-orientation: mixed;
}
}
p:nth-of-type(3n) {
border: 2px solid orange;
margin-left: -10px;
}