Skip to content

Commit c78b885

Browse files
committed
Remove compensation for a11y font + normalize
1 parent eddbd17 commit c78b885

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

css/src/modules/user-settings-submodules/ReadiumCSS-a11yFont_pref.css

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,49 +11,42 @@
1111
:root:--font-override[style*="AccessibleDfA"] {
1212
/* We won’t use the variable there since we need fallbacks for missing characters */
1313
font-family: AccessibleDfA, Verdana, Tahoma, "Trebuchet MS", sans-serif !important;
14-
--RS__lineHeightCompensation: 1.167;
1514
}
1615

1716
:root:--font-override[style*="IA Writer Duospace"] {
1817
/* We won’t use the variable there since we need fallbacks for missing characters */
1918
font-family: "IA Writer Duospace", Menlo, "DejaVu Sans Mono", "Bitstream Vera Sans Mono", Courier, monospace !important;
20-
--RS__lineHeightCompensation: 1.167;
21-
}
22-
23-
:root:--font-override:--a11y-normalize {
24-
font-family: var(--USER__fontFamily) !important;
25-
--RS__lineHeightCompensation: 1.167;
2619
}
2720

2821
/* Maybe users want a setting to normalize any font offered so there is a “a11y Normalize” flag for it */
2922

3023
:root:--font-override:--a11y-font,
31-
:root:--font-override:--a11y-normalize {
24+
:root:--a11y-normalize {
3225
font-weight: normal !important;
3326
font-style: normal !important;
3427
}
3528

3629
/* Targeting everything except code. Note that Open Dyslexic has a monospaced font for code */
3730
:root:--font-override:--a11y-font *:not(code):not(var):not(kbd):not(samp),
38-
:root:--font-override:--a11y-normalize *:not(code):not(var):not(kbd):not(samp) {
31+
:root:--a11y-normalize *:not(code):not(var):not(kbd):not(samp) {
3932
font-family: inherit !important;
4033
font-weight: inherit !important;
4134
font-style: inherit !important;
4235
}
4336

4437
/* Normalizing text-decoration, subs and sups */
4538
:root:--font-override:--a11y-font *,
46-
:root:--font-override:--a11y-normalize * {
39+
:root:--a11y-normalize * {
4740
text-decoration: none !important;
4841
font-variant-caps: normal !important;
4942
font-variant-position: normal !important;
5043
font-variant-numeric: normal !important;
5144
}
5245

5346
:root:--font-override:--a11y-font sup,
54-
:root:--font-override:--a11y-normalize sup,
47+
:root:--a11y-normalize sup,
5548
:root:--font-override:--a11y-font sub,
56-
:root:--font-override:--a11y-normalize sub {
49+
:root:--a11y-normalize sub {
5750
font-size: 1rem !important;
5851
vertical-align: baseline !important;
5952
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@readium/css",
33
"description": "A set of reference stylesheets for EPUB Reading Systems",
4-
"version": "2.0.0-beta.10",
4+
"version": "2.0.0-beta.11",
55
"homepage": "https://github.com/readium/readium-css",
66
"license": "BSD-3-Clause",
77
"keywords": [

0 commit comments

Comments
 (0)