/* -- Updated 02/12/14, Chronicle Books LLC: Digital Production -- */ /* -- CB MAIN CSS -- */ /* ---- GENERAL ---- */ html, body { margin: 10px; padding:0; border-width: 5%; -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: "HelveticaNeue"; src: url("../fonts/HelveticaNeue-Roman.otf"); } @font-face { font-family: "HelveticaNeue-BoldCond"; src: url("../fonts/HelveticaNeue-BoldCond.otf"); } @font-face { font-family: "HelveticaNeue-BoldCondObl"; src: url("../fonts/HelveticaNeue-BoldCondObl.otf"); } @font-face { font-family: "HelveticaNeue-BoldExt"; src: url("../fonts/HelveticaNeue-BoldExt.otf"); } @font-face { font-family: "HelveticaNeue-Condensed"; src: url("../fonts/HelveticaNeue-Condensed.otf"); } @font-face { font-family: "HelveticaNeue"; src: url("../fonts/HelveticaNeue-Italic.otf"); font-style: italic; } @font-face { font-family: "HelveticaNeue-LightExt"; src: url("../fonts/HelveticaNeue-LightExt.otf"); } @font-face { font-family: "Helvetica-UltraCompressed"; src: url("../fonts/Helvetica-UltraCompressed.otf"); } @font-face { font-family: "UltraCompressedStencil"; src: url("../fonts/UltraCompressedStencil.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(237,27,36); 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: "HelveticaNeue"; text-align: center; line-height: 1.1em; } div#copyright p { font-family: "HelveticaNeue"; margin-bottom: 1em; } /* ---- TOC ---- */ .toc { font-family: "HelveticaNeue-BoldCond"; margin: 0 0 .5em 0; text-align: center; font-size: 1.3em; } .toca { font-family: "HelveticaNeue-BoldCond"; margin: 0; text-align: center; font-size: 1.3em; } /* ---- 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:"UltraCompressedStencil"; font-size: 3em;} h2 {font-family:"Helvetica-UltraCompressed";} h3 {text-align: center;} h4 {} h5 {} h6 {} /* ---- Use the following for subheads that follow a header style---- */ h3.section_title { font-family: "HelveticaNeue-BoldExt"; color: RGB(191,180,187); } h3.section_hd { font-family: "UltraCompressedStencil"; text-align: left; font-size: 2em;} h3.chapter_title {font-family: "HelveticaNeue-BoldCond"; border-bottom: solid 2px;} h2.chapter_hd {font-family:"UltraCompressedStencil"; font-size: 2.5em;} /* ---- 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: "HelveticaNeue"; margin: 1em 0 0 0; } p.text_noindent1 { font-family: "HelveticaNeue"; margin: 1em 0 1em 0; } p.first1_noindent { margin: 1em 0 1em 0; } p.first2_noindent { margin: 2em 0 1em 0; } /* indent styles, p.text_indent is the default p tag for indent with a bottom margin */ p.text_indent { text-indent: 1em; } p.first1_indent { margin: 1em 0 0 0; text-indent: 1em; } p.first2_indent { margin: 2em 0 0 0; text-indent: 1em; } /* basic left, right, center classes */ p.left { font-family: "HelveticaNeue-BoldCondObl"; margin-top: 1em; text-align: left; } p.right { font-family: "HelveticaNeue-BoldCondObl"; margin-top: 1em; margin-bottom: 1em; text-align: right; } p.center { text-align: center; } p.center1 { text-align: center; margin-bottom: 1.5em; } /* 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 { 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 { font-family: "HelveticaNeue-LightExt"; text-align:left; margin-top: 1em; font-size: .9em; } .display_type { font-size: 1.2em; } /* ---- CAPTIONS ---- */ .caption { font-family: "HelveticaNeue-Condensed"; text-align:left; font-size:.7em; margin-top: 0; margin-bottom: 1em; } .caption_1_hd { font-family: "UltraCompressedStencil"; margin-top: 1em; font-size: 1.5em; } .caption_1_txt {} .caption_2_hd {} .caption_2_txt {} /* ---- 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 { 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 {} /* ---- 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: 0; } /* -- all images should have p tag -- */ p.image { text-align: center; margin: 1em 0 .25em 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(237,28,36);} span.red1 {color: RGB(220,77,52);} span.orange {color: RGB(252,176,64);} span.yellow {color: RGB(247,148,30);} span.green {color: RGB(103,174,61);} span.green1 {color: RGB(0,166,81);} span.green2 {color: RGB(111,191,77);} span.blue {color: RGB(0,114,188);} span.blue1 {color: RGB(0,136,199);} span.blue2 {color: RGB(97,164,217);} span.blue3 {color: RGB(0,125,192);} span.purple {color: RGB(204,153,255);} span.pink {color: RGB(255,153,204);} span.gray {color: RGB(109,110,113);} span.font1 { font-family: "HelveticaNeue-BoldExt"; } span.font2 { font-family: "HelveticaNeue-Condensed"; } span.font3 { font-family: "HelveticaNeue-BoldCond"; } span.font4 { font-family: "HelveticaNeue-BoldCondObl"; } span.font5 { font-family: "HelveticaNeue-Roman"; } span.font6 { font-family: "HelveticaNeue-LightExt"; line-height: 1.5em; } span.medium { font-size: medium; } span.large { font-size: x-large; margin-top: 1em; }