@internetarchive/bookreader 5.0.0-3 → 5.0.0-30-d

Sign up to get free protection for your applications and to get access to all the features.
Files changed (391) hide show
  1. package/.eslintrc.js +17 -5
  2. package/.github/dependabot.yml +8 -0
  3. package/.github/workflows/node.js.yml +10 -1
  4. package/.husky/_/husky.sh +30 -0
  5. package/.testcaferc.js +10 -0
  6. package/BookReader/BookReader.css +75 -323
  7. package/BookReader/BookReader.js +32261 -2
  8. package/BookReader/BookReader.js.map +1 -1
  9. package/BookReader/ia-bookreader-bundle.js +15235 -0
  10. package/BookReader/ia-bookreader-bundle.js.map +1 -0
  11. package/BookReader/icons/close-circle-dark.svg +1 -0
  12. package/BookReader/icons/voice.svg +1 -0
  13. package/BookReader/jquery-1.10.1.js +108 -2
  14. package/BookReader/plugins/plugin.archive_analytics.js +170 -1
  15. package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
  16. package/BookReader/plugins/plugin.autoplay.js +163 -1
  17. package/BookReader/plugins/plugin.autoplay.js.map +1 -1
  18. package/BookReader/plugins/plugin.chapters.js +333 -1
  19. package/BookReader/plugins/plugin.chapters.js.map +1 -1
  20. package/BookReader/plugins/plugin.iframe.js +72 -1
  21. package/BookReader/plugins/plugin.iframe.js.map +1 -1
  22. package/BookReader/plugins/plugin.mobile_nav.js +332 -1
  23. package/BookReader/plugins/plugin.mobile_nav.js.map +1 -1
  24. package/BookReader/plugins/plugin.resume.js +241 -1
  25. package/BookReader/plugins/plugin.resume.js.map +1 -1
  26. package/BookReader/plugins/plugin.search.js +1261 -1
  27. package/BookReader/plugins/plugin.search.js.map +1 -1
  28. package/BookReader/plugins/plugin.text_selection.js +839 -1
  29. package/BookReader/plugins/plugin.text_selection.js.map +1 -1
  30. package/BookReader/plugins/plugin.tts.js +9115 -2
  31. package/BookReader/plugins/plugin.tts.js.map +1 -1
  32. package/BookReader/plugins/plugin.url.js +811 -1
  33. package/BookReader/plugins/plugin.url.js.map +1 -1
  34. package/BookReader/plugins/plugin.vendor-fullscreen.js +326 -1
  35. package/BookReader/plugins/plugin.vendor-fullscreen.js.map +1 -1
  36. package/BookReader/webcomponents-bundle.js +412 -0
  37. package/BookReader/webcomponents-bundle.js.map +1 -0
  38. package/BookReaderDemo/BookReaderDemo.css +14 -1
  39. package/BookReaderDemo/IADemoBr.js +107 -0
  40. package/BookReaderDemo/demo-advanced.html +1 -1
  41. package/BookReaderDemo/demo-autoplay.html +1 -0
  42. package/BookReaderDemo/demo-embed-iframe-src.html +1 -0
  43. package/BookReaderDemo/demo-fullscreen-mobile.html +1 -0
  44. package/BookReaderDemo/demo-fullscreen.html +1 -0
  45. package/BookReaderDemo/demo-iiif.html +1 -0
  46. package/BookReaderDemo/demo-internetarchive.html +66 -18
  47. package/BookReaderDemo/demo-multiple.html +1 -0
  48. package/BookReaderDemo/demo-preview-pages.html +1 -0
  49. package/BookReaderDemo/demo-simple.html +1 -0
  50. package/BookReaderDemo/demo-vendor-fullscreen.html +1 -0
  51. package/BookReaderDemo/immersion-1up.html +1 -0
  52. package/BookReaderDemo/immersion-mode.html +1 -0
  53. package/BookReaderDemo/toggle_controls.html +1 -0
  54. package/BookReaderDemo/view_mode.html +1 -0
  55. package/BookReaderDemo/viewmode-cycle.html +1 -2
  56. package/CHANGELOG.md +114 -0
  57. package/babel.config.js +18 -0
  58. package/index.html +3 -0
  59. package/jsconfig.json +19 -0
  60. package/package.json +45 -27
  61. package/src/BookNavigator/assets/button-base.js +8 -1
  62. package/src/BookNavigator/assets/ia-logo.js +17 -0
  63. package/src/BookNavigator/assets/icon_sort_asc.js +5 -0
  64. package/src/BookNavigator/assets/icon_sort_desc.js +5 -0
  65. package/src/BookNavigator/assets/icon_sort_neutral.js +5 -0
  66. package/src/BookNavigator/assets/icon_volumes.js +11 -0
  67. package/src/BookNavigator/book-navigator.js +528 -0
  68. package/src/BookNavigator/bookmarks/bookmark-button.js +2 -1
  69. package/src/BookNavigator/bookmarks/bookmark-edit.js +2 -1
  70. package/src/BookNavigator/bookmarks/bookmarks-list.js +1 -0
  71. package/src/BookNavigator/bookmarks/bookmarks-loginCTA.js +4 -9
  72. package/src/BookNavigator/bookmarks/bookmarks-provider.js +32 -11
  73. package/src/BookNavigator/bookmarks/ia-bookmarks.js +88 -43
  74. package/src/BookNavigator/downloads/downloads-provider.js +22 -16
  75. package/src/BookNavigator/downloads/downloads.js +16 -23
  76. package/src/BookNavigator/search/a-search-result.js +1 -0
  77. package/src/BookNavigator/search/search-provider.js +54 -20
  78. package/src/BookNavigator/search/search-results.js +7 -18
  79. package/src/BookNavigator/sharing.js +27 -0
  80. package/src/BookNavigator/visual-adjustments/visual-adjustments-provider.js +10 -12
  81. package/src/BookNavigator/visual-adjustments/visual-adjustments.js +1 -0
  82. package/src/BookNavigator/volumes/volumes-provider.js +114 -0
  83. package/src/BookNavigator/volumes/volumes.js +189 -0
  84. package/src/BookReader/DebugConsole.js +3 -3
  85. package/src/BookReader/DragScrollable.js +233 -0
  86. package/src/BookReader/Mode1Up.js +50 -351
  87. package/src/BookReader/Mode1UpLit.js +434 -0
  88. package/src/BookReader/Mode2Up.js +94 -72
  89. package/src/BookReader/ModeSmoothZoom.js +177 -0
  90. package/src/BookReader/ModeThumb.js +16 -8
  91. package/src/BookReader/Navbar/Navbar.js +2 -31
  92. package/src/BookReader/PageContainer.js +47 -2
  93. package/src/BookReader/ReduceSet.js +1 -1
  94. package/src/BookReader/Toolbar/Toolbar.js +5 -5
  95. package/src/BookReader/options.js +10 -0
  96. package/src/BookReader/utils/HTMLDimensionsCacher.js +44 -0
  97. package/src/BookReader/utils.js +68 -13
  98. package/src/BookReader.js +316 -232
  99. package/src/assets/icons/close-circle-dark.svg +1 -0
  100. package/src/assets/icons/voice.svg +1 -0
  101. package/src/css/BookReader.scss +0 -12
  102. package/src/css/_BRComponent.scss +1 -1
  103. package/src/css/_BRmain.scss +19 -24
  104. package/src/css/_BRnav.scss +4 -26
  105. package/src/css/_BRpages.scss +35 -0
  106. package/src/css/_BRsearch.scss +11 -215
  107. package/src/css/_TextSelection.scss +1 -17
  108. package/src/css/_controls.scss +16 -3
  109. package/src/css/_icons.scss +6 -0
  110. package/src/ia-bookreader/ia-bookreader.js +206 -0
  111. package/src/plugins/plugin.chapters.js +15 -18
  112. package/src/plugins/plugin.mobile_nav.js +11 -10
  113. package/src/plugins/plugin.resume.js +3 -3
  114. package/src/plugins/plugin.text_selection.js +17 -29
  115. package/src/plugins/plugin.vendor-fullscreen.js +4 -4
  116. package/src/plugins/search/plugin.search.js +113 -104
  117. package/src/plugins/search/view.js +48 -163
  118. package/src/plugins/tts/AbstractTTSEngine.js +7 -0
  119. package/src/plugins/tts/FestivalTTSEngine.js +2 -2
  120. package/src/plugins/tts/WebTTSEngine.js +5 -0
  121. package/src/plugins/tts/plugin.tts.js +67 -102
  122. package/src/plugins/url/UrlPlugin.js +184 -0
  123. package/src/plugins/url/plugin.url.js +220 -0
  124. package/{src → stat}/BookNavigator/BookModel.js +0 -0
  125. package/{src → stat}/BookNavigator/BookNavigator.js +151 -104
  126. package/stat/BookNavigator/assets/bookmark-colors.js +15 -0
  127. package/stat/BookNavigator/assets/button-base.js +61 -0
  128. package/stat/BookNavigator/assets/ia-logo.js +17 -0
  129. package/stat/BookNavigator/assets/icon_checkmark.js +6 -0
  130. package/stat/BookNavigator/assets/icon_close.js +3 -0
  131. package/stat/BookNavigator/assets/icon_sort_asc.js +5 -0
  132. package/stat/BookNavigator/assets/icon_sort_desc.js +5 -0
  133. package/stat/BookNavigator/assets/icon_sort_neutral.js +5 -0
  134. package/stat/BookNavigator/assets/icon_volumes.js +11 -0
  135. package/stat/BookNavigator/bookmarks/bookmark-button.js +64 -0
  136. package/stat/BookNavigator/bookmarks/bookmark-edit.js +215 -0
  137. package/stat/BookNavigator/bookmarks/bookmarks-list.js +285 -0
  138. package/stat/BookNavigator/bookmarks/bookmarks-loginCTA.js +28 -0
  139. package/stat/BookNavigator/bookmarks/bookmarks-provider.js +56 -0
  140. package/stat/BookNavigator/bookmarks/ia-bookmarks.js +523 -0
  141. package/{src → stat}/BookNavigator/br-fullscreen-mgr.js +1 -2
  142. package/stat/BookNavigator/delete-modal-actions.js +49 -0
  143. package/stat/BookNavigator/downloads/downloads-provider.js +72 -0
  144. package/stat/BookNavigator/downloads/downloads.js +139 -0
  145. package/stat/BookNavigator/provider-config.js +0 -0
  146. package/stat/BookNavigator/search/a-search-result.js +55 -0
  147. package/stat/BookNavigator/search/search-provider.js +180 -0
  148. package/stat/BookNavigator/search/search-results.js +360 -0
  149. package/stat/BookNavigator/sharing.js +31 -0
  150. package/stat/BookNavigator/visual-adjustments/visual-adjustments-provider.js +94 -0
  151. package/stat/BookNavigator/visual-adjustments/visual-adjustments.js +280 -0
  152. package/stat/BookNavigator/volumes/volumes-provider.js +83 -0
  153. package/stat/BookNavigator/volumes/volumes.js +178 -0
  154. package/stat/BookReader/BookModel.js +518 -0
  155. package/stat/BookReader/DebugConsole.js +54 -0
  156. package/stat/BookReader/DragScrollable.js +233 -0
  157. package/stat/BookReader/ImageCache.js +116 -0
  158. package/stat/BookReader/Mode1Up.js +102 -0
  159. package/stat/BookReader/Mode1UpLit.js +434 -0
  160. package/stat/BookReader/Mode2Up.js +1372 -0
  161. package/stat/BookReader/ModeSmoothZoom.js +177 -0
  162. package/stat/BookReader/ModeThumb.js +344 -0
  163. package/stat/BookReader/Navbar/Navbar.js +310 -0
  164. package/stat/BookReader/PageContainer.js +120 -0
  165. package/stat/BookReader/ReduceSet.js +26 -0
  166. package/stat/BookReader/Toolbar/Toolbar.js +384 -0
  167. package/stat/BookReader/events.js +20 -0
  168. package/stat/BookReader/options.js +324 -0
  169. package/stat/BookReader/utils/HTMLDimensionsCacher.js +44 -0
  170. package/stat/BookReader/utils/classes.js +36 -0
  171. package/stat/BookReader/utils.js +240 -0
  172. package/stat/BookReader.js +2550 -0
  173. package/{src → stat}/BookReaderComponent/BookReaderComponent.js +16 -11
  174. package/stat/assets/icons/1up.svg +12 -0
  175. package/stat/assets/icons/2up.svg +15 -0
  176. package/stat/assets/icons/advance.svg +26 -0
  177. package/stat/assets/icons/chevron-right.svg +1 -0
  178. package/stat/assets/icons/close-circle-dark.svg +1 -0
  179. package/stat/assets/icons/close-circle.svg +1 -0
  180. package/stat/assets/icons/fullscreen.svg +17 -0
  181. package/stat/assets/icons/fullscreen_exit.svg +17 -0
  182. package/stat/assets/icons/hamburger.svg +15 -0
  183. package/stat/assets/icons/left-arrow.svg +12 -0
  184. package/stat/assets/icons/magnify-minus.svg +16 -0
  185. package/stat/assets/icons/magnify-plus.svg +17 -0
  186. package/stat/assets/icons/magnify.svg +15 -0
  187. package/stat/assets/icons/pause.svg +23 -0
  188. package/stat/assets/icons/play.svg +22 -0
  189. package/stat/assets/icons/playback-speed.svg +34 -0
  190. package/stat/assets/icons/read-aloud.svg +22 -0
  191. package/stat/assets/icons/review.svg +22 -0
  192. package/stat/assets/icons/thumbnails.svg +17 -0
  193. package/stat/assets/icons/voice.svg +1 -0
  194. package/stat/assets/icons/volume-full.svg +22 -0
  195. package/stat/assets/images/BRicons.png +0 -0
  196. package/stat/assets/images/BRicons.svg +94 -0
  197. package/stat/assets/images/BRicons_ia.png +0 -0
  198. package/stat/assets/images/back_pages.png +0 -0
  199. package/stat/assets/images/book_bottom_icon.png +0 -0
  200. package/stat/assets/images/book_down_icon.png +0 -0
  201. package/stat/assets/images/book_left_icon.png +0 -0
  202. package/stat/assets/images/book_leftmost_icon.png +0 -0
  203. package/stat/assets/images/book_right_icon.png +0 -0
  204. package/stat/assets/images/book_rightmost_icon.png +0 -0
  205. package/stat/assets/images/book_top_icon.png +0 -0
  206. package/stat/assets/images/book_up_icon.png +0 -0
  207. package/stat/assets/images/books_graphic.svg +177 -0
  208. package/stat/assets/images/booksplit.png +0 -0
  209. package/stat/assets/images/control_pause_icon.png +0 -0
  210. package/stat/assets/images/control_play_icon.png +0 -0
  211. package/stat/assets/images/embed_icon.png +0 -0
  212. package/stat/assets/images/icon-home-ia.png +0 -0
  213. package/stat/assets/images/icon_OL-logo-xs.png +0 -0
  214. package/stat/assets/images/icon_alert-xs.png +0 -0
  215. package/stat/assets/images/icon_book.svg +12 -0
  216. package/stat/assets/images/icon_bookmark.svg +12 -0
  217. package/stat/assets/images/icon_close-pop.png +0 -0
  218. package/stat/assets/images/icon_download.png +0 -0
  219. package/stat/assets/images/icon_gear.svg +14 -0
  220. package/stat/assets/images/icon_hamburger.svg +20 -0
  221. package/stat/assets/images/icon_home.png +0 -0
  222. package/stat/assets/images/icon_home.svg +21 -0
  223. package/stat/assets/images/icon_home_ia.png +0 -0
  224. package/stat/assets/images/icon_indicator.png +0 -0
  225. package/stat/assets/images/icon_info.svg +11 -0
  226. package/stat/assets/images/icon_one_page.svg +8 -0
  227. package/stat/assets/images/icon_pause.svg +1 -0
  228. package/stat/assets/images/icon_play.svg +1 -0
  229. package/stat/assets/images/icon_playback-rate.svg +15 -0
  230. package/stat/assets/images/icon_return.png +0 -0
  231. package/stat/assets/images/icon_search_button.svg +8 -0
  232. package/stat/assets/images/icon_share.svg +9 -0
  233. package/stat/assets/images/icon_skip-ahead.svg +6 -0
  234. package/stat/assets/images/icon_skip-back.svg +13 -0
  235. package/stat/assets/images/icon_speaker.svg +18 -0
  236. package/stat/assets/images/icon_speaker_open.svg +10 -0
  237. package/stat/assets/images/icon_thumbnails.svg +12 -0
  238. package/stat/assets/images/icon_toc.svg +5 -0
  239. package/stat/assets/images/icon_two_pages.svg +9 -0
  240. package/stat/assets/images/icon_zoomer.png +0 -0
  241. package/stat/assets/images/loading.gif +0 -0
  242. package/stat/assets/images/logo_icon.png +0 -0
  243. package/stat/assets/images/marker_chap-off.png +0 -0
  244. package/stat/assets/images/marker_chap-off.svg +11 -0
  245. package/stat/assets/images/marker_chap-off_ia.png +0 -0
  246. package/stat/assets/images/marker_chap-on.png +0 -0
  247. package/stat/assets/images/marker_chap-on.svg +11 -0
  248. package/stat/assets/images/marker_srch-on.svg +11 -0
  249. package/stat/assets/images/marker_srchchap-off.png +0 -0
  250. package/stat/assets/images/marker_srchchap-on.png +0 -0
  251. package/stat/assets/images/nav_control-dn.png +0 -0
  252. package/stat/assets/images/nav_control-dn_ia.png +0 -0
  253. package/stat/assets/images/nav_control-up.png +0 -0
  254. package/stat/assets/images/nav_control-up_ia.png +0 -0
  255. package/stat/assets/images/nav_control.png +0 -0
  256. package/stat/assets/images/one_page_mode_icon.png +0 -0
  257. package/stat/assets/images/paper-badge.png +0 -0
  258. package/stat/assets/images/print_icon.png +0 -0
  259. package/stat/assets/images/progressbar.gif +0 -0
  260. package/stat/assets/images/right_edges.png +0 -0
  261. package/stat/assets/images/slider.png +0 -0
  262. package/stat/assets/images/slider_ia.png +0 -0
  263. package/stat/assets/images/thumbnail_mode_icon.png +0 -0
  264. package/stat/assets/images/transparent.png +0 -0
  265. package/stat/assets/images/two_page_mode_icon.png +0 -0
  266. package/stat/assets/images/zoom_in_icon.png +0 -0
  267. package/stat/assets/images/zoom_out_icon.png +0 -0
  268. package/stat/css/BookReader.scss +89 -0
  269. package/stat/css/_BRBookmarks.scss +29 -0
  270. package/stat/css/_BRComponent.scss +13 -0
  271. package/stat/css/_BRfloat.scss +197 -0
  272. package/stat/css/_BRicon.scss +48 -0
  273. package/stat/css/_BRmain.scss +251 -0
  274. package/stat/css/_BRnav.scss +359 -0
  275. package/stat/css/_BRpages.scss +139 -0
  276. package/stat/css/_BRsearch.scss +226 -0
  277. package/stat/css/_BRtoolbar.scss +84 -0
  278. package/stat/css/_BRvendor.scss +5 -0
  279. package/stat/css/_MobileNav.scss +194 -0
  280. package/stat/css/_TextSelection.scss +32 -0
  281. package/stat/css/_colorbox.scss +52 -0
  282. package/stat/css/_controls.scss +253 -0
  283. package/stat/css/_icons.scss +121 -0
  284. package/stat/jquery-wrapper.js +4 -0
  285. package/stat/plugins/plugin.archive_analytics.js +86 -0
  286. package/stat/plugins/plugin.autoplay.js +129 -0
  287. package/stat/plugins/plugin.chapters.js +248 -0
  288. package/stat/plugins/plugin.iframe.js +48 -0
  289. package/stat/plugins/plugin.mobile_nav.js +288 -0
  290. package/stat/plugins/plugin.resume.js +68 -0
  291. package/stat/plugins/plugin.text_selection.js +291 -0
  292. package/{src → stat}/plugins/plugin.url.js +4 -4
  293. package/stat/plugins/plugin.vendor-fullscreen.js +247 -0
  294. package/stat/plugins/search/plugin.search.js +439 -0
  295. package/stat/plugins/search/view.js +439 -0
  296. package/stat/plugins/tts/AbstractTTSEngine.js +249 -0
  297. package/stat/plugins/tts/FestivalTTSEngine.js +169 -0
  298. package/stat/plugins/tts/PageChunk.js +107 -0
  299. package/stat/plugins/tts/PageChunkIterator.js +163 -0
  300. package/stat/plugins/tts/WebTTSEngine.js +357 -0
  301. package/stat/plugins/tts/plugin.tts.js +357 -0
  302. package/stat/plugins/tts/tooltip_dict.js +15 -0
  303. package/stat/plugins/tts/utils.js +91 -0
  304. package/stat/util/browserSniffing.js +30 -0
  305. package/stat/util/debouncer.js +26 -0
  306. package/stat/util/docCookies.js +67 -0
  307. package/stat/util/strings.js +34 -0
  308. package/tests/e2e/README.md +37 -0
  309. package/tests/e2e/autoplay.test.js +2 -2
  310. package/tests/e2e/base.test.js +5 -7
  311. package/tests/e2e/helpers/base.js +8 -3
  312. package/tests/e2e/helpers/debug.js +1 -1
  313. package/tests/e2e/helpers/desktopSearch.js +1 -1
  314. package/tests/e2e/helpers/mobileSearch.js +3 -3
  315. package/tests/e2e/helpers/params.js +17 -0
  316. package/tests/e2e/rightToLeft.test.js +4 -5
  317. package/tests/e2e/viewmode.test.js +30 -31
  318. package/tests/{BookReader → jest/BookReader}/BookModel.test.js +3 -3
  319. package/tests/jest/BookReader/BookReaderPublicFunctions.test.js +176 -0
  320. package/tests/{BookReader → jest/BookReader}/DebugConsole.test.js +1 -1
  321. package/tests/{BookReader → jest/BookReader}/ImageCache.test.js +4 -4
  322. package/tests/jest/BookReader/Mode1UpLit.test.js +87 -0
  323. package/tests/{BookReader → jest/BookReader}/Mode2Up.test.js +5 -7
  324. package/tests/jest/BookReader/ModeSmoothZoom.test.js +149 -0
  325. package/tests/jest/BookReader/ModeThumb.test.js +71 -0
  326. package/tests/{BookReader → jest/BookReader}/Navbar/Navbar.test.js +7 -7
  327. package/tests/{BookReader → jest/BookReader}/PageContainer.test.js +74 -2
  328. package/tests/{BookReader → jest/BookReader}/ReduceSet.test.js +1 -1
  329. package/tests/{BookReader → jest/BookReader}/Toolbar/Toolbar.test.js +2 -2
  330. package/tests/jest/BookReader/utils/HTMLDimensionsCacher.test.js +59 -0
  331. package/tests/{BookReader → jest/BookReader}/utils/classes.test.js +1 -1
  332. package/tests/jest/BookReader/utils.test.js +136 -0
  333. package/tests/jest/BookReader.keyboard.test.js +190 -0
  334. package/tests/{BookReader.options.test.js → jest/BookReader.options.test.js} +9 -1
  335. package/tests/{BookReader.test.js → jest/BookReader.test.js} +20 -4
  336. package/tests/{plugins → jest/plugins}/plugin.archive_analytics.test.js +2 -2
  337. package/tests/{plugins → jest/plugins}/plugin.autoplay.test.js +2 -2
  338. package/tests/{plugins → jest/plugins}/plugin.chapters.test.js +8 -8
  339. package/tests/{plugins → jest/plugins}/plugin.iframe.test.js +2 -2
  340. package/tests/{plugins → jest/plugins}/plugin.mobile_nav.test.js +5 -5
  341. package/tests/{plugins → jest/plugins}/plugin.resume.test.js +3 -3
  342. package/tests/{plugins → jest/plugins}/plugin.text_selection.test.js +14 -24
  343. package/tests/{plugins → jest/plugins}/plugin.vendor-fullscreen.test.js +2 -2
  344. package/tests/{plugins → jest/plugins}/search/plugin.search.test.js +12 -5
  345. package/tests/{plugins → jest/plugins}/search/plugin.search.view.test.js +6 -6
  346. package/tests/{plugins → jest/plugins}/tts/AbstractTTSEngine.test.js +3 -3
  347. package/tests/{plugins → jest/plugins}/tts/FestivalTTSEngine.test.js +4 -4
  348. package/tests/{plugins → jest/plugins}/tts/PageChunk.test.js +1 -1
  349. package/tests/{plugins → jest/plugins}/tts/PageChunkIterator.test.js +3 -3
  350. package/tests/{plugins → jest/plugins}/tts/WebTTSEngine.test.js +1 -1
  351. package/tests/{plugins → jest/plugins}/tts/utils.test.js +3 -3
  352. package/tests/jest/plugins/url/UrlPlugin.test.js +175 -0
  353. package/tests/{plugins → jest/plugins/url}/plugin.url.test.js +33 -14
  354. package/tests/{util → jest/util}/browserSniffing.test.js +1 -1
  355. package/tests/{util → jest/util}/docCookies.test.js +1 -1
  356. package/tests/{util → jest/util}/strings.test.js +1 -1
  357. package/tests/{utils.js → jest/utils.js} +38 -0
  358. package/tests/karma/BookNavigator/book-navigator.test.js +485 -0
  359. package/tests/karma/BookNavigator/bookmarks/bookmark-button.test.js +44 -0
  360. package/tests/karma/BookNavigator/bookmarks/bookmark-edit.test.js +1 -3
  361. package/tests/karma/BookNavigator/bookmarks/bookmarks-list.test.js +1 -2
  362. package/tests/karma/BookNavigator/downloads/downloads-provider.test.js +67 -0
  363. package/tests/karma/BookNavigator/downloads/downloads.test.js +54 -0
  364. package/tests/karma/BookNavigator/search/search-provider.test.js +123 -0
  365. package/tests/karma/BookNavigator/{search-results.test.js → search/search-results.test.js} +1 -4
  366. package/tests/karma/BookNavigator/sharing/sharing-provider.test.js +49 -0
  367. package/tests/karma/BookNavigator/visual-adjustments.test.js +0 -2
  368. package/tests/karma/BookNavigator/volumes/volumes-provider.test.js +184 -0
  369. package/tests/karma/BookNavigator/volumes/volumes.test.js +98 -0
  370. package/webpack.config.js +11 -5
  371. package/.babelrc +0 -12
  372. package/.dependabot/config.yml +0 -6
  373. package/.testcaferc.json +0 -5
  374. package/BookReader/BookReader.js.LICENSE.txt +0 -72
  375. package/BookReader/bookreader-component-bundle.js +0 -1450
  376. package/BookReader/bookreader-component-bundle.js.LICENSE.txt +0 -38
  377. package/BookReader/bookreader-component-bundle.js.map +0 -1
  378. package/BookReader/jquery-1.10.1.js.LICENSE.txt +0 -24
  379. package/BookReader/plugins/plugin.menu_toggle.js +0 -2
  380. package/BookReader/plugins/plugin.menu_toggle.js.map +0 -1
  381. package/BookReader/plugins/plugin.tts.js.LICENSE.txt +0 -27
  382. package/BookReaderDemo/demo-plugin-menu-toggle.html +0 -34
  383. package/src/BookNavigator/assets/book-loader.js +0 -27
  384. package/src/ItemNavigator/ItemNavigator.js +0 -372
  385. package/src/ItemNavigator/providers/sharing.js +0 -29
  386. package/src/dragscrollable-br.js +0 -261
  387. package/src/plugins/menu_toggle/plugin.menu_toggle.js +0 -324
  388. package/tests/BookReader/BookReaderPublicFunctions.test.js +0 -171
  389. package/tests/BookReader/Mode1Up.test.js +0 -164
  390. package/tests/BookReader/utils.test.js +0 -109
  391. package/tests/plugins/menu_toggle/plugin.menu_toggle.test.js +0 -68
