summaryrefslogtreecommitdiff
path: root/docs/_static/djangodocs.css
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2010-05-08 14:31:20 +0000
committerLuke Plant <L.Plant.98@cantab.net>2010-05-08 14:31:20 +0000
commitb09581394e7dd7629e71c775d1cc7160b0c26184 (patch)
treedfb721ed9dc5570a2345b90f1c51798d7cb7ed08 /docs/_static/djangodocs.css
parentcfc05d8d688f17cdd9827b9fdbfc8770b291c109 (diff)
Added hyperlinks for builtin template tags and filters to code samples in docs.
Implemented in javascript because doing it 'properly' is pretty much impossible with Sphinx and Pygments. Refs #12249 git-svn-id: http://code.djangoproject.com/svn/django/trunk@13135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/_static/djangodocs.css')
-rw-r--r--docs/_static/djangodocs.css7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/_static/djangodocs.css b/docs/_static/djangodocs.css
index a41be6d1b0..4adb8387cc 100644
--- a/docs/_static/djangodocs.css
+++ b/docs/_static/djangodocs.css
@@ -98,7 +98,12 @@ pre { font-size:small; background:#E0FFB8; border:1px solid #94da3a; border-widt
dt .literal, table .literal { background:none; }
#bd a.reference { text-decoration: none; }
#bd a.reference tt.literal { border-bottom: 1px #234f32 dotted; }
-
+
+/* Restore colors of pygments hyperlinked code */
+#bd .highlight .k a:link, #bd .highlight .k a:visited { color: #000000; text-decoration: none; border-bottom: 1px dotted #000000; }
+#bd .highlight .nf a:link, #bd .highlight .nf a:visited { color: #990000; text-decoration: none; border-bottom: 1px dotted #990000; }
+
+
/*** notes & admonitions ***/
.note, .admonition { padding:.8em 1em .8em; margin: 1em 0; border:1px solid #94da3a; }
.admonition-title { font-weight:bold; margin-top:0 !important; margin-bottom:0 !important;}