eric7/DocumentationTools/TemplatesListsStyleCSS.py

branch
eric7
changeset 8596
d64760b2da50
parent 8312
800c432b34c8
child 8881
54e42bc2437a
--- a/eric7/DocumentationTools/TemplatesListsStyleCSS.py	Sun Sep 12 17:30:38 2021 +0200
+++ b/eric7/DocumentationTools/TemplatesListsStyleCSS.py	Sun Sep 12 20:22:27 2021 +0200
@@ -8,6 +8,41 @@
 """
 
 #################################################
+## Template for the CSS style sheet file       ##
+#################################################
+
+cssTemplate = '''body {{
+    color: {BodyColor};
+    background: {BodyBgColor};
+    margin: 0em 1em 10em 1em;
+}}
+
+h1 {{
+    color: {Level1HeaderColor};
+    background: {Level1HeaderBgColor};
+}}
+
+h2 {{
+    color: {CFColor};
+    background: {CFBgColor};
+}}
+
+h3 {{
+    color: {Level2HeaderColor};
+    background: {Level2HeaderBgColor};
+}}
+
+h4 {{
+    color: {Level2HeaderColor};
+    background: {Level2HeaderBgColor};
+}}
+    
+a {{
+    color: {LinkColor};
+}}
+'''
+
+#################################################
 ##  Common templates for index and docu files  ##
 #################################################
 
@@ -15,9 +50,7 @@
 <html><head>
 <title>{Title}</title>
 <meta charset="UTF-8">
-<style>
-{Style}
-</style>
+<link rel="stylesheet" href="styles.css">
 </head>
 <body>'''
 

eric ide

mercurial