summaryrefslogtreecommitdiff
path: root/docs/_theme
diff options
context:
space:
mode:
authorTimothy McCurrach <tim.mccurrach@gmail.com>2021-06-17 22:52:16 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-06-21 13:47:26 +0200
commit4659a790cf5d0036c3c7488877b4365d948ccb01 (patch)
treee79744e55cf93830ea5debfa0263fb02299fae3c /docs/_theme
parent5a468b4c085900ba28b7f8dfa2cb0b50d7699aa6 (diff)
Fixed #32860 -- Made docs permalinks focusable to improve accessibility.
Diffstat (limited to 'docs/_theme')
-rw-r--r--docs/_theme/djangodocs/static/djangodocs.css5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/_theme/djangodocs/static/djangodocs.css b/docs/_theme/djangodocs/static/djangodocs.css
index 02504d67a4..bd47749a06 100644
--- a/docs/_theme/djangodocs/static/djangodocs.css
+++ b/docs/_theme/djangodocs/static/djangodocs.css
@@ -125,8 +125,9 @@ div.versionadded span.title, div.versionchanged span.title, span.versionmodified
div.versionadded, div.versionchanged, div.deprecated { color:#555; }
/*** p-links ***/
-a.headerlink { color: #c60f0f; font-size: 0.8em; padding: 0 4px 0 4px; text-decoration: none; visibility: hidden; }
-h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, h4:hover > a.headerlink, h5:hover > a.headerlink, h6:hover > a.headerlink, dt:hover > a.headerlink { visibility: visible; }
+a.headerlink { color: #c60f0f; font-size: 0.8em; margin-left: 4px; opacity: 0; text-decoration: none; }
+h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, h4:hover > a.headerlink, h5:hover > a.headerlink, h6:hover > a.headerlink, dt:hover > a.headerlink { opacity: 1; }
+a.headerlink:focus { opacity: 1; }
/*** index ***/
table.indextable td { text-align: left; vertical-align: top;}