@@ -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>
@@ -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>
@@ -9,7 +9,6 @@ $brColorThemeBlue2: #4990E2;
9
9
  $brColorThemeBlue3: rgb(74,144,226);
10
10
  $brColorThemeBlueDarker: rgb(36,94,131);
11
11
  $brColorDarkGreyBg: #333;
12
- // $brColorMainBg: #3a3b3b;
13
12
  $brColorMainBg: black;
14
13
 
15
14
  $brColorBirdBook: #FEFDEB;
@@ -17,18 +16,10 @@ $brColorPlaceholderBg: $brColorBirdBook;
17
16
 
18
17
  // "Controls" are the navbar and toolbar
19
18
 
20
- $brColorControlsLightFont: black;
21
- $brColorControlsDarkFont: white;
22
- $brColorControlsDarkBg: $brColorDarkGreyBg; // TODO
23
19
  $brColorControlsLightBg: white;
24
20
  $brColorLightBorder: #979797;
25
21
  $brColorDarkBorder: #4D4D4D;
26
22
 
27
- $brColorMobileMenuBg: rgb(247,247,247);
28
- $brColorMobileMenuBg: white;
29
- $brColorMobileMenuTitle: black;
30
- $brColorMobileMenuLink: black;
31
-
32
23
  $brNavHeightDesktop: 34px; //40px; //34px;
