diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2010-05-08 20:31:59 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2010-05-08 20:31:59 +0000 |
| commit | d5ed0302289db2a8b64ebd29ca1081dab364d1ee (patch) | |
| tree | 6fad10e4739f28124af2f6283fc980391c0ae693 /docs/_static | |
| parent | e8e87e09b90dca37c1da064e0472e7e2cc43ad88 (diff) | |
[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
Diffstat (limited to 'docs/_static')
| -rw-r--r-- | docs/_static/djangodocs.css | 7 |
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;} |
