Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-19-2020, 05:38 PM   #1
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 56,916
Karma: 52002826
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Really bad CSS

I'm about to read the book Passing Strange by Ellen Klages. I had a look at the book and the formatting is terrible. Left Justified with a 2em right margin. That's not at all workable for me. So I had a dig at the CSS to fix it up and I found the CSS was a real mess.

Does anyone have an idea what program was used to create this monster of a mess?

Here is the original CSS with all the extra stuff included.
Code:
/*

Since, at the time of this writing, Macmillan's
Word > ePub conversion tool can't yet convert all
styles to semantically appropriate elements, the
CSS here targets almost every existing style by
name. Styles with shared attributes are grouped
together as much as possible (e.g. styles that are
meant to resolve to specific heading levels,
"space before" and "space after" styles, etc), and
are otherwise grouped by the categories defined in
the Word template.

Please note that the Lists section probably has
the greatest potential for confusion, and it may
need to be updated as the conversion tool is
updated. See the comments at the top of that
section for more information.

--------------------------------------------------
RESET
--------------------------------------------------
http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

@font-face {
  font-family: "noto";
  src: url('NotoSansSymbols-Regular.ttf');
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  }
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
  }
body {
  line-height: 1em;
  }
ol, ul {
  list-style: none;
  }
blockquote, q {
  quotes: none;
  }
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
  }
table {
  border-collapse: collapse;
  border-spacing: 0;
  }

/*
--------------------------------------------------
BASE STYLES
--------------------------------------------------
*/

body {
  font-size: medium;
  line-height: 1.2em;
  margin-top: 1em;
  margin-left: 1em;
  margin-right: 2em;
  font-family: Georgia,"Times New Roman",Times,serif,"noto",arial,Verdana,sans-serif;
  color: #000;
  background-color: #fff;
  }
p+p,
p.Text-Standardtx {
  text-indent: 1.5em;
  }
blockquote {
  margin: 1em 1.5em;
  font-style: italic;
  }
aside,
.box {
  padding: 1.5em;
  border: 2px solid #ccc;
  margin: 1em 0;
  }
.box {
  background: #eee;
  }
img {
  max-width: 100%;
  max-height: 100%;
  }
pre {
  margin: 1em 0;
  white-space: pre-wrap;
  }

em {
  font-size: inherit;
  font-style: italic;
}

strong {
 font-size: inherit;
 font-weight: bold;
 }

span, a {
 font-size: inherit;
 }

/*
--------------------------
NO INDENT
--------------------------
*/

h1+p, *[class^="Head-Level-1"]+p,
h2+p, *[class^="Head-Level-2"]+p,
h3+p, *[class^="Head-Level-3"]+p,
h4+p, *[class^="Head-Level-4"]+p,
h5+p, *[class^="Head-Level-5"]+p,
h6+p, *[class^="Head-Level-6"]+p,
*[class="NoIndent"],
*[class*="No-Indent"] {
  text-indent: 0;
  }

.Text-StdNo-Indenttx1,
.ChapOpeningTextNo-Indentcotx1 {
  text-indent: 0;
  }

/*
--------------------------
SPACE BEFORE
--------------------------
*/

*[class*="SpaceBefore"] {
  margin-top: 1em;
  }

/*
--------------------------
SPACE AROUND
--------------------------
*/

*[class*="SpaceAround"] {
  margin-top: 1em;
  margin-bottom: 1em;
  }

/*
--------------------------
SPACE AFTER
--------------------------
*/

*[class*="SpaceAfter"] {
  margin-bottom: 1em;
  }

/*
--------------------------------------------------
INLINE ELEMENTS
--------------------------------------------------
*/

a {
text-decoration: none;
}

*[class^="spanitaliccharacters"],
*[class^="spansmcapital"],
*[class^="spansmcapboldital"],
*[class^="spanaltfont1span1"],
*[class^="spanaltfont2span2"] {
  font-style: italic;
  }
.spanitaliccharactersital,
.spansmcapitalscital,
.spansmcapbolditalscbi,
.spanaltfont1span1,
.spanaltfont2span2 {
  font-style: italic;
  }
*[class^="spanboldfacecharacters"],
*[class^="spanboldital"],
*[class^="spansmcapbold"],
*[class^="spansmcapboldital"] {
  font-weight: bold;
  }
.spanboldfacecharacters,
.spanbolditalbem,
.spansmcapboldscbold,
.spansmcapbolditalscbi {
  font-weight: bold;
  }
*[class^="spansmallcapscharacters"],
*[class^="spansmcapbold"],
*[class^="spansmcapital"],
*[class^="spansmcapboldital"] {
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .08em;
  }
.spansmallcapscharacterssc,
.spansmcapboldscbold,
.spansmcapitalscital,
.spansmcapbolditalscbi {
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .08em;
  }
*[class^="spanunderscorecharacters"] {
  text-decoration: underline;
  }
.spanunderscorecharactersus {
  text-decoration: underline;
  }
sup,
*[class^="spansuperscriptcharacters"] {
  vertical-align: super;
  font-size: smaller;
  }
sup,
.spansuperscriptcharacterssup {
  vertical-align: super;
  font-size: smaller;
  }
sub,
*[class^="spansubscriptcharacters"] {
  vertical-align: sub;
  font-size: smaller;
  }
sub,
.spansuperscriptcharacterssub {
  vertical-align: sub;
  font-size: smaller;
  }
*[class^="spankeyphrase"] {
  }
*[class^="spansymbols"] {
  }
*[class^="spanaccentcharacters"] {
  }
*[class^="spanpreservecharacters"] {
  white-space: pre-wrap;
  }
*[class^="spancross-reference"] {
  }
*[class^="spanmaterialtocome"] {
  }
*[class^="spancarryquery"] {
  }
*[class^="DesignNote"] {
  }

.spanstrikethroughcharactersstr {
  text-decoration: line-through;
}

.chapopener {
  text-transform: uppercase;
}
*[class*="spanrun-incomputertypecomp"] {
  font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif;
  }
.spanrun-incomputertypecomp {
  font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif;
  }

/*
--------------------------------------------------
HEADINGS
--------------------------------------------------
COMBINATIONS
--------------------------
*/

h1+h2, h1+h3, h1+h4, h1+h5, h1+h6,
h2+h3, h2+h4, h2+h5, h2+h6,
h3+h4, h3+h5, h3+h6,
h4+h5, h4+h6,
h5+h6,
*[class*="Head-Level-"]+*[class*="Head-Level-"],
*[class*="FMLevel-"]+*[class*="FMLevel-"],
*[class*="PoemLevel-"]+*[class*="PoemLevel-"],
*[class^="RecipeHead"]+*[class^="RecipeSubhead"],
*[class*="RecipeLevel-"]+*[class*="RecipeLevel-"],
*[class^="Sub-RecipeHead"]+*[class^="Sub-RecipeSubhead"],
*[class*="Sub-RecipeLevel-"]+*[class*="Sub-RecipeLevel-"],
*[class^="BoxHead"]:first-child,
*[class^="BoxHead-Level-1"]:first-child,
*[class^="BoxHead-Level-2"]:first-child,
*[class^="BoxHead-Level-3"]:first-child,
*[class^="BoxHead-Level-4"]:first-child,
*[class^="BoxHead-Level-5"]:first-child,
*[class^="SidebarHead"]:first-child,
*[class^="SidebarHead-Level-1"]:first-child,
*[class^="SidebarHead-Level-2"]:first-child,
*[class^="SidebarHead-Level-3"]:first-child,
*[class^="SidebarHead-Level-4"]:first-child,
*[class^="SidebarHead-Level-5"]:first-child,
*[class^="BoxHead"]+*[class^="BoxSubhead"],
*[class^="BoxHead"]+*[class*="BoxHead-Level-"],
*[class*="BoxHead-Level-"]+*[class*="BoxHead-Level-"],
*[class^="SidebarHead"]+*[class^="SidebarSubhead"],
*[class^="SidebarHead"]+*[class*="SidebarHead-Level-"],
*[class*="SidebarHead-Level-"]+*[class*="SidebarHead-Level-"],
*[class^="TableNumber"]+*[class^="TableHead"],
*[class^="ChartNumber"]+*[class^="ChartHead"],
*[class^="ChartHead"]:first-child,
*[class^="ChartHead"]+*[class^="ChartSubhead"],
*[class^="ChartHead"]+*[class*="ChartLevel-"],
*[class*="ChartLevel-"]+*[class*="ChartLevel-"],
*[class^="TableHead"]+*[class^="TableSubhead"],
*[class^="FigureNumber"]+*[class^="FigureHead"],
*[class^="FigureHead"]+*[class^="FigureSubhead"],
*[class^="FigureHead"]+*[class*="FigureLevel-"],
*[class*="FigureLevel-"]+*[class*="FigureLevel-"],
*[class*="AppendixLevel-"]+*[class*="AppendixLevel-"],
*[class*="NoteLevel-"]+*[class*="NoteLevel-"],
*[class*="BiblioLevel-"]+*[class*="BiblioLevel-"],
*[class*="BOBAdLevel-"]+*[class*="BOBAdLevel-"] {
  margin-top: 0;
  }

/*
--------------------------
H1
--------------------------
*/

h1, .Head-Level-1h1 {
  text-indent: 0;
  font-size: 1.5em;
  line-height: 1.25em;
  margin: .66666666666667em 0;
  }

*[class*="Level-1Subhead"],
*[class^="FrontSalesTitle"],
*[class^="AdCardMainHead"],
*[class^="HalftitleBookTitle"],
*[class^="TitlepageBookTitle"],
*[class^="TOCFrontmatterHead"],
*[class^="TOCPartTitle"],
*[class^="TOCChapterTitle"],
*[class^="TOCLevel-1ChapterHead"],
*[class^="FMHead"],
*[class^="FMTitle"],
*[class^="FMHeadALT"],
*[class^="PartNumber"],
*[class^="PartTitle"],
*[class^="ChapNumber"],
*[class^="ChapTitle"],
*[class^="VolumeNumber"],
*[class^="VolumeTitle"],
*[class^="CollectionBookNumber"],
*[class^="CollectionBookTitle"],
*[class^="Head-Level-1"],
*[class^="BoxHead-Level-1"],
*[class^="SidebarHead-Level-1"],
*[class^="TableNumber"],
*[class^="ChartNumber"],
*[class^="FigureNumber"],
*[class^="BMHead"],
*[class^="BMTitle"],
*[class^="BMHeadALT"],
*[class^="AppendixHead"],
*[class^="BOBAdTitle"] {
  text-indent: 0;
  font-size: 1.5em;
  line-height: 1.25em;
  margin: .66666666666667em 0;
  }
*[class^="TOCFrontmatterHead"],
*[class^="TOCBackmatterHead"],
*[class^="TOCPartNumber"],
*[class^="TOCChapterNumber"],
*[class^="PartNumber"],
*[class^="ChapNumber"],
*[class^="VolumeNumber"],
*[class^="CollectionBookNumber"],
*[class^="TableNumber"],
*[class^="ChartNumber"],
*[class^="FigureNumber"] {
  font-size: 1em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .2em;
  padding: .5em;
  margin-top: 0;
  }

