192 lines
No EOL
4.1 KiB
CSS
192 lines
No EOL
4.1 KiB
CSS
/* @theme sermon-a4
|
|
author: simonpipe (codeberg.org/simonpipe/)
|
|
License: MIT
|
|
|
|
This theme is optimized for A4 printing.
|
|
Inspired by "a4-clean.css" by stanfrdb (https://github.com/stanfrbd/A4-marp/tree/main)
|
|
|
|
Usage:
|
|
- Default: Standard A4 layout with 12pt font size.
|
|
- Class 'booklet': Scales the layout to 18pt for easy-to-read booklet printing.
|
|
(Set 'class: booklet' in your Markdown YAML header)
|
|
*/
|
|
|
|
|
|
@import "base";
|
|
@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
|
|
|
|
:root {
|
|
/* --- YOUR DEFINED COLORS & SIZES --- */
|
|
--font-size: 12pt;
|
|
--line-height: 1.5;
|
|
--font-size-booklet: 18pt;
|
|
--line-height-booklet: 1.6;
|
|
--font-family: 'Ubuntu', sans-serif;
|
|
--primary-color: #000;
|
|
--lighter-color: #666;
|
|
--bg-color: #eee;
|
|
--mark-color: #eee;
|
|
--margin-page: 25px 35px;
|
|
|
|
--colorblockquote: #333; /* Dezenter Kontrast für Bibelstellen */
|
|
}
|
|
|
|
/* --- BASIC A4 STRUCTURE --- */
|
|
section {
|
|
width: 21cm;
|
|
height: 29.7cm;
|
|
padding: var(--margin-page);
|
|
background: white;
|
|
color: var(--primary-color);
|
|
font-family: var(--font-family);
|
|
font-size: var(--font-size);
|
|
line-height: var(--line-height);
|
|
display: block; /* Garantiert Start oben (Zentrierung besiegt) */
|
|
position: relative;
|
|
}
|
|
|
|
/* Booklet Mode ('class: booklet') */
|
|
section.booklet {
|
|
font-size: var(--font-size-booklet);
|
|
line-height: var(--line-height-booklet);
|
|
}
|
|
|
|
/* --- TYPOGRAPHY --- */
|
|
h1, h2, h3 {
|
|
color: var(--primary-color);
|
|
margin: 0;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
h1 { font-size: 1.3em; font-weight: 700; margin-bottom: 0.4em; }
|
|
h2 { font-size: 1.15em; font-weight: 600; margin-top: 1.2em; margin-bottom: 0.2em; }
|
|
h3 { font-size: 1.05em; font-weight: 500; margin-top: 1em; }
|
|
|
|
p, li {
|
|
margin: 0.6em 0;
|
|
}
|
|
|
|
strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
em {
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Motto-Style (Erste Seite oben) */
|
|
section:first-of-type p:first-of-type em:first-of-type {
|
|
display: block;
|
|
font-size: 0.9em;
|
|
color: var(--lighter-color);
|
|
margin-top: -0.5em;
|
|
margin-bottom: 1.5em;
|
|
}
|
|
|
|
/* --- ELEMENTS --- */
|
|
mark {
|
|
background-color: var(--mark-color);
|
|
color: var(--primary-color);
|
|
padding: 0 4px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* --- BIBEL-ZITATE (Kompakt-Modus) --- */
|
|
blockquote {
|
|
margin: 1.2em 0;
|
|
font-weight: 500;
|
|
color: var(--primary-color);
|
|
border-left: none;
|
|
padding: 0;
|
|
}
|
|
|
|
blockquote p {
|
|
display: inline !important;
|
|
margin: 0;
|
|
}
|
|
|
|
blockquote br {
|
|
display: none;
|
|
}
|
|
|
|
blockquote cite {
|
|
display: inline;
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
color: var(--colorblockquote);
|
|
}
|
|
|
|
blockquote cite::before { content: " ("; }
|
|
blockquote cite::after { content: ")"; }
|
|
|
|
/* --- COPYRIGHT BLOCK --- */
|
|
.copyright {
|
|
color: var(--lighter-color);
|
|
padding: 10px 20px;
|
|
margin: 20px 0;
|
|
border-left: 4px solid var(--primary-color);
|
|
background-color: var(--bg-color);
|
|
font-style: italic;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.copyright a {
|
|
color: var(--lighter-color);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* --- TABLES --- */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 1.5em 0;
|
|
}
|
|
|
|
table th {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
padding: 8px;
|
|
text-align: left;
|
|
}
|
|
|
|
table td {
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--bg-color);
|
|
}
|
|
|
|
/* --- CODE --- */
|
|
code, pre {
|
|
font-family: 'Ubuntu Mono', monospace !important;
|
|
background-color: var(--bg-color);
|
|
}
|
|
|
|
code {
|
|
padding: 2px 5px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
pre {
|
|
padding: 15px;
|
|
border-radius: 5px;
|
|
border-left: 4px solid var(--primary-color);
|
|
overflow-x: auto;
|
|
margin: 1.5em 0;
|
|
}
|
|
|
|
pre code { background-color: transparent; }
|
|
|
|
/* --- PAGINATION (Unten Rechts) --- */
|
|
section::after {
|
|
content: attr(data-marpit-pagination) ' / ' attr(data-marpit-pagination-total);
|
|
font-size: 10pt;
|
|
position: absolute;
|
|
bottom: 25px;
|
|
right: 35px;
|
|
color: var(--lighter-color);
|
|
}
|
|
|
|
/* --- IMAGES --- */
|
|
img[alt~="center"] {
|
|
display: block;
|
|
margin: 20px auto;
|
|
} |