-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathReadiumCSS-config.css
More file actions
54 lines (39 loc) · 2.08 KB
/
ReadiumCSS-config.css
File metadata and controls
54 lines (39 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* Readium CSS
Config module
A file allowing implementers to customize flags for user settings, etc.
Repo: https://github.com/readium/css */
/* Custom selectors
Syntax: @custom-selector :--variable selector
The selectors you will use for flags/switches
You can alternatively use classes or custom data-* attributes */
/* User view = paged | scrolled */
@custom-selector :--paged-view [style*="readium-paged-on"];
@custom-selector :--scroll-view [style*="readium-scroll-on"];
/* Disabling the new implementation for font-size */
@custom-selector :--deprecated-font-size [style*="readium-deprecatedFontSize-on"];
/* Font-size normalization for engines that don’t support zoom */
@custom-selector :--fs-normalize [style*="readium-normalize-on"];
/* Filters (images) */
@custom-selector :--blend-filter [style*="readium-blend-on"];
@custom-selector :--darken-filter [style*="readium-darken-on"];
@custom-selector :--invert-filter [style*="readium-invert-on"];
@custom-selector :--invert-gaiji [style*="readium-invertGaiji-on"];
/* Disabling pagination for vertical writing */
@custom-selector :--no-vertical-pagination [style*="readium-noVerticalPagination-on"];
/* Disabling overflow */
@custom-selector :--no-overflow [style*="readium-noOverflow-on"];
/* Hiding ruby */
@custom-selector :--no-ruby [style*="readium-noRuby-on"];
/* Accessibility normalization */
@custom-selector :--a11y-normalize [style*="readium-a11y-on"];
/* Accessibility font. You can add selectors, using “, ” as a separator, if you have multiple fonts */
@custom-selector :--a11y-font [style*="AccessibleDfA"], [style*="IA Writer Duospace"];
/* Direction i.e. ltr and rtl */
@custom-selector :--ltr [dir="ltr"];
@custom-selector :--rtl [dir="rtl"];
/* Patch for iOS and iPadOS */
@custom-selector :--iOS-patch [style*="readium-iOSPatch-on"];
@custom-selector :--ipadOS-patch [style*="readium-iPadOSPatch-on"];
/* Experimental/Feature flags */
@custom-selector :--experimental-zoom [style*="readium-experimentalZoom-on"];
@custom-selector :--experimental-header-filtering [style*="readium-experimentalHeaderFiltering-on"];