/* -- Updated 07/03/13, CB Digital Production-- */ /* ---- GENERAL ---- */ html, body { margin: 10px; padding:0; border-width: 0; -webkit-hyphens:none; -epub-hyphens:none; } /* ---- ALL MAIN P STYLES ARE HERE, NO NEED TO DUPLICATE ---- */ p { margin: 0; text-align:left; font-size: .8em; text-indent: 0em; line-height: 1.2em; font-family: "EmbedFont", serif; /* -- ePub 3 -- */ widows: 3; orphans: 3; word-wrap: break-word; overflow-wrap: normal; text-wrap: normal; } /* ---- 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: "MyriadPro-Regular"; src: url("../fonts/MyriadPro-Regular.otf"); font-weight:normal; font-style:normal; } @font-face { font-family: "Swiss721Light"; src: url("../fonts/Swiss721Light.otf"); font-weight:normal; font-style:normal; } @font-face { font-family: "Swiss721Light"; src: url("../fonts/Swiss721LightItalic.otf"); font-weight:normal; font-style:italic; } @font-face { font-family: "Swiss721Light"; src: url("../fonts/Swiss721Bold.otf"); font-weight:bold; font-style: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; display:block; text-align: center; } /* ---- FRONT MATTER ---- */ .dedication { font-family: "MyriadPro-Regular"; margin-top: 8em; text-align: center; font-size: 1.2em; line-height: 1.5em; } .acknowledgements { } /* ---- COPYRIGHT ---- */ div#copyright { font-size: 0.7em; font-family: "MyriadPro-Regular"; /*only add if different from book text*/ margin-top: 8em; margin-bottom: 0.1em; text-align: center; } div#copyright p { font-family: "MyriadPro-Regular"; margin-top: 2em; margin-bottom: 0.1em; font-size: 1em; } div#copyright blockquote { margin: 0; } p.copyright { } /* ---- TOC ---- */ .toc { margin-left: 1em; } /* ---- HEADER STYLES ---- */ h1 { font-family: "MyriadPro-Regular"; margin-top: 1.5em; margin-bottom: 4em; font-size: 180%; } .h1_text { font-family: "MyriadPro-Regular"; margin-top: 1.5em; margin-bottom: 0.2em; font-size: 180%; } h2 { } .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 duplicate styles; only change code that is different from the default p tag---- ---- Headers that follow text should have a top margin ---- ---- (.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: "MyriadPro-Regular"; font-size: 1.3em; margin-top: 1em; margin-bottom: 0.01em; text-align: left; } /* Use (running_top) when there's no header, no indent */ p.running_top { font-family: "MyriadPro-Regular"; margin-top: 1em; margin-bottom: 0.01em; font-size: 1.0em; } /* (running_text) is the default p tag, noindent, with bottom margin */ p.running_text { font-family: "MyriadPro-Regular"; margin-top: 0.1em; margin-bottom: 0.01em; font-size: 1.0em; } /* 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 { font-family: "Swiss721Light"; 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 { font-family: "MyriadPro-Regular"; margin-top: 1em; margin-left: 1.2em; margin-bottom: 0.01em; font-size: 1.0em; } p.running_text_indent { font-family: "Swiss721Light"; font-size: 1.0em; margin-top: 1.8em; margin-bototm: 0.1em; text-align: left; } 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 { 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 { font-family: "MyriadPro-Regular"; margin-top: 1em; margin-bottom: 0.1em; font-size:1em; text-align:left; } .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:2em 1em 2em 1em; } .sidebar_1_hd {} .sidebar_1_hdnote {} .sidebar_1_txt {} .sidebar_2_hd {} r.sidebar_2_hdnote {} .sidebar_2_txt {} /* ---- LISTS ---- */ ol { list-style-type: none; padding: 0px; margin-bottom: 1em; } ul { font-family: "MyriadPro-Regular"; list-style-type: none; padding: 0px; margin-bottom: 1em; } ul.alternate_style { list-style-type: none; padding: 0px; margin-bottom: 1em; } li { font-family: "MyriadPro-Regular"; margin-top:0.1em; font-size: 1em; margin-bottom: .1em; } .ingred_list_sub {} .footnotes {} /* ---- IMAGES ---- */ /* -- images should be smaller than 2 million pixels -- */ /* ---- Larger images have no margin ---- */ div.wrap { text-align: center; margin-top: 0.1em; margin-bottom: 0.1em; page-break-inside: avoid; } /* ---- Smaller images will have a margin ---- */ div.image_wrap_small { text-align: center; margin: 1em 0 1em 0; page-break-inside: avoid; } /* -- icons or small graphics -- */ p.image { text-align: center; display: block; margin:0; } /* -- images that are largest on the vertical side -- */ p.vertical { margin: 0; text-align: center; height: 100%; width: auto; } img.vertical { height: 90%; width: auto; } /* -- images that are largest on the horizontal side -- */ p.horizontal { margin: 0; text-align: center; width: 100%; height: auto; } img.horizontal { margin: 0; text-align: center; width: 90%; 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 { 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);}