.TOCFrontmatterHeadcfmh,
.TOCBackmatterHeadcbmh,
.TOCPartNumbercpn,
.TOCChapterNumberccn,
.PartNumberpn,
.ChapNumbercn,
.VolumeNumbervoln,
.CollectionBookNumberbkn,
.TableNumbertn,
.ChartNumbercrn,
.FigureNumberfgn {
  font-size: 1em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .2em;
  padding: .5em;
  margin-top: 0;
  }
*[class^="TOCPartNumber"],
*[class^="TOCFrontmatterHead"],
*[class^="TOCBackmatterHead"],
*[class^="PartNumber"],
*[class^="VolumeNumber"],
*[class^="CollectionBookNumber"] {
  /*background: #999;*/
  }
*[class^="TOCChapterNumber"],
*[class^="ChapNumber"],
*[class^="TableNumber"],
*[class^="ChartNumber"],
*[class^="FigureNumber"] {
  /*background: #eee;*/
/*  margin-top: 3em; */
  }
*[class^="TableNumber"],
*[class^="ChartNumber"],
*[class^="FigureNumber"] {
  color: #999;
  margin-top: 1em;
  margin-bottom: 0;
  }
*[class^="FrontSalesTitle"],
*[class^="AdCardMainHead"],
*[class^="HalftitleBookTitle"],
*[class^="TitlepageBookTitle"],
*[class^="PartTitle"],
*[class^="ChapTitle"],
*[class^="VolumeTitle"],
*[class^="CollectionBookTitle"] {
  text-align: center;
  }

.FrontSalesTitlefst,
.AdCardMainHeadacmh,
.HalftitleBookTitlehtit,
.TitlepageBookTitletit,
.PartTitlept,
.ChapTitlect,
.VolumeTitlevolt,
.CollectionBookTitlebkt {
  text-align: center;
  }

*[class^="PartTitle"],
*[class^="ChapTitle"],
*[class^="VolumeTitle"],
*[class^="CollectionBookTitle"] {
  margin-bottom: 3.00em;
  }

.PartTitlept,
.ChapTitlect,
.VolumeTitlevolt,
.CollectionBookTitlebkt {
  margin-bottom: 3.00em;
  }

/*
--------------------------
H2
--------------------------
*/

h2 {
  text-indent: 0;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-weight: bold;
  margin: 1em 0 0 0;
  }

.PartSubtitlepst,
.ChapSubtitlecst {
  text-indent: 0;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-weight: bold;
  margin: 1em 0 0 0;
  }

*[class*="Level-2Subhead"],
*[class^="FrontSalesSubtitle"],
*[class^="AdCardSubhead"],
*[class^="TitlepageBookSubtitle"],
*[class^="FMSubhead"],
*[class^="TOCChapterSubtitle"],
*[class^="PartSubtitle"],
*[class^="ChapSubtitle"],
*[class^="Head-Level-2"],
*[class^="BoxHead-Level-2"],
*[class^="SidebarHead-Level-2"],
*[class^="BMSubhead"],
*[class^="AppendixSubhead"],
*[class^="IndexInternalSubhead"],
*[class^="BOBAdSubtitle"] {
  text-indent: 0;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-weight: bold;
  margin: 1em 0 0 0;
  }

.FrontSalesSubtitlefsst,
.AdCardSubheadacsh,
.TitlepageBookSubtitlestit,
.PartSubtitlepst,
.ChapSubtitlecst,
.BOBAdSubtitlebobst {
  text-indent: 0;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-weight: bold;
  margin: 1em 0 0 0;
  }

*[class^="FrontSalesSubtitle"],
*[class^="AdCardSubhead"],
*[class^="TitlepageBookSubtitle"],
*[class^="PartSubtitle"],
*[class^="ChapSubtitle"] {
  text-align: center;
  margin-bottom: 1em;
  }

.FrontSalesSubtitlefsst,
.AdCardSubheadacsh,
.TitlepageBookSubtitlestit,
.PartSubtitlepst,
.ChapSubtitlecst {
  text-indent: 0;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-weight: bold;
  margin: 1em 0 1em 0;
  text-align: center;
  }

.PartSubtitlepst,
.ChapSubtitlecst {
  text-align: center;
  margin-bottom: 1em;
  }

*[class^="PartSubtitle"],
*[class^="ChapSubtitle"] {
  text-align: center;
  margin-bottom: 1.00em;
  }

.PartSubtitlepst:after,
.ChapSubtitlecst:after {
  text-align: center;
  margin-bottom: 1.00em;
  }

/*
--------------------------
H3
--------------------------
*/

h3 {
  text-indent: 0;
  font-weight: bold;
  margin: 1em 0 0 0;
  }

*[class*="Level-3Subhead"],
*[class^="FrontSalesQuoteHead"],
*[class^="PartContentsMainHead"],
*[class^="Head-Level-3"],
*[class^="IngredientsHead"],
*[class^="Sub-RecipeIngredientsHead"],
*[class^="Menu"],
*[class^="RecipeVarHead"],
*[class^="RecipeNoteHead"],
*[class^="Extract-NoteHead"],
*[class^="BoxHead-Level-3"],
*[class^="SidebarHead-Level-3"],
*[class^="GlossaryTerm"],
*[class^="BOBAdQuoteHead"] {
  text-indent: 0;
  font-weight: bold;
  margin: 1em 0 0 0;
  }

.BOBAdQuoteHeadbobqh {
  text-indent: 0;
  font-weight: bold;
  margin: 1em 0 0 0;
  }

/*
--------------------------
H4
--------------------------
*/

h4 {
  text-indent: 0;
  text-transform: uppercase;
  letter-spacing: .075em;
  margin: 1em 0 0 0;
  }

*[class*="Level-4Subhead"],
*[class^="PartContentsHead"],
*[class^="Head-Level-4"],
*[class^="BoxHead-Level-4"],
*[class^="SidebarHead-Level-4"] {
  text-indent: 0;
  text-transform: uppercase;
  letter-spacing: .075em;
  margin: 1em 0 0 0;
  }

/*
--------------------------
H5
--------------------------
*/

h5 {
  text-indent: 0;
  font-style: italic;
  margin: 1em 0 0 0;
  }

*[class*="Level-5Subhead"],
*[class^="Head-Level-5"],
*[class^="ExtractHead"],
*[class^="PoemTitle"],
*[class^="RecipeHead"],
*[class^="Sub-RecipeHead"],
*[class^="BoxHead"],
*[class^="BoxHead-Level-5"],
*[class^="SidebarHead"],
*[class^="SidebarHead-Level-5"],
*[class^="ChartHead"],
*[class^="FigureHead"],
*[class^="TableHead"] {
  text-indent: 0;
  font-style: italic;
  margin: 1em 0 0 0;
  }
*[class^="ExtractHead"],
*[class^="PoemTitle"],
*[class^="RecipeHead"],
*[class^="Sub-RecipeHead"],
*[class^="BoxHead"],
*[class^="SidebarHead"],
*[class^="ChartHead"],
*[class^="TableHead"],
*[class^="FigureHead"] {
  font-size: 1em;
  background: #ccc;
  }

/*
--------------------------
H6
--------------------------
*/

h6 {
  text-indent: 0;
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 1em 0 0 0;
  }

*[class^="Head-Level-6"],
*[class^="PoemSubtitle"],
*[class^="PoemNumericSubhead"],
*[class^="RecipeSubhead"],
*[class^="Sub-RecipeSubhead"],
*[class^="BoxSubhead"],
*[class^="SidebarSubhead"],
*[class^="TableSubhead"],
*[class^="ChartSubhead"],
*[class^="FigureSubhead"] {
  text-indent: 0;
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 1em 0 0 0;
  }
*[class^="PoemSubtitle"],
*[class^="RecipeSubhead"],
*[class^="Sub-RecipeSubhead"],
*[class^="BoxSubhead"],
*[class^="SidebarSubhead"],
*[class^="TableSubhead"],
*[class^="ChartSubhead"],
*[class^="FigureSubhead"] {
  border-bottom: 2px solid #ccc;
  margin-bottom: 1em;
  }

/*
--------------------------------------------------
FRONT SALES
--------------------------------------------------
*/

*[class^="FrontSalesText"],
*[class^="FrontSalesTextNoIndent"] {
  }
*[class^="FrontSalesQuote"],
*[class^="FrontSalesQuoteNoIndent"] {
  font-style: italic;
  }

/*
--------------------------------------------------
AD CARD
--------------------------------------------------
*/

*[class^="AdCardListofTitle"] {
  text-indent: 0;
  text-align: center;
  }

.AdCardListofTitlesacl {
  text-indent: 0;
  text-align: center;
  }

/*
--------------------------------------------------
TITLE PAGE
--------------------------------------------------
*/

*[class^="TitlepageAuthorName"],
*[class^="TitlepageContributorName"],
*[class^="TitlepageTranslatorName"],
*[class^="TitlepageSeriesTitle"],
*[class^="TitlepageReadingLine"],
*[class^="TitlepageImprintLine"],
*[class^="TitlepagePublisherName"],
*[class^="TitlepageCities"],
*[class^="TitlepageLogo"]  {
  text-indent: 0;
  text-align: center;
  margin: 1em 0;
  }

/* for kindle eink */
.TitlepageAuthorNameau,
.TitlepageContributorNamecon,
.TitlepageTranslatorNametran,
.TitlepageSeriesTitleser,
.TitlepageReadingLinerl,
.TitlepageImprintLineimp,
.TitlepagePublisherNamepub,
.TitlepageCitiescit,
.TitlepageLogologo {
  text-indent: 0;
  text-align: center;
  margin: 1em 0;
  }

section[data-type="titlepage"] {
  text-align: center;
}

section[data-type="titlepage"] img {
  text-align: center;
  width: auto;
}

/*
--------------------------------------------------
COPYRIGHT PAGE
--------------------------------------------------
*/

*[class^="CopyrightTextsinglespace"],
*[class^="CopyrightTextdoublespace"] {
  font-size: .75em;
  text-indent: 0;
  }
*[class^="CopyrightTextdoublespace"] {
  margin: 1em 0;
  }

.CopyrightTextsinglespacecrtx,
.CopyrightTextdoublespacecrtxd {
  font-size: .75em;
  text-indent: 0;
  }
.CopyrightTextdoublespacecrtxd {
  margin: 1em 0;
  }

/*
--------------------------------------------------
DEDICATION PAGE
--------------------------------------------------
*/

.Dedicationded,
.DedicationAuthordedau {
  text-indent: 0;
  text-align: center;
  margin-left: 1.5em;
  margin-right: 1.5em;
  font-style: italic;
  }

*[class^="Dedication"],
*[class^="DedicationAuthor"] {
  text-indent: 0;
  text-align: center;
  margin-left: 1.5em;
  margin-right: 1.5em;
  }
.Dedicationded {
  font-style: italic;
}
*[class^="Dedicationd"] {
  font-style: italic;
  }
