/* -- 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: "Linotype-StempelGaramondLTPro-Roman"; src: url("../fonts/Linotype-StempelGaramondLTPro-Roman.otf"); } @font-face { font-family: "Linotype-StempelGaramondLTPro-Roman"; src: url("../fonts/Linotype-StempelGaramondLTPro-Italic.otf"); font-style: italic; } @font-face { font-family: "TradeGothic"; src: url("../fonts/TradeGothic.otf"); } @font-face { font-family: "TradeGothic"; src: url("../fonts/TradeGothicBold.otf"); font-weight: bold; } @font-face { font-family: "TradeGothic"; src: url("../fonts/TradeGothicOblique.otf"); font-style: italic; } @font-face { font-family: "TradeGothicBoldCondensedNo.20"; src: url("../fonts/TradeGothicBoldCondensedNo.20.otf"); } @font-face { font-family: "TradeGothicBoldNo.2"; src: url("../fonts/TradeGothicBoldNo.2.otf"); } @font-face { font-family: "TradeGothicBoldNo.2"; src: url("../fonts/TradeGothicBoldNo.2Oblique.otf"); font-style: italic; } @font-face { font-family: "SurveyorText-LightItalic-Pro"; src: url("../fonts/SurveyorText-LightItalic-Pro.otf"); } @font-face { font-family: "SurveyorText-Book-Pro"; src: url("../fonts/SurveyorText-Book-Pro.otf"); } @font-face { font-family: "SurveyorText-Book-Pro"; src: url("../fonts/SurveyorText-BookItalic-Pro.otf"); font-style: italic; } @font-face { font-family: "SurveyorText-MediumItalic-Pro"; src: url("../fonts/SurveyorText-MediumItalic-Pro.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: #a1dbe4; 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: "Linotype-StempelGaramondLTPro-Roman"; text-align: left; line-height: 1.1em; } div#copyright p { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: 1em; margin-bottom: 0; } /* ---- TOC ---- */ .toc1 { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: .1em; margin-bottom: .1em; } .toc1a { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: .1em; margin-bottom: .1em; margin-left: 1em; } .toc1t { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: 2em; margin-bottom: .1em; } .toc2t { font-family: "SurveyorText-LightItalic-Pro"; margin-top: 1em; margin-bottom: .1em; font-size: 1.3em; } .toc2 { font-family: "SurveyorText-LightItalic-Pro"; margin-top: .4em; margin-bottom: .1em; font-size: 1.3em; } .toc3 { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: 3em; margin-bottom: .1em; } /* ---- 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: "TradeGothicBoldCondensedNo.20"; margin-top: 0; letter-spacing: .1em; } h2 { font-family: "SurveyorText-MediumItalic-Pro"; } h3 { font-family: "TradeGothicBoldCondensedNo.20"; margin-top: 0; margin-bottom: 0; } h4 { } h5 { margin-bottom: .5em; } h6 { } /* ---- Use the following for subheads that follow a header style---- */ .section_title { font-family: "SurveyorText-MediumItalic-Pro"; margin-bottom: 0; } .section_hd {} .chapter_title { font-family: "SurveyorText-Book-Pro"; } .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: "Linotype-StempelGaramondLTPro-Roman"; margin: 0 0 0 0; } p.first1_noindent { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: 1em; margin-bottom: 0.3em; } p.first2_noindent { font-family: "TradeGothicBoldCondensedNo.20"; margin: 2em 0 0 0; } p.first3_noindent { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin: 2em 0 0 0; } p.first4_noindent { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin: 2em 0 0 0; font-size: .7em; } /* indent styles, p.text_indent is the default p tag for indent with a bottom margin */ p.text_indent { font-family: "Linotype-StempelGaramondLTPro-Roman"; text-indent: 2em; } p.first1_indent { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin: 1em 0 0 0; text-indent: 2em; } p.first2_indent { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: 1.2em; margin-bottom: 0.2em; margin-left: 1.2em; text-indent: -1.2em; } p.first3_indent { font-family: "Linotype-StempelGaramondLTPro-Roman"; text-indent: 2em; margin-bottom: 1em; } /* basic left, right, center classes */ p.left { font-family: "SurveyorText-Book-Pro"; margin-top: .4em; margin-bottom: 2em; text-align: left; } p.right { text-align: right; } p.center { 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 {} /* -- 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-family: "TradeGothicBoldCondensedNo.20"; font-size: 7em; float: left; height: auto; color: #a1dbe4; margin-top: 0; } .pull_quote { font-family: "SurveyorText-LightItalic-Pro"; text-align:left; margin-top: 1em; margin-bottom: 1em; font-size:1.5em; letter-spacing: .05em; } .display_type { font-family: "TradeGothic"; margin-top: 1.2em; margin-bottom: 0.1em; } /* ---- CAPTIONS ---- */ .caption { font-family: "TradeGothic"; text-align: left; font-size: .7em; margin-top: .25em; } .caption_1_hd { font-family: "TradeGothicBoldCondensedNo.20"; margin-top: .25em; margin-bottom: .1em; font-size: 1em; line-height: 1.5em; } .caption_1_txt { font-family: "TradeGothicBoldNo.2"; font-size: .7em; margin-bottom: 1em; } .caption_3_txt { font-family: "TradeGothicBoldNo.2"; font-size: .7em; margin-bottom: 0; line-height: 1.5em; } .caption_2_hd {} .caption_2_txt { font-family: "TradeGothic"; margin-top: .1em; margin-bottom: 1em; font-size: .6em; line-height: 1.5em; } /* ---- 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 { font-family: "TradeGothicBoldNo.2"; list-style-type: none; padding: 0px; margin-bottom: 1em; font-size: .7em; } ul { list-style-type: none; padding: 0px; margin-bottom: 1em; } ul.alternate_style { list-style-type: none; padding: 0px; margin-bottom: 1em; } li { font-family: "TradeGothicBoldNo.2"; margin-bottom: .1em; margin-left: 1.2em; text-indent: -1.2em; } .ingred_sublist {} .footnotes { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: .1em; margin-bottom: .1em; font-size: .6em; } .footnotest { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: 3em; margin-bottom: .1em; font-size: .6em; } .footnotest1 { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: 2em; margin-bottom: 1em; font-size: .6em; } .footnotest2 { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: .1em; margin-bottom: 1em; font-size: .6em; } /* ---- IMAGES ---- */ /* ---- Large images have no margin ---- */ div.wrap { vertical-align: top; text-align: center; margin: 1.5em 0 0 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-top: .5; margin-bottom: 0; margin-left: 0; margin-right: 0; } p.image1 { text-align: center; margin-top: .5; margin-bottom: 1em; margin-left: 0; margin-right: 0; } p.image2 { text-align: center; margin-top: 1.5; margin-bottom: 1em; margin-left: 0; margin-right: 0; } /* -- images that are largest on the vertical side -- */ img.vertical { margin: 0; text-align: center; height: 85%; 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(155,3,48);} 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(29,190,207);} span.purple {color: RGB(204,153,255);} span.pink {color: RGB(255,153,204);} span.gray {color: RGB(153,153,153);} span.small { font-size: x-small; } span.font1 { font-family: "TradeGothicBoldNo.2"; } span.font2 { font-family: "TradeGothicBoldCondensedNo.20"; font-size: x-small; } span.font3 { font-family: "SurveyorText-Book-Pro"; font-size: .8em; } span.font4 { font-family: "TradeGothicBoldCondensedNo.20"; } span.font5 { font-family: "TradeGothicBoldCondensedNo.20"; font-size: small; } p.hang { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: .2em; margin-bottom: .2em; margin-left: 1.2em; text-indent: -1.2em; font-size: .7em; } p.indexsub { font-family: "Linotype-StempelGaramondLTPro-Roman"; margin-top: .2em; margin-bottom: .2em; margin-left: 2.4em; text-indent: -1.2em; font-size: .7em; }