/* -- 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: "35-FTRNeue-Regular"; src: url("../fonts/35-FTRNeue-Regular.otf"); font-weight: normal; font-style: normal; } @font-face { font-family: "35-FTRNeue-Bold"; src: url("../fonts/35-FTRNeue-Bold.otf"); font-weight: normal; font-style: normal; } @font-face { font-family: "35-FTRNeue-DemiBold"; src: url("../fonts/35-FTRNeue-DemiBold.otf"); } @font-face { font-family: "35-FTRNeue-ExtraBold"; src: url("../fonts/35-FTRNeue-ExtraBold.otf"); } @font-face { font-family: "35-FTRNeue-Light"; src: url("../fonts/35-FTRNeue-Light.otf"); } @font-face { font-family: "64-SRC-Medium"; src: url("../fonts/64-SRC-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-family: "35-FTRNeue-Regular"; font-size: 1em; text-align: left; line-height: 1.1em; background-color: RGB(33,31,32); padding-top: 1%; padding-bottom: 2%; padding-left: 3%; padding-right: 3%; } div#copyright p { font-family: "35-FTRNeue-Regular"; margin-top: 1em; color: RGB(255,255,255); } /* ---- TOC ---- */ .toc { font-family: "35-FTRNeue-ExtraBold"; font-size: 140%; margin-top: 1em; margin-bottom: 0em; } .toc1t { font-family: "35-FTRNeue-ExtraBold"; font-size: 100%; margin-top: 1em; margin-bottom: 0em; } .toc1 { font-family: "35-FTRNeue-ExtraBold"; font-size: 100%; margin-top: 0em; margin-bottom: 0em; } /* ---- 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: "35-FTRNeue-Bold"; font-size: 130%; margin-top: 1em; margin-bottom: 7%; } h2 { font-family: "35-FTRNeue-Bold"; font-size: 130%; margin-top: 1em; margin-bottom: 2em; } h3 {} h4 {} h5 {} h6 {} /* ---- Use the following for subheads that follow a header style---- */ .section_title {} .section_hd {} h1.chapter_title { font-family: "35-FTRNeue-ExtraBold"; font-size: 180%; margin-top: 1em; margin-bottom: 2em; } .chapter_hd {} /* ---- 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: "35-FTRNeue-Regular"; font-size: 100%; margin: 1em 0 0 0; } p.first1_noindent { font-family: "35-FTRNeue-DemiBold"; font-size: 110%; margin: 1em 0 0 0; } p.first2_noindent { font-family: "35-FTRNeue-Regular"; margin: 1em 0 0 0; } /* indent styles, p.text_indent is the default p tag for indent with a bottom margin */ p.text_indent { font-family: "64-SRC-Medium"; font-size: 65%; margin: 0.3em 0 0.2em 0; } p.first1_indent { font-family: "35-FTRNeue-Regular"; font-size: 100%; margin: 0 0 0 0; } p.first2_indent { margin: 2em 0 0 0; text-indent: 1em; } /* basic left, right, center classes */ p.left { font-family: "35-FTRNeue-DemiBold"; font-size: 100%; margin-top: .2em; margin-bottom: .2em; text-align: left; } p.right { font-family: "35-FTRNeue-Regular"; font-size: 1em; margin-top: 1em; margin-bottom: 0em; margin-left: .3em; margin-right: .3em; } p.center { font-family: "35-FTRNeue-DemiBold"; font-size: 1em; margin-top: .1em; margin-bottom: .1em; text-align: left; } /* 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: "35-FTRNeue-Bold"; font-size: 110%; margin-top: 1em; margin-bottom: 1em; } /* -- RECIPE BOOKS -- */ p.recipe_hdnote { text-indent: 0; text-align: left; margin-bottom: 1em; } .yield { font-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-family: "35-FTRNeue-Light"; } /* ---- CAPTIONS ---- */ .caption { font-family: "35-FTRNeue-DemiBold"; margin-top: .2em; margin-bottom: .2em; margin-left: 1.2em; text-indent: -1.2em; text-align: left; } .caption_1_hd {} .caption_1_txt { font-family: "35-FTRNeue-DemiBold"; font-size: .9em; margin-top: 1em; margin-bottom: .2em; } .caption_2_hd {} .caption_2_txt {} /* ---- SIDE BARS ---- */ /* ---- add font family and font size to div.sidebar ---- */ div.sidebar { margin-top: 1em; margin-bottom: 0em; background-color: RGB(243,243,244); padding-top: 3%; padding-bottom: 2%; padding-left: 3%; padding-right: 3%; } .sidebar1_hd { font-family: "35-FTRNeue-DemiBold"; font-size: 100%; margin: 1em 0 0 0; } .sidebar1_hdnote { font-family: "35-FTRNeue-Regular"; font-size: 100%; margin: 2em 0 0 0; } .sidebar1_txt { font-family: "35-FTRNeue-Regular"; font-size: 100%; margin: 1em 0 0 0; } .sidebar2_hd { font-family: "35-FTRNeue-DemiBold"; font-size: 100%; margin: 2em 0 0 0; } .sidebar2_hdnote {} .sidebar2_txt { font-family: "35-FTRNeue-Regular"; font-size: 100%; margin: .1em 0 0 0; } /* ---- LISTS ---- */ ol li { font-family: "35-FTRNeue-Regular"; list-style-type: decimal; margin-top: .2em; margin-bottom: .2em; } ul { font-family: "35-FTRNeue-Regular"; font-size: 1em; list-style-type: disc; margin-top: 1em; } ul.alternate_style li { font-family: "35-FTRNeue-Regular"; font-size: 1em; list-style-type: disc; margin-top: .1em; margin-bottom: 0em; } li { margin-bottom: .5em; } .ingred_sublist {} .footnotes {} /* ---- IMAGES ---- */ /* ---- Large images have no margin ---- */ div.wrap { vertical-align: top; text-align: center; margin-top: 1em; margin-bottom: 0em; page-break-inside: avoid; } /* ---- smaller images will have a margin ---- */ div.wrap_small { text-align: center; margin: 1em 0 1em 0; page-break-inside: avoid; } /* -- all images should have p tag -- */ p.image { text-align: center; margin-top: 1em; margin-bottom: 0.5em; } /* -- images that are largest on the vertical side -- */ img.vertical { margin: 0; text-align: center; max-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-top: 1em; margin-bottom: 1em; width: 100%; } td { vertical-align: top; } .table { font-family: "35-FTRNeue-Regular"; font-size: 1em; margin-top: 0.1em; margin-bottom: 0em; margin-left: .3em; margin-right: .3em; } /* ---- COLORS ---- */ /* -- ok to use span tags, change class name and attributes if needed, don't add classes -- */ span.white {color: RGB(255,255,255);} 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);} .font1 { font-family: "35-FTRNeue-DemiBold"; } .font2 { font-family: "64-SRC-Medium"; font-size: 75%; } .font3 { font-family: "64-SRC-Medium"; font-size: 55%; } .underline { text-decoration: underline; } .space { padding-left: 3%; } .space1 { padding-left: .07%; } .borderbottomright { border-bottom: solid 1px; border-right: solid 1px; } .borderbottom { border-bottom: solid 1px; } .borderright { border-right: solid 1px; } p.indexmain1 { font-family: "35-FTRNeue-DemiBold"; font-size: 1em; margin: 1em 0 0 0; } p.indexmain { font-family: "35-FTRNeue-DemiBold"; font-size: 1em; margin: 0.1em 0 0 0; } p.indexsub { font-family: "35-FTRNeue-DemiBold"; font-size: 1em; margin: 0.1em 0 0 1.5em; }