From d5ed0302289db2a8b64ebd29ca1081dab364d1ee Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Sat, 8 May 2010 20:31:59 +0000 Subject: [1.1.X] 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 Backport of [13135] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13137 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/_static/djangodocs.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docs/_static') 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;} -- cgit v1.3