.DedicationAuthordedau {
  margin-top: 1em;
  }
*[class^="DedicationAuthor"] {
  margin-top: 1em;
  }
section[data-type="dedication"] blockquote[data-type="epigraph"] {
  page-break-before: always;
  margin-top: 2em;
  }

.Dedicationded + p[class*="Epigraph"],
.DedicationAuthordedau + p[class*="Epigraph"] {
  page-break-before: always;
  margin-top: 2em;
  }
*[class^="Dedication"] + p[class*="Epigraph"] {
  page-break-before: always;
  margin-top: 2em;
  }

/*
--------------------------------------------------
EPIGRAPH PAGE (AND OTHER EPIGRAPHS)
--------------------------------------------------
*/

blockquote[data-type="epigraph"] {
  margin: 2em 1.5em;
  }

*[class^="Epigraph-non-verse"],
*[class^="Epigraph-verse"],
*[class^="FMEpigraphnon-verse"],
*[class^="FMEpigraph-verse"],
*[class^="PartEpigraph-non-verse"],
*[class^="PartEpigraph-verse"],
*[class^="ChapEpigraph-non-verse"],
*[class^="ChapEpigraph-verse"],
*[class^="EpigraphinText-non-verse"],
*[class^="EpigraphinText-verse"],
*[class^="PoemEpigraph-non-verse"],
*[class^="PoemEpigraph-verse"],
*[class^="BoxEpigraph-non-verse"],
*[class^="BoxEpigraph-verse"],
*[class^="SidebarEpigraph-non-verse"],
*[class^="SidebarEpigraph-verse"] {
  font-style: italic;
  }

.Epigraph-non-verseepi,
.Epigraph-verseepiv,
.FMEpigraph-non-versefmepi,
.FMEpigraph-versefmepiv,
.PartEpigraph-non-versepepi,
.PartEpigraph-versepepiv,
.ChapEpigraph-non-versecepi,
.ChapEpigraph-versecepiv,
.EpigraphinText-non-versetepi,
.EpigraphinText-versetepiv,
.PoemEpigraph-non-versevepi,
.PoemEpigraph-versevepiv,
.BoxEpigraph-non-versebepi,
.BoxEpigraph-versebepiv,
.SidebarEpigraph-non-versesbepi,
.SidebarEpigraph-versesbepiv {
  font-style: italic;
  }

*[class^="EpigraphSource"],
*[class^="ExtractSource"],
*[class^="FMEpigraphSource"],
*[class^="PartEpigraphSource"],
*[class^="ChapEpigraphSource"],
*[class^="EpigraphinText-Source"],
*[class^="PoemEpigraphSource"],
*[class^="BoxEpigraphSource"],
*[class^="SidebarEpigraphSource"],
*[class^="FrontSalesQuoteSource"],
*[class^="BOBAdQuoteSource"] {
  text-align: right;
  text-indent: 0;
  font-style: normal;
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1em;
  }

.EpigraphSourceeps,
.ExtractSourceexts,
.FMEpigraphSourcefmeps,
.PartEpigraphSourcepeps,
.ChapEpigraphSourceceps,
.EpigraphinText-Sourceteps,
.PoemEpigraphSourceveps,
.BoxEpigraphSourcebeps,
.SidebarEpigraphSourcesbeps,
.FrontSalesQuoteSourcefsqs,
.BOBAdQuoteSourcebobqs {
  text-align: right;
  text-indent: 0;
  font-style: normal;
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1em;
  }

.ChapEpigraphSourceceps {
  text-align: right;
}

/*
--------------------------------------------------
CONTENTS PAGE
--------------------------------------------------
*/

*[class^="TOCAuthor"],
*[class^="TOCPartNumber"],
*[class^="TOCPartTitle"],
*[class^="TOCChapterNumber"],
*[class^="TOCChapterTitle"],
*[class^="TOCChapterSubtitle"],
*[class^="TOCLevel-1ChapterHead"],
*[class^="TOCBackmatterHead"],
*[class^="TOCPageNumber"] {
  list-style: none;
  text-indent: 0;
  text-align: center;
  }
*[class^="TOCAuthor"] {
  font-style: italic;
  margin: 1em 0;
  }
*[class^="TOCPartNumber"],
*[class^="TOCChapterNumber"] {
  margin-left: 15%;
  margin-right: 15%;
  }
*[class^="TOCFrontmatterHead"],
*[class^="TOCPartTitle"],
*[class^="TOCChapterTitle"],
*[class^="TOCLevel-1ChapterHead"],
*[class^="TOCBackmatterHead"],
*[class^="TOCPartNumber"],
*[class^="TOCChapterNumber"],
*[class^="TOCChapterSubtitle"],
*[class^="TOCAuthor"],
*[class^="TOCPageNumber"] {
  display: none;
  }

/*
--------------------------------------------------
OTHER FRONTMATTER
--------------------------------------------------
*/

*[class^="FMTitle"],
*[class^="FMAuthorName"],
*[class^="FMAuthorSignature"],
*[class^="FMDramatisPersonae"] {
  text-indent: 0;
  margin: 1em 0;
  }
*[class^="FMHead"],
*[class^="FMTitle"],
*[class^="FMSubhead"],
*[class^="FMAuthorName"],
*[class^="FMHeadALT"] {
  text-align: center;
  }
*[class^="FMHeadALT"],
*[class^="FMTextALT"],
*[class^="FMTextNo-IndentALT"] {
  font-family: Helvetica,Arial,sans-serif;
  }
*[class^="FMAuthorSignature"] {
  font-style: italic;
  }
*[class^="FMDramatisPersonae"] {
  text-transform: uppercase;
  letter-spacing: .075em;
  }

/*
--------------------------------------------------
PART OPENERS
--------------------------------------------------
*/

*[class^="PartOrnament"],
*[class^="PartOrnamentALT"],
*[class^="PartContentsMainHead"],
*[class^="PartContentsHead"] {
  text-indent: 0;
  text-align: center;
  margin: 1em 0;
  }
*[class^="PartOrnament"]:before,
*[class^="PartOrnamentALT"]:before {
  display: block;
  font-size: 1.125em;
  }
*[class^="PartOrnament"]:before {
  content: "\2766"; /* U+2766 "floral heart" */
  }
*[class^="PartOrnamentALT"]:before {
  content: "\2756"; /* U+2756 "black diamond minus white" */
  }

/*
--------------------------------------------------
CHAPTER OPENERS
--------------------------------------------------
*/

.ChapAuthorca,
.Dateline-Chapterdl,
.ChapOrnamentcorn,
.ChapOrnamentALTcorn2 {
  text-align: center;
  text-indent: 0;
  margin: 1em 0;
  }

*[class^="ChapAuthor"],
*[class^="Dateline-Chapter"],
*[class^="ChapOrnament"],
*[class^="ChapOrnamentALT"] {
  text-align: center;
  text-indent: 0;
  margin: 1em 0;
  }
*[class^="ChapOrnament"]:before,
*[class^="ChapOrnamentALT"]:before {
  display: block;
  font-size: 1.125em;
  }
.ChapOrnamentcorn:before,
.ChapOrnamentALTcorn2:before {
  display: block;
  font-size: 1.125em;
  }
.ChapOrnamentcorn:before {
  content: "\2766"; /* U+2766 "floral heart" */
  }
*[class^="ChapOrnament"]:before {
  content: "\2766"; /* U+2766 "floral heart" */
  }
*[class^="ChapOrnamentALT"]:before {
  content: "\2756"; /* U+2756 "black diamond minus white" */
  }
.ChapOrnamentALTcorn2:before {
  content: "\2756"; /* U+2756 "black diamond minus white" */
  }
.TeaserOpeningTexttotx, .TeaserOpeningTextNo-Indenttotx1 {
  text-align: center;
  text-indent: 0;
  font-size: 1.2em;
  margin-bottom: 0.75em;
}

/*
--------------------------------------------------
TEXT
--------------------------------------------------
*/

*[class^="Text-ComputerType"],
*[class^="Text-ComputerTypeNo-Indent"] {
  font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif;
  }
*[class^="Text-StandardALT"],
*[class^="Text-StdNo-IndentALT"] {
  font-family: Helvetica,Arial,sans-serif;
  }
.Text-ComputerTypecom,
.Text-ComputerTypeNo-Indentcom1 {
  font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif;
  }
.Text-StandardALTatx,
.Text-StdNo-IndentALTatx1 {
  font-family: Helvetica,Arial,sans-serif;
  font-size: 0.9em;
  }

.Text-StandardALTatx,
.Text-StdNo-IndentALTatx1 {
  margin-top: 1em;
  }

.Text-StandardALTatx + .Text-StandardALTatx,
.Text-StandardALTatx + .Text-StdNo-IndentALTatx1,
.Text-StdNo-IndentALTatx1 + .Text-StandardALTatx,
.Text-StdNo-IndentALTatx1 + .Text-StdNo-IndentALTatx1 {
  margin-top: 0;
  }

/*
--------------------------------------------------
DISPLAY TEXT
--------------------------------------------------
*/

*[class^="InitialCap"] {
  }
*[class^="DisplayPhrase"] {
  clear: both;
  color: #999;
  font-size: 1.125em;
  font-style: italic;
  text-indent: 0;
  text-align: center;
  padding: .5em;
  background: #eee;
  margin: 1em 0;
  }
*[class^="Storydateline"],
*[class^="Storylocationline"] {
  text-indent: 0;
  font-variant: small-caps; /* ALTERNATE: font-size: .75em; text-transform: uppercase; */
  letter-spacing: .1em;
  margin: 1em 0;
  }

/*
--------------------------------------------------
SPACE BREAKS
--------------------------------------------------
*/

.SpaceBreak,
.SectionBreaksbr,
.SpaceBreakwithOrnamentorn,
.SpaceBreakwithALTOrnamentorn2,
.PartStartpts,
.PartEndpte,
.PageBreakpb,
.SpaceBreak-1-Linels1,
.SpaceBreak-2-Linels2,
.SpaceBreak-3-Linels3 {
  text-indent: 0;
  text-align: center;
  }

*[class^="SpaceBreak"],
*[class^="SectionBreak"],
*[class^="SpaceBreakwithOrnament"],
*[class^="SpaceBreakwithALTOrnament"],
*[class^="PartStart"],
*[class^="PartEnd"],
*[class^="PageBreak"],
*[class^="SpaceBreak-1-Line"],
*[class^="SpaceBreak-2-Line"],
*[class^="SpaceBreak-3-Line"] {
  text-indent: 0;
  text-align: center;
  }
*[class^="SpaceBreak"],
*[class^="SectionBreak"],
*[class^="SpaceBreakwithOrnament"],
*[class^="SpaceBreakwithALTOrnament"],
*[class^="SpaceBreak-1-Line"] {
  margin: 1em 0;
  }

.SpaceBreak,
.SectionBreaksbr,
.SpaceBreakwithOrnamentorn,
.SpaceBreakwithALTOrnamentorn2,
.SpaceBreak-1-Linels1 {
  margin: 1em 0 2em 0;
  }

