Package epydoc :: Package docwriter :: Module html_css
[hide private]
[frames] | no frames]

Module html_css
source code

Predefined CSS stylesheets for the HTML outputter (epydoc.docwriter.html).

Functions [hide private]
string _rv(match)
Given a regexp match for a color, return the reverse-video version of that color.

Variables [hide private]
_LAYOUT  
_WHITE  
_OLD_BLUE  
_BLUE  
_COLOR_RE  
_OLD_GREEN  
_GREEN  
_BLACK  
_GRAYSCALE  
STYLESHEETS A dictionary mapping from stylesheet names to CSS stylesheets and descriptions.

Function Details [hide private]

_rv(match)

source code 
Given a regexp match for a color, return the reverse-video version of that color.
Parameters:
  • match (Match) - A regular expression match.
Returns: string
The reverse-video color.

Variables Details [hide private]

_LAYOUT

Value:
'''

/* Tables */ 
table.help         { margin-left: auto; margin-right: auto; }
th.summary, th.details, th.index
                   { text-align: left; font-size: 120%; } 
th.group           { text-align: left; font-size: 120%;
                     font-style: italic; } 
...                                                                    
      

_WHITE

Value:
'''

/* Tables */ 
table.help         { margin-left: auto; margin-right: auto; }
th.summary, th.details, th.index
                   { text-align: left; font-size: 120%; } 
th.group           { text-align: left; font-size: 120%;
                     font-style: italic; } 
...                                                                    
      

_OLD_BLUE

Value:
'''

/* Tables */ 
table.help         { margin-left: auto; margin-right: auto; }
th.summary, th.details, th.index
                   { text-align: left; font-size: 120%; } 
th.group           { text-align: left; font-size: 120%;
                     font-style: italic; } 
...                                                                    
      

_BLUE

Value:
'''

/* Tables */ 
table.help         { margin-left: auto; margin-right: auto; }
th.summary, th.details, th.index
                   { text-align: left; font-size: 120%; } 
th.group           { text-align: left; font-size: 120%;
                     font-style: italic; } 
...                                                                    
      

_COLOR_RE

Value:
#(..)(..)(..)                                                          
      

_OLD_GREEN

Value:
'''

/* Tables */ 
table.help         { margin-left: auto; margin-right: auto; }
th.summary, th.details, th.index
                   { text-align: left; font-size: 120%; } 
th.group           { text-align: left; font-size: 120%;
                     font-style: italic; } 
...                                                                    
      

_GREEN

Value:
'''

/* Tables */ 
table.help         { margin-left: auto; margin-right: auto; }
th.summary, th.details, th.index
                   { text-align: left; font-size: 120%; } 
th.group           { text-align: left; font-size: 120%;
                     font-style: italic; } 
...                                                                    
      

_BLACK

Value:
'''

/* Tables */ 
table.help         { margin-left: auto; margin-right: auto; }
th.summary, th.details, th.index
                   { text-align: left; font-size: 120%; } 
th.group           { text-align: left; font-size: 120%;
                     font-style: italic; } 
...                                                                    
      

_GRAYSCALE

Value:
'''

/* Tables */ 
table.help         { margin-left: auto; margin-right: auto; }
th.summary, th.details, th.index
                   { text-align: left; font-size: 120%; } 
th.group           { text-align: left; font-size: 120%;
                     font-style: italic; } 
...                                                                    
      

STYLESHEETS

A dictionary mapping from stylesheet names to CSS stylesheets and descriptions. A single stylesheet may have multiple names. Currently, the following stylesheets are defined:
  • default: The default stylesheet (synonym for white).
  • white: Black on white, with blue highlights (similar to javadoc).
  • blue: Black on steel blue.
  • green: Black on green.
  • black: White on black, with blue highlights
  • grayscale: Grayscale black on white.
  • none: An empty stylesheet.
Type:
dictionary from string to (string, string)
Value:
{'black': ('\n\n/* Tables */ \ntable.help         { margin-left: auto;\
 margin-right: auto; }\nth.summary, th.details, th.index\n            \
       { text-align: left; font-size: 120%; } \nth.group           { t\
ext-align: left; font-size: 120%;\n                     font-style: it\
alic; } \n\n/* Documentation page titles */\nh2.module          { marg\
in-top: 0.2em; }\nh2.class           { margin-top: 0.2em; }\nh2.type  \
          { margin-top: 0.2em; }\nh2.py-src          { margin-top: 0.2\
em; }\n\n/* Headings */\nh1.help            { text-align: center; }\nh\
...