Changeset 535:510bae2b593b in documentViewer


Ignore:
Timestamp:
Jul 26, 2012, 5:32:31 PM (12 years ago)
Author:
casties
Branch:
default
Message:

more fixes, e.g. IE support. first version of index page.

Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • css/docuviewer.css

    r533 r535  
    3131div.page-head div.title {
    3232    max-width: 50em;
    33     border: 1px solid silver;
     33    background-color: white;
     34        font-family: Georgia,Times,serif;
     35        font-size: 14px;
     36        line-height: 1.3;
     37        border: 1px solid silver;
    3438    padding: 0.5em; 
    35     background-color: white;
    3639}
    3740
     
    7073}
    7174
     75div.toc-switcher-col {
     76        display: table-cell;
     77}
    7278div.toc-switcher {
    73     display: table-cell;
     79    display: block; /* moz only does relative with block */
     80    position: relative;
    7481    width: 26.5px; /* for moz and webkit -- don't ask me */
    7582}
    7683div.toc-switcher ul {
    7784    position: absolute;
    78     /* z-index: 20; */
    7985    transform: rotate(270deg);
    8086    transform-origin: top left;
     
    8591    -o-transform: rotate(270deg);
    8692    -o-transform-origin: top left;
    87     left: 12px;
    88     top: 486px;
     93        left: 7px;
     94    top: 32em;
     95    width: 40em;
    8996    padding: 0px;
    9097}
     98
    9199div.toc-switcher li {
    92100    list-style-type: none;
     
    105113
    106114div.tocbody {
    107     /* z-index: 10; */
    108115    display: table-cell;
    109116    border: 1px solid silver;
     
    138145div.tocbody table.thumbs .thumbsel {
    139146    padding: 2px;
    140     border: 1px solid blue;
     147    border: 1px solid #892B06;
    141148}
    142149div.tocbody table.thumbs .thumbcap {
     
    164171
    165172div.col.main div.content {
    166     border: 1px solid silver;
    167     padding: 1em; 
    168     background-color: white;
     173        min-width: 30em;
     174    background-color: white;
     175    font-family: Junicode,Gentium,Georgia,serif;
    169176    font-size: 14px;
    170     font-family: Junicode,Gentium,Georgia,serif;
     177        line-height: 1.3;
     178        border: 1px solid silver;
     179    padding: 1em;
    171180}
    172181div.col.main div.content a:link,
     
    183192 */
    184193div.col.buttons div.options {
    185     border: 1px solid silver;
    186     padding: 0.5em; 
    187     background-color: white;   
     194    background-color: white;
     195        border: 1px solid silver;
     196    border-radius: 5px;
     197    padding: 0.5em;
     198    margin-bottom: 5px; 
    188199}
    189200div.col.buttons h4 {
     
    205216}
    206217
     218/*
     219 * index page
     220 */
     221div.index-image {
     222        float: left;
     223        padding-left: 1em;
     224        padding-right: 1em;
     225        padding-bottom: 1em;
     226}
     227div.index-info td.type {
     228        font-weight: bold;
     229}
  • documentViewer.py

    r532 r535  
    146146    # make docuviewer_css refreshable for development
    147147    docuviewer_css.index_html = refreshingImageFileIndexHtml
     148    docuviewer_ie_css = ImageFile('css/docuviewer_ie.css',globals())
     149    # make docuviewer_ie_css refreshable for development
     150    docuviewer_ie_css.index_html = refreshingImageFileIndexHtml
    148151    jquery_js = ImageFile('js/jquery.js',globals())
    149152   
  • version.txt

    r518 r535  
    1 DocumentViewer 2.1.2a
     1DocumentViewer 2.2.0
  • zpt/common_template.zpt

    r534 r535  
    101101  <!-- toc type switcher -->
    102102  <metal:block metal:define-macro="toc_switcher">
     103  <div class="toc-switcher-col">
    103104    <div class="toc-switcher">
    104105      <ul>
     
    118119      </ul>
    119120    </div>
     121    </div>
    120122  </metal:block>
    121123
  • zpt/toc_concordance.zpt

    r532 r535  
    1313                pageNumbers docinfo/pageNumbers | nothing;
    1414                batch python:here.getBatch(start=start,size=grpsize,end=tocsize,data=pageNumbers);">
    15       <div metal:use-macro="here/template/common_template/macros/toc_switcher" />
    1615      <div class="ruler">
    1716        <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" />
  • zpt/toc_figures.zpt

    r532 r535  
    1212      tal:define="start pageinfo/start; tocsize docinfo/numFigureEntries; grpsize pageinfo/tocPageSize;
    1313                batch python:here.getBatch(start=start,size=grpsize,end=tocsize);">
    14       <div metal:use-macro="here/template/common_template/macros/toc_switcher" />
    1514      <div class="ruler">
    1615        <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" />
  • zpt/toc_none.zpt

    r526 r535  
    99  <div class="toc-none" metal:define-macro="main">
    1010    <div metal:use-macro="here/template/common_template/macros/toc_switcher"/>
    11     <div class="content"></div>
     11    <!--  <div class="tocbody none"></div> -->
    1212  </div>
    1313  <!-- toc -->
  • zpt/viewer_index.zpt

    r505 r535  
    1818    <!-- image -->
    1919    <a tal:define="tp docinfo/titlePage | nothing"
    20       tal:attributes="href python:context.getLink('viewMode','auto')"><img
     20      tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img
    2121      tal:condition="tp" border="0"
    2222      tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img
    23       tal:condition="not:tp" border="0" src="images/oldbook.png" /></a>
     23      tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a>
    2424  </div>
    2525
  • zpt/viewer_text.zpt

    r532 r535  
    1212<title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" />
    1313<link rel="stylesheet" href="template/docuviewer_css" type="text/css" />
     14<!--[if IE]><link rel="stylesheet" href="template/docuviewer_ie_css" type="text/css" /><![endif]-->
    1415<script type="text/javascript" tal:attributes="src string:$rootUrl/template/jquery_js"></script>
    1516<script type="text/javascript">
Note: See TracChangeset for help on using the changeset viewer.