sermon-theme-for-marp/sermon-a4.css
2026-04-07 16:12:04 +02:00

152 lines
No EOL
3 KiB
CSS

/* @theme sermon-a4 */
@import 'base';
:root {
--font-size: 18pt;
--line-height: 1.6;
--font-family: 'Ubuntu', sans-serif;
--primary-color: #000000; /* Das Blau aus deiner Vorlage */
--text-color: #000000;
--heading-color: #000000;
--margin-page: 25px 35px;
}
section {
width: 21cm;
height: 29.7cm;
padding: var(--margin-page);
background: white;
color: var(--text-color);
font-family: var(--font-family);
font-size: var(--font-size);
line-height: var(--line-height);
display: block;
}
/* Seitenzahlen */
section::after {
content: attr(data-marpit-pagination) ' / ' attr(data-marpit-pagination-total);
font-size: 15px;
position: absolute;
bottom: 25px;
right: 35px;
color: #555;
}
h1 {
color: var(--heading-color);
font-size: 1.3em;
font-weight: 600;
margin-bottom: 20px;
border-bottom: 3px solid var(--primary-color);
padding-bottom: 10px;
}
h2 {
color: var(--heading-color);
font-size: 1.2em;
font-weight: 500;
margin-top: 30px;
margin-bottom: 15px;
border-bottom: 1px solid #eee;
}
h3 {
color: var(--heading-color);
font-size: 1.1em;
font-weight: 500;
margin-top: 20px;
margin-bottom: 10px;
}
p, li {
margin: 10px 0;
}
strong {
color: var(--heading-color);
font-weight: 500;
}
/* 1. Globaler Style für Regieanweisungen (bleibt 100% groß) */
em {
color: var(--regie-color);
font-style: italic;
font-size: 1em; /* Stellt sicher, dass es normal groß bleibt */
}
/* 2. Spezial-Style NUR für das Motto auf der ersten Seite */
/* Wir nehmen das erste 'em', das direkt auf ein 'h1' folgt */
section:first-of-type h1 + em,
section:first-of-type p:first-of-type em:first-of-type {
display: block;
font-size: 0.8em; /* Hier wird es kleiner */
color: #666; /* Etwas dezenter */
margin-top: -15px; /* Zieht es näher an die Überschrift */
margin-bottom: 20px;
font-weight: normal; /* Motto meist nicht fett, nur kursiv */
}
blockquote {
color: #555;
padding: 10px 20px;
margin: 20px 0;
border-left: 4px solid var(--primary-color);
background-color: #f8f9fa;
font-style: italic;
}
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 #2980b9;
}
table td {
padding: 8px;
border: 1px solid #ddd;
}
code, pre {
font-family: 'Ubuntu Mono', monospace !important;
}
code {
background-color: #f6f8fa;
padding: 2px 6px;
border-radius: 3px;
color: var(--heading-color);
font-size: 0.9em;
}
pre {
background-color: #f6f8fa;
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;
}