*[class^="SpaceBreak-2-Line"] {
  margin: 1em 0 2em 0;
  }

.SpaceBreak-2-Linels2 {
  margin: 1em 0 2em 0;
  }

*[class^="SpaceBreak-3-Line"] {
  margin: 1em 0 3em 0;
  }

.SpaceBreak-3-Linels3 {
  margin: 1em 0 3em 0;
  }

*[class^="Dateline-Text"] {
  text-indent: 0;
  font-variant: small-caps; /* ALTERNATE: font-size: .75em; text-transform: uppercase; */
  letter-spacing: .1em;
  margin: 1em 0;
  }

*[class^="SpaceBreakwithOrnament"],
*[class^="SpaceBreakwithALTOrnament"] {
  display: block;
  font-size: 1.125em;
  }

.SpaceBreakwithOrnamentorn,
.SpaceBreakwithALTOrnamentorn2 {
  display: block;
  font-size: 1.125em;
  }

/**[class^="SpaceBreakwithOrnament"] {
  content: "\2766"; /* U+2766 "floral heart"
  }

.SpaceBreakwithOrnamentorn {
  content: "\2766"; /* U+2766 "floral heart"
  }

*[class^="SpaceBreakwithALTOrnament"] {
  content: "\2756"; /* U+2756 "black diamond minus white"
  }

.SpaceBreakwithALTOrnamentorn2 {
  content: "\2756"; /* U+2756 "black diamond minus white"
  }*/

*[class^="BookmakerPageBreak"] {
  page-break-after: always;
}

.BookmakerPageBreakbr {
  page-break-after: always;
}

p.SpaceBreak-PrintOnlypo {
  display: none;
}

/*
--------------------------------------------------
EXTRACTS
--------------------------------------------------
*/

.Extractext,
.Extract-Newspapernews,
.Extract-Diaryextd,
.Extract-Transcripttrans,
.Extract-NoIndentext1,
.Extract-BulletListextbl,
.Extract-NumListextnl,
.ExtractHeadexth,
.Extract-VerseorPoetryextv,
.Extract-Noteextn,
.Extract-NoteHeadextnh,
.Extract-Headlineexthl,
.Extract-Emailextem,
.Extract-EmailHeadingemh,
.Extract-Websiteextws,
.Extract-SongLyricextsl,
.Extract-BusinessCardextbc,
.Extract-Telegramtel,
.Extract-Inscriptionins,
.Extract-ScheduleofEventssch {
  font-style: italic;
}

.Extract-NoIndentext1,
.Extract-BulletListextbl,
.Extract-NumListextnl,
.ExtractHeadexth,
.Extract-VerseorPoetryextv,
.Extract-NoteHeadextnh,
.Extract-Headlineexthl,
.Extract-EmailHeadingemh,
.Extract-SongLyricextsl,
.Extract-BusinessCardextbc,
.Extract-ScheduleofEventssch {
  text-indent: 0;
}

.Extractext em,
.Extract-Newspapernews em,
.Extract-Diaryextd em,
.Extract-Transcripttrans em,
.Extract-NoIndentext1 em,
.Extract-BulletListextbl em,
.Extract-NumListextnl em,
.ExtractHeadexth em,
.Extract-VerseorPoetryextv em,
.Extract-Noteextn em,
.Extract-NoteHeadextnh em,
.Extract-Headlineexthl em,
.Extract-Emailextem em,
.Extract-EmailHeadingemh em,
.Extract-Websiteextws em,
.Extract-SongLyricextsl em,
.Extract-BusinessCardextbc em,
.Extract-Telegramtel em,
.Extract-Inscriptionins em,
.Extract-ScheduleofEventssch em {
  font-style: normal;
}

*[class^="Extract"],
*[class*="Extract"] {
  font-style: italic;
  }

.Extract-Headlineexthl,
.Extract-EmailHeadingemh {
  text-indent: 0;
  text-transform: uppercase;
  letter-spacing: .075em;
  }

*[class^="Extract-Headline"],
*[class^="Extract-EmailHeading"] {
  text-indent: 0;
  text-transform: uppercase;
  letter-spacing: .075em;
  }

.Extract-Telegramtel {
  font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif;
  text-transform: uppercase;
  }

*[class^="Extract-Telegram"] {
  font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif;
  text-transform: uppercase;
  }

/* for kindle */
blockquote p:first-child {
  margin-left: 0;
}

/*
--------------------------------------------------
LETTERS
--------------------------------------------------
*/

.LetterExtHeadnotehn {
  text-transform: uppercase;
  letter-spacing: .075em;
  }
*[class^="LetterExtHeadnote"] {
  text-transform: uppercase;
  letter-spacing: .075em;
  }
.LetterExtHeadnotehn+p,
.LetterExtAddressladd,
.LetterExtSalutationlsa,
.LetterExtClosinglcl,
.LetterExtSignaturelsig,
.LetterExtPostscriptlps {
  text-indent: 0;
  }
*[class^="LetterExtHeadnote"]+p,
*[class^="LetterExtAddress"],
*[class^="LetterExtSalutation"],
*[class^="LetterExtClosing"],
*[class^="LetterExtSignature"],
*[class^="LetterExtPostscript"] {
  text-indent: 0;
  }
.LetterExtDatelineldl {
  margin: 1em 0;
  }
*[class^="LetterExtDateline"] {
  margin: 1em 0;
  }
p+.LetterExtSalutationlsa,
.LetterExtClosinglcl,
.LetterExtSignaturelsig,
.LetterExtPostscriptlps {
  margin-top: 1em;
  }
p+*[class^="LetterExtSalutation"],
*[class^="LetterExtClosing"],
*[class^="LetterExtSignature"],
*[class^="LetterExtPostscript"] {
  margin-top: 1em;
  }
.LetterExtClosinglcl+.LetterExtSignaturelsig {
  margin-top: 0;
  }
*[class^="LetterExtClosing"]+*[class^="LetterExtSignature"] {
  margin-top: 0;
  }

/*
--------------------------------------------------
SCREENPLAY
--------------------------------------------------
*/
.ScreenplayDramatisPersonaedp,
.ScreenplayHeadsph,
.ScreenplaySubheadspsh,
.ScreenplaySpeakers,
.ScreenplayTextsptx,
.ScreenplayTextNo-Indentsptx1,
.ScreenplayStageDirectionsd,
.ScreenplayExtractsp {
  font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif;
  font-style: normal;
  text-indent: 0;
  }
*[class*="Screenplay"] {
  font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif;
  font-style: normal;
  text-indent: 0;
  }
.ScreenplayDramatisPersonaedp,
.ScreenplayHeadsph,
.ScreenplaySubheadspsh,
.ScreenplaySpeakers {
  text-transform: uppercase;
  }
*[class^="ScreenplayDramatisPersonae"],
*[class^="ScreenplayHead"],
*[class^="ScreenplaySubhead"],
*[class^="ScreenplaySpeaker"] {
  text-transform: uppercase;
  }
.ScreenplayHeadsph,
.ScreenplaySubheadspsh {
  margin-top: 1em;
  margin-bottom: 1em;
  }
*[class^="ScreenplayHead"],
*[class^="ScreenplaySubhead"] {
  margin-top: 1em;
  margin-bottom: 1em;
  }
.ScreenplaySpeakers {
  text-align: center;
  margin-top: 1em;
  }
*[class^="ScreenplaySpeaker"] {
  text-align: center;
  margin-top: 1em;
  }
.ScreenplaySpeakers,
.ScreenplayTextsptx,
.ScreenplayTextNo-Indentsptx1 {
  margin-left: 3em;
  margin-right: 3em;
  }
*[class^="ScreenplaySpeaker"],
*[class^="ScreenplayText"],
*[class^="ScreenplayTextNo-Indent"] {
  margin-left: 3em;
  margin-right: 3em;
  }
.ScreenplayStageDirectionsd {
  font-style: italic;
  margin: 1em 0;
  }
*[class^="ScreenplayStageDirection"] {
  font-style: italic;
  margin: 1em 0;
  }
.ScreenplayTextsptx {
  text-indent: 1.5em;
  }
*[class^="ScreenplayText"] {
  text-indent: 1.5em;
  }

/*
--------------------------------------------------
POETRY
--------------------------------------------------
*/
.PoemTitlevt+.PoemSubtitlevst {
  margin-top: 0;
  }
*[class^="PoemTitle"]+*[class^="PoemSubtitle"] {
  margin-top: 0;
  }
.PoemDedicationvded {
  font-style: italic;
  font-variant: normal;
  text-transform: none;
  letter-spacing: 0;
  }
*[class^="PoemDedication"] {
  font-style: italic;
  font-variant: normal;
  text-transform: none;
  letter-spacing: 0;
  }
.VerseTextvtx,
.Epigraph-verseepiv,
.FMEpigraph-versefmepiv,
.PartEpigraph-versepepiv,
.ChapEpigraph-versecepiv,
.Extract-VerseorPoetryextv,
.Extract-SongLyricextsl,
.EpigraphinText-versetepiv,
.PoemEpigraph-versevepiv,
.BoxEpigraph-versebepiv,
.BoxExtract-Versebextv,
.SidebarEpigraph-versesbepiv,
.SidebarExtract-Versesbextv,
.Example-Versevexa {
  margin-left: 1.5em;
  text-indent: -1.5em;
  }
*[class^="VerseText"],
*[class^="Epigraph-verse"],
*[class^="FMEpigraph-verse"],
*[class^="PartEpigraph-verse"],
*[class^="ChapEpigraph-verse"],
*[class^="Extract-VerseorPoetry"],
*[class^="Extract-SongLyric"],
*[class^="EpigraphinText-verse"],
*[class^="PoemEpigraph-verse"],
*[class^="BoxEpigraph-verse"],
*[class^="BoxExtract-Verse"],
*[class^="SidebarEpigraph-verse"],
*[class^="SidebarExtract-Verse"],
*[class^="Example-Verse"] {
  margin-left: 1.5em;
  text-indent: -1.5em;
  }
blockquote .VerseTextvtx:first-child,
blockquote .Epigraph-verseepiv:first-child,
blockquote .FMEpigraph-versefmepiv:first-child,
blockquote .PartEpigraph-versepepiv:first-child,
blockquote .ChapEpigraph-versecepiv:first-child,
blockquote .Extract-VerseorPoetryextv:first-child,
blockquote .Extract-SongLyricextsl:first-child,
blockquote .EpigraphinText-versetepiv:first-child,
blockquote .PoemEpigraph-versevepiv:first-child,
blockquote .BoxEpigraph-versebepiv:first-child,
blockquote .BoxExtract-Versebextv:first-child,
blockquote .SidebarEpigraph-versesbepiv:first-child,
blockquote .SidebarExtract-Versesbextv:first-child,
blockquote .Example-Versevexa:first-child {
  margin-left: 1.5em;
  }
blockquote *[class*="-verse"]:first-child,
blockquote *[class*="Verse"]:first-child,
blockquote *[class^="Extract-SongLyric"]:first-child {
  margin-left: 1.5em;
}

