Quoting Stas Bekman <[EMAIL PROTECTED]>:

posted the below to the mod_perl mailing list and got only postive feedback 
(albeit very few responses)

anyway, i consider it pretty safe (and cool) to apply the enclosed patch and 
style sheet unless people start complaining ;)

thanks
./allan


> allan juul wrote:
> > hi
> > 
> > enclosing patch and print-style sheet for better visual presentation of 
> > pritning of the web docs on perl.apache.org
> > 
> > these are only tested on "modern" browsers (including Lynx) on modern
> Windows 
> > platforms . please test patch if possible or have a preview at
> > 
> >   http://www.bullitt.suite.dk/dst_html
> > 
> > basically the idea is that everything should look as always on the screen
> but 
> > the actual print should be trimmed for unnessary stuff (the menus for
> example)
> 
> Nice work, Allan.
> 
> Looks good here. May be post this link to the modperl list to see if 
> anybody has a problem with your test site above?
> 
> the only comment regarding the patch is:
> 
> > Index: tmpl/custom/html/headers
> > ===================================================================
> > RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/headers,v
> > retrieving revision 1.7
> > diff -u -r1.7 headers
> > --- tmpl/custom/html/headers        12 Jul 2002 07:54:49 -0000      1.7
> > +++ tmpl/custom/html/headers        12 Aug 2004 19:11:08 -0000
> > @@ -11,6 +11,7 @@
> >                  },
> >          },
> >          link => "<link href=\"${doc.dir.abs_doc_root}/style.css\" 
> > rel=\"stylesheet\" type=\"text/css\" title=\"refstyle\">",
> > +        link2 => "<link href=\"${doc.dir.abs_doc_root}/print.css\" 
> > rel=\"stylesheet\" type=\"text/css\" title=\"refstyle\">",
> >  
> >  };
> >  
> > @@ -22,7 +23,7 @@
> >          <base href="[% doc.headers.base | uri | html %]">
> >  [%- END -%]
> >  
> > -[%- "        $l\n" FOREACH l = [ doc.headers.link, default_headers.link ]
> -%]
> > +[%- "        $l\n" FOREACH l = [ doc.headers.link, default_headers.link,
> 
> > default_headers.link2 ] -%]
> >          <meta name="description" content="mod_perl documentation: [%
> abstract 
> > | html %]">
> 
> Better rename s/link2/link_print/? here and there was at least one more 
> occurence in the rest of the patch.
> 
> Thanks.
> 
> -- 
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


? src/print.css
Index: tmpl/custom/html/headers
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/headers,v
retrieving revision 1.7
diff -r1.7 headers
13a14
>         link_print => "<link href=\"${doc.dir.abs_doc_root}/print.css\" 
> rel=\"stylesheet\" type=\"text/css\" title=\"refstyle\" media=\"print\">",
25c26
< [%- "        $l\n" FOREACH l = [ doc.headers.link, default_headers.link ] -%]
---
> [%- "        $l\n" FOREACH l = [ doc.headers.link, default_headers.link, 
> default_headers.link_print ] -%]
Index: tmpl/custom/html/index
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/index,v
retrieving revision 1.23
diff -r1.23 index
12c12
<         <tr valign="top">
---
>         <tr valign="top" class="noPrint">
30c30
< <div class="leftbox">
---
> <div class="leftbox noPrint">
Index: tmpl/custom/html/navbar_global
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/navbar_global,v
retrieving revision 1.12
diff -r1.12 navbar_global
71c71
<     <tr valign="top">
---
>     <tr valign="top" class="noPrint">
76c76
<     <tr valign="top">
---
>     <tr valign="top" class="noPrint">
80c80
<     <tr valign="top">
---
>     <tr valign="top" class="noPrint">
86c86
<     <tr valign="top">
---
>     <tr valign="top" class="noPrint">
Index: tmpl/custom/html/navbar_local_bottom
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/navbar_local_bottom,v
retrieving revision 1.11
diff -r1.11 navbar_local_bottom
6c6
<    <table width="100%" border="0" cellspacing="0" cellpadding="0">
---
>    <table width="100%" border="0" cellspacing="0" cellpadding="0" 
> class="noPrint">
Index: tmpl/custom/html/navbar_local_top
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/navbar_local_top,v
retrieving revision 1.17
diff -r1.17 navbar_local_top
7c7
<         <tr valign="top">
---
>         <tr valign="top" class="noPrint">
Index: tmpl/custom/html/page
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/page,v
retrieving revision 1.24
diff -r1.24 page
12c12
<         <tr valign="top">
---
>         <tr valign="top" class="noPrint">
31c31
< <div class="leftbox">
---
> <div class="leftbox noPrint">
Index: tmpl/custom/html/sitemap
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/sitemap,v
retrieving revision 1.6
diff -r1.6 sitemap
12c12
<         <tr valign="top">
---
>         <tr valign="top" class="noPrint">
35c35
< <div class="leftbox">
---
> <div class="leftbox noPrint">
Index: tmpl/custom/html/tail
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/tail,v
retrieving revision 1.22
diff -r1.22 tail
5c5
<         <div class="footer">
---
>         <div class="footer noPrint">
Index: tmpl/custom/html/title
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/title,v
retrieving revision 1.10
diff -r1.10 title
31c31
<         <tr>
---
>         <tr class="noPrint">
Index: tmpl/custom/html/top_link
===================================================================
RCS file: /home/cvspublic/modperl-docs/tmpl/custom/html/top_link,v
retrieving revision 1.5
diff -r1.5 top_link
1c1
< <a href="#top"><img src="[%- doc.dir.abs_doc_root 
-%]/images/nav/page_top.gif" width="48" height="16" border="0" alt="TOP"></a>
\ No newline at end of file
---
> <a href="#top" class="noPrint"><img src="[%- doc.dir.abs_doc_root 
> -%]/images/nav/page_top.gif" width="48" height="16" border="0" alt="TOP"></a>
\ No newline at end of file
/*** main elements ***/

/* body specs */


.body-margins {
    position: absolute;
    top: 0px;
    left: 0px;

    /* this border MUST be _0px_ for ns4 and others */
    border: 0px;

    padding: 0px 0px 0px 0px;
    margin: 0px 10px 0px 10px;
    background-image: none;

}

/* opera */
body[class="body-margins"] {
    width: auto !important;
}

.noPrint {
    display:none;
}

div.rightbox {
    position: inherit; /*this can not be relative, absolute or unspecifed*/
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
    border: 1px; /* this border MUST be _1px_ for ns4 */
    background-color: #ffffff;
    color: #000000;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to