/*************************************************************************************** * Piper EPUB-CSS für Produktion von barrierefreien EPUB-Dateien mit Abavo Vlow **************************************************************************************** * @project Piper-EPUB-CSS * @version 2.0 * @date 2022-02-16 * @author Fabian Kern (digital publishing competence) * @lastEditor Fabian Kern (digital publishing competence) * @copyright Piper Verlag, digital publishing competence * @lastchanges - Anpassung des CSS an die HTML-Struktur für barrierefreie EPUBs, insbesondere für: * - Bildcontainer und Breitenangaben für
-Inhalte * - Fussnoten/Endnoten * - Zitate-Container (
) * - Integration neue Inline- und Block-Stile für Ausblenden Print/EPUB * und Laufweiten-Anpassung * - Einbettung Emoji-Font und Styling * *****************************************************************************************/ /*************************************************************************************** * Verwendete Farben: *************************************************************************************** * Link-Farbe: #1e3991; * Fussnoten-Farbe: #1e3991; * Zeichen-Farbe 1: #575757; (AUD_aux_para_04, AUD_aux_char_12) * Zeichen-Farbe 2: #1e3991; (AUD_aux_para_05, AUD_aux_char_13) * Zeichen-Farbe 3: #5e5e5e; (AUD_tf_box_05, AUD_tf_box_06) * Hintergrundfarbe für Box/Tabellenkopf hellgrau: #f0f0f0; * Hintergrundfarbe für Box farbig / hellblau: #aabaee; * Textfarbe Bildunterschrift: #575757; * Textfarbe Parttitle-Ebenen: #737373; ****************************************************************************************/ /*************************************************************************************** * Verwendete Schrift-Definitionen: **************************************************************************************** * Serif: font-family: PiperSerif, "Times New Roman", serif; * Sans Serif: font-family: PiperSans, Helvetica, sans-serif; ****************************************************************************************/ /***************************************/ /* Font-Einbettung */ /***************************************/ @font-face { font-family: "Noto Serif"; font-style: normal; font-weight: normal; src: url(../Fonts/NotoSerif-Regular.otf); } @font-face { font-family: "Noto Serif"; font-style: italic; font-weight: normal; src: url(../Fonts/NotoSerif-Italic.otf); } @font-face { font-family: "Noto Serif"; font-style: normal; font-weight: bold; src: url(../Fonts/NotoSerif-Bold.otf); } @font-face { font-family: "Noto Sans"; font-style: normal; font-weight: bold; src: url(../Fonts/NotoSans-Bold.otf); } /***************************************/ /* Grundstellungen */ /***************************************/ /*** CSS-Resets ***/ body, div, ol, li, h1, h2, p { margin: 0; padding: 0; border-width: 0; } section, figure, nav { display: block; margin: 0; padding: 0; border-width: 0; } /*** Grundschrift-Einstellungen und Body-Formatierung ***/ body { font-family: "Noto Serif", "Times New Roman", serif; font-size: 1em; line-height: 165%; widows: 2; orphans: 2; padding-right: 0.5em; } /*** Bodytext-Stile ***/ .AUD_bodytext_indent { text-indent: 1em; } /**************************************/ /* Überschriften */ /**************************************/ .AUD_h1, .AUD_h1_before_h2, .AUD_h1_before_h2, .AUD_h2 { font-family: "Noto Serif", "Times New Roman", serif; text-align: left; line-height: 165%; page-break-inside: avoid; page-break-after: avoid; } h1, .AUD_h1 { font-size: 1.8em; font-weight: bold; margin-top: 2em; margin-bottom: 1em; } .AUD_h1_before_h2 { margin-bottom: 0; } h2, .AUD_h2 { font-size: 1.6em; font-weight: bold; margin-top: 2em; margin-bottom: 1em; } /**************************************/ /* Absatz-Styles */ /**************************************/ /* Motto */ /* Gedicht */ /* Grundformatierung: Abstand vor dem Gedicht */ /* Gedichtabsätze: erhalten KEINEN Abstand vorher/nachher */ /* Wenn ein p.AUD_wanted_empty_para für Strophen-Einteilung verwendet wird, dann werden hier vorher/nachher */ /* keine zusätzlichen Abstände erzeugt. */ /* Grundformatierung: Abstand nach dem Gedicht wird durch den nächsten Absatz erreicht, der KEIN Gedicht-Absatz ist */ /* Grundschrift-Variante */ /* Hilfs-Stil 1 */ /* Hilfs-Stil 2 */ /* Widmung */ /* Hilfs-Stil 07: Text im Print ausblenden */ /* Hilfs-Stil 08: Text im EPUB ausblenden */ /* Hilfs-Stil 09: Laufweite erhöhen */ /* Hilfs-Stil 10: Laufweite verringern */ /*** Für eingerückte Zeilen im Grundtext ***/ /* Hilfsstil kein Einzug (auch nicht in der ersten Zeile), nicht in docmplus2019 */ /* Hilfsstil nicht in docmplus2019 */ /* Hilfsstil nicht in docmplus2019 */ /* Hilfsstil nicht in docmplus2019 */ /* Hilfsstil nicht in docmplus2019 */ /* Hilfsstil nicht in docmplus2019 */ /**************************************/ /* LISTEN */ /**************************************/ /* Einzüge */ ol { margin-left: 1em; /* Basis-Einzug für alle Listen */ /* Listenpunkte erhalten je nach Listentyp individuelle Einzüge */ } ol li { padding-left: 0; } /* Liste mit Punkt als Führungszeichen */ /* Liste mit Kasten als Führungszeichen */ /* Nummerische Listen */ /* Alphabetische Listen */ /* Alphabetische Listen groß*/ /* Römische Listen */ /* Listen ohne Zähler*/ /**************************************/ /* Textstile / Inline-Styles */ /**************************************/ .AUD_emph_italic { font-style: italic; } /* HOCH - TIEF */ /* GROßBUCHSTABEN */ .AUD_emph_caps, .AUD_emph_caps_italic { text-transform: uppercase; } .AUD_emph_caps_italic { font-style: italic; } /* AUX-Styles */ /* Hilfs-Stil 07: Text in Print ausblenden */ /* Hilfs-Stil 08: Text in EPUB ausblenden */ /* Hilfs-Stil 09: Laufweite erhöhen */ /* Hilfs-Stil 10: Laufweise verringern */ /* Hilfsstil 11: Graue Hinterlegung */ /* Hilfsstil 12: Graue Textfarbe */ /* Hilfsstil 13: Blaue Textfarbe */ /* Hilfsstile für Inline-Abstände von 10% bis 50% */ /* Hide epub: im epub ausblenden */ /**************************************/ /* LINKS */ /**************************************/ a[href] { text-decoration: none; color: #1e3991; -webkit-text-fill-color: #1e3991; border-bottom: 1px dotted #575757; padding-left: 0.3em; padding-right: 0.3em; } @media amzn-kf8 { a[href] { font-weight: normal; color: #1e3991; border-bottom: 0; padding-left: 0.3em; padding-right: 0.3em; } } @media amzn-mobi { a[href] { font-weight: normal; color: #1e3991; border-bottom: 0; padding-left: 0.3em; padding-right: 0.3em; } } /**************************************/ /* FUSSNOTEN/ENDNOTEN */ /**************************************/ /**************************************/ /* Literaturverzeichnis */ /**************************************/ /**************************************/ /* CROSSREFS */ /**************************************/ /**************************************/ /* WEB */ /**************************************/ .AUD_web_url, .AUD_web_email { text-decoration: none !important; } /**************************************/ /* BOXES */ /**************************************/ .AUD_box { margin-top: 1em; margin-bottom: 1em; padding: 5%; width: 90%; page-break-inside: avoid !important; } .AUD_box_designelement { display: none; } /* BOX 1 */ /* BOX 2 */ /* BOX 3 */ /* BOX 4 */ /* BOX 5 */ /* BOX 6 */ /* BOX 7 */ /* BOX 8 */ /* BOX 9 */ /* BOX 10 */ /* BOX 24 - Impressum PRINT */ /**************************************/ /* Tabelle */ /**************************************/ /**************************************/ /* ABBILDUNGEN */ /**************************************/ /* Grundeinstellungen für alle Bilder */ img { width: 100%; max-width: 100% !important; max-height: 100% !important; } /* Grundeinstellungen für alle Bild-Container */ /* Varianten für Größen, Ausrichtungen und Umfluss von Bildern */ /* Schmuckbilder */ /* Weitere Kind-Elemente und Gestaltungsregeln für Bilder: Bildzähler, Bildunterschriften etc. */ /**************************************/ /* FORMEL */ /**************************************/ /**************************************/ /* KOMMENTARE */ /**************************************/ /**************************************/ /* ZITATE */ /**************************************/ /**************************************/ /* CODE */ /**************************************/ /**************************************/ /* SEITENUMBRUCH */ /**************************************/ .AUD_pagebreak { page-break-after: always !important; height: 0; display: inline-block; } /**************************************/ /* WANTED EMPTY PARA */ /**************************************/ .AUD_wanted_empty_para { text-align: center; display: block; } .AUD_wanted_empty_para_after_word_table { display: block; } /**************************************/ /* Frontmatter */ /**************************************/ /*** Cover-Seite und Eigenanzeigen-Seite ***/ /*** Frontmatter-Styles ***/ /**************************************/ /* Backmatter */ /**************************************/ /* Index/Stichwort-Verzeichnis */ /* EMOJIS */