.VerseRun-inTextvrtx,
.VerseRun-inTextNo-Indentvrtx1 {
  text-indent: 0;
  margin-left: 1.5em;
  }
*[class^="VerseRun-inText"] {
  text-indent: 0;
  margin-left: 1.5em;
  }
.PoemDatelinevdl,
.PoemDedicationvded {
  text-indent: 0;
  margin: 1em 0;
  }
*[class^="PoemDateline"],
*[class^="PoemDedication"] {
  text-indent: 0;
  margin: 1em 0;
  }

/*
--------------------------------------------------
LISTS
--------------------------------------------------
All list styles are included here. Since some
classes convert as p elements rather than li, they
need to be explicitly told to behave like list
items. Here is an example of the markup and the
basic CSS that would apply to it:

<p class="BulletListItem">foo</p>

[class^="BulletListItem"] {
  display: list-item;
  list-style: disc outside;
  }

Other styles are already converting semantically,
but they still include a p element, like so:

<ul>
  <li class="BulletListItem">
    <p class="BulletListItem">foo</p>
  </li>
</ul>

So, in this case, all the rules of
".BulletListItem" will be applied to both the li
and the p, which means there will be multiple
bullets for each list item. This is why styles
that are converting this way are commented out –
so that the list style will be applied to the li
but not the p. As the conversion tool is updated
to accommodate more of the list styles below,
their class names will each need to be commented
out (or deleted) to avoid the problem of redundant
list markers.

Note also that ordered lists include the numbers
in the text, which is why they have a
list-style-type of "none".

*/

*[class^="ListHead"] {
  font-weight: bold;
  text-indent: 0;
  margin: 1em 0;
  }
ul,
ol {
  margin: 1em 0;
  }
li,
/*
[class^="ListNum"],
[class^="ListNumSubentry"],
*/
*[class^="ListAlpha"],
/*
*[class^="ListAlphaSubentry"],
*[class^="ListBullet"],
*[class^="ListBulletSubentry"],
*[class^="ListUnnum"],
*[class^="ListUnnumSubentry"],
*/
*[class^="NumberedParagraph"],
*[class^="BulletedParagraph"],
/*
*[class^="Extract-NumList"],
*[class^="Extract-BulletList"],
*/
*[class^="IngredientsList"],
*[class^="Sub-RecipeIngredientsList"]
/*
*[class^="BoxListNumb"],
*[class^="BoxListBullet"],
*[class^="BoxListUnnum"],
*[class^="SidebarListNum"],
*[class^="SidebarListBullet"],
*[class^="SidebarListUnnum"],
*[class^="AppendixListNum"],
*[class^="AppendixListUnnum"],
*[class^="AppendixListBullet"]
*/ {
  display: list-item;
  list-style-position: outside;
  margin-left: 1.5em;
  text-indent: 0;
  }
li ul,
li ol {
  margin: 0;
  }
ul li,
/*
*[class^="ListBullet"],
*[class^="ListUnnum"],
*/
*[class^="BulletedParagraph"],
/*
*[class^="Extract-BulletList"],
*/
*[class^="IngredientsList"],
*[class^="Sub-RecipeIngredientsList"]
/*
*[class^="BoxListBullet"],
*[class^="BoxListUnnum"],
*[class^="SidebarListBullet"],
*[class^="SidebarListUnnum"],
*[class^="AppendixListUnnum"],
*[class^="AppendixListBullet"]
*/ {
  list-style-type: disc;
  }
li ul li,
*[class^="ListBulletSubentry"],
*[class^="ListUnnumSubentry"] {
  list-style-type: square;
  }
ol li,
/*
*[class^="ListNum"],
*[class^="ListNumSubentry"],
*/
*[class^="ListAlpha"],
/*
*[class^="ListAlphaSubentry"],
*/
*[class^="NumberedParagraph"]
/*
*[class^="Extract-NumList"],
*[class^="BoxListNum"],
*[class^="SidebarListNum"],
*[class^="AppendixListNum"]
*/ {
/*list-style-type: decimal;*/
  list-style-type: none;
  margin-top: 0.5em;
  }

.NumberedParagraphsnp {
  list-style-type: none;
  margin-top: 0.5em;
}

li ol li
/*
*[class^="ListNumSubentry"],
*[class^="ListAlphaSubentry"],
*/ {
  border-bottom: none;
  }
/*
*[class^="ListNumSubentry"] {
  list-style-type: lower-roman;
  }
*[class^="ListAlpha"] {
  list-style-type: upper-alpha;
  }
li[class^="ListAlphaSubentry"] {
  list-style-type: lower-alpha;
  }
*/
li[class^="Checklist"],
li[class^="ChecklistSubentry"] {
  list-style-type: none;
  text-indent: 0;
  margin-left: 1.5em;
  }
li[class^="Checklist"]:before,
li[class^="ChecklistSubentry"]:before {
  display: block;
  width: 1.5em;
  float: left;
  margin-left: -1.5em;
  text-align: center;
  content: "\2713"; /* U+2713 "check mark" */
  }
*[class^="ColumnHead"] {
  font-weight: bold;
  text-indent: 0;
  }

/*
*[class^="RecipeProcedure"],
*[class^="RecipeProceduresNoIndent"],
*[class^="Sub-RecipeProcedures"],
*[class^="Sub-RecipeProceduresNoIndent"],
*[class^="Definition-Numbered"]
*/

/*
--------------------------------------------------
ILLUSTRATIONS
--------------------------------------------------
*/

*[class^="Illustrationholder"] {
  margin-top: 1em;
  text-align: center;
  }

.Illustrationholderill {
  margin-top: 1em;
  text-align: center;
  }

h1 + *[class^="Illustrationholder"] {
  background-color: transparent;
  }

h1 + .Illustrationholderill {
  background-color: transparent;
  }

*[class^="Caption"] {
  color: #666;
  text-indent: 0;
  text-align: center;
  font-size: .875em;
  font-style: italic;
  padding: 1em 0;
  }

.Captioncap {
  color: #666;
  text-indent: 0;
  text-align: center;
  font-size: .875em;
  font-style: italic;
  padding: 1em 0;
  }

*[class^="IllustrationSource"] {
  font-size: 0.8em;
  text-align: center;
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0;
  }

.IllustrationSourceis {
  font-size: 0.8em;
  text-align: center;
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0;
  }

*[class^="Illustrationholder"]+p,
*[class^="IllustrationSource"]+p {
  margin-top: 1em;
  }

.Illustrationholderill+p,
.IllustrationSourceis+p {
  margin-top: 1em;
  }

*[class^="Illustrationholder"]+*[class^="IllustrationSource"] {
  margin-top: 0;
  }

.Illustrationholderill+.IllustrationSourceis {
  margin-top: 0;
  }

section.abouttheauthor figure.Illustrationholderill img {
  max-height: 50%;
}

img.titlepage {
  width: 100%;
}

/*
--------------------------------------------------
RECIPES
--------------------------------------------------
*/

*[class^="Menu"],
*[class^="ChapterContent"] {
  }
*[class^="RecipeHeadnote"],
*[class^="Sub-RecipeHeadnote"] {
  font-style: italic;
  text-indent: 0;
  }
*[class^="RecipeTime"],
*[class^="RecipeYield"],
*[class^="Sub-RecipeYield"],
*[class^="RecipeNutritionInfo"],
*[class^="RecipeGarnish"] {
  margin-top: 1em;
  margin-bottom: 1em;
  text-indent: 0;
  }
*[class^="RecipeVarHead"],
*[class^="RecipeVarText"],
*[class^="RecipeVarTextNo-Indent"],
*[class^="RecipeNoteHead"],
*[class^="RecipeNoteText"],
*[class^="RecipeNoteTextNo-Indent"] {
  font-style: italic;
  }
*[class^="Sub-RecipeHead"],
*[class^="Sub-RecipeSubhead"],
*[class^="Sub-RecipeLevel-2Subhead"],
*[class^="Sub-RecipeLevel-3Subhead"],
*[class^="Sub-RecipeLevel-4Subhead"],
*[class^="Sub-RecipeLevel-5Subhead"],
*[class^="Sub-RecipeHeadnote"],
*[class^="Sub-RecipeIngredientsHead"],
*[class^="Sub-RecipeIngredientsList"],
*[class^="Sub-RecipeProcedures"],
*[class^="Sub-RecipeProceduresNoIndent"],
*[class^="Sub-RecipeYields"] {
  margin-left: 1.5em;
  margin-right: 1.5em;
  }
*[class^="Sub-RecipeLevel-1Subhead"] {
  margin-left: 1em;
  margin-right: 1em;
  }
*[class^="Sub-RecipeIngredientsList"],
*[class^="Sub-RecipeProcedures"],
*[class^="Sub-RecipeProceduresNoIndent"] {
  margin-left: 3em;
  }

/*
--------------------------------------------------
BOXES AND SIDEBARS
--------------------------------------------------
*/

*[class^="TOCPartNumber"],
*[class^="TOCChapterNumber"],
*[class^="RecipeHead"],
*[class^="Sub-RecipeHead"],
*[class^="RecipeSubhead"],
*[class^="Sub-RecipeSubhead"],
*[class^="BoxHead"],
*[class^="BoxSubhead"],
*[class^="SidebarHead"],
*[class^="ExtractHead"],
*[class^="PoemTitle"],
*[class^="SidebarSubhead"],
*[class^="PoemSubtitle"],
*[class^="TableHead"],
*[class^="TableSubhead"],
*[class^="ChartHead"],
*[class^="ChartSubhead"],
*[class^="FigureHead"],
*[class^="FigureSubhead"] {
  text-align: center;
  padding: .5em 0;
  }
*[class^="BoxHead"]+p,
*[class^="SidebarHead"]+p,
*[class^="ExtractHead"]+p,
*[class^="PoemTitle"]+p {
  margin-top: 1em;
  }
*[class^="BoxSourceNote"],
*[class^="BoxFootnote"],
*[class^="SidebarSourceNote"],
*[class^="SidebarFootnote"] {
  font-size: .75em;
  text-indent: 0;
  margin: 1em 0;
  }
*[class^="BoxExtract"],
*[class^="BoxExtract-Verse"],
*[class^="SidebarExtract"],
*[class^="SidebarExtract-Verse"] {
  }

/*
--------------------------------------------------
TABLES, CHARTS, and FIGURES
--------------------------------------------------
*/

table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  }
th,
td {
  padding: .5em;
  border: 1px solid #ccc;
  }
*[class^="TableColumnHead"],
*[class^="TableSourceNote"],
*[class^="TableFootnote"],
*[class^="ChartColumnHead"],
*[class^="ChartLabel"],
*[class^="ChartSourceNote"],
*[class^="ChartFootnote"],
*[class^="FigureColumnHead"],
*[class^="FigureLabel"],
*[class^="FigureSourceNote"],
*[class^="FigureFootnote"] {
  text-indent: 0;
  }
*[class^="TableColumnHead"],
*[class^="ChartColumnHead"],
*[class^="FigureColumnHead"] {
  font-weight: bold;
  }
