@internetarchive/bookreader 5.0.0-6-14 → 5.0.0-60
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.js +17 -15
- package/.github/workflows/node.js.yml +72 -10
- package/.github/workflows/npm-publish.yml +6 -20
- package/.testcaferc.js +10 -0
- package/BookReader/BookReader.css +241 -140
- package/BookReader/BookReader.js +1 -1
- package/BookReader/BookReader.js.LICENSE.txt +24 -20
- package/BookReader/BookReader.js.map +1 -1
- package/BookReader/ia-bookreader-bundle.js +1519 -0
- package/BookReader/ia-bookreader-bundle.js.LICENSE.txt +17 -0
- package/BookReader/ia-bookreader-bundle.js.map +1 -0
- package/BookReader/icons/close-circle-dark.svg +1 -0
- package/BookReader/icons/magnify-minus.svg +1 -1
- package/BookReader/icons/magnify-plus.svg +1 -1
- package/BookReader/icons/pause.svg +1 -1
- package/BookReader/icons/playback-speed.svg +1 -1
- package/BookReader/icons/read-aloud.svg +1 -1
- package/BookReader/icons/voice.svg +1 -0
- package/BookReader/images/BRicons.svg +2 -2
- package/BookReader/images/books_graphic.svg +1 -1
- package/BookReader/images/icon_book.svg +1 -1
- package/BookReader/images/icon_gear.svg +1 -1
- package/BookReader/images/icon_info.svg +1 -1
- package/BookReader/images/icon_playback-rate.svg +1 -1
- package/BookReader/images/icon_search_button.svg +1 -1
- package/BookReader/images/icon_share.svg +1 -1
- package/BookReader/images/icon_speaker.svg +1 -1
- package/BookReader/images/icon_speaker_open.svg +1 -1
- package/BookReader/images/marker_chap-off.svg +1 -1
- package/BookReader/images/marker_chap-on.svg +1 -1
- package/BookReader/images/marker_srch-on.svg +1 -1
- package/BookReader/jquery-3.js +2 -0
- package/BookReader/jquery-3.js.LICENSE.txt +24 -0
- package/BookReader/plugins/plugin.archive_analytics.js +1 -1
- package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
- package/BookReader/plugins/plugin.autoplay.js +1 -1
- package/BookReader/plugins/plugin.autoplay.js.map +1 -1
- package/BookReader/plugins/plugin.chapters.js +1 -1
- package/BookReader/plugins/plugin.chapters.js.map +1 -1
- package/BookReader/plugins/plugin.iframe.js +1 -1
- package/BookReader/plugins/plugin.iframe.js.map +1 -1
- package/BookReader/plugins/plugin.mobile_nav.js +1 -1
- package/BookReader/plugins/plugin.mobile_nav.js.map +1 -1
- package/BookReader/plugins/plugin.resume.js +1 -1
- package/BookReader/plugins/plugin.resume.js.map +1 -1
- package/BookReader/plugins/plugin.search.js +1 -1
- package/BookReader/plugins/plugin.search.js.map +1 -1
- package/BookReader/plugins/plugin.text_selection.js +1 -1
- package/BookReader/plugins/plugin.text_selection.js.map +1 -1
- package/BookReader/plugins/plugin.tts.js +1 -1
- package/BookReader/plugins/plugin.tts.js.map +1 -1
- package/BookReader/plugins/plugin.url.js +1 -1
- package/BookReader/plugins/plugin.url.js.map +1 -1
- package/BookReader/plugins/plugin.vendor-fullscreen.js +1 -1
- package/BookReader/plugins/plugin.vendor-fullscreen.js.map +1 -1
- package/BookReader/webcomponents-bundle.js +3 -0
- package/BookReader/webcomponents-bundle.js.LICENSE.txt +9 -0
- package/BookReader/webcomponents-bundle.js.map +1 -0
- package/BookReaderDemo/BookReaderDemo.css +14 -1
- package/BookReaderDemo/BookReaderJSAutoplay.js +4 -1
- package/BookReaderDemo/BookReaderJSSimple.js +1 -0
- package/BookReaderDemo/IADemoBr.js +147 -0
- package/BookReaderDemo/demo-advanced.html +2 -2
- package/BookReaderDemo/demo-autoplay.html +2 -1
- package/BookReaderDemo/demo-embed-iframe-src.html +2 -1
- package/BookReaderDemo/demo-fullscreen-mobile.html +2 -1
- package/BookReaderDemo/demo-fullscreen.html +2 -1
- package/BookReaderDemo/demo-iiif.html +2 -1
- package/BookReaderDemo/demo-internetarchive.html +84 -17
- package/BookReaderDemo/demo-multiple.html +2 -1
- package/BookReaderDemo/demo-preview-pages.html +2 -1
- package/BookReaderDemo/demo-simple.html +2 -1
- package/BookReaderDemo/demo-vendor-fullscreen.html +2 -1
- package/BookReaderDemo/ia-multiple-volumes-manifest.js +170 -0
- package/BookReaderDemo/immersion-1up.html +2 -1
- package/BookReaderDemo/immersion-mode.html +2 -1
- package/BookReaderDemo/toggle_controls.html +2 -1
- package/BookReaderDemo/view_mode.html +2 -1
- package/BookReaderDemo/viewmode-cycle.html +2 -3
- package/CHANGELOG.md +244 -0
- package/README.md +14 -1
- package/babel.config.js +19 -0
- package/codecov.yml +6 -0
- package/index.html +3 -0
- package/jsconfig.json +19 -0
- package/netlify.toml +5 -0
- package/package.json +70 -59
- package/renovate.json +52 -0
- package/scripts/preversion.js +4 -1
- package/src/BookNavigator/assets/bookmark-colors.js +1 -1
- package/src/BookNavigator/assets/button-base.js +9 -2
- package/src/BookNavigator/assets/ia-logo.js +17 -0
- package/src/BookNavigator/assets/icon_checkmark.js +1 -1
- package/src/BookNavigator/assets/icon_close.js +1 -1
- package/src/BookNavigator/assets/icon_sort_asc.js +5 -0
- package/src/BookNavigator/assets/icon_sort_desc.js +5 -0
- package/src/BookNavigator/assets/icon_sort_neutral.js +5 -0
- package/src/BookNavigator/assets/icon_volumes.js +11 -0
- package/src/BookNavigator/book-navigator.js +585 -0
- package/src/BookNavigator/bookmarks/bookmark-button.js +3 -2
- package/src/BookNavigator/bookmarks/bookmark-edit.js +3 -4
- package/src/BookNavigator/bookmarks/bookmarks-list.js +2 -3
- package/src/BookNavigator/bookmarks/bookmarks-loginCTA.js +3 -8
- package/src/BookNavigator/bookmarks/bookmarks-provider.js +27 -17
- package/src/BookNavigator/bookmarks/ia-bookmarks.js +116 -67
- package/src/BookNavigator/delete-modal-actions.js +1 -1
- package/src/BookNavigator/downloads/downloads-provider.js +36 -21
- package/src/BookNavigator/downloads/downloads.js +41 -25
- package/src/BookNavigator/search/search-provider.js +80 -28
- package/src/BookNavigator/search/search-results.js +34 -25
- package/src/BookNavigator/sharing.js +27 -0
- package/src/BookNavigator/visual-adjustments/visual-adjustments-provider.js +11 -10
- package/src/BookNavigator/visual-adjustments/visual-adjustments.js +3 -3
- package/src/BookNavigator/volumes/volumes-provider.js +111 -0
- package/src/BookNavigator/volumes/volumes.js +188 -0
- package/src/BookReader/BookModel.js +59 -30
- package/src/BookReader/DebugConsole.js +3 -3
- package/src/BookReader/DragScrollable.js +233 -0
- package/src/BookReader/Mode1Up.js +56 -351
- package/src/BookReader/Mode1UpLit.js +391 -0
- package/src/BookReader/Mode2Up.js +73 -1318
- package/src/BookReader/Mode2UpLit.js +781 -0
- package/src/BookReader/ModeCoordinateSpace.js +29 -0
- package/src/BookReader/ModeSmoothZoom.js +211 -0
- package/src/BookReader/ModeThumb.js +17 -11
- package/src/BookReader/Navbar/Navbar.js +10 -36
- package/src/BookReader/PageContainer.js +69 -6
- package/src/BookReader/ReduceSet.js +1 -1
- package/src/BookReader/Toolbar/Toolbar.js +10 -37
- package/src/BookReader/events.js +2 -0
- package/src/BookReader/options.js +24 -2
- package/src/BookReader/utils/HTMLDimensionsCacher.js +44 -0
- package/src/BookReader/utils/ScrollClassAdder.js +31 -0
- package/src/BookReader/utils.js +108 -13
- package/src/BookReader.js +481 -828
- package/src/assets/icons/close-circle-dark.svg +1 -0
- package/src/assets/icons/magnify-minus.svg +3 -7
- package/src/assets/icons/magnify-plus.svg +3 -7
- package/src/assets/icons/voice.svg +1 -0
- package/src/css/_BRBookmarks.scss +1 -1
- package/src/css/_BRComponent.scss +1 -1
- package/src/css/_BRmain.scss +33 -0
- package/src/css/_BRnav.scss +4 -26
- package/src/css/_BRpages.scss +147 -40
- package/src/css/_BRsearch.scss +25 -11
- package/src/css/_TextSelection.scss +16 -17
- package/src/css/_colorbox.scss +2 -2
- package/src/css/_controls.scss +17 -5
- package/src/css/_icons.scss +7 -1
- package/src/ia-bookreader/ia-bookreader.js +224 -0
- package/src/plugins/plugin.archive_analytics.js +3 -3
- package/src/plugins/plugin.autoplay.js +4 -9
- package/src/plugins/plugin.chapters.js +28 -35
- package/src/plugins/plugin.mobile_nav.js +11 -10
- package/src/plugins/plugin.resume.js +3 -3
- package/src/plugins/plugin.text_selection.js +32 -41
- package/src/plugins/plugin.vendor-fullscreen.js +4 -4
- package/src/plugins/search/plugin.search.js +179 -103
- package/src/plugins/search/view.js +59 -44
- package/src/plugins/tts/AbstractTTSEngine.js +46 -37
- package/src/plugins/tts/FestivalTTSEngine.js +13 -14
- package/src/plugins/tts/PageChunk.js +15 -21
- package/src/plugins/tts/PageChunkIterator.js +8 -12
- package/src/plugins/tts/WebTTSEngine.js +87 -71
- package/src/plugins/tts/plugin.tts.js +94 -125
- package/src/plugins/tts/utils.js +0 -25
- package/src/plugins/url/UrlPlugin.js +193 -0
- package/src/plugins/{plugin.url.js → url/plugin.url.js} +45 -16
- package/src/util/docCookies.js +21 -2
- package/tests/e2e/README.md +37 -0
- package/tests/e2e/autoplay.test.js +2 -2
- package/tests/e2e/base.test.js +7 -7
- package/tests/e2e/helpers/base.js +28 -23
- package/tests/e2e/helpers/debug.js +1 -1
- package/tests/e2e/helpers/desktopSearch.js +14 -13
- package/tests/e2e/helpers/mobileSearch.js +3 -3
- package/tests/e2e/helpers/params.js +17 -0
- package/tests/e2e/helpers/rightToLeft.js +4 -10
- package/tests/e2e/models/Navigation.js +13 -4
- package/tests/e2e/rightToLeft.test.js +4 -5
- package/tests/e2e/viewmode.test.js +40 -33
- package/tests/jest/BookNavigator/book-navigator.test.js +658 -0
- package/tests/jest/BookNavigator/bookmarks/bookmark-button.test.js +43 -0
- package/tests/{karma → jest}/BookNavigator/bookmarks/bookmark-edit.test.js +25 -26
- package/tests/{karma → jest}/BookNavigator/bookmarks/bookmarks-list.test.js +41 -42
- package/tests/jest/BookNavigator/bookmarks/ia-bookmarks.test.js +45 -0
- package/tests/jest/BookNavigator/downloads/downloads-provider.test.js +67 -0
- package/tests/jest/BookNavigator/downloads/downloads.test.js +53 -0
- package/tests/jest/BookNavigator/search/search-provider.test.js +167 -0
- package/tests/{karma/BookNavigator → jest/BookNavigator/search}/search-results.test.js +104 -60
- package/tests/jest/BookNavigator/sharing/sharing-provider.test.js +49 -0
- package/tests/jest/BookNavigator/visual-adjustments.test.js +200 -0
- package/tests/jest/BookNavigator/volumes/volumes-provider.test.js +184 -0
- package/tests/jest/BookNavigator/volumes/volumes.test.js +97 -0
- package/tests/{BookReader → jest/BookReader}/BookModel.test.js +59 -14
- package/tests/jest/BookReader/BookReaderPublicFunctions.test.js +193 -0
- package/tests/{BookReader → jest/BookReader}/DebugConsole.test.js +1 -1
- package/tests/{BookReader → jest/BookReader}/ImageCache.test.js +4 -4
- package/tests/jest/BookReader/Mode1UpLit.test.js +73 -0
- package/tests/jest/BookReader/Mode2Up.test.js +98 -0
- package/tests/jest/BookReader/Mode2UpLit.test.js +190 -0
- package/tests/jest/BookReader/ModeCoordinateSpace.test.js +16 -0
- package/tests/jest/BookReader/ModeSmoothZoom.test.js +175 -0
- package/tests/jest/BookReader/ModeThumb.test.js +71 -0
- package/tests/{BookReader → jest/BookReader}/Navbar/Navbar.test.js +10 -10
- package/tests/{BookReader → jest/BookReader}/PageContainer.test.js +88 -6
- package/tests/{BookReader → jest/BookReader}/ReduceSet.test.js +1 -1
- package/tests/{BookReader → jest/BookReader}/Toolbar/Toolbar.test.js +2 -2
- package/tests/jest/BookReader/utils/HTMLDimensionsCacher.test.js +59 -0
- package/tests/jest/BookReader/utils/ScrollClassAdder.test.js +49 -0
- package/tests/{BookReader → jest/BookReader}/utils/classes.test.js +1 -1
- package/tests/jest/BookReader/utils.test.js +217 -0
- package/tests/jest/BookReader.keyboard.test.js +190 -0
- package/tests/{BookReader.options.test.js → jest/BookReader.options.test.js} +9 -1
- package/tests/{BookReader.test.js → jest/BookReader.test.js} +26 -37
- package/tests/{plugins → jest/plugins}/plugin.archive_analytics.test.js +2 -2
- package/tests/{plugins → jest/plugins}/plugin.autoplay.test.js +4 -4
- package/tests/{plugins → jest/plugins}/plugin.chapters.test.js +10 -11
- package/tests/{plugins → jest/plugins}/plugin.iframe.test.js +2 -2
- package/tests/{plugins → jest/plugins}/plugin.mobile_nav.test.js +5 -5
- package/tests/{plugins → jest/plugins}/plugin.resume.test.js +3 -3
- package/tests/{plugins → jest/plugins}/plugin.text_selection.test.js +39 -47
- package/tests/{plugins → jest/plugins}/plugin.vendor-fullscreen.test.js +2 -2
- package/tests/{plugins → jest/plugins}/search/plugin.search.test.js +57 -47
- package/tests/{plugins → jest/plugins}/search/plugin.search.view.test.js +35 -6
- package/tests/{plugins → jest/plugins}/tts/AbstractTTSEngine.test.js +9 -9
- package/tests/{plugins → jest/plugins}/tts/FestivalTTSEngine.test.js +4 -4
- package/tests/{plugins → jest/plugins}/tts/PageChunk.test.js +1 -1
- package/tests/{plugins → jest/plugins}/tts/PageChunkIterator.test.js +3 -3
- package/tests/{plugins → jest/plugins}/tts/WebTTSEngine.test.js +47 -1
- package/tests/{plugins → jest/plugins}/tts/utils.test.js +1 -60
- package/tests/jest/plugins/url/UrlPlugin.test.js +190 -0
- package/tests/{plugins → jest/plugins/url}/plugin.url.test.js +53 -14
- package/tests/jest/setup.js +3 -0
- package/tests/{util → jest/util}/browserSniffing.test.js +1 -1
- package/tests/jest/util/docCookies.test.js +24 -0
- package/tests/{util → jest/util}/strings.test.js +1 -1
- package/tests/{utils.js → jest/utils.js} +38 -0
- package/webpack.config.js +11 -5
- package/.babelrc +0 -12
- package/.dependabot/config.yml +0 -6
- package/.testcaferc.json +0 -5
- package/BookReader/bookreader-component-bundle.js +0 -1450
- package/BookReader/bookreader-component-bundle.js.LICENSE.txt +0 -38
- package/BookReader/bookreader-component-bundle.js.map +0 -1
- package/BookReader/jquery-1.10.1.js +0 -2
- package/BookReader/jquery-1.10.1.js.LICENSE.txt +0 -24
- package/BookReader/plugins/plugin.menu_toggle.js +0 -2
- package/BookReader/plugins/plugin.menu_toggle.js.map +0 -1
- package/BookReaderDemo/bookreader-template-bundle.js +0 -7178
- package/BookReaderDemo/demo-plugin-menu-toggle.html +0 -34
- package/karma.conf.js +0 -23
- package/src/BookNavigator/BookModel.js +0 -14
- package/src/BookNavigator/BookNavigator.js +0 -438
- package/src/BookNavigator/assets/book-loader.js +0 -27
- package/src/BookNavigator/br-fullscreen-mgr.js +0 -83
- package/src/BookNavigator/search/a-search-result.js +0 -55
- package/src/BookReaderComponent/BookReaderComponent.js +0 -112
- package/src/ItemNavigator/ItemNavigator.js +0 -372
- package/src/ItemNavigator/providers/sharing.js +0 -29
- package/src/dragscrollable-br.js +0 -261
- package/src/plugins/menu_toggle/plugin.menu_toggle.js +0 -324
- package/tests/BookReader/BookReaderPublicFunctions.test.js +0 -171
- package/tests/BookReader/Mode1Up.test.js +0 -164
- package/tests/BookReader/Mode2Up.test.js +0 -247
- package/tests/BookReader/utils.test.js +0 -109
- package/tests/e2e/ia-production/ia-prod-base.js +0 -17
- package/tests/karma/BookNavigator/book-navigator.test.js +0 -132
- package/tests/karma/BookNavigator/visual-adjustments.test.js +0 -201
- package/tests/plugins/menu_toggle/plugin.menu_toggle.test.js +0 -68
- package/tests/util/docCookies.test.js +0 -15
@@ -0,0 +1 @@
|
|
1
|
+
<svg height="12" viewBox="0 0 12 12" width="12" xmlns="http://www.w3.org/2000/svg"><path d="m6 0c3.3137085 0 6 2.6862915 6 6s-2.6862915 6-6 6-6-2.6862915-6-6 2.6862915-6 6-6zm-2.3406945 2.96359116c-.19486814-.13499605-.46429254-.1157109-.63785889.05785545-.19526215.19526215-.19526215.51184463 0 .70710678l2.27155339 2.27144661-2.20567981 2.20557302-.05785545.06924789c-.13499605.19486814-.1157109.46429254.05785545.6378589.19526215.19526214.51184464.19526214.70710679 0l2.20557302-2.20567981 2.20557302 2.20567981.06924789.05785545c.19486814.13499605.46429254.1157109.6378589-.05785545.19526214-.19526215.19526214-.51184464 0-.70710679l-2.20567981-2.20557302 2.27155339-2.27144661.05785545-.06924789c.13499605-.19486814.1157109-.46429254-.05785545-.63785889-.19526215-.19526215-.51184463-.19526215-.70710678 0l-2.27144661 2.27155339-2.27144661-2.27155339z" fill="#222" fill-rule="evenodd"/></svg>
|
@@ -1,16 +1,12 @@
|
|
1
1
|
<svg
|
2
|
-
|
3
|
-
height="18"
|
4
|
-
viewBox="0 0 18 18"
|
2
|
+
viewBox="0 0 100 100"
|
5
3
|
version="1.1"
|
6
4
|
xmlns="http://www.w3.org/2000/svg"
|
7
5
|
aria-labelledby="magnify-minusTitleID magnify-minusDescID"
|
8
6
|
>
|
9
7
|
<title id="magnify-minusTitleID">Zoom out</title>
|
10
8
|
<desc id="magnify-minusDescID">An icon of a minus symbol</desc>
|
11
|
-
<g fill="
|
12
|
-
<
|
13
|
-
<path d="m12 12 4.335213 4.335213" stroke="#fff" stroke-linecap="round" stroke-width="2" />
|
14
|
-
<path d="m10 7.75v-1.5h-6v1.5z" fill="#fff" fill-rule="nonzero" />
|
9
|
+
<g fill="#fff" fill-rule="evenodd">
|
10
|
+
<path d="m2.3239824 87.3815869 25.8938394-23.8143095c-4.5929593-6.6937643-6.889439-14.1059452-6.889439-22.2365428 0-7.1360431 1.7567382-13.7186647 5.2702146-19.7478649 3.5134763-6.0292002 8.2852035-10.8003118 14.3151815-14.31333499 6.029978-3.51302314 12.6134488-5.26953471 19.7504125-5.26953471s13.7204346 1.75651157 19.7504126 5.26953471c6.029978 3.51302319 10.8017051 8.28413479 14.3151815 14.31333499 3.5134763 6.0292002 5.2702145 12.6118218 5.2702145 19.7478649s-1.7567382 13.7324143-5.2702145 19.7891137c-3.5134764 6.0566994-8.2852035 10.8415607-14.3151815 14.3545838-6.029978 3.5130232-12.6134489 5.2695347-19.7504126 5.2695347-8.5762743 0-16.3217363-2.5723212-23.2363861-7.7169637l-26.3063807 24.2302349c-1.27200216 1.1618413-2.76631826 1.742762-4.48294825 1.742762-1.826641 0-3.38971397-.6496687-4.68921892-1.949006s-1.94925743-2.8622087-1.94925743-4.688614c0-1.9364022.7746608-3.5955208 2.3239824-4.9773557zm58.3436469-19.9162976c7.1919692 0 13.3331041-2.5585716 18.4234048-7.6757149s7.635451-11.2712357 7.635451-18.4622772-2.5451503-13.3313843-7.635451-18.4210284-11.2314356-7.6344661-18.4234048-7.6344661-13.3331042 2.544822-18.4234049 7.6344661-7.635451 11.2299869-7.635451 18.4210284 2.5451503 13.3451339 7.635451 18.4622772 11.2314357 7.6757149 18.4234049 7.6757149zm-14.9374313-21.3256316h31.2878163v-9.5422233h-31.2878163z"/>
|
15
11
|
</g>
|
16
12
|
</svg>
|
@@ -1,17 +1,13 @@
|
|
1
1
|
<svg
|
2
|
-
|
3
|
-
height="18"
|
4
|
-
viewBox="0 0 18 18"
|
2
|
+
viewBox="0 0 100 100"
|
5
3
|
version="1.1"
|
6
4
|
xmlns="http://www.w3.org/2000/svg"
|
7
5
|
aria-labelledby="magnify-plusTitleID magnify-plusDescID"
|
8
6
|
>
|
9
7
|
<title id="magnify-plusTitleID">Zoom in</title>
|
10
8
|
<desc id="magnify-plusDescID">An icon of a plus symbol</desc>
|
11
|
-
<g fill="
|
12
|
-
<
|
13
|
-
<path d="m12 12 4.335213 4.335213" stroke="#fff" stroke-linecap="round" stroke-width="2" />
|
14
|
-
<path d="m7.75 4v2.25h2.25v1.5h-2.25v2.25h-1.5v-2.25h-2.25v-1.5h2.25v-2.25z" fill="#fff" fill-rule="nonzero" />
|
9
|
+
<g fill="#fff" fill-rule="evenodd">
|
10
|
+
<path d="m2.40305276 87.4017263 25.81133064-23.7730295c-4.5356618-6.5723551-6.8034928-14.000283-6.8034928-22.2837838 0-7.1236734 1.7429868-13.6948847 5.2289603-19.7136338 3.4859736-6.0187491 8.2577006-10.7953163 14.3151813-14.32970144 6.0574806-3.53438517 12.6547027-5.30157776 19.7916662-5.30157776 10.8429591 0 20.0964884 3.85236545 27.760588 11.5570964 7.6640996 7.7047309 11.4950036 16.9684802 11.4927136 27.791248 0 10.8799585-3.8309059 20.1574336-11.4927136 27.8324254-7.6618077 7.6749917-16.915337 11.5124876-27.760588 11.5124876-8.6312796 0-16.431747-2.5678624-23.4014021-7.7035871l-26.1413636 24.188234c-1.21699671 1.2147305-2.73881553 1.8220957-4.56545649 1.8220957s-3.3897139-.6485425-4.68921882-1.9456276c-1.29950493-1.297085-1.94925739-2.8572473-1.94925739-4.6804867 0-1.8781426.80216353-3.5343852 2.4064906-4.9687279zm58.34020784-19.878343c7.1369635 0 13.264347-2.5678623 18.3821503-7.7035871 5.1178034-5.1357247 7.676705-11.2928753 7.676705-18.4714518s-2.5589016-13.3082755-7.676705-18.3890972c-5.1178033-5.0808217-11.2451868-7.6212325-18.3821503-7.6212325-7.2469746 0-13.4156121 2.5404108-18.5059127 7.6212325s-7.6354509 11.2105207-7.6354509 18.3890972 2.5589016 13.3357271 7.676705 18.4714518c5.1178033 5.1357248 11.2726895 7.7035871 18.4646586 7.7035871zm-13.3594607-21.8685793h10.206958v10.1879511h7.2194718v-10.1879511h10.206958v-7.206028h-10.206958v-10.187951h-7.2194718v10.187951h-10.206958z"/>
|
15
11
|
</g>
|
16
12
|
|
17
13
|
</svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg height="100" viewBox="0 0 100 100" width="100" xmlns="http://www.w3.org/2000/svg"><g fill="#fff" fill-rule="nonzero"><path d="m38.1709541 1.16927276c-19.3063792 2.35749181-30.77194642 17.49896974-28.52613175 35.69759164l.13778264.9919913c1.32289251 8.56612 5.97731071 16.3013047 12.66398421 21.5397034l.4377858.3337777-.8258922.2818912c-14.58776328 5.1516606-22.0584828 17.3847028-22.0584828 36.1118649 0 1.7258899 1.39911016 3.125 3.125 3.125h75c1.7258898 0 3.125-1.3991101 3.125-3.125l-.0091512-1.1274701c-.2805982-17.166151-7.012296-28.729242-19.9504605-34.1742942l-.7528883-.3076168.3448755-.2543479c4.6971412-3.6170055 8.2730972-8.807671 10.7017508-15.494037l.1033476-.3442854c.358088-1.4990563-.4382762-3.0639387-1.9085796-3.6353549l-12.6163943-2.9594748 15.5382502-5.2151308c1.4455508-.7155993 2.1089731-2.4138059 1.5313094-3.9197953l-.4286041-1.1171368c-7.4117992-18.89492742-19.4315183-27.95356137-35.6325014-26.40787614zm29.1727959 27.11931404-14.3051523 7.0850707-.3458164.1975825c-2.0674045 1.3537943-1.8055096 4.5808459.6002149 5.5158026l11.2601288 4.3765442-.0446544.1053935c-2.9998765 6.5205267-7.382434 10.7639749-13.2036694 12.8974938-2.9669838 1.087418-2.6299355 5.3880614.4702287 5.9999873l.9102021.1897523c14.1147108 3.1023497 21.4110943 12.2993394 22.233518 28.3448731h-68.59375l.06180046-.9883469c1.14099717-16.5385163 9.43185134-25.5919672 25.33818054-27.9334892 3.1343099-.4613921 3.6716909-4.7565726.7476649-5.9759387-8.9190789-3.7193999-15.42583-12.285691-16.6248777-22.0019293-1.8277808-14.8111472 7.2466638-26.79489813 22.9989376-28.71929813 12.5036466-1.191884 21.828781 5.37445053 28.2768952 20.37896473z"/><path d="m76.5037126 22.4247766c.9396111-1.4476971 2.8749067-1.8595821 4.3226037-.9199711 6.1870578 4.0156385 9.4236837 9.4774446 9.4236837 16.1212874s-3.2366259 12.105649-9.4236837 16.1212875c-1.447697.939611-3.3829926.527726-4.3226037-.9199711s-.527726-3.3829927.9199711-4.3226038c4.4796088-2.9074384 6.5763163-6.4456323 6.5763163-10.8787126 0-4.4330802-2.0967075-7.9712741-6.5763163-10.8787125-1.4476971-.9396111-1.8595822-2.8749067-.9199711-4.3226038z"/><path d="m86.6767674 19.1839853c1.0725964-1.3521215 3.0382187-1.5787214 4.3903402-.506125 6.0793735 4.82258 9.1828924 11.2235876 9.1828924 18.9482326 0 7.7246451-3.1035189 14.1256527-9.1828924 18.9482327-1.3521215 1.0725964-3.3177438.8459965-4.3903402-.506125-1.0725964-1.3521216-.8459966-3.3177439.506125-4.3903403 4.5872931-3.6389585 6.8171076-8.2379508 6.8171076-14.0517674 0-5.8138165-2.2298145-10.4128088-6.8171076-14.0517673-1.3521216-1.0725964-1.5787214-3.0382187-.506125-4.3903403z"/></g></svg>
|
package/src/css/_BRmain.scss
CHANGED
@@ -43,6 +43,8 @@
|
|
43
43
|
position: relative;
|
44
44
|
overflow: hidden;
|
45
45
|
background-color: $brColorMainBg;
|
46
|
+
|
47
|
+
contain: strict;
|
46
48
|
}
|
47
49
|
|
48
50
|
.BRcontainer {
|
@@ -66,6 +68,23 @@
|
|
66
68
|
border: 2px solid #999;
|
67
69
|
z-index: $brZindexPopup;
|
68
70
|
color: $gray13;
|
71
|
+
|
72
|
+
.close-popup {
|
73
|
+
position: absolute;
|
74
|
+
top: 0;
|
75
|
+
right: 0;
|
76
|
+
width: 30px;
|
77
|
+
width: 30px;
|
78
|
+
padding: 0;
|
79
|
+
border: 0;
|
80
|
+
background-color: transparent;
|
81
|
+
|
82
|
+
.icon.icon-close-dark {
|
83
|
+
position: absolute;
|
84
|
+
top: 5px;
|
85
|
+
right: 5px;
|
86
|
+
}
|
87
|
+
}
|
69
88
|
}
|
70
89
|
|
71
90
|
.BRprogressbar {
|
@@ -230,3 +249,17 @@ body.BRfullscreenActive {
|
|
230
249
|
.BRpagediv1up { background-color: white; }
|
231
250
|
.BRpagedivthumb { background-color: white; }
|
232
251
|
}
|
252
|
+
|
253
|
+
.BRfullscreenAnimation .br-mode-2up__book {
|
254
|
+
transition: transform .2s ease-in-out;
|
255
|
+
}
|
256
|
+
|
257
|
+
.fullscreenActive.BRmodeThumb .BRcontainer,
|
258
|
+
.fullscreenActive.BRmode1up .BRcontainer {
|
259
|
+
animation: flash 0.3s ease-in-out;
|
260
|
+
}
|
261
|
+
|
262
|
+
@keyframes flash {
|
263
|
+
0% { opacity: 0; }
|
264
|
+
100% { opacity: 1; }
|
265
|
+
}
|
package/src/css/_BRnav.scss
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* BRnav is the bottom control bar (eg footer)
|
3
3
|
*/
|
4
|
+
@use "sass:math";
|
4
5
|
|
5
6
|
@mixin pseudoElementLayer {
|
6
7
|
content: "";
|
@@ -117,7 +118,7 @@
|
|
117
118
|
display: flex;
|
118
119
|
justify-content: center;
|
119
120
|
margin: 5px;
|
120
|
-
padding: 0 ($brNavHeightMobile
|
121
|
+
padding: 0 math.div($brNavHeightMobile, 4);
|
121
122
|
border-radius: 4px;
|
122
123
|
align-self: center;
|
123
124
|
height: $toolbarHeight;
|
@@ -126,10 +127,6 @@
|
|
126
127
|
// Default
|
127
128
|
@include brNavDark;
|
128
129
|
|
129
|
-
&.BRnavEmbed {
|
130
|
-
@include brNavLight;
|
131
|
-
}
|
132
|
-
|
133
130
|
/* Full mobile styles */
|
134
131
|
@media (max-width: $brBreakPointMobile) {
|
135
132
|
.BRbodyMobileNavEnabled &,
|
@@ -222,25 +219,6 @@
|
|
222
219
|
flex-direction: row;
|
223
220
|
border-top: 1px solid $controlsBorder;
|
224
221
|
|
225
|
-
&.BRnavEmbed {
|
226
|
-
padding-top: 0;
|
227
|
-
height: auto;
|
228
|
-
align-items: center;
|
229
|
-
|
230
|
-
.BRembedreturn {
|
231
|
-
flex: 1 auto;
|
232
|
-
overflow-x: hidden;
|
233
|
-
}
|
234
|
-
.logo {
|
235
|
-
display: inline-block;
|
236
|
-
width: 25px;
|
237
|
-
height: 25px;
|
238
|
-
margin: 0 10px;
|
239
|
-
background: transparent url(images/icon_home.svg) no-repeat center center;
|
240
|
-
background-size: contain;
|
241
|
-
}
|
242
|
-
}
|
243
|
-
|
244
222
|
/* Theming */
|
245
223
|
|
246
224
|
// Default
|
@@ -263,7 +241,7 @@
|
|
263
241
|
.BRpager.ui-slider {
|
264
242
|
position: relative;
|
265
243
|
height: 8px;
|
266
|
-
top: ($brNavHeightDesktop
|
244
|
+
top: math.div($brNavHeightDesktop, 2) - 4px;
|
267
245
|
box-sizing: content-box;
|
268
246
|
border-radius: 10px;
|
269
247
|
cursor: pointer;
|
@@ -365,7 +343,7 @@
|
|
365
343
|
}
|
366
344
|
.BRpager.ui-slider {
|
367
345
|
height: 10px;
|
368
|
-
top: ($brNavHeightMobile
|
346
|
+
top: math.div($brNavHeightMobile, 2) - 5px;
|
369
347
|
}
|
370
348
|
}
|
371
349
|
|
package/src/css/_BRpages.scss
CHANGED
@@ -10,13 +10,35 @@
|
|
10
10
|
}
|
11
11
|
}
|
12
12
|
|
13
|
-
.BRmodeThumb .BRpagecontainer, .
|
13
|
+
.BRmodeThumb .BRpagecontainer, .BRmode2up .BRpagecontainer {
|
14
14
|
cursor: pointer;
|
15
15
|
}
|
16
16
|
.BRpagecontainer.BRemptypage {
|
17
17
|
cursor: unset;
|
18
18
|
}
|
19
19
|
|
20
|
+
.br-mode-1up__root {
|
21
|
+
display: block;
|
22
|
+
overflow: auto;
|
23
|
+
position: relative;
|
24
|
+
width: 100%;
|
25
|
+
height: 100%;
|
26
|
+
|
27
|
+
// This is a performance optimization that basically tells the browser "the size
|
28
|
+
// of this element doesn't depend on the size of its children".
|
29
|
+
contain: strict;
|
30
|
+
|
31
|
+
.br-mode-1up__world {
|
32
|
+
position: absolute;
|
33
|
+
transform-origin: 0 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
.br-mode-1up__visible-world {
|
37
|
+
position: absolute;
|
38
|
+
transform-origin: 0 0;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
20
42
|
.BRpagecontainer {
|
21
43
|
position: relative;
|
22
44
|
overflow: hidden;
|
@@ -48,57 +70,142 @@
|
|
48
70
|
}
|
49
71
|
}
|
50
72
|
|
51
|
-
.
|
73
|
+
svg.BRPageLayer {
|
52
74
|
position: absolute;
|
53
|
-
|
54
|
-
|
75
|
+
top: 0;
|
76
|
+
left: 0;
|
77
|
+
right: 0;
|
78
|
+
bottom: 0;
|
55
79
|
}
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
80
|
+
|
81
|
+
// Hides page layers during page flip animation
|
82
|
+
.BRpageFlipping .BRPageLayer {
|
83
|
+
display: none;
|
60
84
|
}
|
61
85
|
|
62
|
-
.
|
63
|
-
|
64
|
-
|
65
|
-
|
86
|
+
.br-mode-2up__root {
|
87
|
+
display: block;
|
88
|
+
overflow: auto;
|
89
|
+
width: 100%;
|
90
|
+
height: 100%;
|
91
|
+
}
|
66
92
|
|
67
|
-
|
68
|
-
position:
|
69
|
-
|
93
|
+
.br-mode-2up__book {
|
94
|
+
position: relative;
|
95
|
+
transform-origin: 0 0;
|
96
|
+
width: 0px;
|
97
|
+
height: 0px;
|
70
98
|
}
|
71
99
|
|
72
|
-
.
|
73
|
-
|
74
|
-
|
75
|
-
border-width: 1px 0px 1px 1px; */
|
76
|
-
background: transparent url(images/back_pages.png) repeat scroll 0% 0%; /* XXXmang replace file */
|
77
|
-
position: absolute;
|
78
|
-
cursor: pointer;
|
100
|
+
.BRmode2up {
|
101
|
+
// Used while loading stuff
|
102
|
+
transition: opacity 0.2s;
|
79
103
|
}
|
80
104
|
|
81
|
-
.
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
position: absolute;
|
105
|
+
.BRmode2up .BRpagecontainer {
|
106
|
+
backface-visibility: hidden;
|
107
|
+
&:not(.BRpage-visible) {
|
108
|
+
display: none;
|
109
|
+
}
|
87
110
|
}
|
88
111
|
|
89
|
-
.
|
90
|
-
/* border: 1px solid rgb(68, 25, 17); */
|
112
|
+
.br-mode-2up__leafs {
|
91
113
|
position: absolute;
|
92
|
-
|
114
|
+
cursor: pointer;
|
115
|
+
top: 0;
|
116
|
+
transform-style: preserve-3d;
|
117
|
+
|
118
|
+
&[side=left] {
|
119
|
+
border-radius: 4px 0 0 4px;
|
120
|
+
.br-leaf-edges__label {
|
121
|
+
padding-right: 10px;
|
122
|
+
border-radius: 4px 0 0 4px;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
&[side=right] {
|
126
|
+
border-radius: 0 4px 4px 0;
|
127
|
+
.br-leaf-edges__label {
|
128
|
+
padding-left: 20px;
|
129
|
+
border-radius: 0 4px 4px 0;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
&.br-mode-2up__leafs--flipping {
|
133
|
+
z-index: 200000;
|
134
|
+
transition: transform 5s;
|
135
|
+
transition-timing-function: ease-in-out;
|
136
|
+
border-radius: 0;
|
137
|
+
|
138
|
+
// Have a copy of the background at a perpendicular angle,
|
139
|
+
// so that during the rotation, it's always visible.
|
140
|
+
&:before {
|
141
|
+
content: '';
|
142
|
+
display: block;
|
143
|
+
width: 100%;
|
144
|
+
height: 100%;
|
145
|
+
position: absolute;
|
146
|
+
transform: rotateY(-90deg);
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
&, &.br-mode-2up__leafs--flipping::before {
|
151
|
+
background: transparent url(images/back_pages.png) repeat scroll 0% 0%;
|
152
|
+
}
|
153
|
+
|
154
|
+
.br-leaf-edges__bar {
|
155
|
+
display: none;
|
156
|
+
pointer-events: none;
|
157
|
+
position: absolute;
|
158
|
+
top: 0;
|
159
|
+
bottom: 0;
|
160
|
+
min-width: 1px;
|
161
|
+
background-color: #9A9B9D;
|
162
|
+
opacity: 0.85;
|
163
|
+
transform: translateX(-50%);
|
164
|
+
}
|
165
|
+
|
166
|
+
.br-leaf-edges__label {
|
167
|
+
display: none;
|
168
|
+
pointer-events: none;
|
169
|
+
z-index: 1000;
|
170
|
+
position: absolute;
|
171
|
+
padding: 6px;
|
172
|
+
color: white;
|
173
|
+
background-color: #9A9B9D;
|
174
|
+
opacity: 0.85;
|
175
|
+
white-space: nowrap;
|
176
|
+
transform: translateY(-10px);
|
177
|
+
}
|
93
178
|
}
|
94
179
|
|
95
|
-
.
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
180
|
+
.br-mode-2up--flipping-left {
|
181
|
+
.BRpage-entering[data-side=R] {
|
182
|
+
z-index: 10;
|
183
|
+
transform-origin: left;
|
184
|
+
transform: rotateY(0deg);
|
185
|
+
}
|
186
|
+
|
187
|
+
.BRpage-exiting[data-side=L] {
|
188
|
+
z-index: 10;
|
189
|
+
transform-origin: right;
|
190
|
+
}
|
191
|
+
|
192
|
+
.BRpage-exiting[data-side=R] {
|
193
|
+
z-index: 9;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
.br-mode-2up--flipping-right {
|
198
|
+
.BRpage-entering[data-side=L] {
|
199
|
+
z-index: 10;
|
200
|
+
transform-origin: right;
|
201
|
+
}
|
202
|
+
|
203
|
+
.BRpage-exiting[data-side=R] {
|
204
|
+
z-index: 10;
|
205
|
+
transform-origin: left;
|
206
|
+
}
|
207
|
+
|
208
|
+
.BRpage-exiting[data-side=L] {
|
209
|
+
z-index: 9;
|
210
|
+
}
|
104
211
|
}
|
package/src/css/_BRsearch.scss
CHANGED
@@ -25,16 +25,31 @@
|
|
25
25
|
}
|
26
26
|
|
27
27
|
#{$brScope} {
|
28
|
-
.
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
28
|
+
// FIXME: .ttsHiliteLayer should probably not be in this file,
|
29
|
+
// but they appear the same in the UI.
|
30
|
+
.searchHiliteLayer, .ttsHiliteLayer {
|
31
|
+
pointer-events: none;
|
32
|
+
|
33
|
+
rect {
|
34
|
+
// Note: Can't use fill-opacity ; safari inexplicably applies that to
|
35
|
+
// the outline as well
|
36
|
+
fill: rgba(0, 0, 255, 0.2);
|
37
|
+
}
|
38
|
+
}
|
35
39
|
|
36
|
-
|
40
|
+
.searchHiliteLayer rect {
|
41
|
+
animation: highlightFocus 600ms 1 reverse;
|
42
|
+
stroke: blue;
|
43
|
+
stroke-width: 4px;
|
44
|
+
|
45
|
+
// Sass for loop for nth-child animation delay
|
46
|
+
@for $i from 1 through 10 {
|
47
|
+
&:nth-child(#{$i}) {
|
48
|
+
animation-delay: #{($i - 1) * 50}ms;
|
49
|
+
}
|
50
|
+
}
|
37
51
|
}
|
52
|
+
|
38
53
|
.BRchapter, .BRsearch {
|
39
54
|
position: absolute;
|
40
55
|
bottom: 0; /* Relative to nav line */
|
@@ -205,9 +220,8 @@
|
|
205
220
|
}
|
206
221
|
}
|
207
222
|
|
208
|
-
@keyframes
|
209
|
-
|
210
|
-
to { opacity: 0.2; }
|
223
|
+
@keyframes highlightFocus {
|
224
|
+
to { stroke-width: 20px; }
|
211
225
|
}
|
212
226
|
|
213
227
|
/* Mid size breakpoint */
|
@@ -1,9 +1,6 @@
|
|
1
1
|
.textSelectionSVG {
|
2
|
-
|
3
|
-
|
4
|
-
height: 100%;
|
5
|
-
top: 0;
|
6
|
-
left: 0;
|
2
|
+
z-index: 2;
|
3
|
+
|
7
4
|
// Make it so right-clicking on "blank" part of svg sends events to the image (for saving)
|
8
5
|
pointer-events: none;
|
9
6
|
.BRwordElement { pointer-events: all; }
|
@@ -22,27 +19,29 @@
|
|
22
19
|
}
|
23
20
|
|
24
21
|
.BRparagElement {
|
25
|
-
fill:
|
22
|
+
fill: transparent;
|
26
23
|
cursor: text;
|
27
24
|
white-space: pre;
|
28
|
-
fill-opacity: 0;
|
29
25
|
font-family: Georgia, serif;
|
30
26
|
}
|
31
27
|
}
|
32
28
|
|
29
|
+
// Hide text layer for performance during zooming & scrolling
|
30
|
+
.BRsmooth-zooming, .BRscrolling-active {
|
31
|
+
.textSelectionSVG {
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
// Hide text selection layers of off-screen pages, and only display
|
37
|
+
// 2 text layers regardless of zoom level
|
38
|
+
.BRmode1up .BRpagecontainer:not(.BRpage-visible) .textSelectionSVG {
|
39
|
+
display: none;
|
40
|
+
}
|
41
|
+
|
33
42
|
// Makes page image unselectable
|
34
43
|
.BRpagecontainer img {
|
35
44
|
-webkit-user-select: none;
|
36
45
|
-moz-user-select: none;
|
37
46
|
user-select: none;
|
38
47
|
}
|
39
|
-
|
40
|
-
// Hides svg text layer when page animation is running
|
41
|
-
.BRpageFlipping .textSelectionSVG {
|
42
|
-
display: none;
|
43
|
-
}
|
44
|
-
|
45
|
-
// Hide phantom page when last page is selected
|
46
|
-
.BRpagecontainer.BRemptypage .textSelectionSVG{
|
47
|
-
display: none;
|
48
|
-
}
|
package/src/css/_colorbox.scss
CHANGED
package/src/css/_controls.scss
CHANGED
@@ -28,24 +28,32 @@
|
|
28
28
|
}
|
29
29
|
}
|
30
30
|
|
31
|
-
select.playback-speed {
|
32
|
-
width: 24px;
|
31
|
+
select.playback-speed, select.playback-voices {
|
33
32
|
padding-top: 18px;
|
34
33
|
-moz-appearance: none;
|
35
34
|
-webkit-appearance: none;
|
36
35
|
appearance: none;
|
37
36
|
font-size: 10px;
|
38
|
-
text-align: center;
|
39
37
|
text-align-last: center;
|
40
38
|
color: $controlsText;
|
41
39
|
border: none;
|
42
40
|
cursor: pointer;
|
43
|
-
|
44
|
-
option {
|
41
|
+
option, optgroup {
|
45
42
|
background: $controlsBG;
|
46
43
|
}
|
47
44
|
}
|
48
45
|
|
46
|
+
select.playback-speed {
|
47
|
+
width: 30px;
|
48
|
+
background: transparent url("icons/playback-speed.svg") 50% 0 no-repeat;
|
49
|
+
}
|
50
|
+
|
51
|
+
select.playback-voices {
|
52
|
+
width: 30px;
|
53
|
+
background: transparent url("icons/voice.svg") 50% 0 no-repeat;
|
54
|
+
background-size: 18px;
|
55
|
+
}
|
56
|
+
|
49
57
|
.active {
|
50
58
|
background: $activeButtonBG;
|
51
59
|
}
|
@@ -100,6 +108,10 @@
|
|
100
108
|
&.visible {
|
101
109
|
display: flex;
|
102
110
|
animation: slideUp 0.2s;
|
111
|
+
button {
|
112
|
+
width: unset;
|
113
|
+
height: unset;
|
114
|
+
}
|
103
115
|
}
|
104
116
|
|
105
117
|
li {
|
package/src/css/_icons.scss
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
}
|
38
38
|
|
39
39
|
.icon-fullscreen-exit {
|
40
|
-
background-image: url("icons/
|
40
|
+
background-image: url("icons/fullscreen_exit.svg");
|
41
41
|
}
|
42
42
|
|
43
43
|
.icon-thumb {
|
@@ -113,3 +113,9 @@
|
|
113
113
|
height: 12px;
|
114
114
|
background-image: url("icons/close-circle.svg");
|
115
115
|
}
|
116
|
+
|
117
|
+
.icon-close-dark {
|
118
|
+
width: 12px;
|
119
|
+
height: 12px;
|
120
|
+
background-image: url("icons/close-circle-dark.svg");
|
121
|
+
}
|