/* -- 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: "Maxime"; src: url("../fonts/Maxime.otf"); } @font-face { font-family: "Maxime"; src: url("../fonts/Maxime-Bold.otf"); font-weight: bold; } @font-face { font-family: "Maxime"; src: url("../fonts/Maxime-Italic.otf"); font-style: italic; } @font-face { font-family: "Avenir-Book"; src: url("../fonts/Avenir-Book.otf"); } @font-face { font-family: "Avenir-Book"; src: url("../fonts/Avenir-Medium.otf"); font-weight: bold; } @font-face { font-family: "Avenir-Book"; src: url("../fonts/Avenir-Oblique.otf"); font-style: italic; } @font-face { font-family: "AvenirNext"; src: url("../fonts/AvenirNext-Regular.otf"); } @font-face { font-family: "AvenirNext"; src: url("../fonts/AvenirNext-Medium.otf"); font-weight: bold; } @font-face { font-family: "AvenirNext"; src: url("../fonts/AvenirNext-MediumItalic.otf"); font-weight: bold; font-style: italic; } @font-face { font-family: "AvenirNext"; src: url("../fonts/AvenirNext-Italic.otf"); font-style: italic; } @font-face { font-family: "FreightMicro"; src: url("../fonts/FreightMicroBook.otf"); } @font-face { font-family: "FreightMicro"; src: url("../fonts/FreightMicroBold.otf"); font-weight: bold; } @font-face { font-family: "FreightMicroMedium"; src: url("../fonts/FreightMicroMedium.otf"); font-weight: bold; } @font-face { font-family: "FreightMicroMedium"; src: url("../fonts/FreightMicroMediumItalic.otf"); font-style:italic; } @font-face { font-family: "FreightMicroMediumSC"; src: url("../fonts/FreightMicroMediumSC.otf"); } @font-face { font-family: "FreightSansBold"; src: url("../fonts/FreightSansBold.otf"); font-weight: bold; } /* ---- 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: "Maxime", 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: "Avenir-Book"; text-align: left; color: RGB(110,61,52); line-height: 1.1em; } div#copyright p { font-family: "Avenir-Book"; text-align: left; margin-top: 1em; } /* ---- TOC ---- */ .toc { font-family: "FreightMicro"; } .toc1 { font-family: "FreightMicro"; margin-top: 1.5em; } .toc2 { font-family: "Maxime"; margin-left: 1.5em; text-indent: -0.7em; } /* ---- 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: "FreightMicroMediumSC"; padding-left: 1%; padding-bottom: 1%; padding-top: 2%; color: RGB(211,97,72); } h2 { font-family: "FreightMicroMedium"; color: RGB(211,97,72); } h3 { font-family: "FreightMicroMedium"; text-align: left; margin-top: 1.5em; margin-bottom: .5em; font-weight: bold; } h4 { font-family: "Maxime-Bold"; text-align: left; margin-top: .5em; margin-bottom: 0; font-size: 90%; } h5 {} h6 {} /* ---- Use the following for subheads that follow a header style---- */ .section_title { font-family: "FreightMicro"; border-top: dotted 2px RGB(139,54,39); border-bottom: dotted 2px RGB(139,54,39); color: RGB(110,62,52); text-align: center; } .section_hd { font-family: "FreightMicroMedium"; text-align: left;} .chapter_title { font-family: "Maxime"; color: RGB(129,89,76); text-align: center;} .chapter_hd { font-family: "Maxime";} .center { font-family: "FreightMicroMedium"; text-align: center; margin-top: 1em; margin-bottom: .5em; } .center2 { font-family: "FreightMicroMedium"; color: RGB(211,97,72); text-align: center; margin-top: 1em; margin-bottom: .5em; page-break-before: always; } .center3 { font-family: "Maxime"; text-align: center; margin-top: .5em; margin-bottom: 0; font-size: 90%; font-weight: bold; } /* ---- 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: "AvenirNext"; margin: 0 0 1em 0; color: RGB(129,89,76); } p.first1_noindent { font-family: "Maxime"; margin: 0 0 0 0; color: RGB(128,89,75); } p.first2_noindent { font-family: "Maxime"; margin: 1em 0 0em 0; color: RGB(128,89,75); } p.first3_noindent { font-family: "Maxime"; margin: 1em 0 0 1em; color: RGB(128,89,75); } p.first4_noindent { font-family: "Maxime"; margin: 0 0 0 1em; color: RGB(128,89,75); } p.first5_noindent { font-family: "Maxime"; margin: 1em 0 1em 0; color: RGB(128,89,75); } p.first6_noindent { font-family: "Maxime"; margin: 0 0 1em 0; color: RGB(128,89,75); } /* indent styles, p.text_indent is the default p tag for indent with a bottom margin */ p.text_indent { font-family: "Maxime"; text-indent: 1em; } p.first1_indent { font-family: "FreightMicro"; margin: 1em 0 0 0; } p.first2_indent { font-family: "Avenir-Book"; margin: 1em 0 0.2em 0; color: RGB(211,97,72); } p.first3_indent { font-family: "Avenir-Book"; margin: 1em 0 0.2em 1em; color: RGB(211,97,72); } /* basic left, right, center classes */ p.left { font-family: "FreightMicroMediumSC"; margin: 1em 0 0 0; } p.right { text-align: right; } p.center { font-family: "Maxime"; margin: 1.5em 0 0 0; text-align: center; } p.center1 { font-family: "Maxime"; margin: 0 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: "AvenirNext"; margin: 0 0 1em 0; color: RGB(211,97,72); } /* -- 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 { font-size: x-small; } /* ---- 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-top: 0.5em; margin-bottom: 0.5em; padding-top: 0.3%; padding-bottom: 0.3%; padding-left: 1%; page-break-before: always; background-color: RGB(211,97,72); } .sidebar1_hd { font-family: "Maxime"; color: RGB(214,99,74); margin-top: 1.5em; margin-bottom: 0.5em; text-align: center; font-size: 100%; } .sidebar1_hdnote {} .sidebar1_txt { font-family: "AvenirNext"; margin: 0 0.5em 0em 0.5em; color: RGB(129,89,76); } .sidebar2_hd { font-family: "Maxime"; color: RGB(214,99,74); margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } .sidebar2_hdnote {} .sidebar2_txt { font-family: "AvenirNext"; margin: 0 0.5em 1em 0.5em; color: RGB(129,89,76); } /* ---- LISTS ---- */ ol li { list-style-type: none; font-family: "Maxime"; padding: 0px; margin-left: 1.5em; text-indent: -1em; margin-bottom: .5em; color: RGB(211,97,72); font-size: 80%; line-height: 1em; } ul li { list-style-type: none; font-family: "Maxime"; padding: 0px; margin-left: 0.5em; margin-bottom: .5em; color: RGB(129,89,76); font-size: 80%; line-height: 1em; } ul.alternate_style li { font-family: "Avenir-Book"; list-style-image: url("../images/bullet.jpg"); padding: 0px; margin-bottom: 1em; margin-left: 0.5em; margin-right: 0.5em; line-height: 1em; } .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: .5em 0 0 0; } p.image2 { text-align: center; margin: 1em 0 0 0; } p.image2 { text-align: center; margin: .5em 0 1em 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 { 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: 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(110,61,52);} span.orange {color: RGB(241,90,34);} 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.gray {color: RGB(153,153,153);} span.font {font-family: "FreightMicro";} span.color2 {color: RGB(211,97,72)} span.color3 {color: RGB(129,89,76);} span.font1 {font-family: "FreightSansBold"; color: RGB(211,97,72);} span.border {border-bottom: dotted 2px RGB(211,97,72);} span.border2 {border-bottom: dotted 2px RGB(211,97,72); border-top: dotted 2px RGB(211,97,72);} span.font3 {font-family: "FreightMicroMedium";} div.sidebar1 { margin: 0; page-break-before: always; background-color: RGB(253,232,225); } div.sidebar2 { margin-top: 0.5em; margin-bottom: 0.5em; padding-top: 0.3%; padding-bottom: 0.3%; padding-left: 1%; page-break-before: always; background-color: RGB(139,54,40); } div.sidebar3 { margin-top: 0.5em; margin-bottom: 0.5em; padding-top: 0.3%; padding-bottom: 0.3%; padding-left: 1%; page-break-before: always; background-color: RGB(173,100,89); } div.sidebar4 { margin-top: 0.5em; margin-bottom: 0.5em; padding-top: 0.3%; padding-bottom: 0.3%; padding-left: 1%; page-break-before: always; background-color: RGB(167,72,53); } div.sidebar5 { margin-top: 0.5em; margin-bottom: 0.5em; padding-top: 0.3%; padding-bottom: 0.3%; padding-left: 1%; page-break-before: always; background-color: RGB(228,136,114); } div.sidebar6 { margin-top: 0.5em; margin-bottom: 0.5em; padding-top: 0.3%; padding-bottom: 0.3%; padding-left: 1%; page-break-before: always; background-color: RGB(110,61,52); } div.sidebar7 { margin-top: 0.5em; margin-bottom: 0.5em; padding-top: 0.3%; padding-bottom: 0.3%; padding-left: 1%; page-break-before: always; background-color: RGB(161,85,74); } div.sidebar8 { margin-top: 0.5em; margin-bottom: 0.5em; padding-top: 0.3%; padding-bottom: 0.3%; padding-left: 1%; page-break-before: always; background-color: RGB(176,106,96); } .indexmain { font-family: "Maxime"; margin: 0em 0 0em 0; color: RGB(128,89,75); } .indexmain1 { font-family: "Maxime"; margin: 1em 0 0em 0; color: RGB(128,89,75); }