Changeset 11164 for trunk/gsdl


Ignore:
Timestamp:
2006-01-30T22:57:17+13:00 (18 years ago)
Author:
jrm21
Message:

give a document title heading a different class depending on whether we
are showing a cover image or the title. This means if it is an image
we can float it, and if it is text then it doesn't float (as per the
style sheet).

Location:
trunk/gsdl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/images/style.css

    r11160 r11164  
    154154div.warning div.buttons { float: right; } /* continue button */
    155155
    156 div.heading { float: left; } /* optional cover image */
     156div.heading_image { float: left; } /* optional cover image */
     157div.heading_title { font-size: 14pt; } /* alternate to cover image */
    157158div.document div.buttons {
    158159   /* anything that holds buttons... toc_buttons but also continue button */
  • trunk/gsdl/src/recpt/browsetools.cpp

    r11131 r11164  
    806806  // if we're inside a book
    807807  if ((!fulltoc) && (!args["d"].empty())) {
    808     textout << outconvert << "<div class=\"heading\">\n";
    809     if (formatinfo.DocumentImages)
    810       output_cover_image (args, collectproto, disp, outconvert, textout, logout);
    811     else if (formatinfo.DocumentTitles)
    812       output_titles (args, collectproto, browsermap, formatinfo, disp, outconvert, textout, logout);
     808    if (formatinfo.DocumentImages) {
     809      textout << outconvert << "<div class=\"heading_image\">\n";
     810      output_cover_image(args, collectproto, disp, outconvert, textout, logout);
     811      textout << outconvert << "</div>\n";
     812    } else if (formatinfo.DocumentTitles) {
     813      textout << outconvert << "<div class=\"heading_title\">\n";
     814      output_titles(args, collectproto, browsermap, formatinfo, disp, outconvert, textout, logout);
     815      textout << outconvert << "</div>\n";
     816    }
    813817    textout << outconvert << "\n</div>\n\n<div class=\"buttons\" id=\"toc_buttons\">\n";
    814818    if (args["u"] != "1") {
Note: See TracChangeset for help on using the changeset viewer.