@nypl/web-reader 4.3.0 → 4.3.2
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.
- package/README.md +0 -15
- package/dist/{esm/index.css → index.css} +3 -1
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +532 -0
- package/dist/index.js +9381 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +9378 -0
- package/dist/index.mjs.map +1 -0
- package/dist/injectable-html-styles/ReadiumCSS-after.css +488 -2
- package/dist/injectable-html-styles/ReadiumCSS-after.css.map +1 -7
- package/dist/injectable-html-styles/ReadiumCSS-after.d.ts +2 -0
- package/dist/injectable-html-styles/ReadiumCSS-before.css +648 -2
- package/dist/injectable-html-styles/ReadiumCSS-before.css.map +1 -7
- package/dist/injectable-html-styles/ReadiumCSS-before.d.ts +2 -0
- package/dist/injectable-html-styles/ReadiumCSS-default.css +141 -2
- package/dist/injectable-html-styles/ReadiumCSS-default.css.map +1 -7
- package/dist/injectable-html-styles/ReadiumCSS-default.d.ts +2 -0
- package/package.json +9 -24
- package/dist/cjs/index.css +0 -2
- package/dist/cjs/index.css.map +0 -7
- package/dist/cjs/index.js +0 -340
- package/dist/cjs/index.js.map +0 -7
- package/dist/esm/index.css.map +0 -7
- package/dist/esm/index.js +0 -42173
- package/dist/esm/index.js.map +0 -7
- package/dist/types/HtmlReader/effects.d.ts +0 -22
- package/dist/types/HtmlReader/index.d.ts +0 -3
- package/dist/types/HtmlReader/lib.d.ts +0 -107
- package/dist/types/HtmlReader/reducer.d.ts +0 -8
- package/dist/types/HtmlReader/types.d.ts +0 -116
- package/dist/types/HtmlReader/useIframeLinkClick.d.ts +0 -4
- package/dist/types/HtmlReader/useLocationQuery.d.ts +0 -8
- package/dist/types/HtmlReader/useResource.d.ts +0 -14
- package/dist/types/HtmlReader/useUpdateCSS.d.ts +0 -6
- package/dist/types/HtmlReader/useUpdateScroll.d.ts +0 -6
- package/dist/types/HtmlReader/useWindowResize.d.ts +0 -7
- package/dist/types/PdfReader/ChakraPage.d.ts +0 -3
- package/dist/types/PdfReader/ScrollPage.d.ts +0 -12
- package/dist/types/PdfReader/addTocToManifest.d.ts +0 -10
- package/dist/types/PdfReader/index.d.ts +0 -12
- package/dist/types/PdfReader/lib.d.ts +0 -26
- package/dist/types/PdfReader/reducer.d.ts +0 -3
- package/dist/types/PdfReader/types.d.ts +0 -61
- package/dist/types/PdfReader/useMeasure.d.ts +0 -7
- package/dist/types/Readium/Injectable.d.ts +0 -11
- package/dist/types/Readium/Locator.d.ts +0 -20
- package/dist/types/WebpubManifestTypes/ConformsTo.d.ts +0 -3
- package/dist/types/WebpubManifestTypes/Contributor.d.ts +0 -17
- package/dist/types/WebpubManifestTypes/EpubExtension.d.ts +0 -47
- package/dist/types/WebpubManifestTypes/LanguageMap.d.ts +0 -3
- package/dist/types/WebpubManifestTypes/Metadata.d.ts +0 -47
- package/dist/types/WebpubManifestTypes/OPDSLink.d.ts +0 -63
- package/dist/types/WebpubManifestTypes/PresentationHints.d.ts +0 -53
- package/dist/types/WebpubManifestTypes/ReadiumLink.d.ts +0 -58
- package/dist/types/WebpubManifestTypes/Subject.d.ts +0 -16
- package/dist/types/WebpubManifestTypes/WebpubManifest.d.ts +0 -14
- package/dist/types/constants.d.ts +0 -37
- package/dist/types/index.d.ts +0 -17
- package/dist/types/types.d.ts +0 -123
- package/dist/types/ui/Button.d.ts +0 -9
- package/dist/types/ui/ErrorBoundary.d.ts +0 -16
- package/dist/types/ui/Footer.d.ts +0 -9
- package/dist/types/ui/Header.d.ts +0 -9
- package/dist/types/ui/HtmlSettings.d.ts +0 -9
- package/dist/types/ui/LoadingSkeleton.d.ts +0 -9
- package/dist/types/ui/PageButton.d.ts +0 -7
- package/dist/types/ui/PdfSettings.d.ts +0 -8
- package/dist/types/ui/SettingsButton.d.ts +0 -5
- package/dist/types/ui/TableOfContent.d.ts +0 -7
- package/dist/types/ui/ToggleButton.d.ts +0 -14
- package/dist/types/ui/ToggleGroup.d.ts +0 -8
- package/dist/types/ui/hooks/useColorModeValue.d.ts +0 -7
- package/dist/types/ui/hooks/useContainerWidth.d.ts +0 -6
- package/dist/types/ui/hooks/useEventListener.d.ts +0 -8
- package/dist/types/ui/hooks/useFullScreen.d.ts +0 -7
- package/dist/types/ui/icons/Continuous.d.ts +0 -4
- package/dist/types/ui/icons/Day.d.ts +0 -4
- package/dist/types/ui/icons/EnlargeFont.d.ts +0 -4
- package/dist/types/ui/icons/Night.d.ts +0 -4
- package/dist/types/ui/icons/Paginated.d.ts +0 -4
- package/dist/types/ui/icons/Previous.d.ts +0 -4
- package/dist/types/ui/icons/ReaderSettings.d.ts +0 -4
- package/dist/types/ui/icons/ReduceFont.d.ts +0 -4
- package/dist/types/ui/icons/Reset.d.ts +0 -4
- package/dist/types/ui/icons/Sepia.d.ts +0 -4
- package/dist/types/ui/icons/TableOfContents.d.ts +0 -4
- package/dist/types/ui/icons/ToggleFullScreen.d.ts +0 -4
- package/dist/types/ui/icons/ToggleFullScreenExit.d.ts +0 -4
- package/dist/types/ui/icons/index.d.ts +0 -14
- package/dist/types/ui/manager.d.ts +0 -9
- package/dist/types/ui/menu/index.d.ts +0 -10
- package/dist/types/ui/menu/menu.d.ts +0 -76
- package/dist/types/ui/menu/use-menu.d.ts +0 -2510
- package/dist/types/ui/nypl-base-theme/components/button.d.ts +0 -94
- package/dist/types/ui/nypl-base-theme/components/checkbox.d.ts +0 -41
- package/dist/types/ui/nypl-base-theme/components/form-error.d.ts +0 -14
- package/dist/types/ui/nypl-base-theme/components/form-label.d.ts +0 -14
- package/dist/types/ui/nypl-base-theme/components/form.d.ts +0 -15
- package/dist/types/ui/nypl-base-theme/components/input.d.ts +0 -107
- package/dist/types/ui/nypl-base-theme/components/text-area.d.ts +0 -34
- package/dist/types/ui/nypl-base-theme/foundations/breakpoints.d.ts +0 -8
- package/dist/types/ui/nypl-base-theme/foundations/colors.d.ts +0 -3
- package/dist/types/ui/nypl-base-theme/foundations/global.d.ts +0 -13
- package/dist/types/ui/nypl-base-theme/foundations/radii.d.ts +0 -12
- package/dist/types/ui/nypl-base-theme/foundations/spacing.d.ts +0 -49
- package/dist/types/ui/nypl-base-theme/foundations/typography.d.ts +0 -10
- package/dist/types/ui/nypl-base-theme/index.d.ts +0 -7
- package/dist/types/ui/nypl-base-theme/types.d.ts +0 -1
- package/dist/types/ui/theme/components/alert.d.ts +0 -24
- package/dist/types/ui/theme/components/button.d.ts +0 -93
- package/dist/types/ui/theme/components/text.d.ts +0 -20
- package/dist/types/ui/theme/foundations/colors.d.ts +0 -3
- package/dist/types/ui/theme/foundations/fonts.d.ts +0 -3
- package/dist/types/ui/theme/foundations/typography.d.ts +0 -6
- package/dist/types/ui/theme/index.d.ts +0 -12
- package/dist/types/ui/theme/types.d.ts +0 -1
- package/dist/types/useWebReader.d.ts +0 -7
- package/dist/types/utils/fetch.d.ts +0 -4
- package/dist/types/utils/getColor.d.ts +0 -2
- package/dist/types/utils/localstorage.d.ts +0 -17
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/HtmlReader/ReadiumCss/ReadiumCSS-before.css"],
|
|
4
|
-
"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\u2019re 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 \u201C, \u201D 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\u2019s 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\u20131.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: '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, '\u30D2\u30E9\u30AE\u30CE\u4E38\u30B4',\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\u201320% 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: '\uFF2D\uFF33 \uFF30\u660E\u671D', 'MS PMincho', 'Hiragino Mincho Pro',\n '\u30D2\u30E9\u30AE\u30CE\u660E\u671D Pro W3', '\u6E38\u660E\u671D', 'YuMincho', '\uFF2D\uFF33 \u660E\u671D', 'MS Mincho',\n 'Hiragino Mincho ProN', serif;\n --RS__sans-serif-ja: '\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic',\n 'Hiragino Kaku Gothic Pro W3', '\u30D2\u30E9\u30AE\u30CE\u89D2\u30B4 Pro W3', 'Hiragino Sans GB',\n '\u30D2\u30E9\u30AE\u30CE\u89D2\u30B4\u30B7\u30C3\u30AF W3', '\u6E38\u30B4\u30B7\u30C3\u30AF', 'YuGothic', '\uFF2D\uFF33 \u30B4\u30B7\u30C3\u30AF',\n 'MS Gothic', 'Hiragino Sans', sans-serif;\n --RS__serif-ja-v: '\uFF2D\uFF33 \u660E\u671D', 'MS Mincho', 'Hiragino Mincho Pro',\n '\u30D2\u30E9\u30AE\u30CE\u660E\u671D Pro W3', '\u6E38\u660E\u671D', 'YuMincho', '\uFF2D\uFF33 \uFF30\u660E\u671D', 'MS PMincho',\n 'Hiragino Mincho ProN', serif;\n --RS__sans-serif-ja-v: '\uFF2D\uFF33 \u30B4\u30B7\u30C3\u30AF', 'MS Gothic',\n 'Hiragino Kaku Gothic Pro W3', '\u30D2\u30E9\u30AE\u30CE\u89D2\u30B4 Pro W3', 'Hiragino Sans GB',\n '\u30D2\u30E9\u30AE\u30CE\u89D2\u30B4\u30B7\u30C3\u30AF W3', '\u6E38\u30B4\u30B7\u30C3\u30AF', 'YuGothic', '\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF',\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\u201320% 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: '\u65B9\u4F53', 'PingFang SC', '\u9ED1\u4F53', '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\u201320% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(zh-Hant),\n:lang(zh-TW) {\n --RS__baseFontFamily: '\u65B9\u9AD4', 'PingFang TC', '\u9ED1\u9AD4', '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\u201320% more than for Latin */\n --RS__lineHeightCompensation: 1.167;\n}\n\n:lang(zh-HK) {\n --RS__baseFontFamily: '\u65B9\u9AD4', 'PingFang HK', '\u65B9\u9AD4', 'PingFang TC', '\u9ED1\u9AD4',\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\u201320% 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\u2019t 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\u2019ll be using an \"RS__\" prefix so that we can prevent collisions with authors\u2019 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\u2019 box-sizing */\n --RS__boxSizingMedia: border-box;\n\n /* value for table\u2019s 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\u2019t have max-width */\n max-width: var(--RS__maxMediaWidth);\n\n /* We\u2019re setting a max-height, especially for covers */\n max-height: var(--RS__maxMediaHeight) !important;\n /* We probably don\u2019t 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\u2019t 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"],
|
|
5
|
-
"mappings": "AA4CA,6CAEA,kDAEA,sDAEA,+CASA,cACE,mBAGF,UACE,mBACA,OAGF,MAEE,mFAEA,oDACA,oHAEA,8DACA,sDAGA,4CAGA,gCAGA,gHAQF,KACE,sCAEA,gBACA,sCACA,kCAKF,SAGE,mBAGF,8BAGE,qBACA,0BACA,wBACA,kBAKF,KACE,6TAUF,UACE,6EACA,oCAGF,UACE,qHAIF,UACE,mHAEA,oCAGF,UACE,mGAIF,WACE,iFAEA,oCAGF,UACE,qHAIF,UACE,iHAEA,oCAGF,UACE,8HAEA,kCAGF,UACE,4IAGA,kCAGF,UACE,oFAIF,UACE,2GAIF,UACE,4MAKA,oCAGA,kOAGA,oVAIA,oOAGA,sVAMF,UACE,kHAEA,oCAGF,UACE,8GAEA,kCAGF,UACE,2HAIA,oCAGF,UACE,4GAIF,UACE,oHAEA,oCAGF,UACE,4GAEA,oCAGF,UACE,2GAEA,kCAGF,UACE,uHAEA,oCAGF,UACE,0GAEA,oCAGF,UACE,iIAIF,UACE,4GAEA,oCAKF,UACE,yKAKA,oCAGF,4BAEE,yKAKA,oCAGF,aACE,sMAKA,oCAUF,MACE,+BACA,yBAGA,wCACA,kCAGF,MACE,qCACA,sDAKF,iBACE,oCACA,qDAGF,YACE,oCACA,qDAqCF,KACE,SACA,UAGF,iBAGE,SACA,UAGF,6BAQE,iCACA,uBACA,kBAGF,+BASE,kCACA,wBACA,mBAKF,KACE,gCACA,6BACA,4BACA,wBACA,gCACA,4BACA,wBAGF,oEAcE,iBACA,kBACA,qBACA,mBACA,aAKF,KACE,qDAGF,6CAGE,mDAGF,qBAOE,mDAGF,MACE,8CAGF,SAEE,4BACA,2DAGF,GACE,6BAGF,UACE,wCAGF,UACE,oBAKF,GACE,cACA,0BAGF,YAGE,0BAKF,kBA/fA,cA6gBA,MAEE,gBAYF,GACE,eAYF,IACE,qBACA,eACA,gBACA,mBACA,WAKF,2BAEE,iCAGF,SACE,mBAKF,gBAEE,yBACA,sBACA,qBACA,iBAKF,mMAeE,kBAGF,oCAGE,qBAYF,MAEE,0BAIA,2BAGA,iCAGA,iCAOF,KACE,+CAGF,UACE,+CAKF,oBAOE,qBAGF,IACE,mCAOF,oBAKE,mBAEA,WACA,YAGA,mCAGA,+CAEA,qCAIA,kCACA,wBACA,mBAKF,MACE,mCACA",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
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;AAAA;AAAA;AAAA;AAAA;AAEA;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;AAEA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA;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;AAEA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAKF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA;AAAA;AAGF;AAAA;AAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA;AAAA;AAGF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA;AAAA;AAUF;AACE;AACA;AAGA;AACA;AAAA;AAGF;AACE;AACA;AAAA;AAKF;AACE;AACA;AAAA;AAGF;AACE;AACA;AAAA;AAqCF;AACE;AACA;AAAA;AAGF;AAAA;AAAA;AAGE;AACA;AAAA;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQE;AACA;AACA;AAAA;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASE;AACA;AACA;AAAA;AAKF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcE;AACA;AACA;AACA;AACA;AAAA;AAKF;AACE;AAAA;AAGF;AAAA;AAAA;AAGE;AAAA;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOE;AAAA;AAGF;AACE;AAAA;AAGF;AAAA;AAEE;AACA;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AAAA;AAKF;AACE;AACA;AAAA;AAGF;AAAA;AAAA;AAGE;AAAA;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,2 +1,141 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* src/HtmlReader/ReadiumCss/ReadiumCSS-default.css */
|
|
2
|
+
@namespace url(http://www.w3.org/1999/xhtml);
|
|
3
|
+
@namespace epub url(http://www.idpf.org/2007/ops);
|
|
4
|
+
@namespace m url(http://www.w3.org/1998/Math/MathML/);
|
|
5
|
+
@namespace svg url(http://www.w3.org/2000/svg);
|
|
6
|
+
:root {
|
|
7
|
+
--RS__compFontFamily: var(--RS__baseFontFamily);
|
|
8
|
+
--RS__codeFontFamily: var(--RS__monospaceTf);
|
|
9
|
+
--RS__typeScale: 1.125;
|
|
10
|
+
--RS__baseFontSize: 100%;
|
|
11
|
+
--RS__flowSpacing: 1.5rem;
|
|
12
|
+
--RS__paraSpacing: 0;
|
|
13
|
+
--RS__paraIndent: 1em;
|
|
14
|
+
--RS__linkColor: #0000ee;
|
|
15
|
+
--RS__visitedColor: #551a8b;
|
|
16
|
+
--RS__primaryColor: ;
|
|
17
|
+
--RS__secondaryColor: ;
|
|
18
|
+
}
|
|
19
|
+
body {
|
|
20
|
+
font-size: var(--RS__baseFontSize);
|
|
21
|
+
}
|
|
22
|
+
h1,
|
|
23
|
+
h2,
|
|
24
|
+
h3,
|
|
25
|
+
h4,
|
|
26
|
+
h5,
|
|
27
|
+
h6 {
|
|
28
|
+
font-family: var(--RS__compFontFamily);
|
|
29
|
+
}
|
|
30
|
+
blockquote,
|
|
31
|
+
figure,
|
|
32
|
+
p,
|
|
33
|
+
pre,
|
|
34
|
+
aside,
|
|
35
|
+
footer,
|
|
36
|
+
form,
|
|
37
|
+
hr {
|
|
38
|
+
margin-top: var(--RS__flowSpacing);
|
|
39
|
+
margin-bottom: var(--RS__flowSpacing);
|
|
40
|
+
}
|
|
41
|
+
p {
|
|
42
|
+
margin-top: var(--RS__paraSpacing);
|
|
43
|
+
margin-bottom: var(--RS__paraSpacing);
|
|
44
|
+
text-indent: var(--RS__paraIndent);
|
|
45
|
+
}
|
|
46
|
+
h1 + p,
|
|
47
|
+
h2 + p,
|
|
48
|
+
h3 + p,
|
|
49
|
+
h4 + p,
|
|
50
|
+
h5 + p,
|
|
51
|
+
h6 + p,
|
|
52
|
+
hr + p {
|
|
53
|
+
text-indent: 0;
|
|
54
|
+
}
|
|
55
|
+
pre {
|
|
56
|
+
font-family: var(--RS__codeFontFamily);
|
|
57
|
+
}
|
|
58
|
+
code,
|
|
59
|
+
kbd,
|
|
60
|
+
samp,
|
|
61
|
+
tt {
|
|
62
|
+
font-family: var(--RS__codeFontFamily);
|
|
63
|
+
}
|
|
64
|
+
sub,
|
|
65
|
+
sup {
|
|
66
|
+
position: relative;
|
|
67
|
+
font-size: 67.5%;
|
|
68
|
+
line-height: 1;
|
|
69
|
+
}
|
|
70
|
+
sub {
|
|
71
|
+
bottom: -0.2ex;
|
|
72
|
+
}
|
|
73
|
+
sup {
|
|
74
|
+
bottom: 0;
|
|
75
|
+
}
|
|
76
|
+
:link {
|
|
77
|
+
color: var(--RS__linkColor);
|
|
78
|
+
}
|
|
79
|
+
:visited {
|
|
80
|
+
color: var(--RS__visitedColor);
|
|
81
|
+
}
|
|
82
|
+
h1 {
|
|
83
|
+
margin-top: calc(var(--RS__flowSpacing) * 2);
|
|
84
|
+
margin-bottom: calc(var(--RS__flowSpacing) * 2);
|
|
85
|
+
font-size: calc(((1em * var(--RS__typeScale)) * var(--RS__typeScale)) * var(--RS__typeScale));
|
|
86
|
+
}
|
|
87
|
+
h2 {
|
|
88
|
+
margin-top: calc(var(--RS__flowSpacing) * 2);
|
|
89
|
+
margin-bottom: var(--RS__flowSpacing);
|
|
90
|
+
font-size: calc((1em * var(--RS__typeScale)) * var(--RS__typeScale));
|
|
91
|
+
}
|
|
92
|
+
h3 {
|
|
93
|
+
margin-top: var(--RS__flowSpacing);
|
|
94
|
+
margin-bottom: var(--RS__flowSpacing);
|
|
95
|
+
font-size: calc(1em * var(--RS__typeScale));
|
|
96
|
+
}
|
|
97
|
+
h4 {
|
|
98
|
+
margin-top: var(--RS__flowSpacing);
|
|
99
|
+
margin-bottom: var(--RS__flowSpacing);
|
|
100
|
+
font-size: 1em;
|
|
101
|
+
}
|
|
102
|
+
h5 {
|
|
103
|
+
margin-top: var(--RS__flowSpacing);
|
|
104
|
+
margin-bottom: var(--RS__flowSpacing);
|
|
105
|
+
font-size: 1em;
|
|
106
|
+
font-variant: small-caps;
|
|
107
|
+
}
|
|
108
|
+
h6 {
|
|
109
|
+
margin-top: var(--RS__flowSpacing);
|
|
110
|
+
margin-bottom: 0;
|
|
111
|
+
font-size: 1em;
|
|
112
|
+
text-transform: lowercase;
|
|
113
|
+
font-variant: small-caps;
|
|
114
|
+
}
|
|
115
|
+
dl,
|
|
116
|
+
ol,
|
|
117
|
+
ul {
|
|
118
|
+
margin-top: var(--RS__flowSpacing);
|
|
119
|
+
margin-bottom: var(--RS__flowSpacing);
|
|
120
|
+
}
|
|
121
|
+
table {
|
|
122
|
+
margin: var(--RS__flowSpacing) 0;
|
|
123
|
+
border: 1px solid currentColor;
|
|
124
|
+
border-collapse: collapse;
|
|
125
|
+
empty-cells: show;
|
|
126
|
+
}
|
|
127
|
+
thead,
|
|
128
|
+
tbody,
|
|
129
|
+
tfoot,
|
|
130
|
+
table > tr {
|
|
131
|
+
vertical-align: top;
|
|
132
|
+
}
|
|
133
|
+
th {
|
|
134
|
+
text-align: left;
|
|
135
|
+
}
|
|
136
|
+
th,
|
|
137
|
+
td {
|
|
138
|
+
padding: 4px;
|
|
139
|
+
border: 1px solid currentColor;
|
|
140
|
+
}
|
|
141
|
+
/*# sourceMappingURL=ReadiumCSS-default.css.map */
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/HtmlReader/ReadiumCss/ReadiumCSS-default.css"],
|
|
4
|
-
"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"],
|
|
5
|
-
"mappings": "AAKA,6CAEA,kDAEA,sDAEA,+CAUA,MACE,gDACA,6CAEA,uBACA,yBAEA,0BACA,qBACA,sBAEA,yBACA,4BAEA,qBACA,uBAOF,KACE,kCAGF,kBAME,sCAKF,6CAQE,kCACA,qCAGF,EACE,kCACA,qCACA,kCAGF,mCAOE,cAGF,IACE,sCAKF,iBAIE,sCAGF,QAEE,kBACA,gBACA,cAGF,IACE,aAGF,IACE,SAGF,MACE,2BAGF,SACE,8BAKF,GACE,4CACA,+CAEA,6FAKF,GACE,4CACA,qCAEA,oEAGF,GACE,kCACA,qCACA,2CAGF,GACE,kCACA,qCACA,cAGF,GACE,kCACA,qCACA,cACA,wBAGF,GACE,kCACA,gBACA,cACA,yBACA,wBAKF,SAGE,kCACA,qCAKF,MACE,gCACA,8BACA,yBACA,iBAGF,2BAIE,mBAGF,GACE,gBAGF,MApMA,YAuME",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
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":[]}
|
package/package.json
CHANGED
|
@@ -1,32 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nypl/web-reader",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "https://github.com/NYPL-Simplified/web-reader",
|
|
6
6
|
"homepage": "https://github.com/NYPL-Simplified/web-reader",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
|
-
"main": "dist/
|
|
11
|
-
"module": "dist/
|
|
12
|
-
"types": "dist/
|
|
13
|
-
"typings": "dist/
|
|
14
|
-
"typesVersions": {
|
|
15
|
-
"*": {
|
|
16
|
-
"dist/esm/*": [
|
|
17
|
-
"dist/types/*"
|
|
18
|
-
],
|
|
19
|
-
"dist/cjs/*": [
|
|
20
|
-
"dist/types/*"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"module": "dist/index.mjs",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
13
|
+
"typings": "dist/index.d.ts",
|
|
24
14
|
"scripts": {
|
|
25
15
|
"example:build": "parcel build",
|
|
26
16
|
"example:nocache": "parcel --no-cache",
|
|
27
17
|
"example": "parcel",
|
|
28
|
-
"start": "
|
|
29
|
-
"build": "
|
|
18
|
+
"start": "tsup -w",
|
|
19
|
+
"build": "tsup",
|
|
30
20
|
"test": "jest --watch",
|
|
31
21
|
"test:ci": "jest --ci --silent --coverage --maxWorkers=2",
|
|
32
22
|
"test:ci:integration": "start-server-and-test example http://localhost:1234 cypress:run",
|
|
@@ -98,8 +88,6 @@
|
|
|
98
88
|
"babel-jest": "^27.5.1",
|
|
99
89
|
"babel-loader": "^8.2.2",
|
|
100
90
|
"cypress": "^9.5.1",
|
|
101
|
-
"debounce": "^1.2.1",
|
|
102
|
-
"esbuild": "^0.14.13",
|
|
103
91
|
"esbuild-jest": "^0.5.0",
|
|
104
92
|
"eslint": "^7.32.0",
|
|
105
93
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -128,16 +116,16 @@
|
|
|
128
116
|
"react-router-dom": "^5.2.0",
|
|
129
117
|
"release-it": "^15.5.0",
|
|
130
118
|
"request": "^2.88.2",
|
|
131
|
-
"rimraf": "^3.0.2",
|
|
132
119
|
"size-limit": "^4.9.1",
|
|
133
120
|
"start-server-and-test": "^1.14.0",
|
|
134
121
|
"ts-jest": "^27.1.4",
|
|
135
|
-
"ts-node": "^10.1.0",
|
|
136
122
|
"tslib": "^2.3.1",
|
|
123
|
+
"tsup": "^6.7.0",
|
|
137
124
|
"typescript": "4.4.3"
|
|
138
125
|
},
|
|
139
126
|
"dependencies": {
|
|
140
127
|
"comlink": "^4.3.1",
|
|
128
|
+
"debounce": "^1.2.1",
|
|
141
129
|
"framer-motion": "^4.1.6",
|
|
142
130
|
"node-fetch": "^2.6.1",
|
|
143
131
|
"react-icons": "^4.3.1",
|
|
@@ -145,9 +133,6 @@
|
|
|
145
133
|
"react-pdf": "^5.3.2",
|
|
146
134
|
"react-resize-observer": "^1.1.1"
|
|
147
135
|
},
|
|
148
|
-
"optionalDependencies": {
|
|
149
|
-
"@nypl-simplified-packages/axisnow-access-control-web": "^1.4.2"
|
|
150
|
-
},
|
|
151
136
|
"lint-staged": {
|
|
152
137
|
"*.{ts,tsx,js,jsx}": "eslint --cache --fix",
|
|
153
138
|
"*.{ts,tsx,js,json,css,md}": "prettier --write --ignore-path .eslintignore"
|
package/dist/cjs/index.css
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.annotationLayer section{position:absolute}.annotationLayer .linkAnnotation>a,.annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer .linkAnnotation>a:hover,.annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer}.annotationLayer .textWidgetAnnotation input,.annotationLayer .textWidgetAnnotation textarea,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:#0036ff21;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}.annotationLayer .textWidgetAnnotation input[disabled],.annotationLayer .textWidgetAnnotation textarea[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}.annotationLayer .textWidgetAnnotation input:focus,.annotationLayer .textWidgetAnnotation textarea:focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{appearance:none;padding:0}.annotationLayer .popupWrapper{position:absolute;width:20em}.annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}.annotationLayer .popup>*{font-size:9px}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popup span{display:inline-block;margin-left:5px}.annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}
|
|
2
|
-
/*# sourceMappingURL=index.css.map */
|
package/dist/cjs/index.css.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css"],
|
|
4
|
-
"sourcesContent": ["/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.annotationLayer section {\n position: absolute;\n}\n\n.annotationLayer .linkAnnotation > a,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a {\n position: absolute;\n font-size: 1em;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .linkAnnotation > a:hover,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {\n opacity: 0.2;\n background: #ff0;\n box-shadow: 0px 2px 10px #ff0;\n}\n\n.annotationLayer .textAnnotation img {\n position: absolute;\n cursor: pointer;\n}\n\n.annotationLayer .textWidgetAnnotation input,\n.annotationLayer .textWidgetAnnotation textarea,\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n background-color: rgba(0, 54, 255, 0.13);\n border: 1px solid transparent;\n box-sizing: border-box;\n font-size: 9px;\n height: 100%;\n margin: 0;\n padding: 0 3px;\n vertical-align: top;\n width: 100%;\n}\n\n.annotationLayer .choiceWidgetAnnotation select option {\n padding: 0;\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n border-radius: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation textarea {\n font: message-box;\n font-size: 9px;\n resize: none;\n}\n\n.annotationLayer .textWidgetAnnotation input[disabled],\n.annotationLayer .textWidgetAnnotation textarea[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],\n.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {\n background: none;\n border: 1px solid transparent;\n cursor: not-allowed;\n}\n\n.annotationLayer .textWidgetAnnotation input:hover,\n.annotationLayer .textWidgetAnnotation textarea:hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {\n border: 1px solid #000;\n}\n\n.annotationLayer .textWidgetAnnotation input:focus,\n.annotationLayer .textWidgetAnnotation textarea:focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n background: none;\n border: 1px solid transparent;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n background-color: #000;\n content: '';\n display: block;\n position: absolute;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n height: 80%;\n left: 45%;\n width: 1px;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {\n transform: rotate(45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n transform: rotate(-45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n border-radius: 50%;\n height: 50%;\n left: 30%;\n top: 20%;\n width: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb {\n font-family: monospace;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n /*\n * Letter spacing is placed on the right side of each character. Hence, the\n * letter spacing of the last character may be placed outside the visible\n * area, causing horizontal scrolling. We avoid this by extending the width\n * when the element has focus and revert this when it loses focus.\n */\n width: 115%;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n appearance: none;\n padding: 0;\n}\n\n.annotationLayer .popupWrapper {\n position: absolute;\n width: 20em;\n}\n\n.annotationLayer .popup {\n position: absolute;\n z-index: 200;\n max-width: 20em;\n background-color: #FFFF99;\n box-shadow: 0px 2px 5px #888;\n border-radius: 2px;\n padding: 6px;\n margin-left: 5px;\n cursor: pointer;\n font: message-box;\n font-size: 9px;\n word-wrap: break-word;\n}\n\n.annotationLayer .popup > * {\n font-size: 9px;\n}\n\n.annotationLayer .popup h1 {\n display: inline-block;\n}\n\n.annotationLayer .popup span {\n display: inline-block;\n margin-left: 5px;\n}\n\n.annotationLayer .popup p {\n border-top: 1px solid #333;\n margin-top: 2px;\n padding-top: 2px;\n}\n\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .freeTextAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .squareAnnotation svg rect,\n.annotationLayer .circleAnnotation svg ellipse,\n.annotationLayer .polylineAnnotation svg polyline,\n.annotationLayer .polygonAnnotation svg polygon,\n.annotationLayer .caretAnnotation,\n.annotationLayer .inkAnnotation svg polyline,\n.annotationLayer .stampAnnotation,\n.annotationLayer .fileAttachmentAnnotation {\n cursor: pointer;\n}\n"],
|
|
5
|
-
"mappings": "AAeA,yBACE,kBAGF,yFAEE,kBACA,cACA,MACA,OACA,WACA,YAGF,qGAEE,WACA,gBACA,2BAGF,qCACE,kBACA,eAGF,gQAKE,2BACA,6BACA,sBACA,cACA,YAlDF,uBAqDE,mBACA,WAGF,uDAzDA,UA6DA,2DA7DA,kBAiEA,gDACE,iBACA,cACA,YAGF,kTAKE,gBACA,6BACA,mBAGF,8RAKE,sBAGF,+JAGE,gBACA,6BAGF,uNAGE,sBACA,WACA,cACA,kBAGF,6IAEE,WACA,SACA,UAGF,uEACE,wBAGF,sEACE,yBAGF,0EAxHA,kBA0HE,WACA,SACA,QACA,UAGF,kDACE,sBACA,iBACA,gBAGF,wDAOE,WAGF,mHAEE,gBAlJF,UAsJA,+BACE,kBACA,WAGF,wBACE,kBACA,YACA,eACA,sBACA,0BAhKF,8BAmKE,gBACA,eACA,iBACA,cACA,qBAGF,0BACE,cAGF,2BACE,qBAGF,6BACE,qBACA,gBAGF,0BACE,0BACA,eACA,gBAGF,+jBAcE",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|