196 lines
No EOL
4 KiB
CSS
196 lines
No EOL
4 KiB
CSS
/* @theme sermon-a4
|
|
author: simonpipe (codeberg.org/simonpipe/)
|
|
License: MIT
|
|
|
|
This theme builds upon "sermon-slide.css" and 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 "sermon-slide";
|
|
|
|
:root {
|
|
--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;
|
|
}
|
|
|
|
/* --- A4 LAYOUT OVERRIDES --- */
|
|
section {
|
|
width: 21cm;
|
|
height: 29.7cm;
|
|
padding: var(--margin-page);
|
|
background: white;
|
|
background-image: none; /* Entfernt den Folien-Gradienten für den Druck */
|
|
color: var(--primary-color);
|
|
font-family: var(--font-family);
|
|
font-size: var(--font-size);
|
|
line-height: var(--line-height);
|
|
display: block; /* Verhindert die Zentrierung der Slides */
|
|
}
|
|
|
|
/* --- BOOKLET Printing MODUS ('class: booklet') --- */
|
|
section.booklet {
|
|
font-size: var(--font-size-booklet);
|
|
line-height: var(--line-height-booklet);
|
|
}
|
|
|
|
/* Seitenzahlen für das Booklet */
|
|
section::after {
|
|
content: attr(data-marpit-pagination) ' / ' attr(data-marpit-pagination-total);
|
|
font-size: 15px;
|
|
position: absolute;
|
|
bottom: 25px;
|
|
right: 35px;
|
|
color: #555;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* --- TYPOGRAPHY --- */
|
|
h1 {
|
|
color: var(--primary-color);
|
|
font-size: 1.2em;
|
|
font-weight: 600;
|
|
margin-bottom: -20px;
|
|
border-bottom: none; /* Entfernt die Linie aus der Slide-Klasse falls nötig */
|
|
display: block;
|
|
min-width: 0;
|
|
}
|
|
|
|
h2 {
|
|
color: var(--primary-color);
|
|
font-size: 1.1em;
|
|
font-weight: 500;
|
|
margin-top: 30px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
h3 {
|
|
color: var(--primary-color);
|
|
font-size: 1em;
|
|
font-weight: 500;
|
|
margin-top: 20px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
p, li {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
strong {
|
|
color: var(--primary-color);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Regieanweisungen */
|
|
em {
|
|
color: var(--primary-color);
|
|
font-style: italic;
|
|
font-size: 1em;
|
|
}
|
|
|
|
/* Motto auf der ersten Seite */
|
|
section:first-of-type p:first-of-type em:first-of-type {
|
|
display: block;
|
|
font-size: 0.8em;
|
|
color: var(--lighter-color);
|
|
margin-top: -15px;
|
|
margin-bottom: 20px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* --- ELEMENTS --- */
|
|
mark {
|
|
background-color: var(--mark-color);
|
|
padding: 0 4px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* --- COPYRIGHT KLASSE --- */
|
|
/* Nutzung im Markdown: <div class="copyright"> © Dein Text </div> */
|
|
.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);
|
|
}
|
|
|
|
blockquote {
|
|
font-weight: 500;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
blockquote cite {
|
|
margin-top: 0px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 20px 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
table th {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
padding: 8px;
|
|
border: 1px solid var(--lighter-color);
|
|
}
|
|
|
|
table td {
|
|
padding: 8px;
|
|
border: 1px solid var(--lighter-color);
|
|
}
|
|
|
|
code, pre {
|
|
font-family: 'Ubuntu Mono', monospace !important;
|
|
}
|
|
|
|
code {
|
|
background-color: var(--bg-color);
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
color: var(--primary-color);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
pre {
|
|
background-color: var(--bg-color);
|
|
padding: 15px;
|
|
border-radius: 5px;
|
|
overflow-x: auto;
|
|
line-height: 1.4;
|
|
border-left: 3px solid var(--primary-color);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
pre code {
|
|
background-color: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 20px auto;
|
|
} |