Constant mdbook_epub::DEFAULT_CSS
source · pub const DEFAULT_CSS: &str = "/* BB eBooks BoilerPlate EPUB */\n/* Modify as Needed */\n/* NOT SUITABLE for Kindle */\n/* visit us @ http://bbebooksthailand.com/developers.html */\n\n/* This adds margins around every page to stop ADE\'s line numbers from being superimposed over content */\n@page {\n margin: 10px;\n}\n\n/*===Reset code to prevent cross-reader strangeness===*/\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n vertical-align: baseline;\n}\n\nol,\nul,\nli,\ndl,\ndt,\ndd {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n vertical-align: baseline;\n}\n\na {\n font-size: 1.0em;\n}\n/* unvisited link */\na:link {\n}\n\n/* visited link */\na:visited {\n}\n\n/* mouse over link */\na:hover {\n}\n\n/* selected link */\na:active {\n}\n\n/*===GENERAL PRESENTATION===*/\n/*===Body Presentation and Margins===*/\n/* Text alignment is still a matter of debate. Feel free to change to text-align: left; */\nbody {\n margin: 1em;\n text-align: justify;\n line-height: 120%;\n}\n\n\n/*===Headings===*/\n/* After page breaks, eReaders sometimes do not render margins above the content. Adjusting padding-top can help */\n\nh1 {\n text-indent: 0;\n text-align: center;\n margin: 8px 0 0 0;\n font-size: 2.0em;\n font-weight: bold;\n page-break-before: always;\n line-height: 150%;\n /*gets squished otherwise on ADE */\n}\n\nh2 {\n text-indent: 0;\n text-align: center;\n margin: 10px 0 0 0;\n font-size: 1.5em;\n font-weight: bold;\n page-break-before: always;\n line-height: 135%;\n /*get squished otherwise on ADE */\n}\n\nh3 {\n text-indent: 0;\n text-align: left;\n margin: 8px 0 6px 0;\n font-size: 1.4em;\n font-weight: bold;\n}\n\nh4 {\n text-indent: 0;\n text-align: left;\n font-size: 1.2em;\n font-weight: bold;\n margin: 8px 0 6px 0;\n}\n\nh5 {\n text-indent: 0;\n text-align: left;\n font-size: 1.1em;\n font-weight: bold;\n margin: 8px 0 6px 0;\n}\n\nh6 {\n text-indent: 0;\n text-align: left;\n font-size: 1.0em;\n font-weight: bold;\n margin: 8px 0 6px 0;\n}\n\n\n/* Hyphen and pagination Fixer */\n/* Note: Do not try on the Kindle, it does not recognize the hyphens property */\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n -webkit-hyphens: none !important;\n hyphens: none;\n page-break-after: avoid;\n page-break-inside: avoid;\n}\n\n\n/*===Paragraph Elements===*/\n/* Margins are usually added on the top, left, and right, but not on the bottom to prevent certain eReaders not collapsing white space properly */\n/*first-line indent paragraph for fiction*/\n\np {\n font-size: 1.0em;\n text-indent: 1.25em;\n margin: 0.2em;\n widows: 2;\n orphans: 2;\n}\n\n\n/* block type paragraph for non-fiction */\np code {\n text-indent: 0;\n margin: 1.0em 0 0 0;\n overflow-x: auto;\n background: #f1f1f1;\n color: #484848;\n padding: 0.2em;\n}\npre {\n white-space: pre-wrap; /* Since CSS 2.1 */\n white-space: -moz-pre-wrap; /* Mozilla, since 1999 */\n white-space: -pre-wrap; /* Opera 4-6 */\n white-space: -o-pre-wrap; /* Opera 7 */\n word-wrap: break-word; /* Internet Explorer 5.5+ */\n}\npre code {\n display: block;\n overflow-x: auto;\n background: #f1f1f1;\n color: #373737;\n padding: 0.2em;\n overflow-wrap: break-word;\n margin-left: 0.5em;\n}\npre code.language-console {\n color: #373737;\n}\npre code.language-toml {\n color: #000000;\n}\npre code.language-rust {\n color: #000000;\n}\n\nspan.caption {\n font-size: 1.0em;\n font-weight: 600;\n line-height: 1.45em;\n}\n\n/* for centered text and wrappers on images */\np.centered {\n text-indent: 0;\n margin: 1.0em 0 0 0;\n text-align: center;\n}\n\n\n/* section Breaks (can use centered-style for non-fiction) */\np.centeredbreak {\n text-indent: 0;\n margin: 1.0em 0 1.0em 0;\n text-align: center;\n}\n\n\n/* First sentence in chapters following heading */\np.texttop {\n margin: 1.5em 0 0 0;\n text-indent: 0;\n}\n\n\n/* Use for second sentence to clear drop cap\'s float */\np.clearit {\n clear: both;\n}\n\n\n/* 1st level TOC */\np.toctext {\n margin: 0 0 0 1.5em;\n text-indent: 0;\n}\n\n\n/* 2nd level TOC */\np.toctext2 {\n margin: 0 0 0 2.5em;\n text-indent: 0;\n}\n\n\n/*==LISTS==*/\nul {\n margin: 1em 0 0 2em;\n text-align: left;\n}\n\nol {\n margin: 1em 0 0 2em;\n text-align: left;\n}\nul li code {\n overflow-x: auto;\n background: #f1f1f1;\n color: #373737;\n padding: 0.2em;\n overflow-wrap: break-word;\n}\n\n\n/*===IN-LINE STYLES===*/\n/* Recommend avoiding use of <b>, <i>, and <u>. Use span tags instead */\nspan.i {\n font-style: italic;\n}\n\nspan.b {\n font-weight: bold;\n}\n\nspan.u {\n text-decoration: underline;\n}\n\nspan.st {\n text-decoration: line-through;\n}\n\n\n/*==in-line combinations==*/\n/* Using something like <span class=\"i b\">... may seem okay, but it causes problems on some eReaders */\nspan.ib {\n font-style: italic;\n font-weight: bold;\n}\n\nspan.iu {\n font-style: italic;\n text-decoration: underline;\n}\n\nspan.bu {\n font-weight: bold;\n text-decoration: underline;\n}\n\nspan.ibu {\n font-style: italic;\n font-weight: bold;\n text-decoration: underline;\n}\n\n\n/* This fixes the bug where the text-align property of block-level elements is not recognized on iBooks\n example: html markup would look like <p class=\"centered\"><span class=\"ipadcenterfix\">Centered Content</span></p> */\nspan.ipadcenterfix {\n text-align: center;\n}\n\n\n/*==IMAGES==*/\nimg {\n max-width: 100%;\n}\n.ferris-explain {\n width: 100px;\n}\n.center {\n display: block;\n margin-left: auto;\n margin-right: auto;\n width: 50%;\n}\n\n/*==TABLES==*/\ntable {\n margin: 1.0em auto;\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntr,\nth,\ntd {\n padding: 3px 20px;\n border: 1px hsl(0, 0%, 95%) solid;\n margin: 0;\n vertical-align: baseline;\n}\ntable thead {\n background: rgb(204, 204, 204);\n}\ntable tbody tr:nth-child(2n) {\n background: hsl(0, 0%, 97%);\n}\ntable thead th {\n padding: 3px 20px;\n}\ntable tbody tr td code {\n display: inline;\n padding: 0.1em 0.3em;\n border-radius: 3px;\n background: #f1f1f1;\n}\n\n/* Superscripted Footnote Text */\n\n.footnote {\n vertical-align: super;\n font-size: 0.75em;\n text-decoration: none;\n}\n\n\n/*==DROP CAPS==*/\n\nspan.dropcap {\n font-size: 300%;\n font-weight: bold;\n height: 1em;\n float: left;\n margin: 0.3em 0.125em -0.4em 0.1em;\n}\n\n\n/*==PULL QUOTE==*/\n\ndiv.pullquote {\n margin: 2em 2em 0 2em;\n text-align: left;\n}\n\ndiv.pullquote p {\n font-weight: bold;\n font-style: italic;\n}\n\ndiv.pullquote hr {\n width: 100%;\n margin: 0;\n height: 3px;\n color: #2E8DE0;\n background-color: #2E8DE0;\n border: 0;\n}\n\n\n/*==BLOCK QUOTE==*/\nblockquote {\n margin: 10px 0;\n padding: 0 20px;\n background-color: hsl(197, 37%, 96%);\n}\ndiv.blockquote {\n margin: 1em 1.5em 0 1.5em;\n text-align: left;\n font-size: 0.9em;\n}\n\n\n/*==eBook Specific Formatting Below Here==*/";
Expand description
The default stylesheet used to make the rendered document pretty.