From 8a60d6ee5cc6eff360886ff810716e8724db4a53 Mon Sep 17 00:00:00 2001 From: guido Date: Sun, 11 Feb 2007 03:21:45 +0100 Subject: [PATCH] [svn r38440] Made that the blue links are colored from the stylesheet. --HG-- branch : trunk --- py/apigen/html.py | 5 +++-- py/apigen/style.css | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/py/apigen/html.py b/py/apigen/html.py index 3681f3e44..0946251e9 100644 --- a/py/apigen/html.py +++ b/py/apigen/html.py @@ -74,10 +74,11 @@ class H(html): super(H.FunctionDescription, self).__init__(fd, ds, fi) class FunctionDef(html.h2): - style = html.Style(cursor='pointer', color='blue') + style = html.Style(cursor='pointer') def __init__(self, name, argdesc, **kwargs): + class_ = kwargs.pop('class_', 'funcdef') super(H.FunctionDef, self).__init__('def %s%s:' % (name, argdesc), - **kwargs) + class_=class_, **kwargs) class FunctionInfo(html.div): def __init__(self, valuedesc, csource, callstack, **kwargs): diff --git a/py/apigen/style.css b/py/apigen/style.css index 533b543cd..8dd7463c7 100644 --- a/py/apigen/style.css +++ b/py/apigen/style.css @@ -44,6 +44,10 @@ h2 { padding-top: 0.5em; } +h2.funcdef { + color: blue; +} + .code a { color: blue; font-weight: bold;