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;