33
24
  $brNavHeightMobile: $brNavHeightDesktop;
34
25
 
@@ -53,10 +44,7 @@ $mediumBlue: #428bca;
53
44
  $lightBlue: #adaedc;
54
45
  $controlsText: $white;
55
46
  $controlsBG: $gray20;
56
- $iconFill: $white;
57
- $iconActiveFill: $gray20;
58
47
  $iconStroke: $white;
59
- $iconActiveStroke: $gray20;
60
48
  $tooltipBG: $gray20;
61
49
  $activeButtonBG: $white;
62
50
  $controlsBorder: $gray13;
@@ -2,7 +2,7 @@
2
2
  * Hide modal-manager that loads item-navigator-modal
3
3
  * loading bookmarks related alert messages
4
4
  */
5
- #item-navigator-modal {
5
+ modal-manager[mode="closed"] {
6
6
  display: none
7
7
  }
8
8
 
@@ -7,37 +7,13 @@
7
7
 
8
8
 
9
9
  /* Some helper functional css utilities */
10
- .tl { text-align: left; }
11
- .tc, .BRtc { text-align: center; }
12
- .tr { text-align: right; }
13
- .ph10 { padding-left: 10px; padding-right: 10px; }
14
- .mv20 { margin-top: 20px; margin-bottom: 20px; }
15
- .mt20 { margin-top: 20px; }
16
- .b { font-weight: bold; }
17
- .i { font-style: italic; }
18
- .smaller { font-size: .8em; }
19
10
  .larger { font-size: 1.2em; }
