Add headlink/headbgcolors.

This commit is contained in:
Georg Brandl 2009-02-27 12:11:35 +01:00
parent af102a2579
commit 717be1cd0e
3 changed files with 10 additions and 6 deletions

View File

@ -86,7 +86,9 @@ Sphinx comes with a selection of themes to choose from:
- **bgcolor** (CSS color): Body background color.
- **textcolor** (CSS color): Body text color.
- **linkcolor** (CSS color): Body link color.
- **headcolor** (CSS color): Text color for headings.
- **headbgcolor** (CSS color): Background color for headings.
- **headtextcolor** (CSS color): Text color for headings.
- **headlinkcolor** (CSS color): Link color for headings.
- **codebgcolor** (CSS color): Background color for code blocks.
- **codetextcolor** (CSS color): Default text color for code blocks, if not
set differently by the highlighting style.

View File

@ -154,9 +154,9 @@ div.body h4,
div.body h5,
div.body h6 {
font-family: {{ theme_headfont }};
background-color: #f2f2f2;
background-color: {{ theme_headbgcolor }};
font-weight: normal;
color: {{ theme_headcolor }};
color: {{ theme_headtextcolor }};
border-bottom: 1px solid #ccc;
margin: 20px -20px 10px -20px;
padding: 3px 0 3px 10px;
@ -170,14 +170,14 @@ div.body h5 { font-size: 110%; }
div.body h6 { font-size: 100%; }
a.headerlink {
color: #c60f0f;
color: {{ theme_headlinkcolor }};
font-size: 0.8em;
padding: 0 4px 0 4px;
text-decoration: none;
}
a.headerlink:hover {
background-color: #c60f0f;
background-color: {{ theme_headlinkcolor }};
color: white;
}

View File

@ -17,7 +17,9 @@ relbartextcolor = #ffffff
relbarlinkcolor = #ffffff
bgcolor = #ffffff
textcolor = #000000
headcolor = #20435c
headbgcolor = #f2f2f2
headtextcolor = #20435c
headlinkcolor = #c60f0f
linkcolor = #355f7c
codebgcolor = #eeffcc
codetextcolor = #333333