/* -- Updated 02/12/14, Chronicle Books LLC: Digital Production -- */ /* -- CB MAIN CSS -- */ /* ---- GENERAL ---- */ html, body { margin: 5px; padding: 0; border-width: 0; -webkit-hyphens: none; -epub-hyphens: none; adobe-hyphenate: none; } div { page-break-inside: avoid; } /* ---- EMBEDDED FONTS ---- */ /* ---- normal is for regular text and should always be listed first. Do not use span classes for bold and italics, only and tags ---- */ @font-face { font-family: "Media77-Regular"; src: url("../fonts/Media77-Regular.otf"); } @font-face { font-family: "Media77-Regular"; src: url("../fonts/Media77-RegularIta.otf"); font-style: italic; } @font-face { font-family: "Media77-Regular"; src: url("../fonts/Media77-Bold.otf"); font-weight: bold; } @font-face { font-family: "Media77-Medium"; src: url("../fonts/Media77-Medium.otf"); } @font-face { font-family: "Media77-Medium"; src: url("../fonts/Media77-MediumIta.otf"); font-style: italic; } @font-face { font-family: "TheinhardtReg"; src: url("../fonts/TheinhardtReg.otf"); } @font-face { font-family: "TheinhardtReg"; src: url("../fonts/TheinhardtRegIt.otf"); font-style: italic; } @font-face { font-family: "TheinhardtBold"; src: url("../fonts/TheinhardtBold.otf"); font-weight: bold; } @font-face { font-family: "TheinhardtMed"; src: url("../fonts/TheinhardtMed.otf"); } @font-face { font-family: "TheinhardtMed"; src: url("../fonts/TheinhardtMedIt.otf"); font-style: italic; } @font-face { font-family: "DrukText-Medium"; src: url("../fonts/DrukText-Medium.otf"); } @font-face { font-family: "DrukXCond-Super"; src: url("../fonts/DrukXCond-Super.otf"); } @font-face { font-family: "TimesRoman"; src: url("../fonts/TimesRoman.otf"); } /* ---- ALL MAIN P STYLES ARE HERE, NO NEED TO DUPLICATE ATTRIBUTES ---- */ p { margin: 0; text-align:left; font-size: .8em; text-indent: 0; 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); text-decoration: none; } /* ---- FRONT MATTER ---- */ .dedication { margin-top: 10%; text-align: center; font-size: 1.2em; line-height: 1.5em; } .acknowledgements {} /* ---- COPYRIGHT ---- */ div#copyright { font-family: "Media77-Regular"; font-size: .7em; text-align: left; line-height: 1.1em; } div#copyright p { font-family: "Media77-Regular"; margin-top: 1em; margin-bottom: .2em; } /* ---- TOC ---- */ .toc { font-family: "DrukText-Medium"; margin-top: 1em; margin-bottom: .2em; } .toc1 { font-family: "DrukText-Medium"; margin-top: 1.2em; margin-bottom: .2em; letter-spacing: .06em; } .toc2 { font-family: "Media77-Regular"; margin-top: .2em; margin-bottom: .2em; font-size: .7em; } .toc3 { font-family: "Media77-Regular"; margin-top: .2em; margin-bottom: .2em; margin-left: 1em; } .toc4 { font-family: "DrukText-Medium"; margin-top: 3.2em; margin-bottom: 2.2em; letter-spacing: .06em; } .toc5 { font-family: "DrukText-Medium"; margin-top: 3.2em; margin-bottom: .2em; letter-spacing: .06em; } /* ---- HEADER STYLES - Do not apply margins greater than 2em. Headers that follow text should have a top margin ----*/ h1, h2, h3, h4, h5, h6 {text-align: left;} h1 { font-family: "Media77-Medium"; font-size: x-large; margin-top: 1em; margin-bottom: 1em; } h2 { font-family: "Media77-Regular"; margin-top: 1em; margin-bottom: .1em; font-size: .9em; } h3 {} h4 {} h5 {} h6 {} /* ---- Use the following for subheads that follow a header style---- */ .section_title {} .section_hd {} h1.chapter_title { font-family: "DrukXCond-Super"; font-weight: normal; font-size: 480%; margin-top: .1em; margin-bottom: .1em; letter-spacing: .06em; line-height: .9em; } h1.chapter_hd { font-family: "DrukXCond-Super"; font-weight: normal; font-size: 250%; margin-top: .1em; margin-bottom: .5em; letter-spacing: .06em; } /* ---- TEXT STYLES : do not apply margins greater than 2em ---- */ /* no indent styles, p.text_noindent is the default p tag for no indent with a bottom margin */ p.text_noindent { font-family: "Media77-Regular"; margin: 1em 0 0 0; } p.text_noindent1 { font-family: "Media77-Regular"; margin: 2em 0 0 0; } p.first1_noindent { font-family: "TheinhardtReg"; margin-top: 1.2em; margin-bottom: .2em; margin-left: 1em; text-indent: -1em; } p.first2_noindent { font-family: "TheinhardtReg"; margin: .2em 0 0 0; font-size: .7em; } /* indent styles, p.text_indent is the default p tag for indent with a bottom margin */ p.text_indent { font-family: "Media77-Regular"; margin: .2em 0 0 0; text-indent: 2em; } p.first1_indent { font-family: "Media77-Regular"; margin: 1em 0 0 0; } p.first2_indent { font-family: "Media77-Regular"; margin: .2em 0 0 0; } /* basic left, right, center classes */ p.left { font-family: "Media77-Regular"; margin-top: 1em; margin-bottom: 1em; margin-left: 2em; margin-right: 1em; text-align: left; } p.left1 { font-family: "Media77-Regular"; margin-top: 1em; margin-bottom: 1em; margin-left: 2em; margin-right: 1em; text-align:left; font-size: .7em; } p.right { font-family: "TheinhardtReg"; margin-top: .2em; margin-bottom: .2em; margin-right: 1em; text-align: right; } p.center { font-family: "DrukText-Medium"; font-size: 105%; margin-top: .2em; margin-bottom: .2em; color: RGB(112,213,73); text-align: center; } /* use p.chapter_hdnote for text that is after an introduction, but is different from the default p tags above */ p.chapter_hdnote { font-family: "Media77-Regular"; font-size: 120%; margin-top: .2em; margin-bottom: 1em; } /* -- RECIPE BOOKS -- */ p.recipe_hdnote { text-indent: 0; text-align: left; margin-bottom: 1em; } .yield { size: .8em; text-align:center; font-weight: bold; } p.method_txt { font-family: "Media77-Medium"; margin-top: .2em; margin-bottom: .2em; margin-left: 1.5em; text-indent: -1.5em; font-size: .7em; } /* ---- EXTRACT, PULL QUOTES, DISPLAY text ---- */ .drop_cap { font-size: 3em; font-weight: bold; height: auto; } .pull_quote { font-family: "Media77-Regular"; text-align: left; margin-top: 1em; margin-bottom: 1em; margin-left: 2em; margin-right: 1em; } .pull_quote1 { font-family: "Media77-Regular"; text-align: left; margin-top: 1em; margin-bottom: 1em; margin-left: 2em; margin-right: 1em; font-size: .7em; } .display_type { font-family: "Media77-Medium"; margin-top: 1.3em; margin-bottom: .2em; font-size: .7em; } /* ---- CAPTIONS ---- */ .caption { font-family: "TheinhardtMed"; font-size: .7em; margin-top: .5em; margin-bottom: 1em; text-align: left; } .caption1 { font-family: "TheinhardtMed"; font-size: .7em; margin-top: 1em; margin-bottom: 1em; text-align: left; } .caption_1_hd { font-family: "TheinhardtMed"; font-size: 1.2em; margin-top: .5em; margin-bottom: .5em; text-align: left; } .caption_1_txt { font-family: "TheinhardtReg"; font-size: .7em; margin-top: .5em; margin-bottom: 1em; text-align:left; } .caption_2_hd { font-family: "TheinhardtBold"; margin-top: 1em; margin-bottom: .5em; text-align:left; } .caption_2_txt { font-family: "TheinhardtReg"; font-size: .7em; margin-top: .2em; margin-bottom: .2em; text-align: left; } /* ---- SIDE BARS ---- */ /* ---- add font family and font size to div.sidebar ---- */ div.sidebar { margin-top: .2em; margin-bottom: .2em; background-color: RGB(112,213,73); padding-top: 3%; padding-bottom: 1%; padding-left: 3%; padding-right: 3%; } .sidebar1_hd {} .sidebar1_hdnote { font-family: "TheinhardtReg"; margin: 1.2em 0 0 0; font-size: .7em; } .sidebar1_txt { font-family: "Media77-Medium"; margin-top: 3em; margin-bottom: .2em; margin-left: 1.2em; font-size: .7em; } .sidebar2_hd {} .sidebar2_hdnote {} .sidebar2_txt { font-family: "Media77-Medium"; margin-top: 1.3em; margin-bottom: .2em; margin-left: 1.2em; text-indent: -.8em; font-size: .7em; } /* ---- LISTS ---- */ ol { font-family: "Media77-Regular"; font-size: small; list-style-type: decimal; margin-top: .5em; margin-bottom: .5em; } ul { font-family: "Media77-Regular"; font-size: small; list-style-type: none; margin-top: 1em; margin-bottom: .5em; margin-left: 1.1em; text-indent: -1.1em; } ul.alternate_style { list-style-type: none; padding: 0; margin-bottom: 1em; } li { margin-bottom: .2em; } .ingred_sublist {} .footnotes { font-family: "Media77-Medium"; margin-top: .2em; margin-bottom: .2em; margin-left: 1.2em; text-indent: -.8em; font-size: .7em; } .footnotes1 { font-family: "Media77-Medium"; margin-top: .2em; margin-bottom: .2em; margin-left: 1.4em; text-indent: -1.4em; font-size: .7em; } /* ---- IMAGES ---- */ /* ---- Large images have no margin ---- */ div.wrap { vertical-align: top; text-align: left; margin: 1em 0 .2em 0; } /* ---- smaller images will have a margin ---- */ div.wrap_small { text-align: left; margin: 1em 0 1em 0; } /* -- all images should have p tag -- */ p.image { text-align: left; margin-top: .5em; margin-bottom: .5em; } /* -- images that are largest on the vertical side -- */ img.vertical { margin: 0; text-align: left; height: 90%; max-width: 100%; } /* -- images that are largest on the horizontal side -- */ img.horizontal { margin: 0; text-align: left; width: 100%; height: auto; } .image_bkg { text-align: center; margin-top: .5em; margin-bottom: .5em; } .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-before: always;} /* ---- FRACTIONS ---- */ sup { vertical-align: super; font-size: .6em; line-height: 0; } sub { vertical-align: sub; font-size: .7em; line-height: 0; } /* ---- TABLES ---- */ div.table { margin: 0; } table { border-collapse: collapse; width: 100%; margin-top: 1em; margin-bottom: .5em; text-align: left; } .table { font-family: "TheinhardtReg"; margin-top: .2em; margin-bottom: .2em; text-align: left; } td { padding: 3px 5px; vertical-align: top; } /* ---- COLORS ---- */ /* -- ok to use span tags, change class name and attributes if needed, don't add classes -- */ span.red {color: RGB(155,3,48);} span.orange {color: RGB(241,90,34);} span.yellow {color: RGB(87,92,2);} span.green {color: RGB(112,213,73);} span.blue {color: RGB(32,28,63);} span.purple {color: RGB(204,153,255);} span.pink {color: RGB(255,153,204);} span.gray {color: RGB(153,153,153);} .font1 { font-family: "Media77-Medium"; } .font2 { font-family: "TheinhardtMed"; } .font3 { font-family: "TheinhardtBold"; } .font4 { font-family: "TimesRoman"; } .underline { text-decoration: underline; } .borderbottom { border-bottom: solid 1px; } .bordertopbottom { border-top: solid 1px; border-bottom: solid 1px; } p.indexmain { font-family: "TheinhardtReg"; margin-top: .1em; margin-bottom: .1em; margin-left: 1em; text-indent: -1em; font-size: .7em; } p.indexmain1 { font-family: "TheinhardtReg"; margin-top: 1.2em; margin-bottom: .2em; margin-left: 1em; text-indent: -1em; font-size: .7em; }