20
- .loader {
21
- background: url(images/loading.gif) no-repeat 50%;
22
- height: 16px;
23
- min-width: 16px;
24
- }
25
11
 
26
12
  /* Desktop-only */
27
13
  @media (min-width: ($brBreakPointMobile + 1)) {
28
- .mobile-only { display: none; }
29
- .pv20-lg { padding-top: 20px; padding-bottom: 20px; }
30
- .pv50-lg { padding-top: 50px; padding-bottom: 50px; }
31
14
  .mv20-lg { margin-top: 20px; margin-bottom: 20px; }
32
15
  }
33
16
 
34
- @media (max-width: $brBreakPointMobile) {
35
- .desktop-only { display: none; }
36
- }
37
- @media (min-width: $brBreakPointMobile) and (max-width: $brBreakPointMid) {
38
- .hide-md { display: none; }
39
- }
40
-
41
17
  /* Element-level rules */
42
18
  h3 {
43
19
  font-size: 20px;
@@ -67,6 +43,8 @@
67
43
  position: relative;
68
44
  overflow: hidden;
69
45
  background-color: $brColorMainBg;
46
+
47
+ contain: strict;
70
48
  }
71
49
 
72
50
  .BRcontainer {
@@ -90,6 +68,23 @@
90
68
  border: 2px solid #999;
91
69
  z-index: $brZindexPopup;
92
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
+ }
93
88
  }
