--- 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>'''