|
15 | 15 |
|
16 | 16 | <p>[Implementers’ doc]</p> |
17 | 17 |
|
| 18 | + <p>This document is meant to list all the customizable medias and flags (to be found in <code>ReadiumCSS-config.css</code>), as well as all the CSS variables for Reading System and User styles available in the <code>dist</code> stylesheets.</p> |
| 19 | + |
18 | 20 | <p>As a reminder, the priority is, in general:</p> |
19 | 21 |
|
20 | 22 | <pre><code>USER > AUTHOR > RS</code></pre> |
|
40 | 42 | <section id="customizable-medias" class="level2"> |
41 | 43 | <h2 id="sigil_toc_id_183">Customizable medias</h2> |
42 | 44 |
|
| 45 | + <p>You will find those customizable medias in <code>ReadiumCSS-config.css</code>. The values defined are used in media queries to control use of the auto pagination model.</p> |
| 46 | + |
43 | 47 | <hr/> |
44 | 48 |
|
45 | 49 | <pre><code>--responsive-columns</code></pre> |
|
72 | 76 | <section id="customizable-flags" class="level2"> |
73 | 77 | <h2 id="sigil_toc_id_184">Customizable flags</h2> |
74 | 78 |
|
75 | | - <p>Those custom selectors can be customized before runtime. Check the <a href="../Text/Section-002.xhtml">“Quickstart” doc</a> for further details.</p> |
| 79 | + <p>You will find those customizable flags in <code>ReadiumCSS-config.css</code>, and can think of the preset values as boolean inline styles: if they are set on the <code>:root</code> element (i.e. <code>html</code>) then the flag is enabled. If another value is, or they are removed, then the flag is disabled.</p> |
| 80 | + |
| 81 | + <p>Those custom selectors can only be customized before runtime. You could for example use a class or a custom attribute instead of an inline style. Check the <a href="../Text/Section-012.xhtml#sigil_toc_id_177">“User Settings”</a> and <a href="../Text/Section-002.xhtml">“Quickstart”</a> docs for further details.</p> |
76 | 82 |
|
77 | | - <p>The “dummy CSS variable” is a recommended CSS custom property name you can use to set the default value if you don’t customize those selectors and just keep the default.</p> |
| 83 | + <p><strong>Note:</strong> The preset is not a default implementers should use. Indeed, the initialization of those flags depends on your user settings’ management e.g. apply user settings to all EPUBs, only the ones that have already been customized, etc.</p> |
78 | 84 |
|
79 | 85 | <hr/> |
80 | 86 |
|
81 | | - <pre><code>:--scroll-view</code></pre> |
| 87 | + <pre><code>:--paged-view</code></pre> |
82 | 88 |
|
83 | | - <p>Default is <code>readium-scroll-on</code></p> |
| 89 | + <p>Preset: <code>--USER__view: readium-paged-on</code></p> |
84 | 90 |
|
85 | 91 | <p>Scope: <code>html</code></p> |
86 | 92 |
|
87 | | - <p>Dummy CSS variable: <code>--USER__view</code></p> |
| 93 | + <p>Override class: Chrome (should be applied by any means necessary)</p> |
| 94 | + |
| 95 | + <hr/> |
| 96 | + |
| 97 | + <pre><code>:--scroll-view</code></pre> |
| 98 | + |
| 99 | + <p>Preset: <code>--USER__view: readium-scroll-on</code></p> |
| 100 | + |
| 101 | + <p>Scope: <code>html</code></p> |
88 | 102 |
|
89 | 103 | <p>Override class: Chrome (should be applied by any means necessary)</p> |
90 | 104 |
|
91 | 105 | <hr/> |
92 | 106 |
|
93 | 107 | <pre><code>:--font-override</code></pre> |
94 | 108 |
|
95 | | - <p>Default is <code>readium-font-on</code></p> |
| 109 | + <p>Preset: <code>--USER__fontOverride: readium-font-on</code></p> |
96 | 110 |
|
97 | 111 | <p>Scope: <code>html</code></p> |
98 | 112 |
|
99 | | - <p>Dummy CSS variable: <code>--USER__fontOverride</code></p> |
100 | | - |
101 | 113 | <p>Override class: None. This flag is required to change the <code>font-family</code> user setting.</p> |
102 | 114 |
|
103 | 115 | <hr/> |
104 | 116 |
|
105 | 117 | <pre><code>:--advanced-settings</code></pre> |
106 | 118 |
|
107 | | - <p>Default is <code>readium-advanced-on</code></p> |
| 119 | + <p>Preset: <code>--USER__advancedSettings: readium-advanced-on</code></p> |
108 | 120 |
|
109 | 121 | <p>Scope: <code>html</code></p> |
110 | 122 |
|
111 | | - <p>Dummy CSS variable: <code>--USER__advancedSettings</code></p> |
112 | | - |
113 | 123 | <p>Override class: None. This flag is required to apply the <code>font-family</code>, the <code>font-size</code> and/or advanced user settings.</p> |
114 | 124 |
|
115 | 125 | <hr/> |
116 | 126 |
|
117 | 127 | <pre><code>:--sepia-mode</code></pre> |
118 | 128 |
|
119 | | - <p>Default is <code>readium-sepia-on</code></p> |
| 129 | + <p>Preset: <code>--USER__appearance: readium-sepia-on</code></p> |
120 | 130 |
|
121 | 131 | <p>Scope: <code>html</code></p> |
122 | 132 |
|
123 | | - <p>Dummy CSS variable: <code>--USER__appearance</code></p> |
124 | | - |
125 | 133 | <p>Override class: Chrome (should be applied by any means necessary)</p> |
126 | 134 |
|
127 | 135 | <p>This flag applies the sepia reading mode.</p> |
|
130 | 138 |
|
131 | 139 | <pre><code>:--night-mode</code></pre> |
132 | 140 |
|
133 | | - <p>Default is <code>readium-night-on</code></p> |
| 141 | + <p>Preset: <code>--USER__appearance: readium-night-on</code></p> |
134 | 142 |
|
135 | 143 | <p>Scope: <code>html</code></p> |
136 | 144 |
|
137 | | - <p>Dummy CSS variable: <code>--USER__appearance</code></p> |
138 | | - |
139 | 145 | <p>Override class: Chrome (should be applied by any means necessary)</p> |
140 | 146 |
|
141 | 147 | <p>This flag applies the night reading mode.</p> |
|
144 | 150 |
|
145 | 151 | <pre><code>:--darken-filter</code></pre> |
146 | 152 |
|
147 | | - <p>Default is <code>readium-darken-on</code></p> |
| 153 | + <p>Preset: <code>--USER__darkenImages: readium-darken-on</code></p> |
148 | 154 |
|
149 | 155 | <p>Scope: <code>html</code></p> |
150 | 156 |
|
151 | | - <p>Dummy CSS variable: <code>--USER__darkenImages</code></p> |
152 | | - |
153 | 157 | <p>Override class: Chrome advanced (optional but should be applied by any means necessary if provided to users)</p> |
154 | 158 |
|
155 | 159 | <p>This will only apply in night mode to darken images and impact <code>img</code>.</p> |
|
158 | 162 |
|
159 | 163 | <pre><code>:--invert-filter</code></pre> |
160 | 164 |
|
161 | | - <p>Default is <code>readium-invert-on</code></p> |
| 165 | + <p>Preset: <code>--USER__invertImages: readium-invert-on</code></p> |
162 | 166 |
|
163 | 167 | <p>Scope: <code>html</code></p> |
164 | 168 |
|
165 | | - <p>Dummy CSS variable: <code>--USER__invertImages</code></p> |
166 | | - |
167 | 169 | <p>Override class: Chrome advanced (optional but should be applied by any means necessary if provided to users)</p> |
168 | 170 |
|
169 | 171 | <p>This will only apply in night mode to invert images and impact <code>img</code>.</p> |
|
172 | 174 |
|
173 | 175 | <pre><code>:--a11y-normalize</code></pre> |
174 | 176 |
|
175 | | - <p>Default is <code>readium-a11y-on</code></p> |
| 177 | + <p>Preset: <code>--USER__a11yNormalize: readium-a11y-on</code></p> |
176 | 178 |
|
177 | 179 | <p>Scope: <code>html</code></p> |
178 | 180 |
|
179 | | - <p>Dummy CSS variable: <code>--USER__a11yNormalize</code></p> |
180 | | - |
181 | 181 | <p>Required flag: <code>:--fontOverride</code></p> |
182 | 182 |
|
183 | 183 | <p>Override class: User settings advanced (optional but should be applied by any means necessary if provided to users)</p> |
|
0 commit comments