94
89
 
95
90
  .BRprogressbar {
@@ -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 / 4);
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 / 2) - 4px;
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 / 2) - 5px;
346
+ top: math.div($brNavHeightMobile, 2) - 5px;
369
347
  }
370
348
  }
371
349
 
@@ -17,6 +17,28 @@
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,6 +70,19 @@
48
70
  }
49
71
  }
50
72
 
73
+ svg.BRPageLayer {
74
+ position: absolute;
75
+ top: 0;
76
+ left: 0;
77
+ right: 0;
78
+ bottom: 0;
79
+ }
80
+
81
+ // Hides page layers during page flip animation
82
+ .BRpageFlipping .BRPageLayer {
83
+ display: none;
84
+ }
85
+
51
86
  .BRbookcover {
52
87
  position: absolute;
53
88
  background-image: none;
@@ -25,16 +25,18 @@
25
25
  }
26
26
 
27
27
  #{$brScope} {
28
- .BookReaderSearchHilite {
29
- opacity: 0.20;
30
- filter: alpha(opacity = 20);
31
- background-color: #0000ff;
32
- position: absolute;
33
- /* z-index is important */
34
- z-index: $brZindexBase + 3;
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;
35
32
 
36
- animation: hiliteFadeIn .2s;
33
+ rect {
34
+ fill: #0000ff;
35
+ fill-opacity: 0.2;
36
+ animation: hiliteFadeIn .2s;
37
+ }
37
38
  }
