Skip to content

Commit

Permalink
fix: some style not apply #24, #28
Browse files Browse the repository at this point in the history
  • Loading branch information
Anxcye committed Aug 17, 2024
1 parent 7481345 commit ba385f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/foliate-js/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const getCSS = ({ fontSize,
color: ${fontColor} !important;
background: none !important;
background-color: ${backgroundColor} !important;
font-size: ${fontSize}em;
font-size: ${fontSize}em !important;
letter-spacing: ${letterSpacing}px;
}
/* https://github.com/whatwg/html/issues/5426 */
Expand All @@ -240,8 +240,9 @@ const getCSS = ({ fontSize,
}
}
p, li, blockquote, dd, div{
line-height: ${spacing};
padding-bottom: ${paragraphSpacing}em;
color: ${fontColor} !important;
line-height: ${spacing} !important;
padding-bottom: ${paragraphSpacing}em !important;
text-align: ${justify ? 'justify' : 'start'};
-webkit-hyphens: ${hyphenate ? 'auto' : 'manual'};
hyphens: ${hyphenate ? 'auto' : 'manual'};
Expand Down

0 comments on commit ba385f1

Please sign in to comment.