Changeset 112 for trunk/lib/utility.cc


Ignore:
Timestamp:
Jun 29, 2006, 11:30:54 AM (15 years ago)
Author:
Peter Johansson
Message:

fixes #27 and added some beauty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.cc

    r100 r112  
    8080  }
    8181
    82 
     82  void print_css(std::ostream& s)
     83  {
     84    s << "body {\n";
     85    s << " background: #fff; \n";
     86    s << " color: #000; \n";
     87    s << " margin: 10px; \n";
     88    s << " padding: 0; \n";
     89    s << "} \n";
     90    s << "\n";
     91    s << "body, th, td {\n";
     92    s << " font: normal 13px verdana,arial,'Bitstream Vera Sans',"
     93      << "helvetica,sans-serif;\n";
     94    s << "}\n";
     95    s << ":link, :visited {\n";
     96    s << " text-decoration: none;\n";
     97    s << " color: #b00;\n";
     98    s << " border-bottom: 1px dotted #bbb;\n";
     99    s << "}\n";
     100    s << "\n";
     101    s << "table.listings {\n";
     102    s << " clear: both;\n";
     103    s << " border-bottom: 1px solid #d7d7d7;\n";
     104    s << " border-collapse: collapse;\n";
     105    s << " border-spacing: 0;\n";
     106    s << " margin-top: 1em;\n";
     107    s << " width: 100%;\n";
     108    s << "}\n";
     109    s << "\n";
     110    s << "table.listings th {\n";
     111    s << " text-align: left;\n";
     112    s << " padding: 0 1em .1em 0;\n";
     113    s << " font-size: 12px\n";
     114    s << "}\n";
     115    s << "table.listings thead { background: #f7f7f0 }\n";
     116    s << "table.listings thead th {\n";
     117    s << " border: 1px solid #d7d7d7;\n";
     118    s << " border-bottom-color: #999;\n";
     119    s << " font-size: 11px;\n";
     120    s << " font-wheight: bold;\n";
     121    s << " padding: 2px .5em;\n";
     122    s << " vertical-align: bottom;\n";
     123    s << "}\n";
     124    s << "\n";
     125    s << "table.listings tbody td a:hover, table.listing tbody th a:hover {\n";
     126    s << " background-color: transparent;\n";
     127    s << "}\n";
     128    s << "\n";
     129    s << "table.listings tbody td, table.listing tbody th {\n";
     130    s << " border: 1px dotted #ddd;\n";
     131    s << " padding: .33em .5em;\n";
     132    s << " vertical-align: top;\n";
     133    s << "}\n";
     134    s << "\n";
     135    s << "table.listings tbody td a:hover, table.listing tbody th a:hover {\n";
     136    s << " background-color: transparent;\n";
     137    s << "}\n";
     138    s << "table.listings tbody tr { border-top: 1px solid #ddd }\n";
     139    s << "table.listings tbody tr.light { background-color: #fcfcfc }\n";
     140    s << "table.listings tbody tr.dark { background-color: #f7f7f7 }\n";
     141    s << "table.listings tbody tr.hover { background: #eed }\n";
     142    s << "\n";
     143    s << "\n";
     144    s << "\n";
     145  }
    83146
    84147
Note: See TracChangeset for help on using the changeset viewer.