add more images and including those
This commit is contained in:
parent
d10ed8bcfa
commit
f161b8c894
145
dnd-book.css
145
dnd-book.css
@ -1,45 +1,97 @@
|
|||||||
/* Container für das Buchlayout */
|
/* Container für das Buchlayout */
|
||||||
.phb {
|
.phb {
|
||||||
width: 210mm; /* A4 Breite */
|
width: 210mm;
|
||||||
height: 296.8mm; /* A4 Höhe */
|
/* A4 Breite */
|
||||||
margin: 20mm auto; /* Zentriert das Layout horizontal auf dem Bildschirm */
|
height: 296.8mm;
|
||||||
padding: 10mm; /* Verringert das Padding auf der Seite, um mehr Platz zu schaffen */
|
/* A4 Höhe */
|
||||||
|
margin: 20mm auto;
|
||||||
|
/* Zentriert das Layout horizontal auf dem Bildschirm */
|
||||||
|
padding: 10mm;
|
||||||
|
/* Verringert das Padding auf der Seite, um mehr Platz zu schaffen */
|
||||||
position: relative;
|
position: relative;
|
||||||
background-image: url('./background.png'); /* Hintergrundbild */
|
background-image: url('./background.png');
|
||||||
background-size: cover; /* Hintergrundbild strecken */
|
/* Hintergrundbild */
|
||||||
background-position: center; /* Bild zentrieren */
|
background-size: cover;
|
||||||
box-shadow: -10px 0 20px rgba(0, 0, 0, 0.3), 10px 0 20px rgba(0, 0, 0, 0.3); /* Schatten links und rechts */
|
/* Hintergrundbild strecken */
|
||||||
|
background-position: center;
|
||||||
|
/* Bild zentrieren */
|
||||||
|
box-shadow: -10px 0 20px rgba(0, 0, 0, 0.3), 10px 0 20px rgba(0, 0, 0, 0.3);
|
||||||
|
/* Schatten links und rechts */
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center; /* Zentriert die Spalten */
|
justify-content: center;
|
||||||
|
/* Zentriert die Spalten */
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
page-break-before: always; /* Seite beginnt immer nach einer neuen phb */
|
page-break-before: always;
|
||||||
|
/* Seite beginnt immer nach einer neuen phb */
|
||||||
|
font-size: 16px; /* Basis-Schriftgröße */
|
||||||
|
}
|
||||||
|
|
||||||
|
.phb::after {
|
||||||
|
content: "";
|
||||||
|
/* Necessary for the pseudo-element to be visible */
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
height: 55px;
|
||||||
|
width: 100%;
|
||||||
|
background-image: url('./footer_even.png');
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
/* Ensure image is centered */
|
||||||
|
padding-top: 28px;
|
||||||
|
/* Adjust the vertical position of the text */
|
||||||
|
text-align: center;
|
||||||
|
font-size: 11px;
|
||||||
|
padding-left: 65px;
|
||||||
|
padding-right: 85px;
|
||||||
|
line-height: 1.1;
|
||||||
|
color: white;
|
||||||
|
/* Ensure text is readable over the footer image */
|
||||||
|
z-index: 2;
|
||||||
|
/* Ensure footer is always above other content */
|
||||||
|
box-sizing: border-box;
|
||||||
|
/* Ensure padding is included in the element's width/height */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Layout für die Spalten */
|
/* Layout für die Spalten */
|
||||||
.phb .content {
|
.phb .content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 1%; /* Verringert den Abstand zwischen den Spalten */
|
gap: 1%;
|
||||||
width: 100%; /* Gesamtbreite für den Inhalt */
|
/* Verringert den Abstand zwischen den Spalten */
|
||||||
|
width: 100%;
|
||||||
|
/* Gesamtbreite für den Inhalt */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Jede Spalte nimmt 48% der Breite ein */
|
/* Jede Spalte nimmt 48% der Breite ein */
|
||||||
.phb .column {
|
.phb .column {
|
||||||
width: 48%; /* Breite der Spalten */
|
width: 48%;
|
||||||
padding: 5mm; /* Reduziert das Padding in den Spalten */
|
/* Breite der Spalten */
|
||||||
|
padding: 5mm;
|
||||||
|
/* Reduziert das Padding in den Spalten */
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
color: #222;
|
color: #222;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
page-break-inside: avoid; /* Verhindert, dass der Inhalt in eine neue Seite umbricht */
|
page-break-inside: avoid;
|
||||||
|
/* Verhindert, dass der Inhalt in eine neue Seite umbricht */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Stil für Blockquotes */
|
/* Stil für Blockquotes */
|
||||||
.phb blockquote {
|
.phb blockquote {
|
||||||
background-color: lightgrey;
|
margin: 0 0 21px;
|
||||||
margin-top: 1em;
|
font-size: 17.5px;
|
||||||
padding: 0.5em;
|
border-left: 5px solid #f4f5f5;
|
||||||
font-style: italic;
|
font-family: ScalySans;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 5px 10px;
|
||||||
|
background-color: #e0e5c1;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 11px;
|
||||||
|
border-image: url('./note-wrap.png') 11;
|
||||||
|
border-image-outset: 0;
|
||||||
|
border-image-outset: 9px 0;
|
||||||
|
box-shadow: 1px 4px 14px #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stil für Tabellen */
|
/* Stil für Tabellen */
|
||||||
@ -51,17 +103,50 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Stil für Tabellenkopf */
|
/* Stil für Tabellenkopf */
|
||||||
.phb table th, .phb table td {
|
.phb table th,
|
||||||
|
.phb table td {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Überschriften und Absätze */
|
/* Überschriften und Absätze */
|
||||||
.phb h1, .phb h2, .phb h3, .phb h4, .phb h5 {
|
.phb h1,
|
||||||
margin-top: 0.2em;
|
.phb h2,
|
||||||
margin-bottom: 0.2em;
|
.phb h3,
|
||||||
|
.phb h4 {
|
||||||
|
margin-top: .2em;
|
||||||
|
margin-bottom: .2em;
|
||||||
|
font-family: 'MrJeeves', sans-serif;
|
||||||
|
font-weight: 800;
|
||||||
color: #58180D;
|
color: #58180D;
|
||||||
font-weight: bold;
|
}
|
||||||
|
|
||||||
|
.phb h1 {
|
||||||
|
column-span: all;
|
||||||
|
font-size: 2.3em;
|
||||||
|
-webkit-column-span: all;
|
||||||
|
-moz-column-span: all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phb h2 {
|
||||||
|
font-size: 1.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phb h3 {
|
||||||
|
font-size: 1.2em;
|
||||||
|
border-bottom: 2px solid #c9ad6a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phb h4 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phb h5 {
|
||||||
|
margin-bottom: .2em;
|
||||||
|
font-family: 'ScalySansSmallCaps', sans-serif;
|
||||||
|
font-size: .8em;
|
||||||
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sicherstellen, dass die nächste Seite nach der ersten immer auf einer neuen Seite beginnt */
|
/* Sicherstellen, dass die nächste Seite nach der ersten immer auf einer neuen Seite beginnt */
|
||||||
@ -69,17 +154,7 @@
|
|||||||
page-break-before: always;
|
page-break-before: always;
|
||||||
}
|
}
|
||||||
|
|
||||||
.phb h2 {
|
|
||||||
font-size: 1.8em;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.phb h3 {
|
|
||||||
font-size: 0.529cm;
|
|
||||||
border-bottom: 2px solid #c9ad6a;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Stil für den Blockquote */
|
/* Stil für den Blockquote */
|
||||||
.phb blockquote hr {
|
.phb blockquote hr {
|
||||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M0 0l2 1L0 2z' fill='%239c2b1b'/%3E%3C/svg%3E");
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M0 0l2 1L0 2z' fill='%239c2b1b'/%3E%3C/svg%3E");
|
||||||
}
|
}
|
||||||
BIN
footer_even.png
Normal file
BIN
footer_even.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
BIN
note-wrap.png
Normal file
BIN
note-wrap.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 274 B |
Loading…
x
Reference in New Issue
Block a user