@nypl/web-reader 4.3.5 → 5.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/HtmlReader/ReadiumCss/ReadiumCSS-after.css"],"sourcesContent":["/* Readium CSS \n Config module\n A file allowing implementers to customize flags for reading modes,\n user settings, etc.\n Repo: https://github.com/readium/readium-css */\n\n/* Custom medias\n Syntax: @custom-media --variable (prop: value) */\n\n/* Responsive columns\n The minimum width for which responsive columns (2 -> 1 and vice versa,\n depending on the current font-size) must be enabled */\n\n/* Mobile columns\n The minimum and maximum width for mobile devices.\n We’re forcing the landscape orientation by default,\n and must still investigate large tablets (iPad Pro, Surface Pro 3, etc.). */\n\n/* Custom selectors\n Syntax: @custom-selector :--variable selector\n The selectors you will use for flags/switches\n You can alternatively use classes or custom data-* attributes */\n\n/* User view = paged | scrolled */\n\n/* Font-family override */\n\n/* Advanced settings */\n\n/* Reading Modes */\n\n/* Filters (images) */\n\n/* Accessibility normalization */\n\n/* Accessibility font. You can add selectors, using “, ” as a separator, if you have multiple fonts */\n\n/* Direction i.e. ltr and rtl */\n\n/* Readium CSS\n Namespaces module\n Namespaces to import in all 3 dist stylesheets\n Repo: https://github.com/readium/readium-css */\n\n@namespace url('http://www.w3.org/1999/xhtml');\n\n@namespace epub url('http://www.idpf.org/2007/ops');\n\n@namespace m url('http://www.w3.org/1998/Math/MathML/');\n\n@namespace svg url('http://www.w3.org/2000/svg');\n\n/* Readium CSS\n Pagination module\n A set of styles to paginate ePublications\n Repo: https://github.com/readium/readium-css */\n\n/* Config */\n\n/* Columns are responsive by default, even if column-width is set in pixels,\n which means two-page spread will switch to single page depending on current font-size.\n If you want more control, I’m afraid you’ll have to update colWidth/colGap dynamically,\n which is how a significant amount of RS do at the moment. */\n\n/* Default for smartphone portrait (small screens) */\n\n:root {\n /* Your columns’ width floor */\n --RS__colWidth: 45em; /* The width at which we’ll switch to 2 columns by default. PS: you can’t set it in rem */\n\n /* Ideal number of columns (depending on columns’ width floor) */\n --RS__colCount: 1;\n\n /* Gap between columns (in pixels so that it won’t resize with font-size) */\n --RS__colGap: 0;\n\n /* Optimal line-length (rem will take :root font-size into account, whatever the body’s font-size) */\n --RS__maxLineLength: 40rem;\n\n /* Default page horizontal margins (in pixels so that it won’t resize with font-size) */\n --RS__pageGutter: 20px; /* See if colGap and pageGutter can be the same var */\n}\n\n/* Reset page margins for Forward compatibility */\n\n@page {\n margin: 0 !important;\n}\n\n/* :root selector has same specificity as a class i.e. 0010\n We might have to change that to html / context\n -> https://css-tricks.com/almanac/selectors/r/root/ */\n\n:root {\n /* In case you use left position to scroll, can be removed if using transform: translateX() */\n position: relative;\n\n -webkit-column-width: var(--RS__colWidth);\n -moz-column-width: var(--RS__colWidth);\n column-width: var(--RS__colWidth);\n\n /* Init pagination */\n /* TODO: document columns’ logic cos it might feel weird at first */\n -webkit-column-count: var(--RS__colCount);\n -moz-column-count: var(--RS__colCount);\n column-count: var(--RS__colCount);\n\n -webkit-column-gap: var(--RS__colGap);\n -moz-column-gap: var(--RS__colGap);\n column-gap: var(--RS__colGap);\n\n /* Default is balance and we want columns to be filled entirely (100vh) */\n -moz-column-fill: auto;\n column-fill: auto;\n width: 100%;\n height: 100vh;\n max-width: 100%;\n max-height: 100vh;\n min-width: 100%;\n min-height: 100vh;\n padding: 0 !important;\n margin: 0 !important;\n\n /* Column size will depend on this if we want to make it responsive */\n font-size: 100% !important;\n\n -webkit-text-size-adjust: 100%;\n\n /* Switch to newer box model (not inherited by authors’ styles) */\n box-sizing: border-box;\n\n /* Fix bug for older Chrome */\n -webkit-perspective: 1;\n /* Prevents options pop-up when long tap in webkit */\n -webkit-touch-callout: none;\n}\n\nbody {\n /* overflow: hidden; bugfix: contents won’t paginate in Firefox and one sample in Safari */\n width: 100%;\n\n /* Limit line-length but we have to reset when 2 columns and control the viewport.\n By using max-width + margin auto, margins will shrink when font-size increases,\n which is what would be expected in terms of typography. */\n max-width: var(--RS__maxLineLength) !important;\n padding: 0 var(--RS__pageGutter) !important;\n margin: 0 auto !important;\n\n /* We need a minimum padding on body so that descandants/ascendants in italic/script are not cut-off.\n Drawback: we have to use border-box so that it doesn’t screw the box model,\n which means it impacts colWidth and max-width */\n box-sizing: border-box;\n}\n\n/* We’ll now redefine margins and columns depending on the minimum width available\n The goal is having the simplest model possible and avoid targeting devices */\n\n/* Smartphone landscape */\n\n@media screen and (min-width: 35em) {\n :root {\n --RS__pageGutter: 30px;\n }\n}\n\n/* Tablet portrait */\n\n@media screen and (min-width: 45em) {\n :root {\n --RS__pageGutter: 40px;\n }\n}\n\n/* Desktop + tablet large */\n\n/* We get the previous settings, we just change the margins */\n\n@media screen and (min-width: 75em) {\n :root {\n --RS__pageGutter: 50px;\n }\n}\n\n/* At this point (80em or so), constraining line length must be done at the web view/iframe level, or by limiting the size of :root itself */\n\n/* Responsive columns */\n\n@media screen and (min-width: 60em),\n screen and (min-device-width: 36em) and (max-device-width: 47em) and (orientation: landscape) {\n :root {\n /* The size at which we want 2 columns to switch to 1 (depending on font-size) */\n --RS__colWidth: 20em; /* 20 * 16 = 320px but 20 * 28 = 560px so it will switch to 1 col @ 175% font-size (user-setting) on an iPad */\n /* We constrain to 2 columns so that we can never get 3 or 4, etc. */\n --RS__colCount: 2;\n --RS__maxLineLength: 39.99rem; /* If we don’t use this, colNumber user setting won’t work in Safari… */\n }\n}\n\n/* Readium CSS\n Scroll module\n A set of styles to scroll ePublications\n This module overrides pagination\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-scroll-on'] {\n /* Reset columns, auto + auto = columns can’t be created */\n -webkit-columns: auto auto !important;\n -moz-columns: auto auto !important;\n columns: auto auto !important;\n width: auto !important;\n height: auto !important;\n max-width: none !important;\n max-height: none !important;\n /* Reset html size so that the user can scroll */\n min-width: 0 !important;\n min-height: 0 !important;\n}\n\n/* Make sure line-length is limited in all configs */\n\n:root[style*='readium-scroll-on'] body {\n --RS__maxLineLength: 40rem !important;\n}\n\n/* Readium CSS\n Night mode\n A preset theme for night mode\n Repo: https://github.com/readium/readium-css */\n\n/* CONFIG */\n\n/* [style*=\"--USER__appearance\"] can be used to increase specificity but performance hit */\n\n:root[style*='readium-night-on'] {\n --RS__backgroundColor: #000000;\n --RS__textColor: #fefefe;\n\n --RS__linkColor: #63caff;\n --RS__visitedColor: #0099e5;\n\n /* This can be customized but initial will re-use default value of the browser */\n --RS__selectionBackgroundColor: #b4d8fe;\n --RS__selectionTextColor: inherit;\n}\n\n/* we don’t need to redeclare bg-color and color for :root since we will inherit and update from day/default mode */\n\n:root[style*='readium-night-on'] *:not(a) {\n color: inherit !important;\n background-color: transparent !important;\n border-color: currentColor !important;\n}\n\n:root[style*='readium-night-on'] svg text {\n fill: currentColor !important;\n stroke: none !important;\n}\n\n:root[style*='readium-night-on'] a:link,\n:root[style*='readium-night-on'] a:link * {\n color: var(--RS__linkColor) !important;\n}\n\n:root[style*='readium-night-on'] a:visited,\n:root[style*='readium-night-on'] a:visited * {\n color: var(--RS__visitedColor) !important;\n}\n\n/* For epub:type, in case the contents are served as text/html, namespaces won’t work hence why we’re using both syntax */\n\n:root[style*='readium-night-on'] img[class*='gaiji'],\n:root[style*='readium-night-on'] *[epub\\:type~='titlepage'] img:only-child,\n:root[style*='readium-night-on'] *[epub|type~='titlepage'] img:only-child {\n -webkit-filter: invert(100%);\n filter: invert(100%);\n}\n\n/* Darken all images on user’s demand */\n\n:root[style*='readium-night-on'][style*='readium-darken-on'] img {\n -webkit-filter: brightness(80%);\n filter: brightness(80%);\n}\n\n/* Invert all images on user’s demand */\n\n:root[style*='readium-night-on'][style*='readium-invert-on'] img {\n -webkit-filter: invert(100%);\n filter: invert(100%);\n}\n\n/* Darken and invert on user’s demand */\n\n:root[style*='readium-night-on'][style*='readium-darken-on'][style*='readium-invert-on']\n img {\n -webkit-filter: brightness(80%) invert(100%);\n filter: brightness(80%) invert(100%);\n}\n\n/* Readium CSS\n Sepia mode\n A preset theme for sepia mode\n Repo: https://github.com/readium/readium-css */\n\n/* CONFIG */\n\n:root[style*='readium-sepia-on'] {\n --RS__backgroundColor: #faf4e8;\n --RS__textColor: #121212;\n\n --RS__linkColor: #0000ee;\n --RS__visitedColor: #551a8b;\n\n /* This can be customized but initial will re-use default value of the browser */\n --RS__selectionBackgroundColor: #b4d8fe;\n --RS__selectionTextColor: inherit;\n\n --RS__maxLineLength: 40.01rem; /* Forcing a reflow in Blink/Webkit so that blend mode can work */\n}\n\n/* we don’t need to redeclare bg-color and color for :root since we will inherit and update from day/default mode */\n\n:root[style*='readium-sepia-on'] *:not(a) {\n color: inherit !important;\n background-color: transparent !important;\n}\n\n:root[style*='readium-sepia-on'] a:link,\n:root[style*='readium-sepia-on'] a:link * {\n color: var(--RS__linkColor);\n}\n\n:root[style*='readium-sepia-on'] a:visited,\n:root[style*='readium-sepia-on'] a:visited * {\n color: var(--RS__visitedColor);\n}\n\n:root[style*='readium-sepia-on'] svg,\n:root[style*='readium-sepia-on'] img {\n /* Make sure the proper bg-color is used for the blend mode */\n background-color: transparent !important;\n mix-blend-mode: multiply;\n}\n\n/* Readium CSS\n OS Accessibility Modes\n A stylesheet to deal with OS accessibility settings\n Repo: https://github.com/readium/readium-css */\n\n/* Windows high contrast colors are mapped to CSS system color keywords\n See http://www.gwhitworth.com/blog/2017/04/how-to-use-ms-high-contrast */\n\n@media screen and (-ms-high-contrast: active) {\n :root {\n color: windowText !important;\n background-color: window !important;\n }\n\n /* The following selectors are super funky but it makes sure everything is inherited, this is indeed critical for this mode */\n :root :not(#\\#):not(#\\#):not(#\\#),\n :root\n :not(#\\#):not(#\\#):not(#\\#)\n :not(#\\#):not(#\\#):not(#\\#)\n :root\n :not(#\\#):not(#\\#):not(#\\#)\n :not(#\\#):not(#\\#):not(#\\#)\n :not(#\\#):not(#\\#):not(#\\#) {\n color: inherit !important;\n background-color: inherit !important;\n }\n\n .readiumCSS-mo-active-default {\n color: highlightText !important;\n background-color: highlight !important;\n }\n\n /* For links, hyperlink keyword is automatically set */\n\n /* Should we also set user highlights? */\n}\n\n@media screen and (-ms-high-contrast: white-on-black) {\n :root[style*='readium-night-on'] img[class*='gaiji'],\n :root[style*='readium-night-on'] *[epub\\:type~='titlepage'] img:only-child,\n :root[style*='readium-night-on'] *[epub|type~='titlepage'] img:only-child {\n -webkit-filter: none !important;\n filter: none !important;\n }\n :root[style*='readium-night-on'][style*='readium-invert-on'] img {\n -webkit-filter: none !important;\n filter: none !important;\n }\n :root[style*='readium-night-on'][style*='readium-darken-on'][style*='readium-invert-on']\n img {\n -webkit-filter: brightness(80%);\n filter: brightness(80%);\n }\n}\n\n/* Will be true on recent versions of iOS and MacOS if inverted setting enabled by the user */\n\n@media screen and (inverted-colors) {\n :root[style*='readium-night-on'] img[class*='gaiji'],\n :root[style*='readium-night-on'] *[epub\\:type~='titlepage'] img:only-child,\n :root[style*='readium-night-on'] *[epub|type~='titlepage'] img:only-child {\n -webkit-filter: none !important;\n filter: none !important;\n }\n :root[style*='readium-night-on'][style*='readium-invert-on'] img {\n -webkit-filter: none !important;\n filter: none !important;\n }\n :root[style*='readium-night-on'][style*='readium-darken-on'][style*='readium-invert-on']\n img {\n -webkit-filter: brightness(80%);\n filter: brightness(80%);\n }\n}\n\n@media screen and (monochrome) {\n /* Grayscale (Implemented in Safari, what about eInk?) */\n /* Must deal with anything color (contrast) so must be managed at the night/sepia/theme level :( */\n}\n\n@media screen and (prefers-reduced-motion) {\n /* If reduced motion is set on MacOS, in case we have animation/transition */\n}\n\n/* Readium CSS\n Columns number pref\n A submodule managing columns number for user settings\n Part of “Chrome Advanced” class – no flag required.\n Repo: https://github.com/readium/readium-css */\n\n/* Number of columns = 1 | 2 */\n\n/* We still need to see if we allow users to force number of columns for all configs, currently it behaves as an \"auto\" setting */\n\n/* apply col setting except for mobile portrait */\n\n@media screen and (min-width: 60em),\n screen and (min-device-width: 36em) and (max-device-width: 47em) and (orientation: landscape) {\n :root[style*='--USER__colCount: 1'],\n :root[style*='--USER__colCount:1'],\n :root[style*='--USER__colCount: 2'],\n :root[style*='--USER__colCount:2'] {\n -webkit-column-count: var(--USER__colCount);\n -moz-column-count: var(--USER__colCount);\n column-count: var(--USER__colCount);\n }\n\n /* If one column, make sure we limit line-length */\n :root[style*='--USER__colCount: 1'],\n :root[style*='--USER__colCount:1'] {\n --RS__maxLineLength: 40rem !important; /* This is the only way for the user setting to work in webkit… */\n --RS__colWidth: 100vw;\n }\n\n /* If smartphone landscape, and 2 columns, col width the same as iPad landscape + desktop */\n :root[style*='--USER__colCount: 2'],\n :root[style*='--USER__colCount:2'] {\n --RS__colWidth: auto; /* User explicitely tells he/she wants 2 columns, we reset floor value */\n }\n}\n\n/* Readium CSS\n Page margins pref\n A submodule managing page margins for user settings\n Part of “Chrome Advanced” class – no flag required.\n Repo: https://github.com/readium/readium-css */\n\n/* Page Margins: the user margin is a factor of the page gutter e.g. 0.5, 0.75, 1, 1.25, 1.5, etc. */\n\n:root[style*='--USER__pageMargins'] body {\n padding: 0 calc(var(--RS__pageGutter) * var(--USER__pageMargins)) !important;\n}\n\n/* Readium CSS\n Custom colors pref\n A submodule managing custom colors for user settings\n Part of “Chrome Advanced” class – no flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='--USER__backgroundColor'] {\n background-color: var(--USER__backgroundColor) !important;\n}\n\n:root[style*='--USER__backgroundColor'] * {\n background-color: transparent !important;\n}\n\n:root[style*='--USER__textColor'] {\n color: var(--USER__textColor) !important;\n}\n\n:root[style*='--USER__textColor']\n *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(pre) {\n color: inherit !important;\n}\n\n/* Readium CSS\n Text align pref\n A submodule managing text-align for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__textAlign'] {\n text-align: var(--USER__textAlign);\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__textAlign'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign']\n *:not(blockquote):not(figcaption)\n p,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign'] li {\n text-align: inherit !important;\n -moz-text-align-last: auto !important;\n -epub-text-align-last: auto !important;\n text-align-last: auto !important;\n}\n\n/* In case something goes wrong at the programmatic level + rtl for body + rtl in ltr */\n\n:root[style*='readium-advanced-on'][dir='rtl'][style*='--USER__textAlign: left'],\n:root[style*='readium-advanced-on'][dir='rtl'][style*='--USER__textAlign:left'],\n:root[style*='readium-advanced-on'][style*='--USER__textAlign: left']\n *[dir='rtl'],\n:root[style*='readium-advanced-on'][style*='--USER__textAlign:left']\n *[dir='rtl'] {\n text-align: right;\n}\n\n/* Edge, if logical value is used, think of it as a polyfill. For LTR, it will fall back to the default, which is left */\n\n:root[style*='readium-advanced-on'][dir='rtl'][style*='--USER__textAlign: start'],\n:root[style*='readium-advanced-on'][dir='rtl'][style*='--USER__textAlign:start'] {\n text-align: right;\n}\n\n/* Readium CSS\n Hyphenation pref\n A submodule managing hyphens for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n/* Managing hyphenation automatically for text-align values */\n\n:root[style*='readium-advanced-on'][style*='--USER__textAlign: justify'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign:justify'] body {\n -webkit-hyphens: auto;\n -moz-hyphens: auto;\n -ms-hyphens: auto;\n -epub-hyphens: auto;\n hyphens: auto;\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__textAlign: left'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign:left'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign: right'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign:right'] body {\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n -epub-hyphens: none;\n hyphens: none;\n}\n\n/* Managing the user override */\n\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] {\n -webkit-hyphens: var(--USER__bodyHyphens) !important;\n -moz-hyphens: var(--USER__bodyHyphens) !important;\n -ms-hyphens: var(--USER__bodyHyphens) !important;\n -epub-hyphens: var(--USER__bodyHyphens) !important;\n hyphens: var(--USER__bodyHyphens) !important;\n}\n\n/* Sorry, we can’t use `:matches`, `:-moz-any` or `:-webkit-any` because MS doesn’t support it yet */\n\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] body,\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] p,\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] li,\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] div,\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] dd {\n -webkit-hyphens: inherit;\n -moz-hyphens: inherit;\n -ms-hyphens: inherit;\n -epub-hyphens: inherit;\n hyphens: inherit;\n}\n\n/* Readium CSS\n Font Family pref\n A submodule managing font-family for user settings\n Part of “User Overrides” class – “font override” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] {\n font-family: var(--USER__fontFamily) !important;\n}\n\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] body,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] p,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] li,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] div,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] dt,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] dd {\n font-family: inherit !important;\n}\n\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] i:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] i:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] em:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily']\n em:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] cite:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily']\n cite:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] b:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] b:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] strong:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily']\n strong:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] span:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily']\n span:not([xml\\:lang]) {\n font-family: inherit !important;\n}\n\n/* Readium CSS\n A11y font pref\n A submodule managing a11y text normalization for user settings\n Part of “User Overrides” class – “font override” flag required.\n Repo: https://github.com/readium/readium-css */\n\n/* For AccessibleDfA, we need to normalize font-weight and font-style since only the normal style is available */\n\n:root[style*='readium-font-on'][style*='AccessibleDfA'] {\n /* We won’t use the variable there since we need fallbacks for missing characters */\n font-family: AccessibleDfA, Verdana, Tahoma, 'Trebuchet MS', sans-serif !important;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:root[style*='readium-font-on'][style*='IA Writer Duospace'] {\n /* We won’t use the variable there since we need fallbacks for missing characters */\n font-family: 'IA Writer Duospace', Menlo, 'DejaVu Sans Mono',\n 'Bitstream Vera Sans Mono', Courier, monospace !important;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:root[style*='readium-font-on'][style*='readium-a11y-on'] {\n font-family: var(--USER__fontFamily) !important;\n --RS__lineHeightCompensation: 1.167;\n}\n\n/* Maybe users want a setting to normalize any font offered so there is a “a11y Normalize” flag for it */\n\n:root[style*='readium-font-on'][style*='AccessibleDfA'],\n:root[style*='readium-font-on'][style*='IA Writer Duospace'],\n:root[style*='readium-font-on'][style*='readium-a11y-on'] {\n font-style: normal !important;\n font-weight: normal !important;\n}\n\n/* Targeting everything except code. Note that Open Dyslexic has a monospaced font for code */\n\n:root[style*='readium-font-on'][style*='AccessibleDfA']\n *:not(code):not(var):not(kbd):not(samp),\n:root[style*='readium-font-on'][style*='IA Writer Duospace']\n *:not(code):not(var):not(kbd):not(samp),\n:root[style*='readium-font-on'][style*='readium-a11y-on']\n *:not(code):not(var):not(kbd):not(samp) {\n font-family: inherit !important;\n font-style: inherit !important;\n font-weight: inherit !important;\n}\n\n/* Normalizing text-decoration, subs and sups */\n\n:root[style*='readium-font-on'][style*='AccessibleDfA'] *,\n:root[style*='readium-font-on'][style*='IA Writer Duospace'] *,\n:root[style*='readium-font-on'][style*='readium-a11y-on'] * {\n text-decoration: none !important;\n font-variant-caps: normal !important;\n font-variant-numeric: normal !important;\n font-variant-position: normal !important;\n}\n\n:root[style*='readium-font-on'][style*='AccessibleDfA'] sup,\n:root[style*='readium-font-on'][style*='IA Writer Duospace'] sup,\n:root[style*='readium-font-on'][style*='readium-a11y-on'] sup,\n:root[style*='readium-font-on'][style*='AccessibleDfA'] sub,\n:root[style*='readium-font-on'][style*='IA Writer Duospace'] sub,\n:root[style*='readium-font-on'][style*='readium-a11y-on'] sub {\n font-size: 1rem !important;\n vertical-align: baseline !important;\n}\n\n/* Readium CSS\n Font size pref\n A submodule managing font-size for user settings\n Part of “User Overrides” class – no flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='--USER__fontSize'] {\n font-size: var(--USER__fontSize) !important;\n}\n\n/* Readium CSS\n Line height pref\n A submodule managing line-height for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] {\n line-height: var(--USER__lineHeight) !important;\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] body,\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] p,\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] li,\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] div {\n line-height: inherit;\n}\n\n/* Readium CSS\n Para spacing pref\n A submodule managing paragraphs’ top and bottom margins for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__paraSpacing'] p {\n margin-top: var(--USER__paraSpacing) !important;\n margin-bottom: var(--USER__paraSpacing) !important;\n}\n\n/* Readium CSS\n Para indent pref\n A submodule managing paragraphs’ text-indent for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__paraIndent'] p {\n text-indent: var(--USER__paraIndent) !important;\n}\n\n/* If there are inline-block elements in paragraphs, text-indent will inherit so we must reset it */\n\n:root[style*='readium-advanced-on'][style*='--USER__paraIndent'] p *,\n:root[style*='readium-advanced-on'][style*='--USER__paraIndent']\n p:first-letter {\n text-indent: 0 !important;\n}\n\n/* Readium CSS\n Word spacing pref\n A submodule managing word-spacing for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h1,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h2,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h3,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h4,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h5,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h6,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] p,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] li,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] div {\n word-spacing: var(--USER__wordSpacing);\n}\n\n/* Readium CSS\n Letter spacing pref\n A submodule managing letter-spacing for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h1,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h2,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h3,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h4,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h5,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h6,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] p,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] li,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] div {\n letter-spacing: var(--USER__letterSpacing);\n font-variant: none;\n}\n\n/* Readium CSS\n Font size normalize\n A stylesheet to normalize font-size\n Repo: https://github.com/readium/readium-css */\n\n/* STYLES */\n\n/* :root is used so that you can quickly add a class or attribute if you prefer e.g. `:root[data-rs-normalize]` */\n\n/* We create a default so that you don’t need to explicitly set one in the DOM.\n Once the “Publisher’s styles” checkbox is unchecked, the normalize is applied automatically */\n\n:root[style*='readium-advanced-on'] {\n --USER__typeScale: 1.2; /* This is the default type scale you’ll find in most publications */\n}\n\n:root[style*='readium-advanced-on'] p,\n:root[style*='readium-advanced-on'] li,\n:root[style*='readium-advanced-on'] div,\n:root[style*='readium-advanced-on'] pre,\n:root[style*='readium-advanced-on'] dd {\n font-size: 1rem !important;\n}\n\n:root[style*='readium-advanced-on'] h1 {\n /* Fallback if browser doesn’t support vars */\n font-size: 1.75rem !important;\n font-size: calc(\n ((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) *\n var(--USER__typeScale)\n ) !important;\n}\n\n:root[style*='readium-advanced-on'] h2 {\n /* Fallback if browser doesn’t support vars */\n font-size: 1.5rem !important;\n font-size: calc(\n (1rem * var(--USER__typeScale)) * var(--USER__typeScale)\n ) !important;\n}\n\n:root[style*='readium-advanced-on'] h3 {\n /* Fallback if browser doesn’t support vars */\n font-size: 1.25rem !important;\n font-size: calc(1rem * var(--USER__typeScale)) !important;\n}\n\n:root[style*='readium-advanced-on'] h4,\n:root[style*='readium-advanced-on'] h5,\n:root[style*='readium-advanced-on'] h6 {\n font-size: 1rem !important;\n}\n\n:root[style*='readium-advanced-on'] small {\n font-size: smaller !important;\n}\n\n:root[style*='readium-advanced-on'] sub,\n:root[style*='readium-advanced-on'] sup {\n font-size: 67.5% !important;\n}\n\n/* The following styles kick in if you define the typeScale variable in the DOM.\n No need to repeat declarations which don’t make use of the variable */\n\n:root[style*='readium-advanced-on'][style*='--USER__typeScale'] h1 {\n font-size: calc(\n ((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) *\n var(--USER__typeScale)\n ) !important;\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__typeScale'] h2 {\n font-size: calc(\n (1rem * var(--USER__typeScale)) * var(--USER__typeScale)\n ) !important;\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__typeScale'] h3 {\n font-size: calc(1rem * var(--USER__typeScale)) !important;\n}\n\n/* Readium CSS\n Default highlights\n A stylesheet for user highlights\n Repo: https://github.com/readium/readium-css */\n\n/* User Highlights */\n\n.readiumCSS-yellow-highlight,\n:root[style*='readium-sepia-on'] .readiumCSS-yellow-highlight,\n:root[style*='readium-night-on'] .readiumCSS-yellow-highlight {\n background-color: rgba(255, 255, 0, 0.5) !important;\n}\n\n.readiumCSS-green-highlight,\n:root[style*='readium-sepia-on'] .readiumCSS-green-highlight,\n:root[style*='readium-night-on'] .readiumCSS-green-highlight {\n background-color: rgba(0, 255, 0, 0.5) !important;\n}\n\n.readiumCSS-orange-highlight,\n:root[style*='readium-sepia-on'] .readiumCSS-orange-highlight,\n:root[style*='readium-night-on'] .readiumCSS-orange-highlight {\n background-color: rgba(255, 165, 0, 0.5) !important;\n}\n\n.readiumCSS-pink-highlight,\n:root[style*='readium-sepia-on'] .readiumCSS-pink-highlight,\n:root[style*='readium-night-on'] .readiumCSS-pink-highlight {\n background-color: rgba(255, 105, 180, 0.5) !important;\n}\n\n/* Media overlays */\n\n.readiumCSS-mo-active-default {\n color: black !important;\n background-color: yellow !important;\n}\n/*# sourceMappingURL=ReadiumCSS-after.css.map */\n"],"mappings":";AA4CA;AAEA;AAEA;AAEA;AAgBA;AAEE;AAGA;AAGA;AAGA;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A;AAGE;AAAA;AAGF;AACE;AAAA;AAGF;AAAA;AAEE;AAAA;AAMF;AACE;AAAA;AAMF;AACE;AAAA;AAKF;AACE;AAAA;AAUF;AAAA;AAAA;AAGE;AAAA;AAGF;AAAA;AAAA;AAGE;AAAA;AAGF;AAAA;AAAA;AAGE;AAAA;AAGF;AAAA;AAAA;AAGE;AAAA;AAKF;AACE;AACA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/HtmlReader/ReadiumCss/ReadiumCSS-after.css"],"sourcesContent":["/* Readium CSS \n Config module\n A file allowing implementers to customize flags for reading modes,\n user settings, etc.\n Repo: https://github.com/readium/readium-css */\n\n/* Custom medias\n Syntax: @custom-media --variable (prop: value) */\n\n/* Responsive columns\n The minimum width for which responsive columns (2 -> 1 and vice versa,\n depending on the current font-size) must be enabled */\n\n/* Mobile columns\n The minimum and maximum width for mobile devices.\n We’re forcing the landscape orientation by default,\n and must still investigate large tablets (iPad Pro, Surface Pro 3, etc.). */\n\n/* Custom selectors\n Syntax: @custom-selector :--variable selector\n The selectors you will use for flags/switches\n You can alternatively use classes or custom data-* attributes */\n\n/* User view = paged | scrolled */\n\n/* Font-family override */\n\n/* Advanced settings */\n\n/* Reading Modes */\n\n/* Filters (images) */\n\n/* Accessibility normalization */\n\n/* Accessibility font. You can add selectors, using “, ” as a separator, if you have multiple fonts */\n\n/* Direction i.e. ltr and rtl */\n\n/* Readium CSS\n Namespaces module\n Namespaces to import in all 3 dist stylesheets\n Repo: https://github.com/readium/readium-css */\n\n@namespace url('http://www.w3.org/1999/xhtml');\n\n@namespace epub url('http://www.idpf.org/2007/ops');\n\n@namespace m url('http://www.w3.org/1998/Math/MathML/');\n\n@namespace svg url('http://www.w3.org/2000/svg');\n\n/* Readium CSS\n Pagination module\n A set of styles to paginate ePublications\n Repo: https://github.com/readium/readium-css */\n\n/* Config */\n\n/* Columns are responsive by default, even if column-width is set in pixels,\n which means two-page spread will switch to single page depending on current font-size.\n If you want more control, I’m afraid you’ll have to update colWidth/colGap dynamically,\n which is how a significant amount of RS do at the moment. */\n\n/* Default for smartphone portrait (small screens) */\n\n:root {\n /* Your columns’ width floor */\n --RS__colWidth: 45em; /* The width at which we’ll switch to 2 columns by default. PS: you can’t set it in rem */\n\n /* Ideal number of columns (depending on columns’ width floor) */\n --RS__colCount: 1;\n\n /* Gap between columns (in pixels so that it won’t resize with font-size) */\n --RS__colGap: 0;\n\n /* Optimal line-length (rem will take :root font-size into account, whatever the body’s font-size) */\n --RS__maxLineLength: 40rem;\n\n /* Default page horizontal margins (in pixels so that it won’t resize with font-size) */\n --RS__pageGutter: 20px; /* See if colGap and pageGutter can be the same var */\n}\n\n/* Reset page margins for Forward compatibility */\n\n@page {\n margin: 0 !important;\n}\n\n/* :root selector has same specificity as a class i.e. 0010\n We might have to change that to html / context\n -> https://css-tricks.com/almanac/selectors/r/root/ */\n\n:root {\n /* In case you use left position to scroll, can be removed if using transform: translateX() */\n position: relative;\n\n -webkit-column-width: var(--RS__colWidth);\n -moz-column-width: var(--RS__colWidth);\n column-width: var(--RS__colWidth);\n\n /* Init pagination */\n /* TODO: document columns’ logic cos it might feel weird at first */\n -webkit-column-count: var(--RS__colCount);\n -moz-column-count: var(--RS__colCount);\n column-count: var(--RS__colCount);\n\n -webkit-column-gap: var(--RS__colGap);\n -moz-column-gap: var(--RS__colGap);\n column-gap: var(--RS__colGap);\n\n /* Default is balance and we want columns to be filled entirely (100vh) */\n -moz-column-fill: auto;\n column-fill: auto;\n width: 100%;\n height: 100vh;\n max-width: 100%;\n max-height: 100vh;\n min-width: 100%;\n min-height: 100vh;\n padding: 0 !important;\n margin: 0 !important;\n\n /* Column size will depend on this if we want to make it responsive */\n font-size: 100% !important;\n\n -webkit-text-size-adjust: 100%;\n\n /* Switch to newer box model (not inherited by authors’ styles) */\n box-sizing: border-box;\n\n /* Fix bug for older Chrome */\n -webkit-perspective: 1;\n /* Prevents options pop-up when long tap in webkit */\n -webkit-touch-callout: none;\n}\n\nbody {\n /* overflow: hidden; bugfix: contents won’t paginate in Firefox and one sample in Safari */\n width: 100%;\n\n /* Limit line-length but we have to reset when 2 columns and control the viewport.\n By using max-width + margin auto, margins will shrink when font-size increases,\n which is what would be expected in terms of typography. */\n max-width: var(--RS__maxLineLength) !important;\n padding: 0 var(--RS__pageGutter) !important;\n margin: 0 auto !important;\n\n /* We need a minimum padding on body so that descandants/ascendants in italic/script are not cut-off.\n Drawback: we have to use border-box so that it doesn’t screw the box model,\n which means it impacts colWidth and max-width */\n box-sizing: border-box;\n}\n\n/* We’ll now redefine margins and columns depending on the minimum width available\n The goal is having the simplest model possible and avoid targeting devices */\n\n/* Smartphone landscape */\n\n@media screen and (min-width: 35em) {\n :root {\n --RS__pageGutter: 30px;\n }\n}\n\n/* Tablet portrait */\n\n@media screen and (min-width: 45em) {\n :root {\n --RS__pageGutter: 40px;\n }\n}\n\n/* Desktop + tablet large */\n\n/* We get the previous settings, we just change the margins */\n\n@media screen and (min-width: 75em) {\n :root {\n --RS__pageGutter: 50px;\n }\n}\n\n/* At this point (80em or so), constraining line length must be done at the web view/iframe level, or by limiting the size of :root itself */\n\n/* Responsive columns */\n\n@media screen and (min-width: 60em),\n screen and (min-device-width: 36em) and (max-device-width: 47em) and (orientation: landscape) {\n :root {\n /* The size at which we want 2 columns to switch to 1 (depending on font-size) */\n --RS__colWidth: 20em; /* 20 * 16 = 320px but 20 * 28 = 560px so it will switch to 1 col @ 175% font-size (user-setting) on an iPad */\n /* We constrain to 2 columns so that we can never get 3 or 4, etc. */\n --RS__colCount: 2;\n --RS__maxLineLength: 39.99rem; /* If we don’t use this, colNumber user setting won’t work in Safari… */\n }\n}\n\n/* Readium CSS\n Scroll module\n A set of styles to scroll ePublications\n This module overrides pagination\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-scroll-on'] {\n /* Reset columns, auto + auto = columns can’t be created */\n -webkit-columns: auto auto !important;\n -moz-columns: auto auto !important;\n columns: auto auto !important;\n width: auto !important;\n height: auto !important;\n max-width: none !important;\n max-height: none !important;\n /* Reset html size so that the user can scroll */\n min-width: 0 !important;\n min-height: 0 !important;\n}\n\n/* Make sure line-length is limited in all configs */\n\n:root[style*='readium-scroll-on'] body {\n --RS__maxLineLength: 40rem !important;\n}\n\n/* Readium CSS\n Night mode\n A preset theme for night mode\n Repo: https://github.com/readium/readium-css */\n\n/* CONFIG */\n\n/* [style*=\"--USER__appearance\"] can be used to increase specificity but performance hit */\n\n:root[style*='readium-night-on'] {\n --RS__backgroundColor: #000000;\n --RS__textColor: #fefefe;\n\n --RS__linkColor: #63caff;\n --RS__visitedColor: #0099e5;\n\n /* This can be customized but initial will re-use default value of the browser */\n --RS__selectionBackgroundColor: #b4d8fe;\n --RS__selectionTextColor: inherit;\n}\n\n/* we don’t need to redeclare bg-color and color for :root since we will inherit and update from day/default mode */\n\n:root[style*='readium-night-on'] *:not(a) {\n color: inherit !important;\n background-color: transparent !important;\n border-color: currentColor !important;\n}\n\n:root[style*='readium-night-on'] svg text {\n fill: currentColor !important;\n stroke: none !important;\n}\n\n:root[style*='readium-night-on'] a:link,\n:root[style*='readium-night-on'] a:link * {\n color: var(--RS__linkColor) !important;\n}\n\n:root[style*='readium-night-on'] a:visited,\n:root[style*='readium-night-on'] a:visited * {\n color: var(--RS__visitedColor) !important;\n}\n\n/* For epub:type, in case the contents are served as text/html, namespaces won’t work hence why we’re using both syntax */\n\n:root[style*='readium-night-on'] img[class*='gaiji'],\n:root[style*='readium-night-on'] *[epub\\:type~='titlepage'] img:only-child,\n:root[style*='readium-night-on'] *[epub|type~='titlepage'] img:only-child {\n -webkit-filter: invert(100%);\n filter: invert(100%);\n}\n\n/* Darken all images on user’s demand */\n\n:root[style*='readium-night-on'][style*='readium-darken-on'] img {\n -webkit-filter: brightness(80%);\n filter: brightness(80%);\n}\n\n/* Invert all images on user’s demand */\n\n:root[style*='readium-night-on'][style*='readium-invert-on'] img {\n -webkit-filter: invert(100%);\n filter: invert(100%);\n}\n\n/* Darken and invert on user’s demand */\n\n:root[style*='readium-night-on'][style*='readium-darken-on'][style*='readium-invert-on']\n img {\n -webkit-filter: brightness(80%) invert(100%);\n filter: brightness(80%) invert(100%);\n}\n\n/* Readium CSS\n Sepia mode\n A preset theme for sepia mode\n Repo: https://github.com/readium/readium-css */\n\n/* CONFIG */\n\n:root[style*='readium-sepia-on'] {\n --RS__backgroundColor: #faf4e8;\n --RS__textColor: #121212;\n\n --RS__linkColor: #0000ee;\n --RS__visitedColor: #551a8b;\n\n /* This can be customized but initial will re-use default value of the browser */\n --RS__selectionBackgroundColor: #b4d8fe;\n --RS__selectionTextColor: inherit;\n\n --RS__maxLineLength: 40.01rem; /* Forcing a reflow in Blink/Webkit so that blend mode can work */\n}\n\n/* we don’t need to redeclare bg-color and color for :root since we will inherit and update from day/default mode */\n\n:root[style*='readium-sepia-on'] *:not(a) {\n color: inherit !important;\n background-color: transparent !important;\n}\n\n:root[style*='readium-sepia-on'] a:link,\n:root[style*='readium-sepia-on'] a:link * {\n color: var(--RS__linkColor);\n}\n\n:root[style*='readium-sepia-on'] a:visited,\n:root[style*='readium-sepia-on'] a:visited * {\n color: var(--RS__visitedColor);\n}\n\n:root[style*='readium-sepia-on'] svg,\n:root[style*='readium-sepia-on'] img {\n /* Make sure the proper bg-color is used for the blend mode */\n background-color: transparent !important;\n mix-blend-mode: multiply;\n}\n\n/* Readium CSS\n OS Accessibility Modes\n A stylesheet to deal with OS accessibility settings\n Repo: https://github.com/readium/readium-css */\n\n/* Windows high contrast colors are mapped to CSS system color keywords\n See http://www.gwhitworth.com/blog/2017/04/how-to-use-ms-high-contrast */\n\n@media screen and (-ms-high-contrast: active) {\n :root {\n color: windowText !important;\n background-color: window !important;\n }\n\n /* The following selectors are super funky but it makes sure everything is inherited, this is indeed critical for this mode */\n :root :not(#\\#):not(#\\#):not(#\\#),\n :root\n :not(#\\#):not(#\\#):not(#\\#)\n :not(#\\#):not(#\\#):not(#\\#)\n :root\n :not(#\\#):not(#\\#):not(#\\#)\n :not(#\\#):not(#\\#):not(#\\#)\n :not(#\\#):not(#\\#):not(#\\#) {\n color: inherit !important;\n background-color: inherit !important;\n }\n\n .readiumCSS-mo-active-default {\n color: highlightText !important;\n background-color: highlight !important;\n }\n\n /* For links, hyperlink keyword is automatically set */\n\n /* Should we also set user highlights? */\n}\n\n@media screen and (-ms-high-contrast: white-on-black) {\n :root[style*='readium-night-on'] img[class*='gaiji'],\n :root[style*='readium-night-on'] *[epub\\:type~='titlepage'] img:only-child,\n :root[style*='readium-night-on'] *[epub|type~='titlepage'] img:only-child {\n -webkit-filter: none !important;\n filter: none !important;\n }\n :root[style*='readium-night-on'][style*='readium-invert-on'] img {\n -webkit-filter: none !important;\n filter: none !important;\n }\n :root[style*='readium-night-on'][style*='readium-darken-on'][style*='readium-invert-on']\n img {\n -webkit-filter: brightness(80%);\n filter: brightness(80%);\n }\n}\n\n/* Will be true on recent versions of iOS and MacOS if inverted setting enabled by the user */\n\n@media screen and (inverted-colors) {\n :root[style*='readium-night-on'] img[class*='gaiji'],\n :root[style*='readium-night-on'] *[epub\\:type~='titlepage'] img:only-child,\n :root[style*='readium-night-on'] *[epub|type~='titlepage'] img:only-child {\n -webkit-filter: none !important;\n filter: none !important;\n }\n :root[style*='readium-night-on'][style*='readium-invert-on'] img {\n -webkit-filter: none !important;\n filter: none !important;\n }\n :root[style*='readium-night-on'][style*='readium-darken-on'][style*='readium-invert-on']\n img {\n -webkit-filter: brightness(80%);\n filter: brightness(80%);\n }\n}\n\n@media screen and (monochrome) {\n /* Grayscale (Implemented in Safari, what about eInk?) */\n /* Must deal with anything color (contrast) so must be managed at the night/sepia/theme level :( */\n}\n\n@media screen and (prefers-reduced-motion) {\n /* If reduced motion is set on MacOS, in case we have animation/transition */\n}\n\n/* Readium CSS\n Columns number pref\n A submodule managing columns number for user settings\n Part of “Chrome Advanced” class – no flag required.\n Repo: https://github.com/readium/readium-css */\n\n/* Number of columns = 1 | 2 */\n\n/* We still need to see if we allow users to force number of columns for all configs, currently it behaves as an \"auto\" setting */\n\n/* apply col setting except for mobile portrait */\n\n@media screen and (min-width: 60em),\n screen and (min-device-width: 36em) and (max-device-width: 47em) and (orientation: landscape) {\n :root[style*='--USER__colCount: 1'],\n :root[style*='--USER__colCount:1'],\n :root[style*='--USER__colCount: 2'],\n :root[style*='--USER__colCount:2'] {\n -webkit-column-count: var(--USER__colCount);\n -moz-column-count: var(--USER__colCount);\n column-count: var(--USER__colCount);\n }\n\n /* If one column, make sure we limit line-length */\n :root[style*='--USER__colCount: 1'],\n :root[style*='--USER__colCount:1'] {\n --RS__maxLineLength: 40rem !important; /* This is the only way for the user setting to work in webkit… */\n --RS__colWidth: 100vw;\n }\n\n /* If smartphone landscape, and 2 columns, col width the same as iPad landscape + desktop */\n :root[style*='--USER__colCount: 2'],\n :root[style*='--USER__colCount:2'] {\n --RS__colWidth: auto; /* User explicitely tells he/she wants 2 columns, we reset floor value */\n }\n}\n\n/* Readium CSS\n Page margins pref\n A submodule managing page margins for user settings\n Part of “Chrome Advanced” class – no flag required.\n Repo: https://github.com/readium/readium-css */\n\n/* Page Margins: the user margin is a factor of the page gutter e.g. 0.5, 0.75, 1, 1.25, 1.5, etc. */\n\n:root[style*='--USER__pageMargins'] body {\n padding: 0 calc(var(--RS__pageGutter) * var(--USER__pageMargins)) !important;\n}\n\n/* Readium CSS\n Custom colors pref\n A submodule managing custom colors for user settings\n Part of “Chrome Advanced” class – no flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='--USER__backgroundColor'] {\n background-color: var(--USER__backgroundColor) !important;\n}\n\n:root[style*='--USER__backgroundColor'] * {\n background-color: transparent !important;\n}\n\n:root[style*='--USER__textColor'] {\n color: var(--USER__textColor) !important;\n}\n\n:root[style*='--USER__textColor']\n *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(pre) {\n color: inherit !important;\n}\n\n/* Readium CSS\n Text align pref\n A submodule managing text-align for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__textAlign'] {\n text-align: var(--USER__textAlign);\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__textAlign'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign']\n *:not(blockquote):not(figcaption)\n p,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign'] li {\n text-align: inherit !important;\n -moz-text-align-last: auto !important;\n -epub-text-align-last: auto !important;\n text-align-last: auto !important;\n}\n\n/* In case something goes wrong at the programmatic level + rtl for body + rtl in ltr */\n\n:root[style*='readium-advanced-on'][dir='rtl'][style*='--USER__textAlign: left'],\n:root[style*='readium-advanced-on'][dir='rtl'][style*='--USER__textAlign:left'],\n:root[style*='readium-advanced-on'][style*='--USER__textAlign: left']\n *[dir='rtl'],\n:root[style*='readium-advanced-on'][style*='--USER__textAlign:left']\n *[dir='rtl'] {\n text-align: right;\n}\n\n/* Edge, if logical value is used, think of it as a polyfill. For LTR, it will fall back to the default, which is left */\n\n:root[style*='readium-advanced-on'][dir='rtl'][style*='--USER__textAlign: start'],\n:root[style*='readium-advanced-on'][dir='rtl'][style*='--USER__textAlign:start'] {\n text-align: right;\n}\n\n/* Readium CSS\n Hyphenation pref\n A submodule managing hyphens for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n/* Managing hyphenation automatically for text-align values */\n\n:root[style*='readium-advanced-on'][style*='--USER__textAlign: justify'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign:justify'] body {\n -webkit-hyphens: auto;\n -moz-hyphens: auto;\n -ms-hyphens: auto;\n -epub-hyphens: auto;\n hyphens: auto;\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__textAlign: left'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign:left'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign: right'] body,\n:root[style*='readium-advanced-on'][style*='--USER__textAlign:right'] body {\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n -epub-hyphens: none;\n hyphens: none;\n}\n\n/* Managing the user override */\n\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] {\n -webkit-hyphens: var(--USER__bodyHyphens) !important;\n -moz-hyphens: var(--USER__bodyHyphens) !important;\n -ms-hyphens: var(--USER__bodyHyphens) !important;\n -epub-hyphens: var(--USER__bodyHyphens) !important;\n hyphens: var(--USER__bodyHyphens) !important;\n}\n\n/* Sorry, we can’t use `:matches`, `:-moz-any` or `:-webkit-any` because MS doesn’t support it yet */\n\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] body,\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] p,\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] li,\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] div,\n:root[style*='readium-advanced-on'][style*='--USER__bodyHyphens'] dd {\n -webkit-hyphens: inherit;\n -moz-hyphens: inherit;\n -ms-hyphens: inherit;\n -epub-hyphens: inherit;\n hyphens: inherit;\n}\n\n/* Readium CSS\n Font Family pref\n A submodule managing font-family for user settings\n Part of “User Overrides” class – “font override” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] {\n font-family: var(--USER__fontFamily) !important;\n}\n\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] body,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] p,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] li,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] div,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] dt,\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] dd {\n font-family: inherit !important;\n}\n\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] i:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] i:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] em:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily']\n em:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] cite:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily']\n cite:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] b:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] b:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] strong:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily']\n strong:not([xml\\:lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily'] span:not([lang]),\n:root[style*='readium-font-on'][style*='--USER__fontFamily']\n span:not([xml\\:lang]) {\n font-family: inherit !important;\n}\n\n/* Readium CSS\n A11y font pref\n A submodule managing a11y text normalization for user settings\n Part of “User Overrides” class – “font override” flag required.\n Repo: https://github.com/readium/readium-css */\n\n/* For AccessibleDfA, we need to normalize font-weight and font-style since only the normal style is available */\n\n:root[style*='readium-font-on'][style*='AccessibleDfA'] {\n /* We won’t use the variable there since we need fallbacks for missing characters */\n font-family: AccessibleDfA, Verdana, Tahoma, 'Trebuchet MS', sans-serif !important;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:root[style*='readium-font-on'][style*='IA Writer Duospace'] {\n /* We won’t use the variable there since we need fallbacks for missing characters */\n font-family: 'IA Writer Duospace', Menlo, 'DejaVu Sans Mono',\n 'Bitstream Vera Sans Mono', Courier, monospace !important;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:root[style*='readium-font-on'][style*='readium-a11y-on'] {\n font-family: var(--USER__fontFamily) !important;\n --RS__lineHeightCompensation: 1.167;\n}\n\n/* Maybe users want a setting to normalize any font offered so there is a “a11y Normalize” flag for it */\n\n:root[style*='readium-font-on'][style*='AccessibleDfA'],\n:root[style*='readium-font-on'][style*='IA Writer Duospace'],\n:root[style*='readium-font-on'][style*='readium-a11y-on'] {\n font-style: normal !important;\n font-weight: normal !important;\n}\n\n/* Targeting everything except code. Note that Open Dyslexic has a monospaced font for code */\n\n:root[style*='readium-font-on'][style*='AccessibleDfA']\n *:not(code):not(var):not(kbd):not(samp),\n:root[style*='readium-font-on'][style*='IA Writer Duospace']\n *:not(code):not(var):not(kbd):not(samp),\n:root[style*='readium-font-on'][style*='readium-a11y-on']\n *:not(code):not(var):not(kbd):not(samp) {\n font-family: inherit !important;\n font-style: inherit !important;\n font-weight: inherit !important;\n}\n\n/* Normalizing text-decoration, subs and sups */\n\n:root[style*='readium-font-on'][style*='AccessibleDfA'] *,\n:root[style*='readium-font-on'][style*='IA Writer Duospace'] *,\n:root[style*='readium-font-on'][style*='readium-a11y-on'] * {\n text-decoration: none !important;\n font-variant-caps: normal !important;\n font-variant-numeric: normal !important;\n font-variant-position: normal !important;\n}\n\n:root[style*='readium-font-on'][style*='AccessibleDfA'] sup,\n:root[style*='readium-font-on'][style*='IA Writer Duospace'] sup,\n:root[style*='readium-font-on'][style*='readium-a11y-on'] sup,\n:root[style*='readium-font-on'][style*='AccessibleDfA'] sub,\n:root[style*='readium-font-on'][style*='IA Writer Duospace'] sub,\n:root[style*='readium-font-on'][style*='readium-a11y-on'] sub {\n font-size: 1rem !important;\n vertical-align: baseline !important;\n}\n\n/* Readium CSS\n Font size pref\n A submodule managing font-size for user settings\n Part of “User Overrides” class – no flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='--USER__fontSize'] {\n font-size: var(--USER__fontSize) !important;\n}\n\n/* Readium CSS\n Line height pref\n A submodule managing line-height for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] {\n line-height: var(--USER__lineHeight) !important;\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] body,\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] p,\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] li,\n:root[style*='readium-advanced-on'][style*='--USER__lineHeight'] div {\n line-height: inherit;\n}\n\n/* Readium CSS\n Para spacing pref\n A submodule managing paragraphs’ top and bottom margins for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__paraSpacing'] p {\n margin-top: var(--USER__paraSpacing) !important;\n margin-bottom: var(--USER__paraSpacing) !important;\n}\n\n/* Readium CSS\n Para indent pref\n A submodule managing paragraphs’ text-indent for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__paraIndent'] p {\n text-indent: var(--USER__paraIndent) !important;\n}\n\n/* If there are inline-block elements in paragraphs, text-indent will inherit so we must reset it */\n\n:root[style*='readium-advanced-on'][style*='--USER__paraIndent'] p *,\n:root[style*='readium-advanced-on'][style*='--USER__paraIndent']\n p:first-letter {\n text-indent: 0 !important;\n}\n\n/* Readium CSS\n Word spacing pref\n A submodule managing word-spacing for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h1,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h2,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h3,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h4,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h5,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] h6,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] p,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] li,\n:root[style*='readium-advanced-on'][style*='--USER__wordSpacing'] div {\n word-spacing: var(--USER__wordSpacing);\n}\n\n/* Readium CSS\n Letter spacing pref\n A submodule managing letter-spacing for user settings\n Part of “User Overrides Advanced” class – “advanced settings” flag required.\n Repo: https://github.com/readium/readium-css */\n\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h1,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h2,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h3,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h4,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h5,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] h6,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] p,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] li,\n:root[style*='readium-advanced-on'][style*='--USER__letterSpacing'] div {\n letter-spacing: var(--USER__letterSpacing);\n font-variant: none;\n}\n\n/* Readium CSS\n Font size normalize\n A stylesheet to normalize font-size\n Repo: https://github.com/readium/readium-css */\n\n/* STYLES */\n\n/* :root is used so that you can quickly add a class or attribute if you prefer e.g. `:root[data-rs-normalize]` */\n\n/* We create a default so that you don’t need to explicitly set one in the DOM.\n Once the “Publisher’s styles” checkbox is unchecked, the normalize is applied automatically */\n\n:root[style*='readium-advanced-on'] {\n --USER__typeScale: 1.2; /* This is the default type scale you’ll find in most publications */\n}\n\n:root[style*='readium-advanced-on'] p,\n:root[style*='readium-advanced-on'] li,\n:root[style*='readium-advanced-on'] div,\n:root[style*='readium-advanced-on'] pre,\n:root[style*='readium-advanced-on'] dd {\n font-size: 1rem !important;\n}\n\n:root[style*='readium-advanced-on'] h1 {\n /* Fallback if browser doesn’t support vars */\n font-size: 1.75rem !important;\n font-size: calc(\n ((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) *\n var(--USER__typeScale)\n ) !important;\n}\n\n:root[style*='readium-advanced-on'] h2 {\n /* Fallback if browser doesn’t support vars */\n font-size: 1.5rem !important;\n font-size: calc(\n (1rem * var(--USER__typeScale)) * var(--USER__typeScale)\n ) !important;\n}\n\n:root[style*='readium-advanced-on'] h3 {\n /* Fallback if browser doesn’t support vars */\n font-size: 1.25rem !important;\n font-size: calc(1rem * var(--USER__typeScale)) !important;\n}\n\n:root[style*='readium-advanced-on'] h4,\n:root[style*='readium-advanced-on'] h5,\n:root[style*='readium-advanced-on'] h6 {\n font-size: 1rem !important;\n}\n\n:root[style*='readium-advanced-on'] small {\n font-size: smaller !important;\n}\n\n:root[style*='readium-advanced-on'] sub,\n:root[style*='readium-advanced-on'] sup {\n font-size: 67.5% !important;\n}\n\n/* The following styles kick in if you define the typeScale variable in the DOM.\n No need to repeat declarations which don’t make use of the variable */\n\n:root[style*='readium-advanced-on'][style*='--USER__typeScale'] h1 {\n font-size: calc(\n ((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) *\n var(--USER__typeScale)\n ) !important;\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__typeScale'] h2 {\n font-size: calc(\n (1rem * var(--USER__typeScale)) * var(--USER__typeScale)\n ) !important;\n}\n\n:root[style*='readium-advanced-on'][style*='--USER__typeScale'] h3 {\n font-size: calc(1rem * var(--USER__typeScale)) !important;\n}\n\n/* Readium CSS\n Default highlights\n A stylesheet for user highlights\n Repo: https://github.com/readium/readium-css */\n\n/* User Highlights */\n\n.readiumCSS-yellow-highlight,\n:root[style*='readium-sepia-on'] .readiumCSS-yellow-highlight,\n:root[style*='readium-night-on'] .readiumCSS-yellow-highlight {\n background-color: rgba(255, 255, 0, 0.5) !important;\n}\n\n.readiumCSS-green-highlight,\n:root[style*='readium-sepia-on'] .readiumCSS-green-highlight,\n:root[style*='readium-night-on'] .readiumCSS-green-highlight {\n background-color: rgba(0, 255, 0, 0.5) !important;\n}\n\n.readiumCSS-orange-highlight,\n:root[style*='readium-sepia-on'] .readiumCSS-orange-highlight,\n:root[style*='readium-night-on'] .readiumCSS-orange-highlight {\n background-color: rgba(255, 165, 0, 0.5) !important;\n}\n\n.readiumCSS-pink-highlight,\n:root[style*='readium-sepia-on'] .readiumCSS-pink-highlight,\n:root[style*='readium-night-on'] .readiumCSS-pink-highlight {\n background-color: rgba(255, 105, 180, 0.5) !important;\n}\n\n/* Media overlays */\n\n.readiumCSS-mo-active-default {\n color: black !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,KAAK,CAAC,yBAA2B,CADhC;AAED,KAAK,CAAC,yBAA2B,CAFhC;AAGC,oBAAkB,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE;AACtC;AAEA,CAAC;AACD,KAAK,CAAC,yBAA2B,CADhC;AAED,KAAK,CAAC,yBAA2B,CAFhC;AAGC,oBAAkB,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AACxC;AAIA,CAvhBG;AAwhBD,SAAO;AACP,oBAAkB;AACpB;","names":[]}
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/HtmlReader/ReadiumCss/ReadiumCSS-before.css"],"sourcesContent":["/* Readium CSS \n Config module\n A file allowing implementers to customize flags for reading modes,\n user settings, etc.\n Repo: https://github.com/readium/readium-css */\n\n/* Custom medias\n Syntax: @custom-media --variable (prop: value) */\n\n/* Responsive columns\n The minimum width for which responsive columns (2 -> 1 and vice versa,\n depending on the current font-size) must be enabled */\n\n/* Mobile columns\n The minimum and maximum width for mobile devices.\n We’re forcing the landscape orientation by default,\n and must still investigate large tablets (iPad Pro, Surface Pro 3, etc.). */\n\n/* Custom selectors\n Syntax: @custom-selector :--variable selector\n The selectors you will use for flags/switches\n You can alternatively use classes or custom data-* attributes */\n\n/* User view = paged | scrolled */\n\n/* Font-family override */\n\n/* Advanced settings */\n\n/* Reading Modes */\n\n/* Filters (images) */\n\n/* Accessibility normalization */\n\n/* Accessibility font. You can add selectors, using “, ” as a separator, if you have multiple fonts */\n\n/* Direction i.e. ltr and rtl */\n\n/* Readium CSS\n Namespaces module\n Namespaces to import in all 3 dist stylesheets\n Repo: https://github.com/readium/readium-css */\n\n@namespace url('http://www.w3.org/1999/xhtml');\n\n@namespace epub url('http://www.idpf.org/2007/ops');\n\n@namespace m url('http://www.w3.org/1998/Math/MathML/');\n\n@namespace svg url('http://www.w3.org/2000/svg');\n\n/* Readium CSS\n Base module\n A minimal stylesheet for all ebooks\n Repo: https://github.com/readium/readium-css */\n\n/* Define viewport, HTML5-style */\n\n@-ms-viewport {\n width: device-width;\n}\n\n@viewport {\n width: device-width;\n zoom: 1;\n}\n\n:root {\n /* Default font-stacks */\n --RS__oldStyleTf: 'Iowan Old Style', 'Sitka Text', Palatino, 'Book Antiqua',\n serif;\n --RS__modernTf: Athelas, Constantia, Georgia, serif;\n --RS__sansTf: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto,\n 'Helvetica Neue', Arial, sans-serif;\n --RS__humanistTf: Seravek, Calibri, Roboto, Arial, sans-serif;\n --RS__monospaceTf: 'Andale Mono', Consolas, monospace;\n\n /* Config */\n --RS__baseFontFamily: var(--RS__oldStyleTf);\n\n /* For square-ish fonts (CJK, Indic, etc.), we must apply some compensation in dynamic leading. Default is 1 i.e. no compensation */\n --RS__lineHeightCompensation: 1;\n\n /* Dynamic leading based on typeface metrics + font-size setting */\n --RS__baseLineHeight: calc(\n (1em + (2ex - 1ch) - ((1rem - 16px) * 0.1667)) *\n var(--RS__lineHeightCompensation)\n );\n}\n\n/* Set default font for the html doc, so that it can be overridden by the authors’s stylesheet */\n\nhtml {\n font-family: var(--RS__baseFontFamily);\n /* Fallback line-height */\n line-height: 1.6; /* Fits a little bit better for all languages than 1.5 */\n line-height: var(--RS__baseLineHeight);\n text-rendering: optimizeLegibility;\n}\n\n/* 1.5 being too loose with larger font-sizes, we reset headings to normal (which value is 1.125–1.375 for our font-stacks) */\n\nh1,\nh2,\nh3 {\n line-height: normal;\n}\n\n:lang(ja),\n:lang(zh),\n:lang(ko) {\n word-wrap: break-word;\n -webkit-line-break: strict;\n -epub-line-break: strict;\n line-break: strict;\n}\n\n/* Set default font for Math */\n\nmath {\n font-family: 'Latin Modern Math', 'STIX Two Math', 'XITS Math', 'STIX Math',\n 'Libertinus Math', 'TeX Gyre Termes Math', 'TeX Gyre Bonum Math',\n 'TeX Gyre Schola', 'DejaVu Math TeX Gyre', 'TeX Gyre Pagella Math',\n 'Asana Math', 'Cambria Math', 'Lucida Bright Math', 'Minion Math',\n STIXGeneral, STIXSizeOneSym, Symbol, 'Times New Roman', serif;\n}\n\n/* Language Overrides\n That will only work if either html or body have a (xml:)lang attribute, not for inline overrides */\n\n:lang(am) {\n --RS__baseFontFamily: Kefa, Nyala, Roboto, Noto, 'Noto Sans Ethiopic', serif;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(ar) {\n --RS__baseFontFamily: 'Geeza Pro', 'Arabic Typesetting', Roboto, Noto,\n 'Noto Naskh Arabic', 'Times New Roman', serif;\n}\n\n:lang(bn) {\n --RS__baseFontFamily: 'Kohinoor Bangla', 'Bangla Sangam MN', Vrinda, Roboto,\n Noto, 'Noto Sans Bengali', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n:lang(bo) {\n --RS__baseFontFamily: Kailasa, 'Microsoft Himalaya', Roboto, Noto,\n 'Noto Sans Tibetan', sans-serif;\n}\n\n:lang(chr) {\n --RS__baseFontFamily: 'Plantagenet Cherokee', Roboto, Noto,\n 'Noto Sans Cherokee';\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(fa) {\n --RS__baseFontFamily: 'Geeza Pro', 'Arabic Typesetting', Roboto, Noto,\n 'Noto Naskh Arabic', 'Times New Roman', serif;\n}\n\n:lang(gu) {\n --RS__baseFontFamily: 'Gujarati Sangam MN', 'Nirmala UI', Shruti, Roboto, Noto,\n 'Noto Sans Gujarati', sans-serif;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(he) {\n --RS__baseFontFamily: 'New Peninim MT', 'Arial Hebrew', Gisha,\n 'Times New Roman', Roboto, Noto, 'Noto Sans Hebrew' sans-serif;\n --RS__lineHeightCompensation: 1.1;\n}\n\n:lang(hi) {\n --RS__baseFontFamily: 'Kohinoor Devanagari', 'Devanagari Sangam MN', Kokila,\n 'Nirmala UI', Roboto, Noto, 'Noto Sans Devanagari', sans-serif;\n\n --RS__lineHeightCompensation: 1.1;\n}\n\n:lang(hy) {\n --RS__baseFontFamily: Mshtakan, Sylfaen, Roboto, Noto, 'Noto Serif Armenian',\n serif;\n}\n\n:lang(iu) {\n --RS__baseFontFamily: 'Euphemia UCAS', Euphemia, Roboto, Noto,\n 'Noto Sans Canadian Aboriginal', sans-serif;\n}\n\n:lang(ja) {\n --RS__baseFontFamily: '游ゴシック体', YuGothic, 'ヒラギノ丸ゴ',\n 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo UI', 'MS Gothic', Roboto, Noto,\n 'Noto Sans CJK JP', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n\n /* Extra variables for Japanese font-stacks as we may want to reuse them for user settings + default */\n --RS__serif-ja: 'MS P明朝', 'MS PMincho', 'Hiragino Mincho Pro',\n 'ヒラギノ明朝 Pro W3', '游明朝', 'YuMincho', 'MS 明朝', 'MS Mincho',\n 'Hiragino Mincho ProN', serif;\n --RS__sans-serif-ja: 'MS Pゴシック', 'MS PGothic',\n 'Hiragino Kaku Gothic Pro W3', 'ヒラギノ角ゴ Pro W3', 'Hiragino Sans GB',\n 'ヒラギノ角ゴシック W3', '游ゴシック', 'YuGothic', 'MS ゴシック',\n 'MS Gothic', 'Hiragino Sans', sans-serif;\n --RS__serif-ja-v: 'MS 明朝', 'MS Mincho', 'Hiragino Mincho Pro',\n 'ヒラギノ明朝 Pro W3', '游明朝', 'YuMincho', 'MS P明朝', 'MS PMincho',\n 'Hiragino Mincho ProN', serif;\n --RS__sans-serif-ja-v: 'MS ゴシック', 'MS Gothic',\n 'Hiragino Kaku Gothic Pro W3', 'ヒラギノ角ゴ Pro W3', 'Hiragino Sans GB',\n 'ヒラギノ角ゴシック W3', '游ゴシック', 'YuGothic', 'MS Pゴシック',\n 'MS PGothic', 'Hiragino Sans', sans-serif;\n}\n\n:lang(km) {\n --RS__baseFontFamily: 'Khmer Sangam MN', 'Leelawadee UI', 'Khmer UI', Roboto,\n Noto, 'Noto Sans Khmer', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n:lang(kn) {\n --RS__baseFontFamily: 'Kannada Sangam MN', 'Nirmala UI', Tunga, Roboto, Noto,\n 'Noto Sans Kannada', sans-serif;\n --RS__lineHeightCompensation: 1.1;\n}\n\n:lang(ko) {\n --RS__baseFontFamily: 'Nanum Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic',\n Roboto, Noto, 'Noto Sans CJK KR', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(lo) {\n --RS__baseFontFamily: 'Lao Sangam MN', 'Leelawadee UI', 'Lao UI', Roboto, Noto,\n 'Noto Sans Lao', sans-serif;\n}\n\n:lang(ml) {\n --RS__baseFontFamily: 'Malayalam Sangam MN', 'Nirmala UI', Kartika, Roboto,\n Noto, 'Noto Sans Malayalam', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n:lang(or) {\n --RS__baseFontFamily: 'Oriya Sangam MN', 'Nirmala UI', Kalinga, Roboto, Noto,\n 'Noto Sans Oriya', sans-serif;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(pa) {\n --RS__baseFontFamily: 'Gurmukhi MN', 'Nirmala UI', Kartika, Roboto, Noto,\n 'Noto Sans Gurmukhi', sans-serif;\n --RS__lineHeightCompensation: 1.1;\n}\n\n:lang(si) {\n --RS__baseFontFamily: 'Sinhala Sangam MN', 'Nirmala UI', 'Iskoola Pota',\n Roboto, Noto, 'Noto Sans Sinhala', sans-serif;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(ta) {\n --RS__baseFontFamily: 'Tamil Sangam MN', 'Nirmala UI', Latha, Roboto, Noto,\n 'Noto Sans Tamil', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n:lang(te) {\n --RS__baseFontFamily: 'Kohinoor Telugu', 'Telugu Sangam MN', 'Nirmala UI',\n Gautami, Roboto, Noto, 'Noto Sans Telugu', sans-serif;\n}\n\n:lang(th) {\n --RS__baseFontFamily: 'Thonburi', 'Leelawadee UI', 'Cordia New', Roboto, Noto,\n 'Noto Sans Thai', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n/* The following will also work for zh-Hans */\n\n:lang(zh) {\n --RS__baseFontFamily: '方体', 'PingFang SC', '黑体', 'Heiti SC',\n 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto,\n 'Noto Sans CJK SC', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(zh-Hant),\n:lang(zh-TW) {\n --RS__baseFontFamily: '方體', 'PingFang TC', '黑體', 'Heiti TC',\n 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto,\n 'Noto Sans CJK TC', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(zh-HK) {\n --RS__baseFontFamily: '方體', 'PingFang HK', '方體', 'PingFang TC', '黑體',\n 'Heiti TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto,\n 'Noto Sans CJK TC', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n/* Readium CSS\n Day/Default mode\n A preset theme for day mode, which is the default\n Repo: https://github.com/readium/readium-css */\n\n/* CONFIG */\n\n:root {\n --RS__backgroundColor: #ffffff;\n --RS__textColor: #121212;\n\n /* This can be customized but initial will re-use default value of the browser */\n --RS__selectionBackgroundColor: #b4d8fe;\n --RS__selectionTextColor: inherit;\n}\n\n:root {\n color: var(--RS__textColor) !important;\n background-color: var(--RS__backgroundColor) !important;\n}\n\n/* Note: Though `::selection` was present in drafts of CSS Selectors Level 3, it was removed during the Candidate Recommendation phase because its behavior was under-specified (especially with nested elements) and interoperability wasn’t achieved. Source: https://developer.mozilla.org/en-US/docs/Web/CSS/::selection */\n\n::-moz-selection {\n color: var(--RS__selectionTextColor);\n background-color: var(--RS__selectionBackgroundColor);\n}\n\n::selection {\n color: var(--RS__selectionTextColor);\n background-color: var(--RS__selectionBackgroundColor);\n}\n\n/* Readium CSS\n Fonts module\n A stylesheet for embedded fonts\n Repo: https://github.com/readium/readium-css */\n\n/* /!\\ Mind the path (relative to the folders in which you have stylesheets and the fonts) */\n\n/* @font-face {\n font-family: AccessibleDfA;\n font-style: normal;\n font-weight: normal;\n src: local('AccessibleDfA'), url('fonts/AccessibleDfA.otf') format('opentype');\n}\n\n@font-face {\n font-family: 'IA Writer Duospace';\n font-style: normal;\n font-weight: normal;\n src: local('iAWriterDuospace-Regular'),\n url('fonts/iAWriterDuospace-Regular.ttf') format('truetype');\n} */\n\n/* If you have different weights/styles,\n use `font-weight` and `font-style`,\n not prefixes in the font-family name,\n or else it will be a nightmare to manage in user settings. */\n\n/* Readium CSS\n HTML5 SR Patch stylesheet\n A set of style to adjust HTML5 Suggested Rendering to paginated content\n Repo: https://github.com/readium/readium-css */\n\n/* Fragmentation */\n\nbody {\n widows: 2;\n orphans: 2;\n}\n\nfigcaption,\nth,\ntd {\n widows: 1;\n orphans: 1;\n}\n\nh2,\nh3,\nh4,\nh5,\nh6,\ndt,\nhr,\ncaption {\n -webkit-column-break-after: avoid;\n page-break-after: avoid;\n break-after: avoid;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ndt,\nfigure,\ntr {\n -webkit-column-break-inside: avoid;\n page-break-inside: avoid;\n break-inside: avoid;\n}\n\n/* Hyphenation */\n\nbody {\n -webkit-hyphenate-character: '\\002D';\n -moz-hyphenate-character: '\\002D';\n -ms-hyphenate-character: '\\002D';\n hyphenate-character: '\\002D';\n -webkit-hyphenate-limit-lines: 3;\n -ms-hyphenate-limit-lines: 3;\n hyphenate-limit-lines: 3;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ndt,\nfigcaption,\npre,\ncaption,\naddress,\ncenter,\ncode,\nvar {\n -ms-hyphens: none;\n -moz-hyphens: none;\n -webkit-hyphens: none;\n -epub-hyphens: none;\n hyphens: none;\n}\n\n/* OTF */\n\nbody {\n font-variant-numeric: oldstyle-nums proportional-nums;\n}\n\n:lang(ja) body,\n:lang(zh) body,\n:lang(ko) body {\n font-variant-numeric: lining-nums proportional-nums;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ndt {\n font-variant-numeric: lining-nums proportional-nums;\n}\n\ntable {\n font-variant-numeric: lining-nums tabular-nums;\n}\n\ncode,\nvar {\n font-variant-ligatures: none;\n font-variant-numeric: lining-nums tabular-nums slashed-zero;\n}\n\nrt {\n font-variant-east-asian: ruby;\n}\n\n:lang(ar) {\n font-variant-ligatures: common-ligatures;\n}\n\n:lang(ko) {\n font-kerning: normal;\n}\n\n/* Night mode */\n\nhr {\n color: inherit;\n border-color: currentColor;\n}\n\ntable,\nth,\ntd {\n border-color: currentColor;\n}\n\n/* Horizontal Spacing */\n\nfigure,\nblockquote {\n margin: 1em 5%;\n}\n\n/*\n :lang(ja) figure, :lang(ja) blockquote,\n :lang(zh-Hant) figure, :lang(zh-Hant) blockquote,\n :lang(zh-TW) figure, :lang(zh-TW) blockquote,\n :lang(mn) figure, :lang(mn) blockquote {\n margin: 5% 1em;\n }\n */\n\nul,\nol {\n padding-left: 5%;\n}\n\n/*\n :lang(ja) ul, :lang(ja) ol,\n :lang(zh-Hant) ul, :lang(zh-Hant) ol,\n :lang(zh-TW) ul, :lang(zh-TW) ol,\n :lang(mn) ul, :lang(mn) ol {\n padding-top: 5%;\n }\n */\n\ndd {\n margin-left: 5%;\n}\n\n/*\n :lang(ja) dd,\n :lang(zh-Hant) dd,\n :lang(zh-TW) dd,\n :lang(mn) dd {\n margin-top: 5%;\n }\n */\n\npre {\n white-space: pre-wrap;\n -ms-tab-size: 2;\n -moz-tab-size: 2;\n -webkit-tab-size: 2;\n tab-size: 2;\n}\n\n/* Normalization */\n\nabbr[title],\nacronym[title] {\n text-decoration: dotted underline;\n}\n\nnobr wbr {\n white-space: normal;\n}\n\n/* Make ruby text and parentheses non-selectable (TBC) */\n\nruby > rt,\nruby > rp {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/* Internationalization */\n\n*:lang(ja),\n*:lang(zh),\n*:lang(ko),\n:lang(ja) cite,\n:lang(ja) dfn,\n:lang(ja) em,\n:lang(ja) i,\n:lang(zh) cite,\n:lang(zh) dfn,\n:lang(zh) em,\n:lang(zh) i,\n:lang(ko) cite,\n:lang(ko) dfn,\n:lang(ko) em,\n:lang(ko) i {\n font-style: normal;\n}\n\n:lang(ja) a,\n:lang(zh) a,\n:lang(ko) a {\n text-decoration: none;\n}\n\n/* Readium CSS\n Safeguards module\n A set of styles to prevent common issues in pagination\n Repo: https://github.com/readium/readium-css */\n\n/* Config */\n\n/* We’ll be using an \"RS__\" prefix so that we can prevent collisions with authors’ CSS */\n\n:root {\n /* max-width for media, you can override that via JS if not compiled to static */\n --RS__maxMediaWidth: 100%;\n\n /* max-height for media, you can override that via JS if not compiled to static\n Please consider figures might have a figcaption, which is why 95vh in the first place */\n --RS__maxMediaHeight: 95vh;\n\n /* value for medias’ box-sizing */\n --RS__boxSizingMedia: border-box;\n\n /* value for table’s box-sizing */\n --RS__boxSizingTable: border-box;\n}\n\n/* Sanitize line-heights in webkit e.g. raised cap without a declared line-height\n See effect by checking this demo in Safari: https://codepen.io/JayPanoz/pen/gRmzrE\n Note: glyphs has to be reset to inline for CJK */\n\nhtml {\n -webkit-line-box-contain: block glyphs replaced;\n}\n\n:lang(ja) {\n -webkit-line-box-contain: block inline replaced;\n}\n\n/* Wrap long strings if larger than line-length */\n\na,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n word-wrap: break-word;\n}\n\ndiv {\n max-width: var(--RS__maxMediaWidth);\n}\n\n/* Size medias */\n\n/* You can override CSS variables by re-defining it for all elements or a specific one */\n\nimg,\nsvg,\naudio,\nvideo {\n /* Object-fit allows us to keep the correct aspect-ratio */\n object-fit: contain;\n\n width: auto;\n height: auto;\n\n /* Some files don’t have max-width */\n max-width: var(--RS__maxMediaWidth);\n\n /* We’re setting a max-height, especially for covers */\n max-height: var(--RS__maxMediaHeight) !important;\n /* We probably don’t need to use modern box-sizing as auto behaves like it */\n box-sizing: var(--RS__boxSizingMedia);\n\n /* For page-break, we must use those 3\n We can’t use a variable there, webkit seems to no support them for those properties */\n -webkit-column-break-inside: avoid;\n page-break-inside: avoid;\n break-inside: avoid;\n}\n\n/* Try preventing border being cut-off, webkit + blink have content-box by default */\n\ntable {\n max-width: var(--RS__maxMediaWidth);\n box-sizing: var(--RS__boxSizingTable);\n}\n/*# sourceMappingURL=ReadiumCSS-before.css.map */\n"],"mappings":";AA4CA;AAEA;AAEA;AAEA;AASA;AACE;AAAA;AAGF;AACE;AACA;AAAA;AAGF;AAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AAGA;AAAA;AAQF;AACE;AAEA;AACA;AACA;AAAA;AAKF;AAAA;AAAA;AAGE;AAAA;AAGF;AAAA;AAAA;AAGE;AACA;AACA;AACA;AAAA;AAKF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIF;AACE;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A;AAKF;AAAA;AAEE;AAAA;AAYF;AAAA;AAEE;AAAA;AAYF;AACE;AAAA;AAYF;AACE;AACA;AACA;AACA;AACA;AAAA;AAKF;AAAA;AAEE;AAAA;AAGF;AACE;AAAA;AAKF;AAAA;AAEE;AACA;AACA;AACA;AAAA;AAKF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeE;AAAA;AAGF;AAAA;AAAA;AAGE;AAAA;AAYF;AAEE;AAIA;AAGA;AAGA;AAAA;AAOF;AACE;AAAA;AAGF;AACE;AAAA;AAKF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOE;AAAA;AAGF;AACE;AAAA;AAOF;AAAA;AAAA;AAAA;AAKE;AAEA;AACA;AAGA;AAGA;AAEA;AAIA;AACA;AACA;AAAA;AAKF;AACE;AACA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/HtmlReader/ReadiumCss/ReadiumCSS-before.css"],"sourcesContent":["/* Readium CSS \n Config module\n A file allowing implementers to customize flags for reading modes,\n user settings, etc.\n Repo: https://github.com/readium/readium-css */\n\n/* Custom medias\n Syntax: @custom-media --variable (prop: value) */\n\n/* Responsive columns\n The minimum width for which responsive columns (2 -> 1 and vice versa,\n depending on the current font-size) must be enabled */\n\n/* Mobile columns\n The minimum and maximum width for mobile devices.\n We’re forcing the landscape orientation by default,\n and must still investigate large tablets (iPad Pro, Surface Pro 3, etc.). */\n\n/* Custom selectors\n Syntax: @custom-selector :--variable selector\n The selectors you will use for flags/switches\n You can alternatively use classes or custom data-* attributes */\n\n/* User view = paged | scrolled */\n\n/* Font-family override */\n\n/* Advanced settings */\n\n/* Reading Modes */\n\n/* Filters (images) */\n\n/* Accessibility normalization */\n\n/* Accessibility font. You can add selectors, using “, ” as a separator, if you have multiple fonts */\n\n/* Direction i.e. ltr and rtl */\n\n/* Readium CSS\n Namespaces module\n Namespaces to import in all 3 dist stylesheets\n Repo: https://github.com/readium/readium-css */\n\n@namespace url('http://www.w3.org/1999/xhtml');\n\n@namespace epub url('http://www.idpf.org/2007/ops');\n\n@namespace m url('http://www.w3.org/1998/Math/MathML/');\n\n@namespace svg url('http://www.w3.org/2000/svg');\n\n/* Readium CSS\n Base module\n A minimal stylesheet for all ebooks\n Repo: https://github.com/readium/readium-css */\n\n/* Define viewport, HTML5-style */\n\n@-ms-viewport {\n width: device-width;\n}\n\n@viewport {\n width: device-width;\n zoom: 1;\n}\n\n:root {\n /* Default font-stacks */\n --RS__oldStyleTf: 'Iowan Old Style', 'Sitka Text', Palatino, 'Book Antiqua',\n serif;\n --RS__modernTf: Athelas, Constantia, Georgia, serif;\n --RS__sansTf: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto,\n 'Helvetica Neue', Arial, sans-serif;\n --RS__humanistTf: Seravek, Calibri, Roboto, Arial, sans-serif;\n --RS__monospaceTf: 'Andale Mono', Consolas, monospace;\n\n /* Config */\n --RS__baseFontFamily: var(--RS__oldStyleTf);\n\n /* For square-ish fonts (CJK, Indic, etc.), we must apply some compensation in dynamic leading. Default is 1 i.e. no compensation */\n --RS__lineHeightCompensation: 1;\n\n /* Dynamic leading based on typeface metrics + font-size setting */\n --RS__baseLineHeight: calc(\n (1em + (2ex - 1ch) - ((1rem - 16px) * 0.1667)) *\n var(--RS__lineHeightCompensation)\n );\n}\n\n/* Set default font for the html doc, so that it can be overridden by the authors’s stylesheet */\n\nhtml {\n font-family: var(--RS__baseFontFamily);\n /* Fallback line-height */\n line-height: 1.6; /* Fits a little bit better for all languages than 1.5 */\n line-height: var(--RS__baseLineHeight);\n text-rendering: optimizeLegibility;\n}\n\n/* 1.5 being too loose with larger font-sizes, we reset headings to normal (which value is 1.125–1.375 for our font-stacks) */\n\nh1,\nh2,\nh3 {\n line-height: normal;\n}\n\n:lang(ja),\n:lang(zh),\n:lang(ko) {\n word-wrap: break-word;\n -webkit-line-break: strict;\n -epub-line-break: strict;\n line-break: strict;\n}\n\n/* Set default font for Math */\n\nmath {\n font-family: 'Latin Modern Math', 'STIX Two Math', 'XITS Math', 'STIX Math',\n 'Libertinus Math', 'TeX Gyre Termes Math', 'TeX Gyre Bonum Math',\n 'TeX Gyre Schola', 'DejaVu Math TeX Gyre', 'TeX Gyre Pagella Math',\n 'Asana Math', 'Cambria Math', 'Lucida Bright Math', 'Minion Math',\n STIXGeneral, STIXSizeOneSym, Symbol, 'Times New Roman', serif;\n}\n\n/* Language Overrides\n That will only work if either html or body have a (xml:)lang attribute, not for inline overrides */\n\n:lang(am) {\n --RS__baseFontFamily: Kefa, Nyala, Roboto, Noto, 'Noto Sans Ethiopic', serif;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(ar) {\n --RS__baseFontFamily: 'Geeza Pro', 'Arabic Typesetting', Roboto, Noto,\n 'Noto Naskh Arabic', 'Times New Roman', serif;\n}\n\n:lang(bn) {\n --RS__baseFontFamily: 'Kohinoor Bangla', 'Bangla Sangam MN', Vrinda, Roboto,\n Noto, 'Noto Sans Bengali', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n:lang(bo) {\n --RS__baseFontFamily: Kailasa, 'Microsoft Himalaya', Roboto, Noto,\n 'Noto Sans Tibetan', sans-serif;\n}\n\n:lang(chr) {\n --RS__baseFontFamily: 'Plantagenet Cherokee', Roboto, Noto,\n 'Noto Sans Cherokee';\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(fa) {\n --RS__baseFontFamily: 'Geeza Pro', 'Arabic Typesetting', Roboto, Noto,\n 'Noto Naskh Arabic', 'Times New Roman', serif;\n}\n\n:lang(gu) {\n --RS__baseFontFamily: 'Gujarati Sangam MN', 'Nirmala UI', Shruti, Roboto, Noto,\n 'Noto Sans Gujarati', sans-serif;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(he) {\n --RS__baseFontFamily: 'New Peninim MT', 'Arial Hebrew', Gisha,\n 'Times New Roman', Roboto, Noto, 'Noto Sans Hebrew' sans-serif;\n --RS__lineHeightCompensation: 1.1;\n}\n\n:lang(hi) {\n --RS__baseFontFamily: 'Kohinoor Devanagari', 'Devanagari Sangam MN', Kokila,\n 'Nirmala UI', Roboto, Noto, 'Noto Sans Devanagari', sans-serif;\n\n --RS__lineHeightCompensation: 1.1;\n}\n\n:lang(hy) {\n --RS__baseFontFamily: Mshtakan, Sylfaen, Roboto, Noto, 'Noto Serif Armenian',\n serif;\n}\n\n:lang(iu) {\n --RS__baseFontFamily: 'Euphemia UCAS', Euphemia, Roboto, Noto,\n 'Noto Sans Canadian Aboriginal', sans-serif;\n}\n\n:lang(ja) {\n --RS__baseFontFamily: '游ゴシック体', YuGothic, 'ヒラギノ丸ゴ',\n 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo UI', 'MS Gothic', Roboto, Noto,\n 'Noto Sans CJK JP', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n\n /* Extra variables for Japanese font-stacks as we may want to reuse them for user settings + default */\n --RS__serif-ja: 'MS P明朝', 'MS PMincho', 'Hiragino Mincho Pro',\n 'ヒラギノ明朝 Pro W3', '游明朝', 'YuMincho', 'MS 明朝', 'MS Mincho',\n 'Hiragino Mincho ProN', serif;\n --RS__sans-serif-ja: 'MS Pゴシック', 'MS PGothic',\n 'Hiragino Kaku Gothic Pro W3', 'ヒラギノ角ゴ Pro W3', 'Hiragino Sans GB',\n 'ヒラギノ角ゴシック W3', '游ゴシック', 'YuGothic', 'MS ゴシック',\n 'MS Gothic', 'Hiragino Sans', sans-serif;\n --RS__serif-ja-v: 'MS 明朝', 'MS Mincho', 'Hiragino Mincho Pro',\n 'ヒラギノ明朝 Pro W3', '游明朝', 'YuMincho', 'MS P明朝', 'MS PMincho',\n 'Hiragino Mincho ProN', serif;\n --RS__sans-serif-ja-v: 'MS ゴシック', 'MS Gothic',\n 'Hiragino Kaku Gothic Pro W3', 'ヒラギノ角ゴ Pro W3', 'Hiragino Sans GB',\n 'ヒラギノ角ゴシック W3', '游ゴシック', 'YuGothic', 'MS Pゴシック',\n 'MS PGothic', 'Hiragino Sans', sans-serif;\n}\n\n:lang(km) {\n --RS__baseFontFamily: 'Khmer Sangam MN', 'Leelawadee UI', 'Khmer UI', Roboto,\n Noto, 'Noto Sans Khmer', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n:lang(kn) {\n --RS__baseFontFamily: 'Kannada Sangam MN', 'Nirmala UI', Tunga, Roboto, Noto,\n 'Noto Sans Kannada', sans-serif;\n --RS__lineHeightCompensation: 1.1;\n}\n\n:lang(ko) {\n --RS__baseFontFamily: 'Nanum Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic',\n Roboto, Noto, 'Noto Sans CJK KR', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(lo) {\n --RS__baseFontFamily: 'Lao Sangam MN', 'Leelawadee UI', 'Lao UI', Roboto, Noto,\n 'Noto Sans Lao', sans-serif;\n}\n\n:lang(ml) {\n --RS__baseFontFamily: 'Malayalam Sangam MN', 'Nirmala UI', Kartika, Roboto,\n Noto, 'Noto Sans Malayalam', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n:lang(or) {\n --RS__baseFontFamily: 'Oriya Sangam MN', 'Nirmala UI', Kalinga, Roboto, Noto,\n 'Noto Sans Oriya', sans-serif;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(pa) {\n --RS__baseFontFamily: 'Gurmukhi MN', 'Nirmala UI', Kartika, Roboto, Noto,\n 'Noto Sans Gurmukhi', sans-serif;\n --RS__lineHeightCompensation: 1.1;\n}\n\n:lang(si) {\n --RS__baseFontFamily: 'Sinhala Sangam MN', 'Nirmala UI', 'Iskoola Pota',\n Roboto, Noto, 'Noto Sans Sinhala', sans-serif;\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(ta) {\n --RS__baseFontFamily: 'Tamil Sangam MN', 'Nirmala UI', Latha, Roboto, Noto,\n 'Noto Sans Tamil', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n:lang(te) {\n --RS__baseFontFamily: 'Kohinoor Telugu', 'Telugu Sangam MN', 'Nirmala UI',\n Gautami, Roboto, Noto, 'Noto Sans Telugu', sans-serif;\n}\n\n:lang(th) {\n --RS__baseFontFamily: 'Thonburi', 'Leelawadee UI', 'Cordia New', Roboto, Noto,\n 'Noto Sans Thai', sans-serif;\n --RS__lineHeightCompensation: 1.067;\n}\n\n/* The following will also work for zh-Hans */\n\n:lang(zh) {\n --RS__baseFontFamily: '方体', 'PingFang SC', '黑体', 'Heiti SC',\n 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto,\n 'Noto Sans CJK SC', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(zh-Hant),\n:lang(zh-TW) {\n --RS__baseFontFamily: '方體', 'PingFang TC', '黑體', 'Heiti TC',\n 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto,\n 'Noto Sans CJK TC', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(zh-HK) {\n --RS__baseFontFamily: '方體', 'PingFang HK', '方體', 'PingFang TC', '黑體',\n 'Heiti TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto,\n 'Noto Sans CJK TC', sans-serif;\n\n /* For CJK, the line-height is usually 15–20% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n/* Readium CSS\n Day/Default mode\n A preset theme for day mode, which is the default\n Repo: https://github.com/readium/readium-css */\n\n/* CONFIG */\n\n:root {\n --RS__backgroundColor: #ffffff;\n --RS__textColor: #121212;\n\n /* This can be customized but initial will re-use default value of the browser */\n --RS__selectionBackgroundColor: #b4d8fe;\n --RS__selectionTextColor: inherit;\n}\n\n:root {\n color: var(--RS__textColor) !important;\n background-color: var(--RS__backgroundColor) !important;\n}\n\n/* Note: Though `::selection` was present in drafts of CSS Selectors Level 3, it was removed during the Candidate Recommendation phase because its behavior was under-specified (especially with nested elements) and interoperability wasn’t achieved. Source: https://developer.mozilla.org/en-US/docs/Web/CSS/::selection */\n\n::-moz-selection {\n color: var(--RS__selectionTextColor);\n background-color: var(--RS__selectionBackgroundColor);\n}\n\n::selection {\n color: var(--RS__selectionTextColor);\n background-color: var(--RS__selectionBackgroundColor);\n}\n\n/* Readium CSS\n Fonts module\n A stylesheet for embedded fonts\n Repo: https://github.com/readium/readium-css */\n\n/* /!\\ Mind the path (relative to the folders in which you have stylesheets and the fonts) */\n\n/* @font-face {\n font-family: AccessibleDfA;\n font-style: normal;\n font-weight: normal;\n src: local('AccessibleDfA'), url('fonts/AccessibleDfA.otf') format('opentype');\n}\n\n@font-face {\n font-family: 'IA Writer Duospace';\n font-style: normal;\n font-weight: normal;\n src: local('iAWriterDuospace-Regular'),\n url('fonts/iAWriterDuospace-Regular.ttf') format('truetype');\n} */\n\n/* If you have different weights/styles,\n use `font-weight` and `font-style`,\n not prefixes in the font-family name,\n or else it will be a nightmare to manage in user settings. */\n\n/* Readium CSS\n HTML5 SR Patch stylesheet\n A set of style to adjust HTML5 Suggested Rendering to paginated content\n Repo: https://github.com/readium/readium-css */\n\n/* Fragmentation */\n\nbody {\n widows: 2;\n orphans: 2;\n}\n\nfigcaption,\nth,\ntd {\n widows: 1;\n orphans: 1;\n}\n\nh2,\nh3,\nh4,\nh5,\nh6,\ndt,\nhr,\ncaption {\n -webkit-column-break-after: avoid;\n page-break-after: avoid;\n break-after: avoid;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ndt,\nfigure,\ntr {\n -webkit-column-break-inside: avoid;\n page-break-inside: avoid;\n break-inside: avoid;\n}\n\n/* Hyphenation */\n\nbody {\n -webkit-hyphenate-character: '\\002D';\n -moz-hyphenate-character: '\\002D';\n -ms-hyphenate-character: '\\002D';\n hyphenate-character: '\\002D';\n -webkit-hyphenate-limit-lines: 3;\n -ms-hyphenate-limit-lines: 3;\n hyphenate-limit-lines: 3;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ndt,\nfigcaption,\npre,\ncaption,\naddress,\ncenter,\ncode,\nvar {\n -ms-hyphens: none;\n -moz-hyphens: none;\n -webkit-hyphens: none;\n -epub-hyphens: none;\n hyphens: none;\n}\n\n/* OTF */\n\nbody {\n font-variant-numeric: oldstyle-nums proportional-nums;\n}\n\n:lang(ja) body,\n:lang(zh) body,\n:lang(ko) body {\n font-variant-numeric: lining-nums proportional-nums;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ndt {\n font-variant-numeric: lining-nums proportional-nums;\n}\n\ntable {\n font-variant-numeric: lining-nums tabular-nums;\n}\n\ncode,\nvar {\n font-variant-ligatures: none;\n font-variant-numeric: lining-nums tabular-nums slashed-zero;\n}\n\nrt {\n font-variant-east-asian: ruby;\n}\n\n:lang(ar) {\n font-variant-ligatures: common-ligatures;\n}\n\n:lang(ko) {\n font-kerning: normal;\n}\n\n/* Night mode */\n\nhr {\n color: inherit;\n border-color: currentColor;\n}\n\ntable,\nth,\ntd {\n border-color: currentColor;\n}\n\n/* Horizontal Spacing */\n\nfigure,\nblockquote {\n margin: 1em 5%;\n}\n\n/*\n :lang(ja) figure, :lang(ja) blockquote,\n :lang(zh-Hant) figure, :lang(zh-Hant) blockquote,\n :lang(zh-TW) figure, :lang(zh-TW) blockquote,\n :lang(mn) figure, :lang(mn) blockquote {\n margin: 5% 1em;\n }\n */\n\nul,\nol {\n padding-left: 5%;\n}\n\n/*\n :lang(ja) ul, :lang(ja) ol,\n :lang(zh-Hant) ul, :lang(zh-Hant) ol,\n :lang(zh-TW) ul, :lang(zh-TW) ol,\n :lang(mn) ul, :lang(mn) ol {\n padding-top: 5%;\n }\n */\n\ndd {\n margin-left: 5%;\n}\n\n/*\n :lang(ja) dd,\n :lang(zh-Hant) dd,\n :lang(zh-TW) dd,\n :lang(mn) dd {\n margin-top: 5%;\n }\n */\n\npre {\n white-space: pre-wrap;\n -ms-tab-size: 2;\n -moz-tab-size: 2;\n -webkit-tab-size: 2;\n tab-size: 2;\n}\n\n/* Normalization */\n\nabbr[title],\nacronym[title] {\n text-decoration: dotted underline;\n}\n\nnobr wbr {\n white-space: normal;\n}\n\n/* Make ruby text and parentheses non-selectable (TBC) */\n\nruby > rt,\nruby > rp {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/* Internationalization */\n\n*:lang(ja),\n*:lang(zh),\n*:lang(ko),\n:lang(ja) cite,\n:lang(ja) dfn,\n:lang(ja) em,\n:lang(ja) i,\n:lang(zh) cite,\n:lang(zh) dfn,\n:lang(zh) em,\n:lang(zh) i,\n:lang(ko) cite,\n:lang(ko) dfn,\n:lang(ko) em,\n:lang(ko) i {\n font-style: normal;\n}\n\n:lang(ja) a,\n:lang(zh) a,\n:lang(ko) a {\n text-decoration: none;\n}\n\n/* Readium CSS\n Safeguards module\n A set of styles to prevent common issues in pagination\n Repo: https://github.com/readium/readium-css */\n\n/* Config */\n\n/* We’ll be using an \"RS__\" prefix so that we can prevent collisions with authors’ CSS */\n\n:root {\n /* max-width for media, you can override that via JS if not compiled to static */\n --RS__maxMediaWidth: 100%;\n\n /* max-height for media, you can override that via JS if not compiled to static\n Please consider figures might have a figcaption, which is why 95vh in the first place */\n --RS__maxMediaHeight: 95vh;\n\n /* value for medias’ box-sizing */\n --RS__boxSizingMedia: border-box;\n\n /* value for table’s box-sizing */\n --RS__boxSizingTable: border-box;\n}\n\n/* Sanitize line-heights in webkit e.g. raised cap without a declared line-height\n See effect by checking this demo in Safari: https://codepen.io/JayPanoz/pen/gRmzrE\n Note: glyphs has to be reset to inline for CJK */\n\nhtml {\n -webkit-line-box-contain: block glyphs replaced;\n}\n\n:lang(ja) {\n -webkit-line-box-contain: block inline replaced;\n}\n\n/* Wrap long strings if larger than line-length */\n\na,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n word-wrap: break-word;\n}\n\ndiv {\n max-width: var(--RS__maxMediaWidth);\n}\n\n/* Size medias */\n\n/* You can override CSS variables by re-defining it for all elements or a specific one */\n\nimg,\nsvg,\naudio,\nvideo {\n /* Object-fit allows us to keep the correct aspect-ratio */\n object-fit: contain;\n\n width: auto;\n height: auto;\n\n /* Some files don’t have max-width */\n max-width: var(--RS__maxMediaWidth);\n\n /* We’re setting a max-height, especially for covers */\n max-height: var(--RS__maxMediaHeight) !important;\n /* We probably don’t need to use modern box-sizing as auto behaves like it */\n box-sizing: var(--RS__boxSizingMedia);\n\n /* For page-break, we must use those 3\n We can’t use a variable there, webkit seems to no support them for those properties */\n -webkit-column-break-inside: avoid;\n page-break-inside: avoid;\n break-inside: avoid;\n}\n\n/* Try preventing border being cut-off, webkit + blink have content-box by default */\n\ntable {\n max-width: var(--RS__maxMediaWidth);\n box-sizing: var(--RS__boxSizingTable);\n}\n/*# sourceMappingURL=ReadiumCSS-before.css.map */\n"],"mappings":";AA4CA,WAAW;AAEX,WAAW,KAAK;AAEhB,WAAW,EAAE;AAEb,WAAW,IAAI;AASf;AACE,SAAO;AACT;AAEA;AACE,SAAO;AACP,QAAM;AACR;AAEA;AAEE;AAAA,IAAkB,iBAAiB;AAAA,IAAE,YAAY;AAAA,IAAE,QAAQ;AAAA,IAAE,cAAc;AAAA,IACzE;AACF;AAAA,IAAgB,OAAO;AAAA,IAAE,UAAU;AAAA,IAAE,OAAO;AAAA,IAAE;AAC9C;AAAA,IAAc,aAAa;AAAA,IAAE,SAAS;AAAA,IAAE,kBAAkB;AAAA,IAAE,UAAU;AAAA,IAAE,MAAM;AAAA,IAC5E,gBAAgB;AAAA,IAAE,KAAK;AAAA,IAAE;AAC3B;AAAA,IAAkB,OAAO;AAAA,IAAE,OAAO;AAAA,IAAE,MAAM;AAAA,IAAE,KAAK;AAAA,IAAE;AACnD;AAAA,IAAmB,aAAa;AAAA,IAAE,QAAQ;AAAA,IAAE;A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ACf;AAIA,KAAK,EAAE;AACP,KAAK,EAAE;AACL,uBAAqB;AACrB,oBAAkB;AAClB,mBAAiB;AACjB,eAAa;AACf;AAIA,CAAC,MAAM;AACP,CAAC,MAAM;AACP,CAAC,MAAM;AACP,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACR,cAAY;AACd;AAEA,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,IAAI;AACR,mBAAiB;AACnB;AAWA;AAEE,uBAAqB;AAIrB,wBAAsB;AAGtB,wBAAsB;AAGtB,wBAAsB;AACxB;AAMA;AACE,4BAA0B,MAAM,OAAO;AACzC;AAEA,MAAM;AACJ,4BAA0B,MAAM,OAAO;AACzC;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACE,aAAW;AACb;AAEA;AACE,aAAW,IAAI;AACjB;AAMA;AACA;AACA;AACA;AAEE,cAAY;AAEZ,SAAO;AACP,UAAQ;AAGR,aAAW,IAAI;AAGf,cAAY,IAAI;AAEhB,cAAY,IAAI;AAIhB,+BAA6B;AAC7B,qBAAmB;AACnB,gBAAc;AAChB;AAIA;AACE,aAAW,IAAI;AACf,cAAY,IAAI;AAClB;","names":[]}
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/HtmlReader/ReadiumCss/ReadiumCSS-default.css"],"sourcesContent":["/* Readium CSS\n Namespaces module\n Namespaces to import in all 3 dist stylesheets\n Repo: https://github.com/readium/readium-css */\n\n@namespace url('http://www.w3.org/1999/xhtml');\n\n@namespace epub url('http://www.idpf.org/2007/ops');\n\n@namespace m url('http://www.w3.org/1998/Math/MathML/');\n\n@namespace svg url('http://www.w3.org/2000/svg');\n\n/* Readium CSS\n Default module\n A stylesheet for unstyled ebooks based on HTML5 Suggested Rendering\n Note: works in combination with Base module\n Repo: https://github.com/readium/readium-css */\n\n/* CONFIG */\n\n:root {\n --RS__compFontFamily: var(--RS__baseFontFamily);\n --RS__codeFontFamily: var(--RS__monospaceTf);\n\n --RS__typeScale: 1.125; /* 1.067 | 1.125 | 1.2 | 1.25 | 1.333 | 1.414 | 1.5 | 1.618 */\n --RS__baseFontSize: 100%;\n\n --RS__flowSpacing: 1.5rem;\n --RS__paraSpacing: 0;\n --RS__paraIndent: 1em;\n\n --RS__linkColor: #0000ee;\n --RS__visitedColor: #551a8b;\n\n --RS__primaryColor: ;\n --RS__secondaryColor: ;\n}\n\n/* STYLES */\n\n/* Typo */\n\nbody {\n font-size: var(--RS__baseFontSize);\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-family: var(--RS__compFontFamily);\n}\n\n/* Flow content */\n\nblockquote,\nfigure,\np,\npre,\naside,\nfooter,\nform,\nhr {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n}\n\np {\n margin-top: var(--RS__paraSpacing);\n margin-bottom: var(--RS__paraSpacing);\n text-indent: var(--RS__paraIndent);\n}\n\nh1 + p,\nh2 + p,\nh3 + p,\nh4 + p,\nh5 + p,\nh6 + p,\nhr + p {\n text-indent: 0;\n}\n\npre {\n font-family: var(--RS__codeFontFamily);\n}\n\n/* Phrasing content */\n\ncode,\nkbd,\nsamp,\ntt {\n font-family: var(--RS__codeFontFamily);\n}\n\nsub,\nsup {\n position: relative;\n font-size: 67.5%;\n line-height: 1;\n}\n\nsub {\n bottom: -0.2ex;\n}\n\nsup {\n bottom: 0;\n}\n\n:link {\n color: var(--RS__linkColor);\n}\n\n:visited {\n color: var(--RS__visitedColor);\n}\n\n/* Headings */\n\nh1 {\n margin-top: calc(var(--RS__flowSpacing) * 2);\n margin-bottom: calc(var(--RS__flowSpacing) * 2);\n /* The following is base font size * typescale power of 3 */\n font-size: calc(\n ((1em * var(--RS__typeScale)) * var(--RS__typeScale)) * var(--RS__typeScale)\n );\n}\n\nh2 {\n margin-top: calc(var(--RS__flowSpacing) * 2);\n margin-bottom: var(--RS__flowSpacing);\n /* The following is base font size * typescale power of 2 */\n font-size: calc((1em * var(--RS__typeScale)) * var(--RS__typeScale));\n}\n\nh3 {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n font-size: calc(1em * var(--RS__typeScale));\n}\n\nh4 {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n font-size: 1em;\n}\n\nh5 {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n font-size: 1em;\n font-variant: small-caps;\n}\n\nh6 {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: 0;\n font-size: 1em;\n text-transform: lowercase;\n font-variant: small-caps;\n}\n\n/* Lists */\n\ndl,\nol,\nul {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n}\n\n/* Table */\n\ntable {\n margin: var(--RS__flowSpacing) 0;\n border: 1px solid currentColor;\n border-collapse: collapse;\n empty-cells: show;\n}\n\nthead,\ntbody,\ntfoot,\ntable > tr {\n vertical-align: top;\n}\n\nth {\n text-align: left;\n}\n\nth,\ntd {\n padding: 4px;\n border: 1px solid currentColor;\n}\n/*# sourceMappingURL=ReadiumCSS-default.css.map */\n"],"mappings":";AAKA;AAEA;AAEA;AAEA;AAUA;AACE;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAAA;AAOF;AACE;AAAA;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAME;AAAA;AAKF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQE;AACA;AAAA;AAGF;AACE;AACA;AACA;AAAA;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOE;AAAA;AAGF;AACE;AAAA;AAKF;AAAA;AAAA;AAAA;AAIE;AAAA;AAGF;AAAA;AAEE;AACA;AACA;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AAAA;AAKF;AACE;AACA;AAEA;AAAA;AAKF;AACE;AACA;AAEA;AAAA;AAGF;AACE;AACA;AACA;AAAA;AAGF;AACE;AACA;AACA;AAAA;AAGF;AACE;AACA;AACA;AACA;AAAA;AAGF;AACE;AACA;AACA;AACA;AACA;AAAA;AAKF;AAAA;AAAA;AAGE;AACA;AAAA;AAKF;AACE;AACA;AACA;AACA;AAAA;AAGF;AAAA;AAAA;AAAA;AAIE;AAAA;AAGF;AACE;AAAA;AAGF;AAAA;AAEE;AACA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/HtmlReader/ReadiumCss/ReadiumCSS-default.css"],"sourcesContent":["/* Readium CSS\n Namespaces module\n Namespaces to import in all 3 dist stylesheets\n Repo: https://github.com/readium/readium-css */\n\n@namespace url('http://www.w3.org/1999/xhtml');\n\n@namespace epub url('http://www.idpf.org/2007/ops');\n\n@namespace m url('http://www.w3.org/1998/Math/MathML/');\n\n@namespace svg url('http://www.w3.org/2000/svg');\n\n/* Readium CSS\n Default module\n A stylesheet for unstyled ebooks based on HTML5 Suggested Rendering\n Note: works in combination with Base module\n Repo: https://github.com/readium/readium-css */\n\n/* CONFIG */\n\n:root {\n --RS__compFontFamily: var(--RS__baseFontFamily);\n --RS__codeFontFamily: var(--RS__monospaceTf);\n\n --RS__typeScale: 1.125; /* 1.067 | 1.125 | 1.2 | 1.25 | 1.333 | 1.414 | 1.5 | 1.618 */\n --RS__baseFontSize: 100%;\n\n --RS__flowSpacing: 1.5rem;\n --RS__paraSpacing: 0;\n --RS__paraIndent: 1em;\n\n --RS__linkColor: #0000ee;\n --RS__visitedColor: #551a8b;\n\n --RS__primaryColor: ;\n --RS__secondaryColor: ;\n}\n\n/* STYLES */\n\n/* Typo */\n\nbody {\n font-size: var(--RS__baseFontSize);\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-family: var(--RS__compFontFamily);\n}\n\n/* Flow content */\n\nblockquote,\nfigure,\np,\npre,\naside,\nfooter,\nform,\nhr {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n}\n\np {\n margin-top: var(--RS__paraSpacing);\n margin-bottom: var(--RS__paraSpacing);\n text-indent: var(--RS__paraIndent);\n}\n\nh1 + p,\nh2 + p,\nh3 + p,\nh4 + p,\nh5 + p,\nh6 + p,\nhr + p {\n text-indent: 0;\n}\n\npre {\n font-family: var(--RS__codeFontFamily);\n}\n\n/* Phrasing content */\n\ncode,\nkbd,\nsamp,\ntt {\n font-family: var(--RS__codeFontFamily);\n}\n\nsub,\nsup {\n position: relative;\n font-size: 67.5%;\n line-height: 1;\n}\n\nsub {\n bottom: -0.2ex;\n}\n\nsup {\n bottom: 0;\n}\n\n:link {\n color: var(--RS__linkColor);\n}\n\n:visited {\n color: var(--RS__visitedColor);\n}\n\n/* Headings */\n\nh1 {\n margin-top: calc(var(--RS__flowSpacing) * 2);\n margin-bottom: calc(var(--RS__flowSpacing) * 2);\n /* The following is base font size * typescale power of 3 */\n font-size: calc(\n ((1em * var(--RS__typeScale)) * var(--RS__typeScale)) * var(--RS__typeScale)\n );\n}\n\nh2 {\n margin-top: calc(var(--RS__flowSpacing) * 2);\n margin-bottom: var(--RS__flowSpacing);\n /* The following is base font size * typescale power of 2 */\n font-size: calc((1em * var(--RS__typeScale)) * var(--RS__typeScale));\n}\n\nh3 {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n font-size: calc(1em * var(--RS__typeScale));\n}\n\nh4 {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n font-size: 1em;\n}\n\nh5 {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n font-size: 1em;\n font-variant: small-caps;\n}\n\nh6 {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: 0;\n font-size: 1em;\n text-transform: lowercase;\n font-variant: small-caps;\n}\n\n/* Lists */\n\ndl,\nol,\nul {\n margin-top: var(--RS__flowSpacing);\n margin-bottom: var(--RS__flowSpacing);\n}\n\n/* Table */\n\ntable {\n margin: var(--RS__flowSpacing) 0;\n border: 1px solid currentColor;\n border-collapse: collapse;\n empty-cells: show;\n}\n\nthead,\ntbody,\ntfoot,\ntable > tr {\n vertical-align: top;\n}\n\nth {\n text-align: left;\n}\n\nth,\ntd {\n padding: 4px;\n border: 1px solid currentColor;\n}\n/*# sourceMappingURL=ReadiumCSS-default.css.map */\n"],"mappings":";AAKA,WAAW;AAEX,WAAW,KAAK;AAEhB,WAAW,EAAE;AAEb,WAAW,IAAI;AAUf;AACE,wBAAsB,IAAI;AAC1B,wBAAsB,IAAI;AAE1B,mBAAiB;AACjB,sBAAoB;AAEpB,qBAAmB;AACnB,qBAAmB;AACnB,oBAAkB;AAElB,mBAAiB;AACjB,sBAAoB;AAEpB;AACA;AACF;AAMA;AACE,aAAW,IAAI;AACjB;AAEA;AACA;AACA;AACA;AACA;AACA;AACE,eAAa,IAAI;AACnB;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE,cAAY,IAAI;AAChB,iBAAe,IAAI;AACrB;AAEA;AACE,cAAY,IAAI;AAChB,iBAAe,IAAI;AACnB,eAAa,IAAI;AACnB;AAEA,GAAG,EAAE;AACL,GAAG,EAAE;AACL,GAAG,EAAE;AACL,GAAG,EAAE;AACL,GAAG,EAAE;AACL,GAAG,EAAE;AACL,GAAG,EAAE;AACH,eAAa;AACf;AAEA;AACE,eAAa,IAAI;AACnB;AAIA;AACA;AACA;AACA;AACE,eAAa,IAAI;AACnB;AAEA;AACA;AACE,YAAU;AACV,aAAW;AACX,eAAa;AACf;AAEA;AACE,UAAQ;AACV;AAEA;AACE,UAAQ;AACV;AAEA;AACE,SAAO,IAAI;AACb;AAEA;AACE,SAAO,IAAI;AACb;AAIA;AACE,cAAY,KAAK,IAAI,mBAAmB,EAAE;AAC1C,iBAAe,KAAK,IAAI,mBAAmB,EAAE;AAE7C,aAAW,KACT,CAAC,CAAC,IAAI,EAAE,IAAI,kBAAkB,EAAE,IAAI,kBAAkB,EAAE,IAAI;AAEhE;AAEA;AACE,cAAY,KAAK,IAAI,mBAAmB,EAAE;AAC1C,iBAAe,IAAI;AAEnB,aAAW,KAAK,CAAC,IAAI,EAAE,IAAI,kBAAkB,EAAE,IAAI;AACrD;AAEA;AACE,cAAY,IAAI;AAChB,iBAAe,IAAI;AACnB,aAAW,KAAK,IAAI,EAAE,IAAI;AAC5B;AAEA;AACE,cAAY,IAAI;AAChB,iBAAe,IAAI;AACnB,aAAW;AACb;AAEA;AACE,cAAY,IAAI;AAChB,iBAAe,IAAI;AACnB,aAAW;AACX,gBAAc;AAChB;AAEA;AACE,cAAY,IAAI;AAChB,iBAAe;AACf,aAAW;AACX,kBAAgB;AAChB,gBAAc;AAChB;AAIA;AACA;AACA;AACE,cAAY,IAAI;AAChB,iBAAe,IAAI;AACrB;AAIA;AACE,UAAQ,IAAI,mBAAmB;AAC/B,UAAQ,IAAI,MAAM;AAClB,mBAAiB;AACjB,eAAa;AACf;AAEA;AACA;AACA;AACA,MAAM,EAAE;AACN,kBAAgB;AAClB;AAEA;AACE,cAAY;AACd;AAEA;AACA;AACE,WAAS;AACT,UAAQ,IAAI,MAAM;AACpB;","names":[]}
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/web-reader",
3
- "version": "4.3.5",
3
+ "version": "5.0.0-alpha.0",
4
4
  "license": "MIT",
5
5
  "repository": "https://github.com/NYPL-Simplified/web-reader",
6
6
  "homepage": "https://github.com/NYPL-Simplified/web-reader",
@@ -19,10 +19,7 @@
19
19
  "build": "tsup",
20
20
  "test": "jest --watch",
21
21
  "test:ci": "jest --ci --silent --coverage --maxWorkers=2",
22
- "test:ci:integration": "start-server-and-test example http://localhost:1234 cypress:run",
23
- "cypress:open": "cypress open",
24
- "cypress:run": "cypress run",
25
- "cypress:run:chrome": "cypress run --browser chrome",
22
+ "test:ci:integration": "start-server-and-test example http://localhost:1234 playwright",
26
23
  "prettier": "prettier --write --ignore-path .eslintignore .",
27
24
  "prettier:check": "prettier --check --ignore-path .eslintignore .",
28
25
  "lint": "eslint --fix .",
@@ -32,7 +29,8 @@
32
29
  "analyze": "size-limit --why",
33
30
  "cors-proxy": "node example/cors-proxy.js",
34
31
  "release": "release-it --verbose",
35
- "release:alpha": "release-it --verbose --preRelease=alpha"
32
+ "release:alpha": "release-it --verbose --preRelease=alpha",
33
+ "playwright": "npx playwright test"
36
34
  },
37
35
  "peerDependencies": {
38
36
  "@chakra-ui/react": "2.x",
@@ -69,24 +67,18 @@
69
67
  "devDependencies": {
70
68
  "@babel/core": "7.24.3",
71
69
  "@emotion/jest": "11.11.0",
72
- "@parcel/transformer-typescript-tsc": "2.12.0",
73
- "@testing-library/cypress": "8.0.2",
70
+ "@playwright/test": "1.57.0",
74
71
  "@testing-library/jest-dom": "6.1.3",
75
72
  "@testing-library/react": "14.0.0",
76
73
  "@types/debounce": "1.2.4",
77
- "@types/http-proxy": "1.17.14",
78
74
  "@types/jest-axe": "3.5.9",
79
75
  "@types/node": "20.12.7",
80
76
  "@types/react": "17.0.80",
81
77
  "@types/react-dom": "18.2.05",
82
78
  "@types/react-router-dom": "5.3.3",
83
- "@types/rimraf": "3.0.2",
84
79
  "@typescript-eslint/eslint-plugin": "4.33.0",
85
80
  "@typescript-eslint/parser": "4.33.0",
86
81
  "babel-jest": "29.7.0",
87
- "babel-loader": "8.3.0",
88
- "cypress": "9.5.1",
89
- "esbuild-jest": "0.5.0",
90
82
  "eslint": "7.32.0",
91
83
  "eslint-config-prettier": "8.10.0",
92
84
  "eslint-config-react-app": "6.0.0",
@@ -95,43 +87,41 @@
95
87
  "eslint-plugin-jsx-a11y": "6.8.0",
96
88
  "eslint-plugin-react": "7.34.1",
97
89
  "eslint-plugin-react-hooks": "4.6.0",
98
- "express": "4.19.2",
90
+ "express": "5.2.1",
99
91
  "husky": "7.0.4",
100
92
  "jest": "29.4.3",
101
93
  "jest-axe": "5.0.1",
102
- "jest-environment-jsdom": "29.7.0",
94
+ "jest-environment-jsdom": "30.2.0",
103
95
  "jest-watch-typeahead": "2.2.0",
104
96
  "lint-staged": "11.2.6",
105
- "parcel": "2.12.0",
97
+ "parcel": "2.16.3",
106
98
  "parcel-config-precache-manifest": "0.0.4",
107
- "parcel-plugin-static-files-copy": "2.6.0",
108
99
  "parcel-reporter-static-files-copy": "1.5.3",
109
100
  "prettier": "2.2.1",
110
- "r2-shared-js": "1.0.72",
101
+ "process": "0.11.10",
111
102
  "react": "18.2.0",
112
103
  "react-app-polyfill": "2.0.0",
113
104
  "react-dom": "18.2.0",
114
- "react-is": "18.2.0",
115
105
  "react-router-dom": "5.3.4",
116
- "release-it": "17.1.1",
117
- "request": "2.88.2",
106
+ "release-it": "19.2.4",
118
107
  "size-limit": "4.12.0",
119
108
  "start-server-and-test": "2.0.3",
120
109
  "ts-jest": "29.0.5",
121
110
  "ts-node": "10.9.2",
122
- "tslib": "2.6.2",
123
- "tsup": "6.7.0",
124
- "typescript": "4.4.3"
111
+ "tsup": "8.5.1",
112
+ "typescript": "5.9.3"
125
113
  },
126
114
  "dependencies": {
127
- "@chakra-ui/react": "2.8.1",
115
+ "@chakra-ui/react": "2.x",
116
+ "@chakra-ui/system": "2.6.2",
128
117
  "comlink": "4.4.1",
129
118
  "debounce": "1.2.1",
130
119
  "framer-motion": "4.1.17",
131
120
  "node-fetch": "2.7.0",
121
+ "playwright": "1.57.0",
132
122
  "react-icons": "4.12.0",
133
123
  "react-intersection-observer": "8.34.0",
134
- "react-pdf": "7.7.1",
124
+ "react-pdf": "10.3.0",
135
125
  "react-resize-observer": "1.1.1"
136
126
  },
137
127
  "optionalDependencies": {