1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Merge pull request #889 from yellowtree/css_serialized

Implement serialized themes CSS
This commit is contained in:
Fred Chasen 2020-05-13 21:44:41 -07:00 committed by GitHub
commit 9bd844036d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 57 additions and 19 deletions

4
types/contents.d.ts vendored
View file

@ -28,7 +28,9 @@ export default class Contents {
addStylesheet(src: string): Promise<boolean>;
addStylesheetRules(rules: Array<object> | object): Promise<boolean>;
addStylesheetRules(rules: Array<object> | object, key: string): Promise<boolean>;
addStylesheetCss(serializedCss: string, key: string): Promise<boolean>;
cfiFromNode(node: Node, ignoreClass?: string): string;

2
types/themes.d.ts vendored
View file

@ -14,6 +14,8 @@ export default class Themes {
registerThemes( themes: object ): void;
registerCss( name: string, css: string ): void;
registerUrl( name: string, input: string ): void;
registerRules( name: string, rules: object ): void;