Skip to content

Commit

Permalink
Differentiate the colour of previously-visited hyperlinks (#11390)
Browse files Browse the repository at this point in the history
Add ``a:visited`` to the CSS templates
  • Loading branch information
kaycebasques committed Jul 27, 2023
1 parent 467e94d commit 23c7fdd
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 5 deletions.
4 changes: 4 additions & 0 deletions sphinx/themes/agogo/static/agogo.css_t
Expand Up @@ -41,6 +41,10 @@ a {
color: {{ theme_linkcolor }};
}

a:visited {
color: #551a8b;
}

div.bodywrapper a, div.footer a {
text-decoration: underline;
}
Expand Down
4 changes: 4 additions & 0 deletions sphinx/themes/basic/static/basic.css_t
Expand Up @@ -237,6 +237,10 @@ a.headerlink {
visibility: hidden;
}

a:visited {
color: #551A8B;
}

h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
Expand Down
4 changes: 4 additions & 0 deletions sphinx/themes/bizstyle/static/bizstyle.css_t
Expand Up @@ -181,6 +181,10 @@ a:hover {
text-decoration: underline;
}

a:visited {
color: #551a8b;
}

div.body a {
text-decoration: underline;
}
Expand Down
2 changes: 1 addition & 1 deletion sphinx/themes/classic/theme.conf
Expand Up @@ -24,7 +24,7 @@ headbgcolor = #f2f2f2
headtextcolor = #20435c
headlinkcolor = #c60f0f
linkcolor = #355f7c
visitedlinkcolor = #355f7c
visitedlinkcolor = #551a8b
codebgcolor = unset
codetextcolor = unset

Expand Down
7 changes: 6 additions & 1 deletion sphinx/themes/epub/static/epub.css_t
Expand Up @@ -26,11 +26,16 @@ div.clearer {
clear: both;
}

a:link, a:visited {
a:link {
color: #3333ff;
text-decoration: underline;
}

a:visited {
color: #551a8b;
text-decoration: underline;
}

img {
border: 0;
max-width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion sphinx/themes/haiku/theme.conf
Expand Up @@ -10,5 +10,5 @@ body_max_width = 70em
textcolor = #333333
headingcolor = #0c3762
linkcolor = #dc3c01
visitedlinkcolor = #892601
visitedlinkcolor = #551a8b
hoverlinkcolor = #ff4500
4 changes: 4 additions & 0 deletions sphinx/themes/nature/static/nature.css_t
Expand Up @@ -142,6 +142,10 @@ a:hover {
text-decoration: underline;
}

a:visited {
color: #551A8B;
}

div.body h1,
div.body h2,
div.body h3,
Expand Down
7 changes: 6 additions & 1 deletion sphinx/themes/nonav/static/nonav.css_t
Expand Up @@ -15,11 +15,16 @@ div.clearer {
clear: both;
}

a:link, a:visited {
a:link {
color: #3333ff;
text-decoration: underline;
}

a:visited {
color: #551a8b;
text-decoration: underline;
}

img {
border: 0;
max-width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions sphinx/themes/pyramid/static/pyramid.css_t
Expand Up @@ -181,6 +181,10 @@ a:hover, a:hover .pre {
text-decoration: underline;
}

a:visited {
color: #551a8b;
}

div.body h1,
div.body h2,
div.body h3,
Expand Down
4 changes: 4 additions & 0 deletions sphinx/themes/scrolls/static/scrolls.css_t
Expand Up @@ -187,6 +187,10 @@ a:hover {
color: {{ theme_visitedlinkcolor }};
}

a:visited {
color: {{ theme_visitedlinkcolor }};
}

pre {
background-image: url(metal.png);
border-top: 1px solid #ccc;
Expand Down
2 changes: 1 addition & 1 deletion sphinx/themes/scrolls/theme.conf
Expand Up @@ -9,5 +9,5 @@ body_max_width = 680
headerbordercolor = #1752b4
subheadlinecolor = #0d306b
linkcolor = #1752b4
visitedlinkcolor = #444
visitedlinkcolor = #551a8b
admonitioncolor = #28437f
4 changes: 4 additions & 0 deletions sphinx/themes/sphinxdoc/static/sphinxdoc.css_t
Expand Up @@ -151,6 +151,10 @@ a:hover {
color: #2491CF;
}

a:visited {
color: #551A8B;
}

div.body a {
text-decoration: underline;
}
Expand Down

0 comments on commit 23c7fdd

Please sign in to comment.