/*
   A stylesheet that does double-spacing, provides for a header, and is
   generally suited for printing of essays. Printed output generally
   conforms to MLA standards.

   Copyright (C) 2002-2005 Steve Pomeroy <steve@staticfree.info>

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/

@page { 
  size:   auto;
  margin: 1in;
}

/* common formatting */
@media screen, print{ 

  /* the header of the document. just make a div with this class and put
     things */
  .header{ line-height: inherit; 
           text-indent: inherit; 
           font-size:   smaller;
           }
  
  h1 { text-align: center; }
  
  .timestamp { font-size:  smaller; 
               font-style: italic; 
               }
  
  /* titles of various things  */
  
  /* the title of a book, poem, or other creative work */
  .worktitle {  }
  
  p { 
      text-indent: 2em;
      text-align: justify;
     }
  
  /* this is a temporary fix until :text-indent is fixed */
  /*   p:first-letter { margin-left: 2em; } */

  .captioned { text-align:  center; 
               font-weight: bold; 
               }

/*use this for bibliographies. works best applied to a <P> */
  .biblio{ margin-left: 2em; 
           line-height: inherit; 
           }

  .biblio:first-letter{ margin-left: -2em; }

}

/* formatting on the screen. this should be fairly plain,
   allowing the document to define how it looks on the screen */
@media screen {

  /* the title of a book, poem, or other creative work */
  .worktitle{ font-style: italic; }

  body { margin: 2em; }
  }

/* formatting used when printing */
@media print {

  a { text-decoration: none }

  * { color: black; }

  p { 
      /* double spacing */
      line-height: 2;
      }

  /* default print font sizes */
  p, blockquote, ul, ol { font-size: 12pt; }
  
  /* cited text should always be single spaced */
  blockquote { line-height: 1; }

  /* ignore special formatting on these tags
     there's nothing uglier than hardcopy [with blue underlined links
     on it.] */
  a { color:           inherit; 
      text-decoration: none; 
      }

  address { font-style: normal; 
            font-size:  inherit; 
            }

  .header{ font-size: 10pt; }

  /* expand abbreviations using parenthetical notation. eg:

     abbr title="Gnu's Not Unix">GNU</abbr>
     
     prints as: 
     
     Gnu's Not Unix (GNU)
     */
  abbr:before{ content: attr(title) " ("; }
  abbr{ 
        color:  inherit; 
        border: inherit;
        }

  abbr:after{ content: ")" }

  .timestamp { display: none; }

  /* title redefinitions */
  /* i dunno which is correct. MLA says the commented one is.. but 
     my english prof didn't like it. */
  /*   .worktitle{ text-decoration: underline; font-size: inherit; } */
  .worktitle{ font-style: italic; 
              font-size:  inherit; 
              }

  /* headers */
  h1 { font-size: 22pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 16pt; }
  h4 { font-size: 14pt; }
  h5 { font-size: 14pt; }
  h6 { font-size: 13pt; }

  /* a class for manual page breaking */
  .pagebreak { page-break-before: always; }

  /* prints a title page */

  .titlepage { margin-top:       3in;
               page-break-after: always; 
               }

}
