sermon-theme-for-marp/sermon.css
2026-03-12 09:17:48 +01:00

171 lines
No EOL
3.8 KiB
CSS

/* @theme sermon
author: simonpipe (codeberg.org/simonpipe/)
License: MIT
This theme is a derivative work based on:
"Gradient Theme" by rnd195 (https://github.com/rnd195/my-marp-themes)
Original License: MIT (https://github.com/rnd195/my-marp-themes/blob/live/licenses/LICENSE)
*/
@import "default";
@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 {
--colorh1: #393552;
--colorh2: #393552;
--colorh3: #393552;
--colorh4: #393552;
--colorh5: #393552;
--colorh6: #842174;
--colortext: #393552;
--colorleadh2: #333;
--colorleadtext: #333;
--colorleadborder: #333;
--colorbottombar: #842174;
--colorcite: #842174;
--colormark: #84217427;
--colorprecode: #ffffff80;
--colorblockquote: #000;
--colorbg: #ffffff;
--gradient-start: #e1c2e1;
--gradient-end: #b9d5d9;
--gradient-direction: to top right;
font-family: 'Ubuntu', sans-serif;
}
/* --- BACKGROUND --- */
section {
background-color: var(--colorbg);
background-image: linear-gradient(var(--gradient-direction), var(--gradient-start) 5%, var(--gradient-end) 95%);
font-size: 35px; /* Basisschriftgröße für die gesamte Folie */
line-height: 1.4; /* Zeilenabstand für die gesamte Folie */
}
/* --- TITLES --- */
h1 {
color: var(--colorh1);
},
h2 {
color: var(--colorh2);
},
h3 {
color: var(--colorh3);
},
h4 {
color: var(--colorh4);
},
h5 {
color: var(--colorh5);
},
h6 {
color: var(--colorh6);
}
/* --- TEXT CHANGES --- */
a {
color: var(--colortext);
}
code,
pre,
pre code {
font-family: 'Ubuntu Mono', monospace !important;
background-color: var(--colorprecode);
}
mark {
background-color: var(--colormark);
padding: 0 4px; /* Etwas mehr Luft an den Seiten sieht meist besser aus */
border-radius: 3px;
}
blockquote {
border-left: none;
margin: 0;
padding: 0;
font-size: 1em;
line-height: 1.5;
color: var(--colorblockquote);
}
blockquote cite {
display: block;
text-align: right;
color: var(--colorcite);
font-style: normal;
font-size: 0.9em;
margin-top: 20px;
}
/* --- BOTTOM BAR --- */
section::after {
font-size: 0.75em;
/* From github.com/yhatt/marp/issues/263 */
content: attr(data-marpit-pagination);
color: var(--colorbottombar);
opacity: 0.6;
}
/* --- CUSTOM CLASSES AND KEYWORDS --- */
/* <!-- _class: lead --> */
section.lead {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
section.lead h1 {
font-size: 2em;
}
section.lead h2 {
font-size: 1.6em;
color: var(--colorleadh2);
/* Die Linie */
border-top: 3px solid var(--colorleadborder); /* Linie */
padding-top: 0.8em; /* Abstand zwischen Linie und Text */
margin-top: 0.5em; /* Abstand zwischen H1 und Linie */
/* Damit die Linie nicht über die ganze Breite geht */
display: inline-block; /* Richtet sich nach der Textbreite aus */
align-self: center; /* Zentriert das h2-Element im Flex-Container */
min-width: 300px; /* Verhindert, dass die Linie bei kurzem Text zu mickrig wird */
}
section.lead p {
font-size: 1.3em;
color: var(--colorleadtext);
}
/* <!-- _class: tinytext --> */
/* Makes p, and ul text smaller to fit more text on a slide */
section.tinytext > p,
section.tinytext > ul {
font-size: 0.8em;
}
/* <!-- _class: tinyquote --> */
/* Makes blockquote text smaller to fit more text on a slide */
section.tinyquote > blockquote {
font-size: 0.9em;
}
section.tinyquote > blockquote cite {
font-size: 0.9em;
}
/* img keyword "center" */
/* Centers an image, from github.com/marp-team/marpit/issues/141#issuecomment-473204518 */
img[alt~="center"] {
display: block;
margin: 0 auto;
}