/* -- 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: "NewCaledoniaLTStd"; src: url("../fonts/NewCaledoniaLTStd.otf"); font-weight: normal; font-style: normal; } @font-face { font-family: "NewCaledoniaLTStd"; src: url("../fonts/NewCaledoniaLTStd-It.otf"); font-weight: normal; font-style: italic; } @font-face { font-family: "Geometric415BT-BlackA"; src: url("../fonts/Geometric415BT-BlackA.otf"); font-weight: normal; font-style: normal; } @font-face { font-family: "Geometric415BT-BlackA"; src: url("../fonts/Geometric415BT-BlackItalicA.otf"); font-weight: normal; font-style: italic; } @font-face { font-family: "Geometric415BT-LiteItalicA"; src: url("../fonts/Geometric415BT-LiteItalicA.otf"); font-weight: normal; font-style: italic; } @font-face { font-family: "Geometric415BT-MediumA"; src: url("../fonts/Geometric415BT-MediumA.otf"); font-weight: normal; font-style: normal; } @font-face { font-family: "Geometric415BT-MediumA"; src: url("../fonts/Geometric415BT-MediumItalicA.otf"); font-weight: normal; font-style: italic; } @font-face { font-family: "Akkurat"; src: url("../fonts/Akkurat.otf"); font-weight: normal; font-style: normal; } @font-face { font-family: "Akkurat"; src: url("../fonts/Akkurat-Bold.otf"); font-weight: bold; font-style: normal; } @font-face { font-family: "Akkurat"; src: url("../fonts/Akkurat-Italic.otf"); font-weight: normal; font-style: italic; } @font-face { font-family: "Calibri"; src: url("../fonts/Calibri.otf"); font-weight: normal; font-style: normal; } @font-face { font-family: "Calibri"; src: url("../fonts/Calibri-Italic.otf"); font-weight: normal; font-style: italic; } /* ---- 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: "NewCaledoniaLTStd"; text-align: left; line-height: 1.1em; } div#copyright p { font-family: "NewCaledoniaLTStd"; margin-top: 1em; margin-bottom: 0em; } /* ---- TOC ---- */ .toc { font-family: "NewCaledoniaLTStd"; margin-top: 1.2em; } .tocp { font-family: "Geometric415BT-BlackA"; margin-top: 1.2em; border-bottom: 2px solid RGB(245,127,32); } .tocl { font-family: "NewCaledoniaLTStd"; margin-top: 1.2em; margin-left: 2em; text-indent: -2em; } .toc1 { font-family: "NewCaledoniaLTStd"; margin-left: 4%; } .toc2 { font-family: "NewCaledoniaLTStd"; margin-left: 10%; } /* ---- 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 { font-family: "Geometric415BT-BlackA"; font-style: italic; margin-top: 10%; font-size: 175%; } h2 { font-family: "Geometric415BT-BlackA"; font-style: italic; margin-top: 5%; color: RGB(245,127,32); } h3 { font-family: "Geometric415BT-BlackA"; font-style: italic; margin-top: 5%; color: RGB(245,127,32); } h4 {} h5 {} h6 {} /* ---- Use the following for subheads that follow a header style---- */ .section_title {} .section_hd {} .chapter_title { font-family: "Geometric415BT-BlackA"; font-style: italic; margin-top: 10%; margin-left: 1.7em; text-indent: -1.7em; } .chapter_hd { font-family: "Geometric415BT-BlackA"; font-style: italic; margin-top: 10%; color: RGB(245,127,32); } /* ---- 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: "NewCaledoniaLTStd"; margin: 0 0 0 0; } p.first1_noindent { font-family: "NewCaledoniaLTStd"; margin: 1.5em 0 0 1.5em; } p.first2_noindent { font-family: "Akkurat"; margin: 1.5em 0 1.5em 0; line-height: 1.5em; } /* indent styles, p.text_indent is the default p tag for indent with a bottom margin */ p.text_indent { font-family: "NewCaledoniaLTStd"; margin: 0 0 0 0; text-indent: 1.5em; } p.first1_indent { font-family: "NewCaledoniaLTStd"; margin: 0 0 1.5em 1.5em; } p.first2_indent { font-family: "NewCaledoniaLTStd"; margin: 1.5em 0 0 0; text-indent: 1.5em; } /* basic left, right, center classes */ p.left { font-family: "Geometric415BT-BlackA"; margin: 1.5em; color: RGB(245,127,32); text-align: left; line-height: 1.5em; } p.right { font-family: "NewCaledoniaLTStd"; margin: 1.5em 0 0 0; } p.center { font-family: "Geometric415BT-MediumA"; margin: 0 0 2em 0; color: RGB(245,127,32); line-height: 1.5em; 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: "Akkurat"; margin: 1.5em 0 1em 1.5em; line-height: 1.5em; } /* -- RECIPE BOOKS -- */ p.recipe_hdnote { text-indent: 0; text-align: left; margin-bottom: 1em; } .yield { font-family: "Calibri"; font-size: 0.7em; margin: 0em; } 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 { font-family: "Geometric415BT-BlackA"; text-align:left; margin: 1em; font-size:1.5em; color: RGB(245,127,32); } .display_type { font-size: large; } /* ---- CAPTIONS ---- */ .caption { font-family: "Akkurat"; margin: 0.8em 0 1em 0; text-align:left; 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: 1em 0 0 0; background-color: RGB(35,31,32); padding: 3%; } .sidebar1_hd { font-family: "Akkurat"; margin-top: 1.5em; margin-bottom: 1.5em; padding-top: 3%; padding-bottom: 3%; border-top: 3px solid RGB(245,127,32); border-bottom: 3px solid RGB(245,127,32); color: RGB(245,127,32); text-align: center; } .sidebar1_hdnote { font-family: "Geometric415BT-MediumA"; margin: 0 0 0 1.5em; color: RGB(255,255,255); } .sidebar1_txt { font-family: "Geometric415BT-MediumA"; margin: 0em; color: RGB(255,255,255); } .sidebar2_hd { font-family: "Geometric415BT-BlackA"; margin: 0em; color: RGB(245,127,32); } .sidebar2_hdnote { font-family: "Geometric415BT-BlackA"; margin: 1.5em 0 0 0; color: RGB(245,127,32); } .sidebar2_txt { font-family: "Geometric415BT-MediumA"; margin: 0.3em 0 0 0; text-indent: 1.5em; color: RGB(255,255,255); } /* ---- LISTS ---- */ ol li { font-family: "NewCaledoniaLTStd"; list-style-type: decimal; padding: 0px; margin-bottom: 0em; font-size: 0.8em; } ul.arrow2 li { font-family: "Geometric415BT-MediumA"; list-style-image: url(../images/arrow2.jpg); margin-bottom: 0em; color: RGB(255,255,255); font-size: 0.8em; } ul.alternate_style { font-family: "NewCaledoniaLTStd"; list-style-image: url(../images/arrow.jpg); margin-bottom: 1em; font-size: 0.8em; } .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:0.5em 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 { vertical-align: middle; } .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 ---- */ .table { font-family: "Akkurat"; margin: 0em; } table { border-collapse: collapse; margin: 1.5em 0 0 0; text-align: left; border-top: 3px solid RGB(245,127,32); } td, th { padding: 3px 5px; border-bottom: 3px solid RGB(245,127,32); } /* ---- 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(245,127,32);} span.yellow {color: RGB(87,92,2);} span.green {color: RGB(87,151,133);} span.blue {color: RGB(32,28,63);} span.purple {color: RGB(204,153,255);} span.pink {color: RGB(255,153,204);} span.white {color: RGB(255,255,255);} span.font1 {font-family: "Geometric415BT-BlackA";} div.sidebar1 { margin: 1em 0 1em 0; padding: 1% 0 1% 0; border-top: 3px solid RGB(245,127,32); border-bottom: 3px solid RGB(245,127,32); } div.sidebar2 { margin: 0 0 1em 0; padding: 0 0 1% 0; border-bottom: 3px solid RGB(245,127,32); } div.sidebar3 { margin: 1em 0 1em 0; padding: 1% 0 1% 0; border-top: 3px solid RGB(255,255,255); border-bottom: 3px solid RGB(255,255,255); } ul.arrow1 li { font-family: "Geometric415BT-MediumA"; list-style-image: url(../images/arrow1.jpg); padding: 0px; margin-bottom: 0em; color: RGB(245,127,32); font-size: 0.8em; } ol.hang li { font-family: "NewCaledoniaLTStd"; list-style-type: none; margin-left: 2em; text-indent: -2em; padding: 0px; margin-bottom: 0em; font-size:0.8em; } p.indexmain { font-family: "NewCaledoniaLTStd"; margin: 0 0 0 2em; text-indent: -2em; }