39
+
38
40
  .BRchapter, .BRsearch {
39
41
  position: absolute;
40
42
  bottom: 0; /* Relative to nav line */
@@ -145,211 +147,6 @@
145
147
  }
146
148
  }
147
149
 
148
- .BRbooksearch.mobile {
149
- position: relative;
150
- top: 0;
151
- display: flex;
152
- flex-direction: row;
153
-
154
- .BRsearchInput {
155
- -webkit-appearance: none;
156
- position: relative;
157
- min-width: 100px;
158
- float: left;
159
- font-size: $brFontSizeBase;
160
- width: 150px;
161
- height: 30px;
162
- border: 1px solid $brColorLightBorder;
163
- flex: 1;
164
- border-radius: 0;
165
- }
166
- .BRsearchSubmit {
167
- width: 30px;
168
- height: 30px;
169
- border: none;
170
- background-color: $brColorThemeblue;
171
- background-image: url("images/icon_search_button.svg");
172
- background-repeat: no-repeat;
173
- background-position: center center;
174
-
175
- text-align: center;
176
- color: white;
177
- overflow: hidden;
178
- box-sizing: border-box;
179
- display: inline-block;
180
- }
181
- }
182
-
183
- #BRsearch_tray {
184
- --menuSliderBg: #151515;
185
- --primaryTextColor: #fff;
186
- --activeButtonBg: #282828;
187
- --searchResultText: #adaedc;
188
- --searchResultBg: #272958;
189
- --searchResultBorder: #fff;
190
- position: absolute;
191
- top: 0;
192
- right: 0;
193
- bottom: 0;
194
- left: 0;
195
- padding: 15px 10px;
196
- overflow-y: auto;
197
- font-size: 14px;
198
- color: var(--primaryTextColor);
199
- background: var(--menuSliderBg);
200
-
201
- header {
202
- display: flex;
203
- justify-content: space-between;
204
- align-items: center;
205
- }
206
-
207
- h3 {
208
- padding: 0;
209
- margin: 0 10px 0 0;
210
- font-size: 20px;
211
- }
212
-
213
- header p {
214
- display: none;
215
- padding: 0;
216
- margin: 0;
217
- font-size: 12px;
218
- font-weight: bold;
219
- font-style: italic;
220
- }
221
- header p.visible {
222
- display: block;
223
- }
224
-
225
- header div {
226
- display: flex;
227
- align-items: baseline;
228
- }
229
-
230
- a.close {
231
- justify-self: end;
232
- }
233
-
234
- fieldset {
235
- padding: 20px 0 10px 0;
236
- border: none;
237
- }
238
-
239
- [type="checkbox"] {
240
- display: none;
241
- }
242
-
243
- #all_files {
244
- display: none;
245
- + label {
246
- display: none;
247
- }
248
- }
249
-
250
- label {
251
- display: block;
252
- text-align: center;
253
- }
254
-
255
- label.checkbox {
256
- padding-bottom: 5px;
257
- font-size: 16px;
258
- line-height: 150%;
259
- vertical-align: middle;
260
- }
261
-
262
- label.checkbox:after {
263
- display: inline-block;
264
- width: 14px;
265
- height: 14px;
266
- margin-left: 7px;
267
- content: "";
268
- color: var(--primaryTextColor);
269
- border: 1px solid var(--primaryTextColor);
270
- border-radius: 2px;
271
- background: var(--activeButtonBg) 50% 50% no-repeat;
272
- }
273
- :checked + label.checkbox:after {
274
- background-image: url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEwIiB2aWV3Qm94PSIwIDAgMTMgMTAiIHdpZHRoPSIxMyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNC4zMzMzMzMzMyAxMC00LjMzMzMzMzMzLTQuMTY2NjY2NjcgMS43MzMzMzMzMy0xLjY2NjY2NjY2IDIuNiAyLjUgNi45MzMzMzMzNy02LjY2NjY2NjY3IDEuNzMzMzMzMyAxLjY2NjY2NjY3eiIgZmlsbD0iI2ZmZiIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+');
275
- }
276
-
277
- [type="search"] {
278
- -webkit-appearance: textfield;
279
- width: 100%;
280
- height: 22px;
281
- padding: 0 15px;
282
- box-sizing: border-box;
283
- font: normal 16px "Helvetica Neue", Helvetica, Arial, sans-serif;
284
- color: var(--primaryTextColor);
285
- border: 1px solid var(--primaryTextColor);
286
- border-radius: 15px;
287
- background: transparent;
288
- }
289
- [type="search"]:focus {
290
- outline: none;
291
- }
292
- [type="search"]::-webkit-search-cancel-button {
293
- width: 18px;
294
- height: 18px;
295
- -webkit-appearance: none;
296
- appearance: none;
297
- /* Uses an X SVG shape as a mask */
298
- -webkit-mask: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDAgNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJjbG9zZVRpdGxlSUQgY2xvc2VEZXNjSUQiPjxwYXRoIGQ9Ik0yOS4xOTIgMTAuODA4YTEuNSAxLjUgMCAwMTAgMi4xMkwyMi4xMjIgMjBsNy4wNyA3LjA3MmExLjUgMS41IDAgMDEtMi4xMiAyLjEyMWwtNy4wNzMtNy4wNy03LjA3IDcuMDdhMS41IDEuNSAwIDAxLTIuMTIxLTIuMTJsNy4wNy03LjA3My03LjA3LTcuMDdhMS41IDEuNSAwIDAxMi4xMi0yLjEyMUwyMCAxNy44NzhsNy4wNzItNy4wN2ExLjUgMS41IDAgMDEyLjEyMSAweiIgY2xhc3M9ImZpbGwtY29sb3IiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==') 0 0 no-repeat;
299
- mask: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDAgNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJjbG9zZVRpdGxlSUQgY2xvc2VEZXNjSUQiPjxwYXRoIGQ9Ik0yOS4xOTIgMTAuODA4YTEuNSAxLjUgMCAwMTAgMi4xMkwyMi4xMjIgMjBsNy4wNyA3LjA3MmExLjUgMS41IDAgMDEtMi4xMiAyLjEyMWwtNy4wNzMtNy4wNy03LjA3IDcuMDdhMS41IDEuNSAwIDAxLTIuMTIxLTIuMTJsNy4wNy03LjA3My03LjA3LTcuMDdhMS41IDEuNSAwIDAxMi4xMi0yLjEyMUwyMCAxNy44NzhsNy4wNzItNy4wN2ExLjUgMS41IDAgMDEyLjEyMSAweiIgY2xhc3M9ImZpbGwtY29sb3IiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==') 0 0 no-repeat;
300
- -webkit-mask-size: 100%;
301
- mask-size: 100%;
302
- background: #fff;
303
- }
304
-
305
- ul {
306
- padding: 0;
307
- margin: 0;
308
- list-style: none;
309
- }
310
-
311
- li {
312
- margin-bottom: 20px;
313
- border-bottom: 1px solid $white;
314
- &:after {
315
- display: none;
316
- }
317
- }
318
-
319
- li img {
320
- display: block;
321
- width: 100%;
322
- }
323
-
324
- li h4 {
325
- padding: 0 0 20px 0;
326
- margin: 0;
327
- font-size: 14px;
328
- font-weight: normal;
329
- }
330
-
331
- li p {
332
- padding: 0 0 15px 0;
333
- margin: 0;
334
- font-size: 12px;
335
- }
336
-
337
- mark {
338
- padding: 0 2px;
339
- color: var(--searchResultText);
340
- background: var(--searchResultBg);
341
- border: 1px solid var(--searchResultBorder);
342
- border-radius: 2px;
343
- }
344
-
345
- #search_pending {
346
- display: none;
347
- }
348
- #search_pending.visible {
349
- display: block;
350
- }
351
- }
352
-
353
150
  .BRsearch-navigation {
354
151
  position: relative;
355
152
  z-index: 1;
@@ -411,8 +208,7 @@
411
208
  }
