[py-svn] r38440 - py/trunk/py/apigen

guido at codespeak.net guido at codespeak.net
Sun Feb 11 03:21:46 CET 2007


Author: guido
Date: Sun Feb 11 03:21:45 2007
New Revision: 38440

Modified:
   py/trunk/py/apigen/html.py
   py/trunk/py/apigen/style.css
Log:
Made that the blue links are colored from the stylesheet.


Modified: py/trunk/py/apigen/html.py
==============================================================================
--- py/trunk/py/apigen/html.py	(original)
+++ py/trunk/py/apigen/html.py	Sun Feb 11 03:21:45 2007
@@ -74,10 +74,11 @@
             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):

Modified: py/trunk/py/apigen/style.css
==============================================================================
--- py/trunk/py/apigen/style.css	(original)
+++ py/trunk/py/apigen/style.css	Sun Feb 11 03:21:45 2007
@@ -44,6 +44,10 @@
   padding-top: 0.5em;
 }
 
+h2.funcdef {
+  color: blue;
+}
+
 .code a {
   color: blue;
   font-weight: bold;



More information about the pytest-commit mailing list