mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-25 22:50:22 -05:00
Differentiate the colour of previously-visited hyperlinks (#11390)
Add ``a:visited`` to the CSS templates
This commit is contained in:
1 parent
467e94dc62
commit
23c7fdde75
12 files changed
+43
-5
No files matched your search
@@ -41,6 +41,10 @@ a {
|
||||
color: {{ theme_linkcolor }};
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #551a8b;
|
||||
}
|
||||
|
||||
div.bodywrapper a, div.footer a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@@ -237,6 +237,10 @@ a.headerlink {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #551A8B;
|
||||
}
|
||||
|
||||
h1:hover > a.headerlink,
|
||||
h2:hover > a.headerlink,
|
||||
h3:hover > a.headerlink,
|
||||
|
||||
@@ -181,6 +181,10 @@ a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #551a8b;
|
||||
}
|
||||
|
||||
div.body a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ headbgcolor = #f2f2f2
|
||||
headtextcolor = #20435c
|
||||
headlinkcolor = #c60f0f
|
||||
linkcolor = #355f7c
|
||||
visitedlinkcolor = #355f7c
|
||||
visitedlinkcolor = #551a8b
|
||||
codebgcolor = unset
|
||||
codetextcolor = unset
|
||||
|
||||
|
||||
@@ -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%;
|
||||
|
||||
@@ -10,5 +10,5 @@ body_max_width = 70em
|
||||
textcolor = #333333
|
||||
headingcolor = #0c3762
|
||||
linkcolor = #dc3c01
|
||||
visitedlinkcolor = #892601
|
||||
visitedlinkcolor = #551a8b
|
||||
hoverlinkcolor = #ff4500
|
||||
@@ -142,6 +142,10 @@ a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #551A8B;
|
||||
}
|
||||
|
||||
div.body h1,
|
||||
div.body h2,
|
||||
div.body h3,
|
||||
|
||||
@@ -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%;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -9,5 +9,5 @@ body_max_width = 680
|
||||
headerbordercolor = #1752b4
|
||||
subheadlinecolor = #0d306b
|
||||
linkcolor = #1752b4
|
||||
visitedlinkcolor = #444
|
||||
visitedlinkcolor = #551a8b
|
||||
admonitioncolor = #28437f
|
||||
@@ -151,6 +151,10 @@ a:hover {
|
||||
color: #2491CF;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #551A8B;
|
||||
}
|
||||
|
||||
div.body a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user