/* Page margins */ @page { margin:6pt; } body { margin:0; padding:0; font-family:Times, serif; } /* Cover Page */ .cover { display: block; text-align: center; text-indent: 0; margin: 0; padding: 0; } img { max-width:100%; max-height:100%; display:block; margin:0 auto; page-break-before:always; } .small { font-size:80%; } /* Title Page */ .header .titlepage {} /* head group for title page */ h1.title { font-size:x-large; text-align:center; font-weight:bold; margin-top:2em; text-indent:0; } h1.sub { font-size:medium; text-align:center; font-weight:bold; font-style:italic; margin-top:1em; text-indent:0; } h1.author { font-size:medium; font-style:italic; text-align:center; margin-top:4em; text-indent:0; } p.title { margin-top:18em; text-indent:0; text-align:center; } /* Headings */ /* This is the default styling of all headings to deal with issues such as page breaks splitting headings and hyphenation issues. Later with html5 we will also be able to wrap an h1 and an h2 that are right next to each other in an hgroup tag and also give it properties like page break avoid so that headings do not get separated. */ /* Base */ h1, h2, h3, h4, h5, h6 { page-break-after:avoid; color:#000; } /* Parts or Chapters */ .header .chapter {} /* head group for chapter titles */ h2.num { text-align:left; text-indent:0; margin-top:4em; } h2.title { text-align:left; margin-bottom:2em; text-indent:0; } h2.titlecenter { text-align:center; margin-bottom:2em; text-indent:0; } h3.num { text-align:left; text-indent:0; margin-top:4em; } h3.title { text-align:left; margin-bottom:2em; text-indent:0; } h3.titlecenter { text-align:center; margin-bottom:2em; text-indent:0; } /* Text Headings */ /* Level 1 text head */ h4 { text-align:left; margin:1em 0 0 0; text-indent:2em; } /* Level 2 text head */ h5 { text-align:left; font-weight:bold; font-style:italic; margin:1em 0 0 0; text-indent:2em; } /* Level 3 text head */ h6 { text-align:left; font-weight:bold; font-style:italic; margin:1em 0 0 0; text-indent:2em; } /* Normal Text */ p { text-align:justify; widows:2; orphans:2; margin:0; text-indent:0; } p+p { text-indent:1em; } p.first { text-indent:0;} /* First Paragraph not indented */ p.ind { text-indent:1em; margin:0; } p.space { margin-top:1em; } p.noind { text-indent:0 !important; } .right { text-align:right !important; } /* Page Break Woes */ /* I wrap this around h3, h4, h5 + first paragraph of text to keep together on some ereaders: */ div.keeptext { page-break-inside:avoid; margin:0 !important; } /* Centered */ /* You may need to use the applebug span around these items for them to work on iBooks. */ p.center { text-align:center; text-indent:0; margin:0; } /* Colophon */ p.colophon1 { font-size:small; text-align:center; margin-top:4em; text-indent:0; } p.colophon2 { font-size:x-small; margin:0; text-indent:0; text-align:center; } /* Extract */ p.extractnormal { margin:1em 0 0 1em; text-indent:0; text-align:left; } /* For extracts that represent text messages, computer text, etc..: */ p.extractcourier { font-family:"Courier New", Courier, monospace; text-indent:0; margin:1em 0 0 1em; text-align:left; } /* For extracts that represent handwriting: */ p.handwriting { font-family:"BradleyHandITCTT-Bold", "Comic Sans MS", cursive; text-indent:0; margin:1em 0 0 1em; } /* Lists */ p.listhead { margin:1em 0 0 2em; font-weight:bold; font-style:normal; page-break-after:avoid; text-align:left; } /* Generic list head for ol's or ul's. */ ol { margin:1em 0 1em 0; } ol.nospace { margin:0; } ul { margin:1em 0 1em 0; } ul.nospace { margin:0; } li { orphans:2; widows:2; text-align:justify; }