]> gitweb.hhaalo.de Git - speisekarten-editor.git/commitdiff
add: style for subtitles
authorBastian Dehn <hhaalo@arcor.de>
Fri, 10 Jun 2022 19:54:17 +0000 (21:54 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 10 Jun 2022 19:54:17 +0000 (21:54 +0200)
src/app/html-export.service.ts

index 30dde62523bd7de04c733a648170bbe26abbf9c0..995e89d50ea073987709d7be70fdac8522c18cac 100644 (file)
@@ -40,15 +40,26 @@ export class HtmlExportService
        private createHtmlStyle(): string
        {
                let stylestring = ""
+               // Font
                stylestring += '@import url("https://fonts.googleapis.com/css?family=Tangerine");';
                stylestring += '@font-face { font-family: "Tangerine"; }';
+
+               // Body
+               stylestring += 'body { max-width: 60em; margin: 0 auto; }';
+
+               // Title
                stylestring += 'h1 { font-family: "Tangerine", serif;';
                stylestring += 'text-align: center; font-size: 2.5em;';
                stylestring += 'margin: 1em 0; }';
-               stylestring += 'body { max-width: 60em; margin: 0 auto; }';
 
+               // Subtitle
+               stylestring += 'h2 { font-family: "Tangerine", serif;';
+               stylestring += 'text-align: center; font-size: 2em; }';
+
+               // Bigger Media
                stylestring += '@media only screen and (min-width: 46.875em) {';
                stylestring += 'h1 { text-align: left; }';
+               stylestring += 'h2 { text-align: left; }';
                stylestring += '}';
 
                return stylestring;