/* XML blockout */ /* ************************************************************************ * Different browsers have different defaults when loading a new page. The * following CSS Reset makes all browsers start out with the same properties. * See meyerweb.com/eric/tools/css/reset/ License: none (public domain) * ********************************************************************** */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strong, var, u, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font-weight: normal; font: inherit; vertical-align: baseline } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block } /* HTML5 display-role for older browsers */ body { line-height: 1 } blockquote, q { quotes: none } blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none } table { border-collapse: collapse; border-spacing: 0 } /* End of CSS Reset */ /* ************************************************************************ * set the body margins to allow whitespace along sides of window - use * width rather than margin-right to get IE5 to behave itself. * ********************************************************************** */ body { margin-left: 4%; width: 90%; /* == margin-right:6% */ } /* ************************************************************************ * set the indention, spacing, and leading for ALL paragraphs * ********************************************************************** */ p { margin-top: 1em; /* inter-paragraph space */ margin-bottom: 0; /* use only margin-top for spacing */ line-height: 1.4em; /* generous interline spacing ("leading") */ } .center { text-align: center; text-indent: 0 } /* ************************************************************************ * Style paragraphs of open text, not e.g. quotes or table cells * ********************************************************************** */ body > p { text-align: justify; text-indent: 1.5em } /* suppress indentation on paragraphs following heads and in tables */ h2 + p, h3 + p, h4 + p, td, td > p { text-indent: 0 } /* tighter spacing for list item paragraphs */ li, li > p { line-height: 1.2em; /* leading a bit tighter than p's */ } /* ************************************************************************ * Mark corrected typo with: * typo * ********************************************************************** */ ins.correction { text-decoration: none; /* replace default underline.. */ border-bottom: thin dotted gray; /* ..with delicate gray line */ } /* ************************************************************************ * Head 2 is for chapter heads. * ********************************************************************** */ h2 { margin-top: 1em; padding-top: 1em; /* extra space above.. */ margin-bottom: 1.25em; /* ..and below */ clear: both; /* don't let sidebars overlap */ font-size: 110%; /* larger font than body */ font-weight: bold; /* match book */ text-align: center; /* left-aligned by default. */ clear: both; /* don't let sidebars overlap */ } /* ************************************************************************ * Head 3 is for section heads (delete if book has none) * ********************************************************************** */ h3 { margin-top: 1em; /* extra space above but not below */ text-align: center; /* left-aligned by default. */ font-weight: bold; /* match the original */ clear: both; /* don't let sidebars overlap */ } /* ************************************************************************ * Styling the default HR and some special-purpose ones. * Default rule centered and clear of floats; sized for thought-breaks *
for e.g. chapters *
for e.g. epigraphs *
cute double rule * ********************************************************************** */ hr { width: 45%; /* good width for a */ margin-top: 1em; /* space above & below */ margin-bottom: 1em; margin-left: auto; /* these two ensure a.. */ margin-right: auto; /* ..centered rule */ clear: both; /* don't let sidebars & floats overlap rule */ } hr.minor { width: 30%; margin-top: 0.5em; margin-bottom: 0.5em } /* ************************************************************************ * Images and captions * div.img is for inline-only images. * div.imghr is for images that link to a high-res version. These get * a light border to indicate they are clickable. * div.imgfl is for small images floated left, imgfr for float right. * div.imghrfr is for a small, clickable, captioned image floated right. * ********************************************************************** */ div.img { text-align: center; text-indent: 0; clear: both; margin-top: 1em } div.imghr { text-align: center; text-indent: 0; clear: both; margin-top: 1em } .imghr img, .imghrfr img { border: 1px solid gray } div.imgfr { clear: right; /* left margin to set box away from text */ } div.imgfl { /* just like imgfl but opposite */ clear: left; margin: 0 4px 0 0; /* right margin to set box away from text */ } div.imghrfr { text-align: center; text-indent: 0; clear: right; border: 1px solid gray } .img p, .imghr p, .imgfr p, .imgfl p, .imghrfr p { /* caption text: p within in some kind of img div */ margin-top: 0; /* snuggled up to its image */ margin-left: 5%; margin-right: 5%; font-size: 90% } /* ************************************************************************ * styling the little inset tips. In the book they start with a Capitulum * (the obsolete predecessor of the Pilcrow or paragraph sign). There is * currently no Unicode point for Capitulum although one has been proposed. * Going to use a bold Pilcrow instead. The minor hr is manually entered. */ div.protip { margin: 1em 10% 0 10%; padding: 1em 0 0 0 } div.protip p:before { content: "ΒΆ" } /* ************************************************************************ * Turn off list decoration: *
  • for the 2nd paragraph of a two-paragraph list item *