Changeset 2993


Ignore:
Timestamp:
04/27/05 10:53:03 (8 years ago)
Author:
hauma
Message:

Added standard header to the output of the TracNav macro. This header is not displayed on screen. Suppress rendering of the complete navigation bar for printed documents.

Location:
trac/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trac/trunk/htdocs/css/wiki.css

    r2991 r2993  
    3939 
    4040/* Styles for TracNav */ 
     41.wiki-toc.trac-nav h2 { 
     42 margin-left: 2px; 
     43 margin-right: 4ex; 
     44 margin-top: 0; 
     45 margin-bottom: 5px; 
     46 paddint-top: 0; 
     47} 
     48@media screen { 
     49 .wiki-toc.trac-nav h2 { 
     50  display: none; 
     51 } 
     52} 
     53@media print { 
     54 .wiki-toc.trac-nav { 
     55  display: none; 
     56 } 
     57}  
    4158.wiki-toc.trac-nav h4 { margin: 0; padding: 0; } 
    4259.wiki-toc.trac-nav ul > li:first-child { margin-right: 4ex; } 
  • trac/trunk/wiki-macros/TracNav.py

    r2991 r2993  
    209209    html += '%s<div class="wiki-toc trac-nav">\n' % indentation(col) 
    210210    col += 1 
     211 
     212    html += '%s<h2><a href="http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav">TracNav</a> menu</h2>' % indentation(col) 
     213 
    211214    if (not preview) and hdf.getValue('trac.acl.WIKI_MODIFY', ''): 
    212215        html += '%s<div class="edit"><a href="%s?edit=yes">edit</a></div>\n' % (indentation(col), env.href.wiki(name)) 
Note: See TracChangeset for help on using the changeset viewer.