*[class^="TableSourceNote"],
*[class^="TableFootnote"],
*[class^="ChartSourceNote"],
*[class^="ChartFootnote"],
*[class^="FigureSourceNote"],
*[class^="FigureFootnote"] {
  font-size: .75em;
  margin: 1em 0;
  }

/*
--------------------------------------------------
GENERAL BACKMATTER HEADS
--------------------------------------------------
*/

.BMHeadbmh,
.BMTitlebmt,
.BMSubheadbmsh,
.BMHeadALTabmh {
  text-align: center;
  }
*[class^="BMHead"],
*[class^="BMTitle"],
*[class^="BMSubhead"],
*[class^="BMHeadALT"] {
  text-align: center;
  }
.BMHeadALTabmh,
.BMTextALTabmtx,
.BMTextALTNo-Indentabmtx1 {
  font-family: Helvetica,Arial,sans-serif;
  }
*[class^="BMHeadALT"],
*[class^="BMTextALT"],
*[class^="BMTextALTNo-Indent"] {
  font-family: Helvetica,Arial,sans-serif;
  }

/*
--------------------------------------------------
APPENDICES
--------------------------------------------------
*/

.AppendixHeadaph,
.AppendixSubheadapsh {
  text-align: center;
  }
*[class^="AppendixHead"],
*[class^="AppendixSubhead"] {
  text-align: center;
  }
.AppendixSourceNoteapsn,
.AppendixFootnoteapfn {
  font-size: .75em;
  text-indent: 0;
  margin: 1em 0;
  }
*[class^="AppendixSourceNote"],
*[class^="AppendixFootnote"] {
  font-size: .75em;
  text-indent: 0;
  margin: 1em 0;
  }

/*
--------------------------------------------------
BOB ADS
--------------------------------------------------
*/

.BOBAdTitlebobt,
.BOBAdSubtitlebobst,
.BOBAdLevel-1Subheadbobh1,
.BOBAdLevel-2Subheadbobh2,
.BOBAdLevel-3Subheadbobh3,
.BOBAdLevel-4Subheadbobh4,
.BOBAdLevel-5Subheadbobh5 {
  text-align: center;
  text-indent: 0;
  }

.BOBAdLevel-1Subheadbobh1 {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 1em;
}

/*
--------------------------------------------------
GLOSSARY and DICTIONARY-STYLE ENTRIES
--------------------------------------------------
*/

.Exampleexa,
.Example-Versevexa,
.Exampleegeg,
.Exampleindialogformexad {
  font-style: italic;
  }
*[class^="Example"],
*[class^="Example-Verse"],
*[class^="Exampleeg"],
*[class^="Exampleindialogform"] {
  font-style: italic;
  }
.GlossaryTextgltx,
.Entryen,
.Definitiondef,
.DefinitionSourcedefs,
.Exampleexa,
.Referencesee,
.Exampleegeg,
.Exampleindialogformexad {
  text-indent: 0;
  }
*[class^="GlossaryText"],
*[class^="Entry"],
*[class^="Definition"],
*[class^="DefinitionSource"],
*[class^="Example"],
*[class^="References"],
*[class^="Exampleeg"],
*[class^="Exampleindialogform"] {
  text-indent: 0;
  }
.DefinitionSourcedefs {
  margin: 1em 0;
  }
*[class^="DefinitionSource"] {
  margin: 1em 0;
  }

/*
--------------------------------------------------
ADDRESSES
--------------------------------------------------
*/

*[class^="Address"] {
  text-indent: 0;
  }

/*
--------------------------------------------------
NOTES SECTION
--------------------------------------------------
*/

div[data-type="footnotes"] {
  margin-top: 1em;
}

p[data-type="footnote"] {
  font-size: .75em;
  text-indent: 0;
  margin: 1em 0;
  }

*[class^="FootnoteText"],
*[class^="endnotetext"] {
  font-size: .75em;
  text-indent: 0;
  margin: 1em 0;
  }

/*
--------------------------------------------------
BIBLIOGRAPHY
--------------------------------------------------
*/

*[class^="BibliographyText"] {
  text-indent: 0;
  margin: 1em 0;
  }

/*
--------------------------------------------------
INDEX
--------------------------------------------------
*/

*[class^="IndexEntry"],
*[class^="IndexSubentry"],
*[class^="IndexSub-subentry"] {
  text-indent: 0;
  }
*[class^="IndexSubentry"] {
  margin-left: 1.5em;
  }
*[class^="IndexSub-subentry"] {
  margin-left: 3em;
  }

/*
--------------------------------------------------
Misc
--------------------------------------------------
*/

.EBKLinkSourceLa {
  text-indent: 0;
  text-align: center;
}

.left {
  text-align: left;
  text-indent: 0;
}

.center {
  text-align: center;
  text-indent: 0;
}

.right {
  text-align: right;
  text-indent: 0;
}

/*
--------------------------------------------------
Nonprinting elements
--------------------------------------------------
*/

h1.ChapTitleNonprintingctnp {
  display: none;
}

*[class*="Nonprinting"] {
  display: none;
}

.Nonprinting {
  display: none;
}

