Changeset 11354


Ignore:
Timestamp:
2006-03-13T18:06:17+13:00 (18 years ago)
Author:
kjdon
Message:

changed the cssheader around. the links now come first, then the style element, which now includes _collectionspecificstyle_, so that a collection can specify its own style and it will override the ones in style.css

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/style.dm

    r11156 r11354  
    5252_cgihead_{}
    5353
     54# may be set in collection's extra.dm
     55_collectionspecificstyle_ {}
     56
    5457# any declarations relating to CSS that should go in the html head part.
    5558# declarations containing images are done here so the path is correct
    5659# at runtime.
    57 _cssheader_ {<style>
     60_cssheader_ {
     61<link rel="stylesheet" href="_cssfilelink_" type="text/css"
     62   title="Greenstone Style" charset="UTF-8">
     63<link rel="alternate stylesheet" href="_httpimg_/style-print.css"
     64   type="text/css" title="Printer" charset="UTF-8" media="print, screen">
     65<link rel="stylesheet" href="_httpimg_/style-print.css" type="text/css"
     66   title="Printer" charset="UTF-8" media="print">
     67
     68<style>
    5869body.bgimage \{ background-image: url("_httpimg_/chalk.gif"); \}
    5970div.navbar \{ background-image: url("_httpimg_/bg_green.png"); \}
     
    6273span.navlink_sel \{ background-image: url("_httpimg_/bg_green.png"); \}
    6374span.navlink:hover \{ background-image: url("_httpimg_/bg_on.png"); \}
     75_collectionspecificstyle_
    6476</style>
    6577
    66 <link rel="stylesheet" href="_cssfilelink_" type="text/css"
    67    title="Greenstone Style" charset="UTF-8">
    68 <link rel="alternate stylesheet" href="_httpimg_/style-print.css"
    69    type="text/css" title="Printer" charset="UTF-8" media="print, screen">
    70 <link rel="stylesheet" href="_httpimg_/style-print.css" type="text/css"
    71    title="Printer" charset="UTF-8" media="print">
     78
    7279}
    7380
Note: See TracChangeset for help on using the changeset viewer.