/* -- Updated 07/03/13, CB Digital Production-- */ /* ---- GENERAL ---- */ html, body { margin: 5px; padding:0; border-width: 0; -webkit-hyphens:none; -epub-hyphens:none; } /* ---- EMBEDDED FONTS: normal is for regular text, italic & bold change the and tags // do not use span classes for bold and italics ---- */ @font-face { font-family: "Swiss721"; src: url("../fonts/Swiss721Bold.otf"); font-weight: bold; } @font-face { font-family: "Swiss721"; src: url("../fonts/Swiss721BoldItalic.otf"); font-weight: bold; font-style: italic; } @font-face { font-family: "Swiss721Light"; src: url("../fonts/Swiss721Light.otf"); } /* ---- ALL MAIN P STYLES ARE HERE, NO NEED TO DUPLICATE ATTRIBUTES ---- */ p { margin: 0; text-align:left; font-size: .8em; text-indent: 0em; line-height: 1.2em; font-family: "", serif; /* -- ePub 3 -- */ widows: 3; orphans: 3; word-wrap: break-word; overflow-wrap: normal; text-wrap: normal; } /* ---- LINKS ---- */ a { color: RGB(0,157,224); /* or RGB(0,0,0) */ text-decoration: none; } /* ---- TITLE PAGE should be image only ---- */ img.title { margin:0; text-align: center; } /* ---- FRONT MATTER ---- */ .dedication { font-family: "Swiss721"; margin-top: 10em; text-align: center; } .acknowledgements { } /* ---- COPYRIGHT ---- */ div#copyright { font-family: "Swiss721Light"; font-size: 0.8em; text-align: left; margin-top: 3em; line-height: 1.1em; } div#copyright p { font-family: "Swiss721Light"; font-size: 0.8em; text-align: left; margin-top: 1.3em; line-height: 1.1em; } /* ---- TOC ---- */ .toc { margin-left: 1em; } /* ---- HEADER STYLES - Do not use margins greater than 2em ---- - Headers that follow text should have a top margin ----*/ h1 { font-family: "Swiss721"; margin-bottom: 3em; text-align: left; } .h1_text { font-family: "Swiss721"; margin-bottom: 2em; text-align: left; } h2 { font-family: "Swiss721"; margin-top: 15%; margin-bottom: 0em; margin-left: 1em; text-align: left; } .h2_text { margin-bottom: 2em; } h3 { text-align: center; } .h3_text { margin-bottom: 2em; } h4 { text-align: left; } h5 { } h6 { } /* ---- Use the following with h tags, for subheads that are different from other subheads ---- */ .section_title {} .section_head {} .chapter_title {} .chapter_head {} /* ---- TEXT STYLES - Do not use margins greater than 2em ---- */ /* ---- IMPORTANT! - Do not duplicate styles; only change code that is different from the default p tag - .running_first) should be used on paragraphs with NO indent, followed by (running_text_indent) - Use (running_first) only when the header bottom margin is too small; otherwise use (running_text) */ p.running_first { font-family: "Swiss721Light"; margin: 1em 0 0em 0; } p.running_firstt { /*when there's no header*/ font-family: "Swiss721"; margin: 1.3em 0 0em 0; } /* Use (running_top) when there's no header, no indent */ p.running_top { font-family: "Swiss721"; margin: 1.3em 0 0em 0; } /* (running_text) is the default p tag, noindent, with bottom margin */ p.running_text { font-family: "Swiss721Light"; margin: .1em 0 0em 0; } /* The next set are indented text; never add bottom margin when there is indented text Use (running_first_indent) with header above it */ p.running_first_indent { text-indent: 1.5em; margin: 1em 0 0 0; } /* Use (running_top_indent) for larger top margin, no header above it */ p.running_top_indent { text-indent: 1.5em; margin: 2em 0 0 0; } p.running_text_indent { text-indent: 1.5em; } p.right { text-align: right; } p.center { text-align: center; } /* Use (chapter_head_note) for text that is an introduction, with header above it, but is different from running text */ p.chapter_head_note { } /* -- RECIPE BOOKS -- */ p.recipe_hdnote { text-indent: 0; text-align: left; margin-bottom: 1em; } .yield { font-size: .75em; text-align:center; font-weight: bold; } p.method_txt { text-indent: 0; margin-bottom: 1em; } /* ---- EXTRACT, PULL QUOTES, DISPLAY text ---- */ .drop_cap { font-size: 3em; font-weight: bold; height: auto; } .pull_quote { text-align:left; margin: 1em; font-size:1.5em; } .display_type {} /* ---- CAPTIONS ---- */ .caption { text-align:center; font-size:.7em; } .caption_1_hd { } .caption_1_txt { } .caption_2_hd { } .caption_2_txt { } /* ---- SIDE BARS ---- */ /* ---- add font family and font size to div#sidebar ---- */ div#sidebar { margin: 0; page-break-inside: avoid; page-break-after: always; } .sidebar_1_hd { page-break-inside: avoid; } .sidebar_1_hdnote { page-break-inside: avoid; } .sidebar_1_txt { page-break-inside: avoid; } .sidebar_2_hd { page-break-inside: avoid; } .sidebar_2_hdnote { page-break-inside: avoid; } .sidebar_2_txt { page-break-inside: avoid; } /* ---- LISTS ---- */ ol { list-style-type: none; padding: 0px; margin-bottom: 1em; } ul { font-family: "Swiss721"; list-style-type: none; padding: 0px; margin-bottom: 1em; } ul.alternate_style { list-style-type: none; padding: 0px; margin-bottom: 1em; } li { font-family: "Swiss721Light"; font-size: .9em; margin-top: .1em; margin-bottom: .1em; text-align: left; } .ingred_list_sub {} .footnotes {} /* ---- IMAGES ---- */ /* ---- Large images have no margin ---- */ div.image_wrap { vertical-align: top; text-align: center; page-break-inside: avoid; } /* ---- Smaller images will have a margin ---- */ div.image_wrap_small { text-align: center; margin: 3em 0 3em 0; page-break-inside: avoid; } /* -- All images should have p tag -- */ p.image { text-align: center; margin:0; } /* -- images that are largest on the vertical side -- */ img.vertical { margin: 0; text-align: center; height: 100%; width: auto; } /* -- images that are largest on the horizontal side -- */ img.horizontal { margin: 0; text-align: center; width: 100%; height: auto; } .image_background { margin: 0; background-repeat: no-repeat; background-size: contain; } .floatleft { float: left; width: 40%; margin: 10px 10px 10px 0; } .floatright { float: right; width: 40%; margin: 10px 10px 10px 0; } /* -- to be used within floatleft, floatright, and gallery divs -- */ img.float { width: 100%; height: auto; } /* -- used to create a grid of images -- */ .gallery_25 { width: 23%; float: left; padding: 1%; } .gallery_50 { width: 48%; float: left; padding: 1%; } div.clear {clear: both} div.pagebreak {page-break-after:always;} /* ---- FRACTIONS ---- */ sup { font-family: "Swiss721"; vertical-align: super; font-size: 0.7em; line-height: 0em; } sub { vertical-align: sub; font-size: 0.7em; line-height: 0em; } /* -- TABLES -- */ div.table { margin: 1em; } table { border-collapse: collapse; margin: 1em 0; text-align: left; } td, th { padding: 3px 5px; } /* ---- COLORS, ok to use span tags, change attributes if needed, don't add classes ---- */ .red {color: RGB(155,3,48);} .yellow {color: RGB(87,92,2);} .blue {color: RGB(32,28,63);} .orange {color: RGB(241,90,34);} .green {color: RGB(87,151,133);} .pink {color: RGB(255,153,204);} .purple {color: RGB(204,153,255);} .gray {color: RGB(153,153,153);} .font { font-family: "Swiss721"; }