From 4e535fec916d9511313116a4fca543e4a57ba0f2 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 5 Jun 2009 10:41:02 +0200 Subject: [PATCH] #193: Added a ``visitedlinkcolor`` theme option to the default theme. --- CHANGES | 3 +++ doc/theming.rst | 1 + sphinx/themes/default/static/default.css_t | 5 +++++ sphinx/themes/default/theme.conf | 1 + 4 files changed, 10 insertions(+) diff --git a/CHANGES b/CHANGES index 4f984dca8..4b3b1622d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ Release 1.0 (in development) ============================ +* #193: Added a ``visitedlinkcolor`` theme option to the default + theme. + * Added the ``prepend`` and ``append`` options to the ``literalinclude`` directive. diff --git a/doc/theming.rst b/doc/theming.rst index d1d3b27a3..5b4b648c7 100644 --- a/doc/theming.rst +++ b/doc/theming.rst @@ -86,6 +86,7 @@ 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. + - **visitedlinkcolor** (CSS color): Body color for visited links. - **headbgcolor** (CSS color): Background color for headings. - **headtextcolor** (CSS color): Text color for headings. - **headlinkcolor** (CSS color): Link color for headings. diff --git a/sphinx/themes/default/static/default.css_t b/sphinx/themes/default/static/default.css_t index cefb308b0..fbfd64a85 100644 --- a/sphinx/themes/default/static/default.css_t +++ b/sphinx/themes/default/static/default.css_t @@ -147,6 +147,11 @@ a { text-decoration: none; } +a:visited { + color: {{ theme_visitedlinkcolor }}; + text-decoration: none; +} + a:hover { text-decoration: underline; } diff --git a/sphinx/themes/default/theme.conf b/sphinx/themes/default/theme.conf index 812330f8a..5035fae59 100644 --- a/sphinx/themes/default/theme.conf +++ b/sphinx/themes/default/theme.conf @@ -21,6 +21,7 @@ headbgcolor = #f2f2f2 headtextcolor = #20435c headlinkcolor = #c60f0f linkcolor = #355f7c +visitedlinkcolor = #355f7c codebgcolor = #eeffcc codetextcolor = #333333