/* -- 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: "FoundersGroteskText-Regular"; src: url("../fonts/FoundersGroteskText-Regular.otf"); letter-spacing: 0.05em; } @font-face { font-family: "FoundersGroteskText-Regular"; src: url("../fonts/FoundersGroteskText-Semibold.otf"); font-weight: bold; } @font-face { font-family: "FoundersGroteskText-Regular"; src: url("../fonts/FoundersGroteskText-RegularItalic.otf"); font-style: italic; } @font-face { font-family: "FoundersGroteskText-Regular"; src: url("../fonts/FoundersGroteskText-BoldItalic.otf"); font-weight: bold; font-style: italic; } @font-face { font-family: "TiemposText-Regular"; src: url("../fonts/TiemposText-Regular.otf"); } @font-face { font-family: "TiemposText-Regular"; src: url("../fonts/TiemposText-Semibold.otf"); font-weight: bold; } @font-face { font-family: "TiemposText-Regular"; src: url("../fonts/TiemposText-RegularItalic.otf"); font-style: italic; } @font-face { font-family: "TiemposText-Regular"; src: url("../fonts/TiemposText-BoldItalic.otf"); font-weight: bold; font-style: italic; } @font-face { font-family: "FoundersGroteskCond-Reg"; src: url("../fonts/FoundersGroteskCond-Reg.otf"); } @font-face { font-family: "FoundersGroteskCond-SmBd"; src: url("../fonts/FoundersGroteskCond-SmBd.otf"); font-weight: bold; letter-spacing: 0.05em; } @font-face { font-family: "FoundersGroteskCond-Med"; src: url("../fonts/FoundersGroteskCond-Med.otf"); font-weight: bold; letter-spacing: 0.05em; } @font-face { font-family: "FoundersGrotesk-Medium"; src: url("../fonts/FoundersGrotesk-Medium.otf"); font-weight: bold; letter-spacing: 0.05em; } @font-face { font-family: "FoundersGroteskText-Light"; src: url("../fonts/FoundersGroteskText-Light.otf"); letter-spacing: 0.05em; } @font-face { font-family: "FoundersGroteskText-Light"; src: url("../fonts/FoundersGroteskText-LightItalic.otf"); font-style: italic; letter-spacing: 0.1em; } @font-face { font-family: "FoundersGroteskText-Medium"; src: url("../fonts/FoundersGroteskText-Medium.otf"); } @font-face { font-family: "FoundersGroteskText-Medium"; src: url("../fonts/FoundersGroteskText-MediumItalic.otf"); font-style: italic; } @font-face { font-family: "FoundersGroteskXCond-SmBd"; src: url("../fonts/FoundersGroteskXCond-SmBd.otf"); letter-spacing: .1em; } /* ---- 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: "", 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: "FoundersGroteskText-Regular"; text-align: left; line-height: 1.1em; letter-spacing: 0.05em; } div#copyright p { font-family: "FoundersGroteskText-Regular"; margin-top: 1em; margin-bottom: 0.1em; letter-spacing: 0.05em; } /* ---- TOC ---- */ .toc { font-family: "TiemposText-Regular"; } .toca { font-family: "TiemposText-Regular"; } .tocauthor { font-family: "TiemposText-Regular"; color: RGB(113,116,77); } .toct { font-family: "FoundersGroteskText-Regular"; margin-top: 1.2em; margin-bottom: 0.2em; letter-spacing: 0.05em; } .toc1t { font-family: "TiemposText-Regular"; margin-top: 1.2em; margin-bottom: 0.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 {font-style:normal; font-weight:normal;} h1 { font-family: "FoundersGroteskCond-Med"; text-align: center; margin-bottom: .25em; letter-spacing: 0.05em; } h2 { font-family: "FoundersGroteskText-Regular"; margin-bottom: 0; text-align: left; font-size: 120%; letter-spacing: 0.05em; font-weight: bolder; } h3 {} h4 {} h5 {} h6 {} /* ---- Use the following for subheads that follow a header style---- */ .section_title { font-family: "FoundersGroteskXCond-SmBd"; text-align: center; font-size: 275%; } .section_hd {} .chapter_title { font-family: "FoundersGroteskCond-SmBd"; margin-top: 10%; color: RGB(113,116,77); letter-spacing: 0.05em; } .chapter_title1 { font-family: "FoundersGroteskCond-SmBd"; margin-top: 10%; color: RGB(0,0,0); letter-spacing: 0.05em; } .chapter_hd { font-family: "FoundersGroteskCond-SmBd"; margin-top: 10%; color: RGB(52,80,115); letter-spacing: 0.05em; } /* ---- 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: "TiemposText-Regular"; margin: 0 0 0 0; line-height: 1.5em; } p.text_noindent1 { font-family: "TiemposText-Regular"; margin: 2em 0 0 0; line-height: 1.5em; } p.first1_noindent { font-family: "FoundersGroteskText-Light"; margin: 0 0 0 0; font-size: 90%; letter-spacing: 0.06em; line-height:1.3em; } p.first2_noindent { font-family: "TiemposText-Regular"; margin: 1.5em 0 0 0; line-height: 1.5em; } p.first3_noindent { font-family: "TiemposText-Regular"; margin: 2em 0 0 0; line-height: 1.5em; } p.first4_noindent { font-family: "FoundersGroteskText-Light"; margin: 2em 0 0 0; font-size: 90%; letter-spacing: 0.05em; } p.first5_noindent { font-family: "TiemposText-Regular"; margin: 1em 0 0 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: "TiemposText-Regular"; text-indent: 1.5em; line-height: 1.5em; } p.first1_indent { font-family: "FoundersGroteskText-Light"; margin: 0 0 0 0; text-indent: 1.5em; font-size: 90%; letter-spacing: 0.05em; } p.first2_indent { font-family: "TiemposText-Regular"; margin: 1em 0 0 0; text-align: center; } p.first3_indent { font-family: "TiemposText-Regular"; margin: 0 0 0 0; text-align: center; font-size: 90%; } /* basic left, right, center classes */ p.left { font-family: "FoundersGroteskText-Medium"; margin: 1em 0 0 0; text-align: center; font-size: small; } p.right { font-family: "FoundersGroteskText-Regular"; margin: 2em 0 0 1.5em; text-align: left; letter-spacing: 0.05em; } p.center { font-family: "FoundersGroteskXCond-SmBd"; margin: 1em 0 0 0; text-align: center; font-size: 125%; letter-spacing: .1em; } p.center1 { font-family: "FoundersGroteskText-Medium"; margin: 10% 0 0 0; text-align: center; font-size: small; } /* 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: "FoundersGroteskText-Regular"; margin: 0.2em 0 1em 0; text-align: center; letter-spacing: 0.05em; font-size: 100%; } p.chapter_hdnote1 { font-family: "FoundersGroteskText-Regular"; margin: 0 0 1em 0; text-align: center; letter-spacing: 0.05em; font-size: 100%; } /* -- 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 { font-family: "FoundersGroteskText-Light"; text-align:left; margin-top: 1em; margin-bottom: 1em; letter-spacing: 0.05em; } .pull_quote1 { font-family: "FoundersGroteskText-Light"; text-align:left; margin-top: 1em; margin-bottom: 2em; letter-spacing: 0.05em; } .pull_quote2 { font-family: "FoundersGroteskText-Light"; text-align:left; margin-top: 2em; margin-bottom: 2em; letter-spacing: 0.05em; font-size: 90%; } .display_type { font-family: "FoundersGroteskText-Regular"; margin: 1em 0 0 0; text-align: left; letter-spacing: 0.05em; } /* ---- CAPTIONS ---- */ .caption { font-family: "FoundersGroteskText-Regular"; margin: 0.1em 0 1em 0; text-align:center; font-size:.7em; letter-spacing: 0.05em; } .caption_1_hd {} .caption_1_txt { font-family: "TiemposText-Regular"; margin: .5em 0 1em 0; text-align: center; page-break-before: always; font-size: 70%; } .caption_1_txt1 { font-family: "TiemposText-Regular"; margin: 0 0 1em 0; text-align: center; } .caption_2_hd {} .caption_2_txt { font-family: "TiemposText-Regular"; margin: .5em 0 1em 0; text-align: center; font-size: 70%; } .caption_3_txt { font-family: "TiemposText-Regular"; margin: 2em 0 1em 0; text-align: center; font-size: 70%; } /* ---- SIDE BARS ---- */ /* ---- add font family and font size to div.sidebar ---- */ div.sidebar { font-family: "TiemposText-Regular"; font-size: 0.9em; margin: 1.5em; page-break-inside: auto; } div.sidebar1 { background-color: RGB(0,0,0); margin: 1em; padding: 5em; color: RGB(255,255,255); } .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 { font-family: "FoundersGroteskText-Regular"; margin: 0 0 0 1.5em; text-indent: -1.5em; text-align: left; font-size: 65%; letter-spacing: 0.05em; } .footnotest { font-family: "FoundersGroteskText-Regular"; margin: 2em 0 0 1.5em; text-indent: -1.5em; text-align: left; font-size: 65%; letter-spacing: 0.05em; } /* ---- IMAGES ---- */ /* ---- Large images have no margin ---- */ div.wrap { vertical-align: top; text-align: center; margin:0; } div.contain { page-break-inside: avoid; } /* ---- smaller images will have a margin ---- */ div.wrap_small { text-align: center; margin: 0; } /* -- all images should have p tag -- */ p.image { text-align: center; margin: 1em 0 0.3em 0; } /* -- images that are largest on the vertical side -- */ img.vertical { margin: 0; text-align: center; height: 90%; max-width: 100%; } img.vertical1 { margin: 0; text-align: center; height: 80%; max-width: auto; } /* -- images that are largest on the horizontal side -- */ img.horizontal { margin: 0; text-align: center; width: 100%; height: auto; } img.horizontal1 { margin: 0; text-align: center; width: 35%; 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 { font-family: "FoundersGroteskText-Medium"; 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,34);} span.yellow {color: RGB(87,92,2);} span.green {color: RGB(113,116,77);} span.blue {color: RGB(52,80,115);} 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: "FoundersGroteskText-Regular"; letter-spacing: 0.05em;} span.font1 {font-family: "FoundersGrotesk-Medium"; letter-spacing: 0.05em;} span.font2 {font-family: "FoundersGroteskText-Regular"; font-weight: bold; letter-spacing: 0.05em;} span.font3 {font-family: "FoundersGroteskText-Regular"; font-size: small; letter-spacing: 0.05em;}