/* -- 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: "Avenir-Book"; src: url("../fonts/Avenir-Book.otf"); } @font-face { font-family: "Avenir-Book"; src: url("../fonts/Avenir-BookOblique.otf"); font-style:italic; } @font-face { font-family: "Avenir-Roman"; src: url("../fonts/Avenir-Roman.otf"); } @font-face { font-family: "Avenir-Roman"; src: url("../fonts/Avenir-Oblique.otf"); font-style:italic; } @font-face { font-family: "Avenir-Black"; src: url("../fonts/Avenir-Black.otf"); } @font-face { font-family: "Avenir-Black"; src: url("../fonts/Avenir-BlackOblique.otf"); font-style: italic; } @font-face { font-family: "Avenir-Heavy"; src: url("../fonts/Avenir-Heavy.otf"); } @font-face { font-family: "Avenir-NextBold"; src: url("../fonts/Avenir-NextBold.otf"); } @font-face { font-family: "Avenir-NextMedium"; src: url("../fonts/Avenir-NextMedium.otf"); } @font-face { font-family: "Bookmania"; src: url("../fonts/Bookmania.otf"); } @font-face { font-family: "Bookmania"; src: url("../fonts/Bookmania-Bold.otf"); font-weight: bold; } @font-face { font-family: "BrandonGrotesque-Regular"; src: url("../fonts/BrandonGrotesque-Regular.otf"); } @font-face { font-family: "BrandonGrotesque-Regular"; src: url("../fonts/BrandonGrotesque-RegularItalic.otf"); font-style: italic; } @font-face { font-family: "Moon-Light"; src: url("../fonts/Moon-Light.otf"); } @font-face { font-family: "Moon-Bold"; src: url("../fonts/Moon-Bold.otf"); } @font-face { font-family: "HVD-Fonts-BrandonText-Regular"; src: url("../fonts/HVD-Fonts-BrandonText-Regular.otf"); } @font-face { font-family: "HVD-Fonts-BrandonText-Regular"; src: url("../fonts/HVDFonts-BrandonText-Bold.otf"); font-weight: bold; } @font-face { font-family: "HVDFonts-BrandonText-Medium"; src: url("../fonts/HVDFonts-BrandonText-Medium.otf"); } /* ---- ALL MAIN P STYLES ARE HERE, NO NEED TO DUPLICATE ATTRIBUTES ---- */ p { margin: 0; text-align:left; font-size: 0.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); 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-size: 0.7em; font-family: "Bookmania"; text-align: left; line-height: 1.1em; } div#copyright p { font-family: "Bookmania"; margin-top: 1em; margin-bottom: 0em; text-align: left; } /* ---- TOC ---- */ .tocfm { font-family: "Moon-Bold"; font-size: large; margin-top: 1.5em; margin-bottom: 0em; } .tocch { font-family: "Moon-Bold"; font-size: large; margin-top: 2em; margin-bottom: 0em; } .tocch1 { font-family: "BrandonGrotesque-Regular"; font-size: large; margin-top: 0.2em; margin-bottom: 0em; } .tocch1a { font-family: "BrandonGrotesque-Regular"; font-size: medium; margin-top: 0.2em; margin-bottom: 0em; } .tocch1b { font-family: "HVDFonts-BrandonText-Medium"; font-size: medium; margin-top: 0.8em; margin-bottom: 1em; } .tocbmt { font-family: "Moon-Bold"; font-size: large; margin-top: 2em; margin-bottom: 0em; } .tocbm { font-family: "Moon-Bold"; font-size: large; margin-top: 0.3em; margin-bottom: 0em; } .toct { font-family: "BrandonGrotesque-Regular"; margin: 1.5em 0 0 0; } .toc { font-family: "BrandonGrotesque-Regular"; margin: 0.3em 0 0 0; } .toclev1a { font-family: "BrandonGrotesque-Regular"; margin-top: 0em; margin-bottom: 0em; margin-left: 1em; } .toclev1b { font-family: "BrandonGrotesque-Regular"; margin-top: 0em; margin-bottom: 0em; margin-left: 2em; } /* ---- 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; font-style:normal; font-weight:normal;} h1 {} h2 { font-family: "HVD-Fonts-BrandonText-Regular"; font-weight: bold; margin-top: 5%; margin-bottom: 0; text-align: left; } h3 { font-family: "HVDFonts-BrandonText-Medium"; margin-top: 3%; margin-bottom: 0; text-align: left; } h4 {} h5 {} h6 {} /* ---- Use the following for subheads that follow a header style---- */ .section_title { font-family: "Moon-Light"; margin-top: 3%; margin-bottom: 0; color: RGB(76,77,79); text-align: center; } .section_hd { font-family: "HVDFonts-BrandonText-Medium"; font-size: large; margin-top: 3%; margin-bottom: 0; color: RGB(76,77,79); text-align: center; } .chapter_title { font-family: "Moon-Light"; margin-top: 3%; margin-bottom: 0; text-align: left; } .chapter_hd { font-family: "BrandonGrotesque-Regular"; font-size: xx-large; margin-top: 3%; margin-bottom: 0; color: RGB(76,77,79); text-align: center; } /* ---- 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: "Avenir-Roman"; margin: 0 0 0 0; } p.first1_noindent { font-family: "BrandonGrotesque-Regular"; margin: 1.5em 0 0 0; } p.first2_noindent { font-family: "Bookmania"; margin: 2em 0 0 0; } /* indent styles, p.text_indent is the default p tag for indent with a bottom margin */ p.text_indent { font-family: "HVDFonts-BrandonText-Medium"; margin: 0.5em 0 0 0; } p.first1_indent { font-family: "Bookmania"; margin: 1.1em 0 0 0; color: RGB(88,88,90); } p.first2_indent { font-family: "Avenir-Roman"; margin: 2em 0 0 0; } /* basic left, right, center classes */ p.left { text-align: left; } p.right { text-align: right; } p.center { font-family: "Avenir-NextMedium"; margin: 2em 0 0 0; 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: "HVD-Fonts-BrandonText-Regular"; font-size: large; margin: 1.3em 0 0 0; } /* -- 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 { 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-before: always; } .sidebar1_hd {} .sidebar1_hdnote {} .sidebar1_txt {} .sidebar2_hd { } .sidebar2_hdnote {} .sidebar2_txt {} /* ---- LISTS ---- */ ol { list-style-type: none; padding: 0px; margin-bottom: 1em; } ul { list-style-type: none; padding: 0px; margin-bottom: 1em; } ul.alternate_style { list-style-type: none; padding: 0px; margin-bottom: 1em; } li { margin-bottom: .5em; } .ingred_sublist {} .footnotes {} /* ---- IMAGES ---- */ /* ---- Large images have no margin ---- */ div.wrap { vertical-align: top; text-align: center; margin:0; } /* ---- smaller images will have a margin ---- */ div.wrap_small { text-align: center; margin: 1em 0 1em 0; } /* -- all images should have p tag -- */ p.image { text-align: center; margin:1em 0 0 0; } /* -- images that are largest on the vertical side -- */ img.vertical { margin: 0; text-align: center; height: 90%; max-width: 100%; } /* -- images that are largest on the horizontal side -- */ img.horizontal { margin: 0; text-align: center; width: 100%; height: auto; } .image_bkg { text-align: left; margin:0.5em 0 0 0; } .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; padding-top: 0.4em; } /* ---- 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: 0em; } table { border-collapse: collapse; margin: 0em; text-align: left; } td, th { padding: 3px 5px; } /* ---- 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,85);} span.yellow {color: RGB(249,157,28);} span.green {color: RGB(96,187,70);} span.blue {color: RGB(0,184,222);} span.purple {color: RGB(113,126,189);} span.pink {color: RGB(239,89,148);} span.gray {color: RGB(153,153,153);} img.inline {vertical-align: middle;} span.font1 {font-family: "Avenir-Book";} span.font2 {font-family: "HVDFonts-BrandonText-Medium";} span.font3 {font-family: "Avenir-Heavy";} span.font4 {font-family: "Avenir-NextBold";} span.medium {font-size: medium;} .imagec { text-align: left; margin: 0 0 0 0; } p.text_noindent399 { font-family: "Avenir-Heavy"; margin: 1.3em 0 0 0; } p.text_noindent399t { font-family: "Avenir-Roman"; margin: 1.5em 0 0 0; } p.indexmain1 { font-family: "Avenir-Black"; margin: 1em 0 0 0; } p.indexmain { font-family: "Avenir-Roman"; margin: 0 0 0 0; } p.indexsub { font-family: "Avenir-Roman"; margin: 0 0 0 1em; }