Skip to content

Commit 7e341c2

Browse files
authoredJan 9, 2025··
Merge pull request #163 from readium/theming-improvements
Theming improvements
2 parents b7616fc + 268eebf commit 7e341c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+914
-143
lines changed
 

‎backstop.json

+28-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"id": "ReadiumCSS",
33
"viewports": [
4-
{
5-
"label": "phone",
6-
"width": 375,
7-
"height": 667
8-
},
94
{
105
"label": "tablet",
116
"width": 1024,
@@ -97,6 +92,13 @@
9792
"selectors": ["document"],
9893
"misMatchThreshold" : 0.1
9994
},
95+
{
96+
"label": "Theming (Reading System)",
97+
"url": "http://localhost:8000/tests/theming.html",
98+
"delay": 0,
99+
"selectors": ["document"],
100+
"misMatchThreshold" : 0.1
101+
},
100102
{
101103
"label": "Font family pref",
102104
"url": "http://localhost:8000/tests/font-family.html",
@@ -236,6 +238,27 @@
236238
"delay": 0,
237239
"selectors": ["document"],
238240
"misMatchThreshold" : 0.1
241+
},
242+
{
243+
"label": "Blend Filter pref",
244+
"url": "http://localhost:8000/tests/blend-filter.html",
245+
"delay": 0,
246+
"selectors": ["document"],
247+
"misMatchThreshold" : 0.1
248+
},
249+
{
250+
"label": "Darken Filter pref",
251+
"url": "http://localhost:8000/tests/darken-filter.html",
252+
"delay": 0,
253+
"selectors": ["document"],
254+
"misMatchThreshold" : 0.1
255+
},
256+
{
257+
"label": "Invert Filter pref",
258+
"url": "http://localhost:8000/tests/invert-filter.html",
259+
"delay": 0,
260+
"selectors": ["document"],
261+
"misMatchThreshold" : 0.1
239262
}
240263
],
241264
"paths": {

‎css/ReadiumCSS-config.css

+2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
@custom-selector :--night-mode [style*="readium-night-on"];
2727

2828
/* Filters (images) */
29+
@custom-selector :--blend-filter [style*="readium-blend-on"];
2930
@custom-selector :--darken-filter [style*="readium-darken-on"];
3031
@custom-selector :--invert-filter [style*="readium-invert-on"];
32+
@custom-selector :--invert-gaiji [style*="readium-invertGaiji-on"];
3133

3234
/* Disabling pagination for vertical writing */
3335
@custom-selector :--no-vertical-pagination [style*="readium-noVerticalPagination-on"];

0 commit comments

Comments
 (0)
Please sign in to comment.