/* -- Updated 02/12/14, Chronicle Books LLC: Digital Production -- */ /* -- CB KIDS CSS -- */ /* ---- GENERAL ---- */ html, body { margin: 5px; padding:0px; 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: "EideticModern-Regular"; src: url("../fonts/EideticModern-Regular.otf"); } @font-face { font-family: "EideticModern-Regular"; src: url("../fonts/EideticModern-Italic.otf"); font-style: italic; } @font-face { font-family: "EideticModern-Regular"; src: url("../fonts/EideticModern-Bold.otf"); font-weight: bold; } @font-face { font-family: "EideticModern-SmallCaps"; src: url("../fonts/EideticModern-SmallCaps.otf"); } @font-face { font-family: "EideticSerif-Regular"; src: url("../fonts/EideticSerif-Regular.otf"); } @font-face { font-family: "EideticSerif-Regular"; src: url("../fonts/EideticSerif-Italic.otf"); font-style: italic; } @font-face { font-family: "RuzickaFreehandLH-Roman"; src: url("../fonts/RuzickaFreehandLH-Roman.otf"); } @font-face { font-family: "RuzickaFreehandLH-Roman"; src: url("../fonts/RuzickaFreehandLH-Bold.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: "", serif; /* -- EPUB 3 -- */ widows: 3; orphans: 3; word-wrap: break-word; overflow-wrap: normal; text-wrap: normal; } /* ---- LINKS ---- */ a { color: RGB(0,0,0); text-decoration: none; } /* ---- FRONT MATTER ---- */ .dedication { font-family: "EideticSerif-Regular"; margin-top: 1.5em; text-align: center; font-size: 1em; line-height: 1.5em; color: RGB(168,108,139); } .acknowledgements { font-family: "EideticModern-Regular"; text-align:left; margin: 0.2em 0 0 1em; } /* ---- COPYRIGHT ---- */ div#copyright { font-size: 0.7em; font-family: "EideticSerif-Regular"; text-align: center; line-height: 1.1em; margin-top: 10%; } div#copyright p { font-family: "EideticSerif-Regular"; margin-bottom: 1em; text-align: center; } /* ---- TOC ---- */ .toc { font-family: "EideticSerif-Regular"; text-align: center; margin: 0.4em 0 0 0; } .toct { font-family: "EideticSerif-Regular"; text-align: center; margin: 1.4em 0 0 0; } .chtoc { font-family: "EideticModern-SmallCaps"; text-align: center; margin: 1.4em 0 0 0; } /* ---- HEADER STYLES - Do not apply margins greater than 2em. Headers that follow text should have a top margin ----*/ h1, h2, h3 {text-align: left; font-style:normal; font-weight:normal;} h1 { font-family: "RuzickaFreehandLH-Roman"; text-align: center; margin: 1% 0 0 0; color: RGB(61,82,42); } h2 { font-family: "RuzickaFreehandLH-Roman"; text-align: center; margin: 1% 0 0 0; color: RGB(61,82,42); } h3 {} /* ---- 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: "EideticModern-Regular"; margin: 2em 2em 0em 2em; } p.first1_noindent { font-family: "EideticSerif-Regular"; margin: 1em 2em 2em 2em; } p.first2_noindent { font-family: "EideticSerif-Regular"; margin: 2em 2em 2em 2em; } /* indent styles, p.text_indent is the default p tag for indent with a bottom margin */ p.text_indent { font-family: "EideticSerif-Regular"; text-indent: 1.5em; margin: 0.1em 2em 2em 2em; } p.first1_indent { font-family: "EideticSerif-Regular"; text-indent: 1.5em; margin: 1.5em 2em 2em 2em; } p.first2_indent { font-family: "EideticModern-Regular"; margin: 1.4em 0 0 3em; text-indent: -1em; } /* basic left, right, center classes */ p.left { font-family: "EideticModern-SmallCaps"; margin: 1.5em 0 0 2em; color: RGB(168,106,130); text-align: left; } p.right { font-family: "EideticModern-Regular"; margin: .4em 1em 0em 3em; text-indent: -1em; } p.center { font-family: "EideticModern-SmallCaps"; margin: 1.5em 0 0 0; text-align: center; } /* ---- EXTRACT, PULL QUOTES, DISPLAY text ---- */ span.dropcap { font-size: 2.2em; line-height: 0.9em; font-family:" ", sans-serif; } span.big { font-size: 1.4em; margin-top: 2em; font-family:" ", sans-serif; } .display_type {} /* ---- AUTHOR PAGE ---- */ p.author { margin-top: 2em; } /* ---- PARTS/SECTIONS ---- */ hr { border: 0; color: black; background-color: black; height: 2px; text-align: center; } /* ---- IMAGES ---- */ /* ---- Large images have no margin ---- */ div.wrap { vertical-align: top; text-align: center; margin:0; 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:0.5em 0 0.5em 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; } /* -- to be used within floatleft, floatright, and gallery divs -- */ img.float { width: 100%; height: auto; } .floatleft { float: left; width: 40%; margin: 10px 10px 10px 0; } .floatright { float: right; width: 40%; margin: 10px 10px 10px 0; } img.inline { vertical-align: middle; } .image_background { margin: 0; background-repeat: no-repeat; background-size: contain; } div.clear {clear: both} div.pagebreak {page-break-before: always;} /* ---- 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(32,28,63);} span.purple {color: RGB(168,106,130);} span.pink {color: RGB(255,153,204);} span.gray {color: RGB(153,153,153);} .font1 { font-family: "EideticModern-SmallCaps"; } .font2 { font-family: "EideticModern-SmallCaps"; color: RGB(168,106,130); } .font3 { font-family: "EideticModern-Regular"; } .font4 { font-family: "EideticSerif-Regular"; } .chapter_hd { font-family: "EideticModern-SmallCaps"; text-align: center; margin: 2% 0 0 0; color: RGB(61,82,42); } div.sidebar { margin: 0; background-color: RGB(254,245,231); padding: 1%; } ul.alternate_style li{ font-family: "EideticSerif-Regular"; font-size: small; list-style-image: url(../images/star.jpg); margin-top: 2em; vertical-align: middle; margin-left: 20px; margin-right: 20px; } div.sidebar1 { margin: 0; border: 0; background-color: RGB(254,245,231); }