UnfoldingCSS:StyleBox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 48: | Line 48: | ||
@right-middle { | @right-middle { | ||
content: counter(page); | content: counter(page); | ||
font-family: var(-- | font-family: var(--page-number-font); | ||
} | } | ||
Line 69: | Line 69: | ||
@left-middle { | @left-middle { | ||
content: counter(page); | content: counter(page); | ||
font-family: var(-- | font-family: var(--page-number-font); | ||
} | } | ||
@left-top { | @left-top { | ||
content: | content: var(--PUB-title); | ||
font-family: | font-family: var(--title-font); | ||
margin-right: 0.8cm; | margin-right: 0.8cm; | ||
writing-mode: vertical-rl; | writing-mode: vertical-rl; | ||
Line 80: | Line 80: | ||
} | } | ||
} | |||
p{ | |||
font-family: var(--body-font); | |||
font-size: 11pt; | |||
line-height: 12pt; | |||
text-indent: 10pt; | |||
} | } | ||
Revision as of 09:04, 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: 'PUB Title'; } @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; } } p{ font-family: var(--body-font); font-size: 11pt; line-height: 12pt; text-indent: 10pt; } p:nth-of-type(3n) { border: 2px solid orange; margin-left: -10px; }