.texttoc {
  display: none;
}
And here is the same CSS with all the extra code removed and formatted by Calibre. 197 classes removed.
Code:
/*

Since, at the time of this writing, Macmillan's
Word > ePub conversion tool can't yet convert all
styles to semantically appropriate elements, the
CSS here targets almost every existing style by
name. Styles with shared attributes are grouped
together as much as possible (e.g. styles that are
meant to resolve to specific heading levels,
"space before" and "space after" styles, etc), and
are otherwise grouped by the categories defined in
the Word template.

Please note that the Lists section probably has
the greatest potential for confusion, and it may
need to be updated as the conversion tool is
updated. See the comments at the top of that
section for more information.

--------------------------------------------------
RESET
--------------------------------------------------
http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
@font-face {
  font-family: "noto";
  src: url(NotoSansSymbols-Regular.ttf);
}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1em;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}
/*
--------------------------------------------------
BASE STYLES
--------------------------------------------------
*/
body {
  font-size: medium;
  line-height: 1.2em;
  margin-top: 1em;
  margin-left: 1em;
  margin-right: 2em;
  font-family: Georgia, "Times New Roman", Times, serif, "noto", arial, Verdana, sans-serif;
  color: #000;
  background-color: #fff;
}
p + p, p.Text-Standardtx {
  text-indent: 1.5em;
}
blockquote {
  margin: 1em 1.5em;
  font-style: italic;
}
img {
  max-width: 100%;
  max-height: 100%;
}
em {
  font-size: inherit;
  font-style: italic;
}
strong {
  font-size: inherit;
  font-weight: bold;
}
span, a {
  font-size: inherit;
}
/*
--------------------------
NO INDENT
--------------------------
*/
h1 + p, *[class^="Head-Level-1"] + p, h2 + p, *[class^="Head-Level-2"] + p, h3 + p, *[class^="Head-Level-3"] + p, h4 + p, *[class^="Head-Level-4"] + p, h5 + p, *[class^="Head-Level-5"] + p, h6 + p, *[class^="Head-Level-6"] + p, *[class="NoIndent"], *[class*="No-Indent"] {
  text-indent: 0;
}
.Text-StdNo-Indenttx1, .ChapOpeningTextNo-Indentcotx1 {
  text-indent: 0;
}
/*
--------------------------
SPACE BEFORE
--------------------------
*/
/*
--------------------------
SPACE AROUND
--------------------------
*/
/*
--------------------------
SPACE AFTER
--------------------------
*/
/*
--------------------------------------------------
INLINE ELEMENTS
--------------------------------------------------
*/
a {
  text-decoration: none;
}
*[class^="spansmallcapscharacters"], *[class^="spansmcapbold"], *[class^="spansmcapital"], *[class^="spansmcapboldital"] {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.spansmallcapscharacterssc, .spansmcapboldscbold, .spansmcapitalscital, .spansmcapbolditalscbi {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/*
--------------------------------------------------
HEADINGS
--------------------------------------------------
COMBINATIONS
--------------------------
*/
/*
--------------------------
H1
--------------------------
*/
h1, .Head-Level-1h1 {
  text-indent: 0;
  font-size: 1.5em;
  line-height: 1.25em;
  margin: 0.666667em 0;
}
*[class*="Level-1Subhead"], *[class^="FrontSalesTitle"], *[class^="AdCardMainHead"], *[class^="HalftitleBookTitle"], *[class^="TitlepageBookTitle"], *[class^="TOCFrontmatterHead"], *[class^="TOCPartTitle"], *[class^="TOCChapterTitle"], *[class^="TOCLevel-1ChapterHead"], *[class^="FMHead"], *[class^="FMTitle"], *[class^="FMHeadALT"], *[class^="PartNumber"], *[class^="PartTitle"], *[class^="ChapNumber"], *[class^="ChapTitle"], *[class^="VolumeNumber"], *[class^="VolumeTitle"], *[class^="CollectionBookNumber"], *[class^="CollectionBookTitle"], *[class^="Head-Level-1"], *[class^="BoxHead-Level-1"], *[class^="SidebarHead-Level-1"], *[class^="TableNumber"], *[class^="ChartNumber"], *[class^="FigureNumber"], *[class^="BMHead"], *[class^="BMTitle"], *[class^="BMHeadALT"], *[class^="AppendixHead"], *[class^="BOBAdTitle"] {
  text-indent: 0;
  font-size: 1.5em;
  line-height: 1.25em;
  margin: 0.666667em 0;
}
*[class^="FrontSalesTitle"], *[class^="AdCardMainHead"], *[class^="HalftitleBookTitle"], *[class^="TitlepageBookTitle"], *[class^="PartTitle"], *[class^="ChapTitle"], *[class^="VolumeTitle"], *[class^="CollectionBookTitle"] {
  text-align: center;
}
.FrontSalesTitlefst, .AdCardMainHeadacmh, .HalftitleBookTitlehtit, .TitlepageBookTitletit, .PartTitlept, .ChapTitlect, .VolumeTitlevolt, .CollectionBookTitlebkt {
  text-align: center;
}
*[class^="PartTitle"], *[class^="ChapTitle"], *[class^="VolumeTitle"], *[class^="CollectionBookTitle"] {
  margin-bottom: 3em;
}
.PartTitlept, .ChapTitlect, .VolumeTitlevolt, .CollectionBookTitlebkt {
  margin-bottom: 3em;
}
/*
--------------------------
H2
--------------------------
*/
/*
--------------------------
H3
--------------------------
*/
/*
--------------------------
H4
--------------------------
*/
/*
--------------------------
H5
--------------------------
*/
/*
--------------------------
H6
--------------------------
*/
/*
--------------------------------------------------
FRONT SALES
--------------------------------------------------
*/
/*
--------------------------------------------------
AD CARD
--------------------------------------------------
*/
/*
--------------------------------------------------
TITLE PAGE
--------------------------------------------------
*/
/* for kindle eink */
section[data-type="titlepage"] {
  text-align: center;
}
section[data-type="titlepage"] img {
  text-align: center;
  width: auto;
}
/*
--------------------------------------------------
COPYRIGHT PAGE
--------------------------------------------------
*/
*[class^="CopyrightTextsinglespace"], *[class^="CopyrightTextdoublespace"] {
  font-size: 0.75em;
  text-indent: 0;
}
*[class^="CopyrightTextdoublespace"] {
  margin: 1em 0;
}
.CopyrightTextsinglespacecrtx, .CopyrightTextdoublespacecrtxd {
  font-size: 0.75em;
  text-indent: 0;
}
.CopyrightTextdoublespacecrtxd {
  margin: 1em 0;
}
/*
--------------------------------------------------
DEDICATION PAGE
--------------------------------------------------
*/
.Dedicationded, .DedicationAuthordedau {
  text-indent: 0;
  text-align: center;
  margin-left: 1.5em;
  margin-right: 1.5em;
  font-style: italic;
}
*[class^="Dedication"], *[class^="DedicationAuthor"] {
  text-indent: 0;
  text-align: center;
  margin-left: 1.5em;
  margin-right: 1.5em;
}
.Dedicationded {
  font-style: italic;
}
*[class^="Dedicationd"] {
  font-style: italic;
}
/*
--------------------------------------------------
EPIGRAPH PAGE (AND OTHER EPIGRAPHS)
--------------------------------------------------
*/
/*
--------------------------------------------------
CONTENTS PAGE
--------------------------------------------------
*/
/*
--------------------------------------------------
OTHER FRONTMATTER
--------------------------------------------------
*/
/*
--------------------------------------------------
PART OPENERS
--------------------------------------------------
*/
/*
--------------------------------------------------
CHAPTER OPENERS
--------------------------------------------------
*/
/*
--------------------------------------------------
TEXT
--------------------------------------------------
*/
/*
--------------------------------------------------
DISPLAY TEXT
--------------------------------------------------
*/
/*
--------------------------------------------------
SPACE BREAKS
--------------------------------------------------
*/
.SpaceBreak, .SectionBreaksbr, .SpaceBreakwithOrnamentorn, .SpaceBreakwithALTOrnamentorn2, .PartStartpts, .PartEndpte, .PageBreakpb, .SpaceBreak-1-Linels1, .SpaceBreak-2-Linels2, .SpaceBreak-3-Linels3 {
  text-indent: 0;
  text-align: center;
}
*[class^="SpaceBreak"], *[class^="SectionBreak"], *[class^="SpaceBreakwithOrnament"], *[class^="SpaceBreakwithALTOrnament"], *[class^="PartStart"], *[class^="PartEnd"], *[class^="PageBreak"], *[class^="SpaceBreak-1-Line"], *[class^="SpaceBreak-2-Line"], *[class^="SpaceBreak-3-Line"] {
  text-indent: 0;
  text-align: center;
}
*[class^="SpaceBreak"], *[class^="SectionBreak"], *[class^="SpaceBreakwithOrnament"], *[class^="SpaceBreakwithALTOrnament"], *[class^="SpaceBreak-1-Line"] {
  margin: 1em 0;
}
.SpaceBreak, .SectionBreaksbr, .SpaceBreakwithOrnamentorn, .SpaceBreakwithALTOrnamentorn2, .SpaceBreak-1-Linels1 {
  margin: 1em 0 2em 0;
}
*[class^="SpaceBreakwithOrnament"], *[class^="SpaceBreakwithALTOrnament"] {
  display: block;
  font-size: 1.125em;
}
.SpaceBreakwithOrnamentorn, .SpaceBreakwithALTOrnamentorn2 {
  display: block;
  font-size: 1.125em;
}
/**[class^="SpaceBreakwithOrnament"] {
  content: "❦"; /* U+2766 "floral heart"
  }

.SpaceBreakwithOrnamentorn {
  content: "❦"; /* U+2766 "floral heart"
  }

*[class^="SpaceBreakwithALTOrnament"] {
  content: "❖"; /* U+2756 "black diamond minus white"
  }

.SpaceBreakwithALTOrnamentorn2 {
  content: "❖"; /* U+2756 "black diamond minus white"
  }*/
/*
--------------------------------------------------
EXTRACTS
--------------------------------------------------
*/
.Extractext, .Extract-Newspapernews, .Extract-Diaryextd, .Extract-Transcripttrans, .Extract-NoIndentext1, .Extract-BulletListextbl, .Extract-NumListextnl, .ExtractHeadexth, .Extract-VerseorPoetryextv, .Extract-Noteextn, .Extract-NoteHeadextnh, .Extract-Headlineexthl, .Extract-Emailextem, .Extract-EmailHeadingemh, .Extract-Websiteextws, .Extract-SongLyricextsl, .Extract-BusinessCardextbc, .Extract-Telegramtel, .Extract-Inscriptionins, .Extract-ScheduleofEventssch {
  font-style: italic;
}
.Extract-NoIndentext1, .Extract-BulletListextbl, .Extract-NumListextnl, .ExtractHeadexth, .Extract-VerseorPoetryextv, .Extract-NoteHeadextnh, .Extract-Headlineexthl, .Extract-EmailHeadingemh, .Extract-SongLyricextsl, .Extract-BusinessCardextbc, .Extract-ScheduleofEventssch {
  text-indent: 0;
}
.Extractext em, .Extract-Newspapernews em, .Extract-Diaryextd em, .Extract-Transcripttrans em, .Extract-NoIndentext1 em, .Extract-BulletListextbl em, .Extract-NumListextnl em, .ExtractHeadexth em, .Extract-VerseorPoetryextv em, .Extract-Noteextn em, .Extract-NoteHeadextnh em, .Extract-Headlineexthl em, .Extract-Emailextem em, .Extract-EmailHeadingemh em, .Extract-Websiteextws em, .Extract-SongLyricextsl em, .Extract-BusinessCardextbc em, .Extract-Telegramtel em, .Extract-Inscriptionins em, .Extract-ScheduleofEventssch em {
  font-style: normal;
}
*[class^="Extract"], *[class*="Extract"] {
  font-style: italic;
}
/* for kindle */
blockquote p:first-child {
  margin-left: 0;
}
/*
--------------------------------------------------
LETTERS
--------------------------------------------------
*/
.LetterExtHeadnotehn + p, .LetterExtAddressladd, .LetterExtSalutationlsa, .LetterExtClosinglcl, .LetterExtSignaturelsig, .LetterExtPostscriptlps {
  text-indent: 0;
}
*[class^="LetterExtHeadnote"] + p, *[class^="LetterExtAddress"], *[class^="LetterExtSalutation"], *[class^="LetterExtClosing"], *[class^="LetterExtSignature"], *[class^="LetterExtPostscript"] {
  text-indent: 0;
}
p + .LetterExtSalutationlsa, .LetterExtClosinglcl, .LetterExtSignaturelsig, .LetterExtPostscriptlps {
  margin-top: 1em;
}
p + *[class^="LetterExtSalutation"], *[class^="LetterExtClosing"], *[class^="LetterExtSignature"], *[class^="LetterExtPostscript"] {
  margin-top: 1em;
}
.LetterExtClosinglcl + .LetterExtSignaturelsig {
  margin-top: 0;
}
*[class^="LetterExtClosing"] + *[class^="LetterExtSignature"] {
  margin-top: 0;
}
/*
--------------------------------------------------
SCREENPLAY
--------------------------------------------------
*/
/*
--------------------------------------------------
POETRY
--------------------------------------------------
*/
.VerseTextvtx, .Epigraph-verseepiv, .FMEpigraph-versefmepiv, .PartEpigraph-versepepiv, .ChapEpigraph-versecepiv, .Extract-VerseorPoetryextv, .Extract-SongLyricextsl, .EpigraphinText-versetepiv, .PoemEpigraph-versevepiv, .BoxEpigraph-versebepiv, .BoxExtract-Versebextv, .SidebarEpigraph-versesbepiv, .SidebarExtract-Versesbextv, .Example-Versevexa {
  margin-left: 1.5em;
  text-indent: -1.5em;
}
*[class^="VerseText"], *[class^="Epigraph-verse"], *[class^="FMEpigraph-verse"], *[class^="PartEpigraph-verse"], *[class^="ChapEpigraph-verse"], *[class^="Extract-VerseorPoetry"], *[class^="Extract-SongLyric"], *[class^="EpigraphinText-verse"], *[class^="PoemEpigraph-verse"], *[class^="BoxEpigraph-verse"], *[class^="BoxExtract-Verse"], *[class^="SidebarEpigraph-verse"], *[class^="SidebarExtract-Verse"], *[class^="Example-Verse"] {
  margin-left: 1.5em;
  text-indent: -1.5em;
}
blockquote .VerseTextvtx:first-child, blockquote .Epigraph-verseepiv:first-child, blockquote .FMEpigraph-versefmepiv:first-child, blockquote .PartEpigraph-versepepiv:first-child, blockquote .ChapEpigraph-versecepiv:first-child, blockquote .Extract-VerseorPoetryextv:first-child, blockquote .Extract-SongLyricextsl:first-child, blockquote .EpigraphinText-versetepiv:first-child, blockquote .PoemEpigraph-versevepiv:first-child, blockquote .BoxEpigraph-versebepiv:first-child, blockquote .BoxExtract-Versebextv:first-child, blockquote .SidebarEpigraph-versesbepiv:first-child, blockquote .SidebarExtract-Versesbextv:first-child, blockquote .Example-Versevexa:first-child {
  margin-left: 1.5em;
}
blockquote *[class*="-verse"]:first-child, blockquote *[class*="Verse"]:first-child, blockquote *[class^="Extract-SongLyric"]:first-child {
  margin-left: 1.5em;
}
/*
--------------------------------------------------
LISTS
--------------------------------------------------
All list styles are included here. Since some
classes convert as p elements rather than li, they
need to be explicitly told to behave like list
items. Here is an example of the markup and the
basic CSS that would apply to it:

<p class="BulletListItem">foo</p>

[class^="BulletListItem"] {
  display: list-item;
  list-style: disc outside;
  }

Other styles are already converting semantically,
but they still include a p element, like so:

<ul>
  <li class="BulletListItem">
    <p class="BulletListItem">foo</p>
  </li>
</ul>

So, in this case, all the rules of
".BulletListItem" will be applied to both the li
and the p, which means there will be multiple
bullets for each list item. This is why styles
that are converting this way are commented out –
so that the list style will be applied to the li
but not the p. As the conversion tool is updated
to accommodate more of the list styles below,
their class names will each need to be commented
out (or deleted) to avoid the problem of redundant
list markers.

Note also that ordered lists include the numbers
in the text, which is why they have a
list-style-type of "none".

*/
ul, ol {
  margin: 1em 0;
}
li, /*
[class^="ListNum"],
[class^="ListNumSubentry"],
*/*[class^="ListAlpha"], /*
*[class^="ListAlphaSubentry"],
*[class^="ListBullet"],
*[class^="ListBulletSubentry"],
*[class^="ListUnnum"],
*[class^="ListUnnumSubentry"],
*/*[class^="NumberedParagraph"], *[class^="BulletedParagraph"], /*
*[class^="Extract-NumList"],
*[class^="Extract-BulletList"],
*/*[class^="IngredientsList"], *[class^="Sub-RecipeIngredientsList"] /*
*[class^="BoxListNumb"],
*[class^="BoxListBullet"],
*[class^="BoxListUnnum"],
*[class^="SidebarListNum"],
*[class^="SidebarListBullet"],
*[class^="SidebarListUnnum"],
*[class^="AppendixListNum"],
*[class^="AppendixListUnnum"],
*[class^="AppendixListBullet"]
*/ {
  display: list-item;
  list-style-position: outside;
  margin-left: 1.5em;
  text-indent: 0;
}
ol li, /*
*[class^="ListNum"],
*[class^="ListNumSubentry"],
*/*[class^="ListAlpha"], /*
*[class^="ListAlphaSubentry"],
*/*[class^="NumberedParagraph"] /*
*[class^="Extract-NumList"],
*[class^="BoxListNum"],
*[class^="SidebarListNum"],
*[class^="AppendixListNum"]
*/ {
  /*list-style-type: decimal;*/
  list-style-type: none;
  margin-top: 0.5em;
}
/*
*[class^="ListNumSubentry"] {
  list-style-type: lower-roman;
  }
*[class^="ListAlpha"] {
  list-style-type: upper-alpha;
  }
li[class^="ListAlphaSubentry"] {
  list-style-type: lower-alpha;
  }
*/
/*
*[class^="RecipeProcedure"],
*[class^="RecipeProceduresNoIndent"],
*[class^="Sub-RecipeProcedures"],
*[class^="Sub-RecipeProceduresNoIndent"],
*[class^="Definition-Numbered"]
*/
/*
--------------------------------------------------
ILLUSTRATIONS
--------------------------------------------------
*/
*[class^="Illustrationholder"] {
  margin-top: 1em;
  text-align: center;
}
.Illustrationholderill {
  margin-top: 1em;
  text-align: center;
}
h1 + *[class^="Illustrationholder"] {
  background-color: transparent;
}
h1 + .Illustrationholderill {
  background-color: transparent;
}
*[class^="IllustrationSource"] {
  font-size: 0.8em;
  text-align: center;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.IllustrationSourceis {
  font-size: 0.8em;
  text-align: center;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
*[class^="Illustrationholder"] + p, *[class^="IllustrationSource"] + p {
  margin-top: 1em;
}
.Illustrationholderill + p, .IllustrationSourceis + p {
  margin-top: 1em;
}
section.abouttheauthor figure.Illustrationholderill img {
  max-height: 50%;
}
img.titlepage {
  width: 100%;
}
/*
--------------------------------------------------
RECIPES
--------------------------------------------------
*/
/*
--------------------------------------------------
BOXES AND SIDEBARS
--------------------------------------------------
*/
/*
--------------------------------------------------
TABLES, CHARTS, and FIGURES
--------------------------------------------------
*/
/*
--------------------------------------------------
GENERAL BACKMATTER HEADS
--------------------------------------------------
*/
.BMHeadbmh, .BMTitlebmt, .BMSubheadbmsh, .BMHeadALTabmh {
  text-align: center;
}
*[class^="BMHead"], *[class^="BMTitle"], *[class^="BMSubhead"], *[class^="BMHeadALT"] {
  text-align: center;
}
/*
--------------------------------------------------
APPENDICES
--------------------------------------------------
*/
/*
--------------------------------------------------
BOB ADS
--------------------------------------------------
*/
/*
--------------------------------------------------
GLOSSARY and DICTIONARY-STYLE ENTRIES
--------------------------------------------------
*/
/*
--------------------------------------------------
ADDRESSES
--------------------------------------------------
*/
/*
--------------------------------------------------
NOTES SECTION
--------------------------------------------------
*/
/*
--------------------------------------------------
BIBLIOGRAPHY
--------------------------------------------------
*/
/*
--------------------------------------------------
INDEX
--------------------------------------------------
*/
/*
--------------------------------------------------
Misc
--------------------------------------------------
*/
/*
--------------------------------------------------
Nonprinting elements
--------------------------------------------------
*/
h1.ChapTitleNonprintingctnp {
  display: none;
}
*[class*="Nonprinting"] {
  display: none;
}
.Nonprinting {
  display: none;
}
After cleaning up the CSS and HTML, I was able to get the CSS to look like this with just 18 classes and it's a lot simpler and the eBook is much better formatted.
Code:
blockquote {
  margin: 1em 1.5em;
}
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
img {
  max-width: 100%;
  max-height: 100%;
}
p {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 1.2em;
}
.caption {
  font-size: small;
  text-align: center;
  text-indent: 0;
  margin-bottom: 1em;
}
.ChapTitlect {
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  text-indent: 0;
  margin-top: 0.6em;
  margin-bottom: 0.6em;
}
.closing {
  text-align: right;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
  text-indent: 0;
}
.closing2 {
  text-align: right;
  text-indent: 0;
}
.cop {
  font-size: small;
  text-indent: 0;
}
.cop-space {
  font-size: small;
  margin-top: 0.8em;
  text-indent: 0;
}
.cover {
  text-align: center;
  text-indent: 0;
  height: 100%;
}
.dear {
  text-indent: 0;
}
.ded {
  font-style: italic;
  text-align: center;
  text-indent: 0;
  margin-top: 2em;
}
.ded1 {
  font-style: italic;
  text-align: center;
  text-indent: 0;
}
.noindent {
  text-indent: 0;
}
.ptitle {
  font-size: x-large;
  font-weight: bold;
  text-align: center;
  text-indent: 0;
  margin-top: 2em;
}
.smallcaps {
  font-size: 0.8em;
}
.space {
  margin-top: 1em;
}
.spacebreak {
  text-align: center;
  text-indent: 0;
  margin-top: 0.8em;
  margin-bottom: 0.5em;
}
JSWolf is offline   Reply With Quote
Old 05-19-2020, 09:19 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 7,424
Karma: 32971131
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
I suspect most of what needs to be said about that stylesheet is said in the first few lines:

Quote:
Since, at the time of this writing, Macmillan's
Word > ePub conversion tool can't yet convert all
styles to semantically appropriate elements, the
CSS here targets almost every existing style by
name.
Looking at Eric Meyer's reset css included in the code brought back sad memories of his daughter Rebecca and the rebeccapurple colour.
DNSB is online now   Reply With Quote
Old 05-20-2020, 04:24 AM   #3
najgori
Klak
najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.najgori is considered a powerful good luck charm in most of the civilised world.
 
najgori's Avatar
 
Posts: 140
Karma: 148812
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
Strange things one can find while googling epub css files:
Steganography via E-Books with the EPUB Format by Rearrangements of the Contents of the CSS Files
najgori is offline   Reply With Quote
Old 05-20-2020, 04:30 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 56,916
Karma: 52002826
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by DNSB View Post
I suspect most of what needs to be said about that stylesheet is said in the first few lines:

Quote:
Since, at the time of this writing, Macmillan's Word > ePub conversion tool can't yet convert all styles to semantically appropriate elements, the CSS here targets almost every existing style by name.
Looking at Eric Meyer's reset css included in the code brought back sad memories of his daughter Rebecca and the rebeccapurple colour.
The eBook is from 2017. Hopefully, we won't ever see such a mess from any books published now. This is a TOR eBook. Calibre could have done a much better conversion a4nd the cleanup would have been a lot easier. Another option back then could have been Word > HTML > Sigil

As for the Eric Myers book, what is the title? I'd like to see if it's available at the library with Overdrive.

Last edited by JSWolf; 05-20-2020 at 04:34 AM.
JSWolf is offline   Reply With Quote
Old 05-20-2020, 11:52 AM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 7,424
Karma: 32971131
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by JSWolf View Post
As for the Eric Myers book, what is the title? I'd like to see if it's available at the library with Overdrive.
It's not a book. The reset.css can be found on his website.

This is the link to the 2011 version of reset.css: CSS Tools: Reset CSS which was intended for web pages.

As for his daughter Rebecca, see Rebeccapurple and The “Hidden” Purple Memorial in Your Web Browser.
DNSB is online now   Reply With Quote
Old 05-20-2020, 12:30 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 56,916
Karma: 52002826
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by DNSB View Post
It's not a book. The reset.css can be found on his website.

This is the link to the 2011 version of reset.css: CSS Tools: Reset CSS which was intended for web pages.

As for his daughter Rebecca, see Rebeccapurple and The “Hidden” Purple Memorial in Your Web Browser.
That is a pretty bad CSS (reset.css). No way I would ever use it.

As for rebeccapurple, I didn't know about it and I really like it. It is a nice tribute to Rebecca.
JSWolf is offline   Reply With Quote
Old 05-20-2020, 12:46 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 7,424
Karma: 32971131
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by JSWolf View Post
That is a pretty bad CSS (reset.css). No way I would ever use it.

As for rebeccapurple, I didn't know about it and I really like it. It is a nice tribute to Rebecca.
To quote from Eric Meyer's webpage:
Quote:
The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.
It is not intended to be a live CSS nor was it intended for use in an epub.

As I mentioned, just seeing the reset.css in the stylesheet you posted brought back those memories. I agree it was very nice tribute to Rebecca.
DNSB is online now   Reply With Quote
Old 05-21-2020, 09:31 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 56,916
Karma: 52002826
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Do we need a reset CSS? Is there any program that reads ePub that does not have proper defaults?
JSWolf is offline   Reply With Quote
Old 05-21-2020, 01:17 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 7,424
Karma: 32971131
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Do we need a reset CSS? Is there any program that reads ePub that does not have proper defaults?
Who knows? Eric's intended use for his reset.css was for web browsers where defaults seemed to be set at random.
DNSB is online now   Reply With Quote
Old Yesterday, 03:36 PM   #10
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,537
Karma: 7400529
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by JSWolf View Post
Do we need a reset CSS? Is there any program that reads ePub that does not have proper defaults?
It's a very bad idea in ebooks, and usually leads to serious trouble.

See 2019's topic, "Revolutionary code? Need feedback" discussing Blitz and some problems that creep up while using it. (Also, if I remember correctly, Hitch discussed/warned against resets somewhere in that thread.)

As always, best to just KISS. Trying to override everything will cause all these weird edge-case quirks/bugs in ereaders.
Tex2002ans is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Note 10.3 - bad battery or bad firmware? LordP Onyx Boox 3 05-23-2019 08:00 AM
pagestyle.css extra / integrated in stylesheet.css / or not at all? chaot Workshop 14 02-24-2017 11:10 PM
ADE breaks CSS --> CSS Validation: Parse Error / Value Error dasboeh ePub 4 12-10-2012 03:25 AM
Override ePub CSS with userStyle.css? barium Sony Reader Dev Corner 11 07-16-2011 03:25 PM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM


All times are GMT -4. The time now is 05:37 PM.


MobileRead.com is a privately owned, operated and funded community.