412
209
 
413
210
  @keyframes hiliteFadeIn {
414
- from { opacity: 0; }
415
- to { opacity: 0.2; }
211
+ from { fill-opacity: 0; }
416
212
  }
417
213
 
418
214
  /* Mid size breakpoint */
@@ -1,9 +1,4 @@
1
1
  .textSelectionSVG {
2
- width: 100%;
3
- position: absolute;
4
- height: 100%;
5
- top: 0;
6
- left: 0;
7
2
  // Make it so right-clicking on "blank" part of svg sends events to the image (for saving)
8
3
  pointer-events: none;
9
4
  .BRwordElement { pointer-events: all; }
@@ -22,10 +17,9 @@
22
17
  }
23
18
 
24
19
  .BRparagElement {
25
- fill: red;
20
+ fill: transparent;
26
21
  cursor: text;
27
22
  white-space: pre;
28
- fill-opacity: 0;
29
23
  font-family: Georgia, serif;
30
24
  }
31
25
  }
@@ -36,13 +30,3 @@
36
30
  -moz-user-select: none;
37
31
  user-select: none;
38
32
  }
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
- }
@@ -28,8 +28,7 @@
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;
@@ -40,12 +39,22 @@
40
39
  color: $controlsText;
41
40
  border: none;
42
41
  cursor: pointer;
43
- background: transparent url("icons/playback-speed.svg") 50% 0 no-repeat;
44
42
  option {
45
43
  background: $controlsBG;
46
44
  }
47
45
  }
48
46
 
47
+ select.playback-speed {
48
+ width: 30px;
49
+ background: transparent url("icons/playback-speed.svg") 50% 0 no-repeat;
50
+ }
51
+
52
+ select.playback-voices {
53
+ width: 30px;
54
+ background: transparent url("icons/voice.svg") 50% 0 no-repeat;
55
+ background-size: 18px;
56
+ }
57
+
49
58
  .active {
50
59
  background: $activeButtonBG;
51
60
  }
@@ -100,6 +109,10 @@
100
109
  &.visible {
101
110
  display: flex;
102
111
  animation: slideUp 0.2s;
112
+ button {
113
+ width: unset;
114
+ height: unset;
115
+ }
103
116
  }
104
117
 
105
118
  li {
@@ -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
+ }