Skip to content

Instantly share code, notes, and snippets.

@luckylittle
Created April 9, 2020 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckylittle/9a6d99def44a48796fbcb1475e81c7ae to your computer and use it in GitHub Desktop.
Save luckylittle/9a6d99def44a48796fbcb1475e81c7ae to your computer and use it in GitHub Desktop.
Patch for the faulty epub.css in Building Secure and Reliable Systems ebook by Heather Adkins, Betsy Beyer, Paul Blankinship, Ana Oprea, Piotr Lewandowski, Adam Stubblefield
--- epub.css 2020-03-12 14:34:26.000000000 +1100
+++ epub-new.css 2020-04-09 20:26:32.000000000 +1000
@@ -142,7 +142,6 @@
h1, div.toc-title, h2, h3, h4, h5 {
-webkit-hyphens: none;
hyphens: none;
- adobe-hyphenate: none;
font-weight: bold;
text-align: left;
page-break-after: avoid !important;
@@ -326,7 +325,6 @@
display: block;
-webkit-hyphens: none;
hyphens: none;
- adobe-hyphenate: none;
overflow-wrap: break-word;
}
@@ -340,7 +338,6 @@
font-family: "Ubuntu Mono", monospace;
-webkit-hyphens: none;
hyphens: none;
- adobe-hyphenate: none;
overflow-wrap: break-word;
}
@@ -594,7 +591,6 @@
content: "\2014";
-webkit-hyphens: none;
hyphens: none;
- adobe-hyphenate: none;
}
p.right {
@@ -997,7 +993,7 @@
word-break: break-all;
}
-table.border td { border-bottom: 0.25pt solid rgb-icc(#Grayscale, 0); }
+table.border td { border-bottom: 0.25pt solid #D3D3D3; }
table.border tbody > tr:last-child > td { border-bottom: transparent; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment