@internetarchive/bookreader 5.0.0-8 → 5.0.0-80

Sign up to get free protection for your applications and to get access to all the features.
Files changed (313) hide show
  1. package/.eslintrc.js +17 -15
  2. package/.github/workflows/node.js.yml +73 -10
  3. package/.github/workflows/npm-publish.yml +6 -20
  4. package/.testcaferc.js +10 -0
  5. package/BookReader/BookReader.css +398 -1133
  6. package/BookReader/BookReader.js +1 -1
  7. package/BookReader/BookReader.js.LICENSE.txt +20 -20
  8. package/BookReader/BookReader.js.map +1 -1
  9. package/BookReader/ia-bookreader-bundle.js +1782 -0
  10. package/BookReader/ia-bookreader-bundle.js.LICENSE.txt +7 -0
  11. package/BookReader/ia-bookreader-bundle.js.map +1 -0
  12. package/BookReader/icons/1up.svg +1 -1
  13. package/BookReader/icons/2up.svg +1 -1
  14. package/BookReader/icons/advance.svg +1 -1
  15. package/BookReader/icons/chevron-right.svg +1 -1
  16. package/BookReader/icons/close-circle-dark.svg +1 -1
  17. package/BookReader/icons/close-circle.svg +1 -1
  18. package/BookReader/icons/fullscreen.svg +1 -1
  19. package/BookReader/icons/fullscreen_exit.svg +1 -1
  20. package/BookReader/icons/hamburger.svg +1 -1
  21. package/BookReader/icons/left-arrow.svg +1 -1
  22. package/BookReader/icons/magnify-minus.svg +1 -1
  23. package/BookReader/icons/magnify-plus.svg +1 -1
  24. package/BookReader/icons/magnify.svg +1 -1
  25. package/BookReader/icons/pause.svg +1 -1
  26. package/BookReader/icons/play.svg +1 -1
  27. package/BookReader/icons/playback-speed.svg +1 -1
  28. package/BookReader/icons/read-aloud.svg +1 -1
  29. package/BookReader/icons/review.svg +1 -1
  30. package/BookReader/icons/thumbnails.svg +1 -1
  31. package/BookReader/icons/voice.svg +1 -0
  32. package/BookReader/icons/volume-full.svg +1 -1
  33. package/BookReader/images/BRicons.svg +3 -3
  34. package/BookReader/images/books_graphic.svg +1 -1
  35. package/BookReader/images/icon_book.svg +1 -1
  36. package/BookReader/images/icon_bookmark.svg +1 -1
  37. package/BookReader/images/icon_gear.svg +1 -1
  38. package/BookReader/images/icon_hamburger.svg +1 -1
  39. package/BookReader/images/icon_home.svg +1 -1
  40. package/BookReader/images/icon_info.svg +1 -1
  41. package/BookReader/images/icon_one_page.svg +1 -1
  42. package/BookReader/images/icon_pause.svg +1 -1
  43. package/BookReader/images/icon_play.svg +1 -1
  44. package/BookReader/images/icon_playback-rate.svg +1 -1
  45. package/BookReader/images/icon_search_button.svg +1 -1
  46. package/BookReader/images/icon_share.svg +1 -1
  47. package/BookReader/images/icon_skip-ahead.svg +1 -1
  48. package/BookReader/images/icon_skip-back.svg +1 -1
  49. package/BookReader/images/icon_speaker.svg +1 -1
  50. package/BookReader/images/icon_speaker_open.svg +1 -1
  51. package/BookReader/images/icon_thumbnails.svg +1 -1
  52. package/BookReader/images/icon_toc.svg +1 -1
  53. package/BookReader/images/icon_two_pages.svg +1 -1
  54. package/BookReader/images/marker_chap-off.svg +1 -1
  55. package/BookReader/images/marker_chap-on.svg +1 -1
  56. package/BookReader/images/marker_srch-on.svg +1 -1
  57. package/BookReader/jquery-3.js +2 -0
  58. package/BookReader/jquery-3.js.LICENSE.txt +24 -0
  59. package/BookReader/plugins/plugin.archive_analytics.js +1 -1
  60. package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
  61. package/BookReader/plugins/plugin.autoplay.js +1 -1
  62. package/BookReader/plugins/plugin.autoplay.js.map +1 -1
  63. package/BookReader/plugins/plugin.chapters.js +25 -1
  64. package/BookReader/plugins/plugin.chapters.js.LICENSE.txt +1 -0
  65. package/BookReader/plugins/plugin.chapters.js.map +1 -1
  66. package/BookReader/plugins/plugin.iframe.js +1 -1
  67. package/BookReader/plugins/plugin.iframe.js.map +1 -1
  68. package/BookReader/plugins/plugin.iiif.js +2 -0
  69. package/BookReader/plugins/plugin.iiif.js.map +1 -0
  70. package/BookReader/plugins/plugin.resume.js +1 -1
  71. package/BookReader/plugins/plugin.resume.js.map +1 -1
  72. package/BookReader/plugins/plugin.search.js +2 -1
  73. package/BookReader/plugins/plugin.search.js.LICENSE.txt +1 -0
  74. package/BookReader/plugins/plugin.search.js.map +1 -1
  75. package/BookReader/plugins/plugin.text_selection.js +2 -1
  76. package/BookReader/plugins/plugin.text_selection.js.LICENSE.txt +1 -0
  77. package/BookReader/plugins/plugin.text_selection.js.map +1 -1
  78. package/BookReader/plugins/plugin.tts.js +1 -1
  79. package/BookReader/plugins/plugin.tts.js.LICENSE.txt +2 -0
  80. package/BookReader/plugins/plugin.tts.js.map +1 -1
  81. package/BookReader/plugins/plugin.url.js +1 -1
  82. package/BookReader/plugins/plugin.url.js.map +1 -1
  83. package/BookReader/plugins/plugin.vendor-fullscreen.js +1 -1
  84. package/BookReader/plugins/plugin.vendor-fullscreen.js.map +1 -1
  85. package/BookReader/webcomponents-bundle.js +3 -0
  86. package/BookReader/webcomponents-bundle.js.LICENSE.txt +9 -0
  87. package/BookReader/webcomponents-bundle.js.map +1 -0
  88. package/BookReaderDemo/BookReaderDemo.css +18 -19
  89. package/BookReaderDemo/BookReaderJSAdvanced.js +0 -3
  90. package/BookReaderDemo/BookReaderJSAutoplay.js +4 -1
  91. package/BookReaderDemo/BookReaderJSSimple.js +1 -0
  92. package/BookReaderDemo/IADemoBr.js +147 -0
  93. package/BookReaderDemo/demo-advanced.html +2 -2
  94. package/BookReaderDemo/demo-autoplay.html +2 -3
  95. package/BookReaderDemo/demo-embed-iframe-src.html +2 -1
  96. package/BookReaderDemo/demo-fullscreen-mobile.html +3 -5
  97. package/BookReaderDemo/demo-fullscreen.html +2 -4
  98. package/BookReaderDemo/demo-iiif.html +99 -12
  99. package/BookReaderDemo/demo-internetarchive.html +214 -18
  100. package/BookReaderDemo/demo-multiple.html +2 -1
  101. package/BookReaderDemo/demo-preview-pages.html +2 -1
  102. package/BookReaderDemo/demo-simple.html +2 -1
  103. package/BookReaderDemo/demo-vendor-fullscreen.html +2 -4
  104. package/BookReaderDemo/ia-multiple-volumes-manifest.js +170 -0
  105. package/BookReaderDemo/immersion-1up.html +2 -2
  106. package/BookReaderDemo/immersion-mode.html +2 -4
  107. package/BookReaderDemo/toggle_controls.html +3 -2
  108. package/BookReaderDemo/view_mode.html +2 -1
  109. package/BookReaderDemo/viewmode-cycle.html +2 -3
  110. package/CHANGELOG.md +536 -33
  111. package/README.md +14 -1
  112. package/babel.config.js +20 -0
  113. package/codecov.yml +6 -0
  114. package/index.html +4 -1
  115. package/jsconfig.json +19 -0
  116. package/netlify.toml +9 -0
  117. package/package.json +70 -60
  118. package/renovate.json +52 -0
  119. package/scripts/preversion.js +0 -1
  120. package/src/BookNavigator/assets/bookmark-colors.js +1 -1
  121. package/src/BookNavigator/assets/button-base.js +4 -2
  122. package/src/BookNavigator/assets/ia-logo.js +17 -0
  123. package/src/BookNavigator/assets/icon_checkmark.js +1 -1
  124. package/src/BookNavigator/assets/icon_close.js +1 -1
  125. package/src/BookNavigator/book-navigator.js +590 -0
  126. package/src/BookNavigator/bookmarks/bookmark-button.js +3 -2
  127. package/src/BookNavigator/bookmarks/bookmark-edit.js +3 -4
  128. package/src/BookNavigator/bookmarks/bookmarks-list.js +2 -3
  129. package/src/BookNavigator/bookmarks/bookmarks-loginCTA.js +3 -8
  130. package/src/BookNavigator/bookmarks/bookmarks-provider.js +27 -17
  131. package/src/BookNavigator/bookmarks/ia-bookmarks.js +116 -67
  132. package/src/BookNavigator/delete-modal-actions.js +1 -1
  133. package/src/BookNavigator/downloads/downloads-provider.js +36 -21
  134. package/src/BookNavigator/downloads/downloads.js +41 -25
  135. package/src/BookNavigator/search/search-provider.js +49 -27
  136. package/src/BookNavigator/search/search-results.js +23 -9
  137. package/src/BookNavigator/sharing.js +27 -0
  138. package/src/BookNavigator/viewable-files.js +95 -0
  139. package/src/BookNavigator/visual-adjustments/visual-adjustments-provider.js +11 -10
  140. package/src/BookNavigator/visual-adjustments/visual-adjustments.js +3 -3
  141. package/src/BookReader/BookModel.js +64 -34
  142. package/src/BookReader/DragScrollable.js +233 -0
  143. package/src/BookReader/Mode1Up.js +56 -351
  144. package/src/BookReader/Mode1UpLit.js +388 -0
  145. package/src/BookReader/Mode2Up.js +73 -1318
  146. package/src/BookReader/Mode2UpLit.js +776 -0
  147. package/src/BookReader/ModeCoordinateSpace.js +29 -0
  148. package/src/BookReader/ModeSmoothZoom.js +312 -0
  149. package/src/BookReader/ModeThumb.js +18 -12
  150. package/src/BookReader/Navbar/Navbar.js +14 -40
  151. package/src/BookReader/PageContainer.js +81 -6
  152. package/src/BookReader/ReduceSet.js +1 -1
  153. package/src/BookReader/Toolbar/Toolbar.js +10 -37
  154. package/src/BookReader/events.js +2 -3
  155. package/src/BookReader/options.js +27 -2
  156. package/src/BookReader/utils/HTMLDimensionsCacher.js +44 -0
  157. package/src/BookReader/utils/ScrollClassAdder.js +31 -0
  158. package/src/BookReader/utils/SelectionObserver.js +45 -0
  159. package/src/BookReader/utils.js +118 -13
  160. package/src/BookReader.js +427 -1061
  161. package/src/assets/icons/magnify-minus.svg +3 -7
  162. package/src/assets/icons/magnify-plus.svg +3 -7
  163. package/src/assets/icons/voice.svg +1 -0
  164. package/src/css/BookReader.scss +1 -5
  165. package/src/css/_BRBookmarks.scss +1 -1
  166. package/src/css/_BRComponent.scss +1 -1
  167. package/src/css/_BRmain.scss +16 -3
  168. package/src/css/_BRnav.scss +12 -39
  169. package/src/css/_BRpages.scss +149 -40
  170. package/src/css/_BRsearch.scss +68 -25
  171. package/src/css/_BRtoolbar.scss +5 -5
  172. package/src/css/_TextSelection.scss +87 -27
  173. package/src/css/_colorbox.scss +2 -2
  174. package/src/css/_controls.scss +20 -7
  175. package/src/css/_icons.scss +1 -1
  176. package/src/ia-bookreader/ia-bookreader.js +224 -0
  177. package/src/plugins/plugin.archive_analytics.js +3 -3
  178. package/src/plugins/plugin.autoplay.js +5 -11
  179. package/src/plugins/plugin.chapters.js +237 -191
  180. package/src/plugins/plugin.iiif.js +151 -0
  181. package/src/plugins/plugin.resume.js +3 -3
  182. package/src/plugins/plugin.text_selection.js +464 -134
  183. package/src/plugins/plugin.vendor-fullscreen.js +4 -4
  184. package/src/plugins/search/plugin.search.js +142 -125
  185. package/src/plugins/search/utils.js +43 -0
  186. package/src/plugins/search/view.js +33 -58
  187. package/src/plugins/tts/AbstractTTSEngine.js +71 -40
  188. package/src/plugins/tts/FestivalTTSEngine.js +13 -14
  189. package/src/plugins/tts/PageChunk.js +15 -21
  190. package/src/plugins/tts/PageChunkIterator.js +8 -12
  191. package/src/plugins/tts/WebTTSEngine.js +87 -71
  192. package/src/plugins/tts/plugin.tts.js +96 -127
  193. package/src/plugins/tts/utils.js +15 -25
  194. package/src/plugins/url/UrlPlugin.js +191 -0
  195. package/src/plugins/{plugin.url.js → url/plugin.url.js} +45 -16
  196. package/src/util/browserSniffing.js +22 -0
  197. package/src/util/docCookies.js +21 -2
  198. package/tests/e2e/README.md +37 -0
  199. package/tests/e2e/autoplay.test.js +2 -2
  200. package/tests/e2e/base.test.js +8 -16
  201. package/tests/e2e/helpers/base.js +53 -48
  202. package/tests/e2e/helpers/debug.js +1 -1
  203. package/tests/e2e/helpers/params.js +17 -0
  204. package/tests/e2e/helpers/rightToLeft.js +8 -14
  205. package/tests/e2e/helpers/search.js +73 -0
  206. package/tests/e2e/models/Navigation.js +20 -37
  207. package/tests/e2e/rightToLeft.test.js +4 -5
  208. package/tests/e2e/viewmode.test.js +40 -33
  209. package/tests/jest/BookNavigator/book-navigator.test.js +661 -0
  210. package/tests/jest/BookNavigator/bookmarks/bookmark-button.test.js +43 -0
  211. package/tests/{karma → jest}/BookNavigator/bookmarks/bookmark-edit.test.js +25 -26
  212. package/tests/{karma → jest}/BookNavigator/bookmarks/bookmarks-list.test.js +41 -42
  213. package/tests/jest/BookNavigator/bookmarks/ia-bookmarks.test.js +45 -0
  214. package/tests/jest/BookNavigator/downloads/downloads-provider.test.js +67 -0
  215. package/tests/jest/BookNavigator/downloads/downloads.test.js +53 -0
  216. package/tests/jest/BookNavigator/search/search-provider.test.js +167 -0
  217. package/tests/{karma → jest}/BookNavigator/search/search-results.test.js +109 -60
  218. package/tests/jest/BookNavigator/sharing/sharing-provider.test.js +49 -0
  219. package/tests/jest/BookNavigator/viewable-files/viewable-files-provider.test.js +80 -0
  220. package/tests/jest/BookNavigator/visual-adjustments.test.js +200 -0
  221. package/tests/{BookReader → jest/BookReader}/BookModel.test.js +74 -14
  222. package/tests/jest/BookReader/BookReaderPublicFunctions.test.js +193 -0
  223. package/tests/{BookReader → jest/BookReader}/ImageCache.test.js +4 -4
  224. package/tests/jest/BookReader/Mode1UpLit.test.js +73 -0
  225. package/tests/jest/BookReader/Mode2Up.test.js +98 -0
  226. package/tests/jest/BookReader/Mode2UpLit.test.js +190 -0
  227. package/tests/jest/BookReader/ModeCoordinateSpace.test.js +16 -0
  228. package/tests/jest/BookReader/ModeSmoothZoom.test.js +218 -0
  229. package/tests/jest/BookReader/ModeThumb.test.js +71 -0
  230. package/tests/{BookReader → jest/BookReader}/Navbar/Navbar.test.js +10 -10
  231. package/tests/{BookReader → jest/BookReader}/PageContainer.test.js +88 -6
  232. package/tests/{BookReader → jest/BookReader}/ReduceSet.test.js +1 -1
  233. package/tests/{BookReader → jest/BookReader}/Toolbar/Toolbar.test.js +2 -2
  234. package/tests/jest/BookReader/utils/HTMLDimensionsCacher.test.js +59 -0
  235. package/tests/jest/BookReader/utils/ScrollClassAdder.test.js +49 -0
  236. package/tests/jest/BookReader/utils/SelectionObserver.test.js +57 -0
  237. package/tests/{BookReader → jest/BookReader}/utils/classes.test.js +1 -1
  238. package/tests/jest/BookReader/utils.test.js +229 -0
  239. package/tests/jest/BookReader.keyboard.test.js +190 -0
  240. package/tests/{BookReader.options.test.js → jest/BookReader.options.test.js} +9 -1
  241. package/tests/{BookReader.test.js → jest/BookReader.test.js} +26 -37
  242. package/tests/{plugins → jest/plugins}/plugin.archive_analytics.test.js +2 -2
  243. package/tests/{plugins → jest/plugins}/plugin.autoplay.test.js +4 -4
  244. package/tests/jest/plugins/plugin.chapters.test.js +195 -0
  245. package/tests/{plugins → jest/plugins}/plugin.iframe.test.js +2 -2
  246. package/tests/{plugins → jest/plugins}/plugin.resume.test.js +3 -3
  247. package/tests/jest/plugins/plugin.text_selection.test.js +317 -0
  248. package/tests/{plugins → jest/plugins}/plugin.vendor-fullscreen.test.js +2 -2
  249. package/tests/{plugins → jest/plugins}/search/plugin.search.test.js +25 -47
  250. package/tests/{plugins → jest/plugins}/search/plugin.search.view.test.js +39 -6
  251. package/tests/jest/plugins/search/utils.js +25 -0
  252. package/tests/jest/plugins/search/utils.test.js +29 -0
  253. package/tests/{plugins → jest/plugins}/tts/AbstractTTSEngine.test.js +29 -9
  254. package/tests/{plugins → jest/plugins}/tts/FestivalTTSEngine.test.js +4 -4
  255. package/tests/{plugins → jest/plugins}/tts/PageChunk.test.js +1 -1
  256. package/tests/{plugins → jest/plugins}/tts/PageChunkIterator.test.js +3 -3
  257. package/tests/{plugins → jest/plugins}/tts/WebTTSEngine.test.js +47 -1
  258. package/tests/{plugins → jest/plugins}/tts/utils.test.js +1 -60
  259. package/tests/jest/plugins/url/UrlPlugin.test.js +198 -0
  260. package/tests/{plugins → jest/plugins/url}/plugin.url.test.js +53 -14
  261. package/tests/jest/setup.js +3 -0
  262. package/tests/{util → jest/util}/browserSniffing.test.js +1 -1
  263. package/tests/jest/util/docCookies.test.js +24 -0
  264. package/tests/{util → jest/util}/strings.test.js +1 -1
  265. package/tests/{utils.js → jest/utils.js} +38 -0
  266. package/webpack.config.js +12 -6
  267. package/.babelrc +0 -12
  268. package/.dependabot/config.yml +0 -6
  269. package/.testcaferc.json +0 -5
  270. package/BookReader/bookreader-component-bundle.js +0 -1450
  271. package/BookReader/bookreader-component-bundle.js.LICENSE.txt +0 -38
  272. package/BookReader/bookreader-component-bundle.js.map +0 -1
  273. package/BookReader/jquery-1.10.1.js +0 -2
  274. package/BookReader/jquery-1.10.1.js.LICENSE.txt +0 -24
  275. package/BookReader/plugins/plugin.menu_toggle.js +0 -2
  276. package/BookReader/plugins/plugin.menu_toggle.js.map +0 -1
  277. package/BookReader/plugins/plugin.mobile_nav.js +0 -2
  278. package/BookReader/plugins/plugin.mobile_nav.js.map +0 -1
  279. package/BookReaderDemo/IIIFBookReader.js +0 -207
  280. package/BookReaderDemo/bookreader-template-bundle.js +0 -7178
  281. package/BookReaderDemo/demo-iiif.js +0 -26
  282. package/BookReaderDemo/demo-plugin-menu-toggle.html +0 -34
  283. package/karma.conf.js +0 -23
  284. package/src/BookNavigator/BookModel.js +0 -14
  285. package/src/BookNavigator/BookNavigator.js +0 -446
  286. package/src/BookNavigator/assets/book-loader.js +0 -27
  287. package/src/BookNavigator/br-fullscreen-mgr.js +0 -83
  288. package/src/BookNavigator/search/a-search-result.js +0 -55
  289. package/src/BookReader/DebugConsole.js +0 -54
  290. package/src/BookReaderComponent/BookReaderComponent.js +0 -112
  291. package/src/ItemNavigator/ItemNavigator.js +0 -376
  292. package/src/ItemNavigator/providers/sharing.js +0 -29
  293. package/src/css/_MobileNav.scss +0 -194
  294. package/src/dragscrollable-br.js +0 -261
  295. package/src/lit-wrapper.js +0 -2
  296. package/src/plugins/menu_toggle/plugin.menu_toggle.js +0 -324
  297. package/src/plugins/plugin.mobile_nav.js +0 -287
  298. package/tests/BookReader/BookReaderPublicFunctions.test.js +0 -171
  299. package/tests/BookReader/DebugConsole.test.js +0 -25
  300. package/tests/BookReader/Mode1Up.test.js +0 -164
  301. package/tests/BookReader/Mode2Up.test.js +0 -247
  302. package/tests/BookReader/utils.test.js +0 -109
  303. package/tests/e2e/helpers/desktopSearch.js +0 -72
  304. package/tests/e2e/helpers/mobileSearch.js +0 -85
  305. package/tests/e2e/ia-production/ia-prod-base.js +0 -17
  306. package/tests/karma/BookNavigator/book-navigator.test.js +0 -132
  307. package/tests/karma/BookNavigator/search/search-provider.test.js +0 -23
  308. package/tests/karma/BookNavigator/visual-adjustments.test.js +0 -201
  309. package/tests/plugins/menu_toggle/plugin.menu_toggle.test.js +0 -68
  310. package/tests/plugins/plugin.chapters.test.js +0 -130
  311. package/tests/plugins/plugin.mobile_nav.test.js +0 -66
  312. package/tests/plugins/plugin.text_selection.test.js +0 -203
  313. package/tests/util/docCookies.test.js +0 -15
@@ -1,16 +1,12 @@
1
1
  <svg
2
- width="18"
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="none" fill-rule="evenodd">
12
- <circle cx="7" cy="7" r="6" stroke="#fff" stroke-width="2" />
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
- width="18"
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="none" fill-rule="evenodd">
12
- <circle cx="7" cy="7" r="6" stroke="#fff" stroke-width="2" />
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>
@@ -7,7 +7,6 @@ $brFontFamily: "Helvetica Neue", Arial, Verdana, sans-serif;
7
7
  $brColorThemeblue: #0074D1;
8
8
  $brColorThemeBlue2: #4990E2;
9
9
  $brColorThemeBlue3: rgb(74,144,226);
10
- $brColorThemeBlueDarker: rgb(36,94,131);
11
10
  $brColorDarkGreyBg: #333;
12
11
  $brColorMainBg: black;
13
12
 
@@ -44,13 +43,11 @@ $mediumBlue: #428bca;
44
43
  $lightBlue: #adaedc;
45
44
  $controlsText: $white;
46
45
  $controlsBG: $gray20;
47
- $iconStroke: $white;
48
46
  $tooltipBG: $gray20;
49
47
  $activeButtonBG: $white;
50
48
  $controlsBorder: $gray13;
51
49
  $trackColor: $gray40;
52
50
  $trackFillColor: $gray80;
53
- $mobileMenuBG: #151515;
54
51
 
55
52
  $tooltipBG: $gray20;
56
53
  $tooltipText: $white;
@@ -70,7 +67,7 @@ $searchResultBG: $darkBlue;
70
67
  }
71
68
 
72
69
  // These are the main root elements in BookReader
73
- $brScope: ".BookReader, .BRmobileMenu, .BRfloat";
70
+ $brScope: ".BookReader, .BRfloat";
74
71
 
75
72
  @import 'colorbox';
76
73
  @import 'BRmain';
@@ -80,7 +77,6 @@ $brScope: ".BookReader, .BRmobileMenu, .BRfloat";
80
77
  @import 'BRnav';
81
78
  @import 'BRtoolbar';
82
79
  @import 'BRsearch';
83
- @import 'MobileNav';
84
80
  @import 'BRvendor';
85
81
  @import 'icons';
86
82
  @import 'controls';
@@ -6,7 +6,7 @@
6
6
  z-index: 2;
7
7
  opacity: 0;
8
8
  }
9
- .BRtwopageview .BRpagecontainer[data-side="L"] .bookmark-button {
9
+ .BRmode2up .BRpagecontainer[data-side="L"] .bookmark-button {
10
10
  right: auto;
11
11
  left: 0;
12
12
  }
@@ -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
 
@@ -20,9 +20,6 @@
20
20
  font-weight: 700;
21
21
  color: #dedede;
22
22
  }
23
- a {
24
- outline: none;
25
- }
26
23
  button {
27
24
  cursor: pointer;
28
25
  }
@@ -43,6 +40,8 @@
43
40
  position: relative;
44
41
  overflow: hidden;
45
42
  background-color: $brColorMainBg;
43
+
44
+ contain: strict;
46
45
  }
47
46
 
48
47
  .BRcontainer {
@@ -247,3 +246,17 @@ body.BRfullscreenActive {
247
246
  .BRpagediv1up { background-color: white; }
248
247
  .BRpagedivthumb { background-color: white; }
249
248
  }
249
+
250
+ .BRfullscreenAnimation .br-mode-2up__book {
251
+ transition: transform .2s ease-in-out;
252
+ }
253
+
254
+ .fullscreenActive.BRmodeThumb .BRcontainer,
255
+ .fullscreenActive.BRmode1up .BRcontainer {
256
+ animation: flash 0.3s ease-in-out;
257
+ }
258
+
259
+ @keyframes flash {
260
+ 0% { opacity: 0; }
261
+ 100% { opacity: 1; }
262
+ }
@@ -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: "";
@@ -76,8 +77,8 @@
76
77
  }
77
78
 
78
79
  @keyframes fadeUp {
79
- from { opacity: 0; transform: translateY(10px); }
80
- to { opacity: 1; transform: translateY(0); }
80
+ from { opacity: 0; translate: 0 10px; }
81
+ to { opacity: 1; translate: 0 0; }
81
82
  }
82
83
 
83
84
  .BRfooter {
@@ -102,9 +103,12 @@
102
103
  border: none;
103
104
  border-radius: 2px;
104
105
  background: transparent;
105
- outline: none;
106
- &:hover .tooltip {
107
- display: block;
106
+
107
+ @media (hover: hover) {
108
+ /* styles to apply on devices that support hover */
109
+ &:hover .BRtooltip {
110
+ display: block;
111
+ }
108
112
  }
109
113
  &.hide {
110
114
  display: none;
@@ -117,7 +121,7 @@
117
121
  display: flex;
118
122
  justify-content: center;
119
123
  margin: 5px;
120
- padding: 0 ($brNavHeightMobile / 4);
124
+ padding: 0 math.div($brNavHeightMobile, 4);
121
125
  border-radius: 4px;
122
126
  align-self: center;
123
127
  height: $toolbarHeight;
@@ -126,18 +130,6 @@
126
130
  // Default
127
131
  @include brNavDark;
128
132
 
129
- &.BRnavEmbed {
130
- @include brNavLight;
131
- }
132
-
133
- /* Full mobile styles */
134
- @media (max-width: $brBreakPointMobile) {
135
- .BRbodyMobileNavEnabled &,
136
- .BRbodyMobileNavEnabledFullscreen.BRfullscreenActive & {
137
- @include brNavLight;
138
- }
139
- }
140
-
141
133
  &--controls {
142
134
  display: flex;
143
135
  }
@@ -222,25 +214,6 @@
222
214
  flex-direction: row;
223
215
  border-top: 1px solid $controlsBorder;
224
216
 
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
217
  /* Theming */
245
218
 
246
219
  // Default
@@ -263,7 +236,7 @@
263
236
  .BRpager.ui-slider {
264
237
  position: relative;
265
238
  height: 8px;
266
- top: ($brNavHeightDesktop / 2) - 4px;
239
+ top: math.div($brNavHeightDesktop, 2) - 4px;
267
240
  box-sizing: content-box;
268
241
  border-radius: 10px;
269
242
  cursor: pointer;
@@ -365,7 +338,7 @@
365
338
  }
366
339
  .BRpager.ui-slider {
367
340
  height: 10px;
368
- top: ($brNavHeightMobile / 2) - 5px;
341
+ top: math.div($brNavHeightMobile, 2) - 5px;
369
342
  }
370
343
  }
371
344
 
@@ -10,17 +10,41 @@
10
10
  }
11
11
  }
12
12
 
13
- .BRmodeThumb .BRpagecontainer, .BRmode2Up .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;
23
45
  background: $brColorPlaceholderBg;
46
+ overflow: hidden;
47
+ overflow: clip;
24
48
  img {
25
49
  position: absolute;
26
50
  background: transparent;
@@ -48,57 +72,142 @@
48
72
  }
49
73
  }
50
74
 
51
- .BRbookcover {
75
+ svg.BRPageLayer {
52
76
  position: absolute;
53
- background-image: none;
54
- box-shadow: 1px 0 10px #111;
77
+ top: 0;
78
+ left: 0;
79
+ right: 0;
80
+ bottom: 0;
55
81
  }
56
- .BRPreview .BRpageimage {
57
- background-color: #eee;
58
- -webkit-filter: grayscale(100%);
59
- filter: grayscale(100%);
82
+
83
+ // Hides page layers during page flip animation
84
+ .BRpageFlipping .BRPageLayer {
85
+ display: none;
60
86
  }
61
87
 
62
- .BRleafEdgeR {
63
- border-style: solid solid solid none;
64
- border-color: rgb(51, 51, 34);
65
- border-width: 1px 1px 1px 0px;
88
+ .br-mode-2up__root {
89
+ display: block;
90
+ overflow: auto;
91
+ width: 100%;
92
+ height: 100%;
93
+ }
66
94
 
67
- background: transparent url(images/back_pages.png) repeat scroll 0% 0%;
68
- position: absolute;
69
- cursor: pointer;
95
+ .br-mode-2up__book {
96
+ position: relative;
97
+ transform-origin: 0 0;
98
+ width: 0px;
99
+ height: 0px;
70
100
  }
71
101
 
72
- .BRleafEdgeL {
73
- /* border-style: solid none solid solid;
74
- border-color: rgb(51, 51, 34);
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;
102
+ .BRmode2up {
103
+ // Used while loading stuff
104
+ transition: opacity 0.2s;
79
105
  }
80
106
 
81
- .BRleafEdgeTmp {
82
- /* border-style: solid none solid solid;
83
- border-color: rgb(51, 51, 34);
84
- border-width: 1px 0px 1px 1px; */
85
- background: transparent url(images/back_pages.png) repeat scroll 0% 0%; /* XXXmang replace file */
86
- position: absolute;
107
+ .BRmode2up .BRpagecontainer {
108
+ backface-visibility: hidden;
109
+ &:not(.BRpage-visible) {
110
+ display: none;
111
+ }
87
112
  }
88
113
 
89
- .BRgutter {
90
- /* border: 1px solid rgb(68, 25, 17); */
114
+ .br-mode-2up__leafs {
91
115
  position: absolute;
92
- background: transparent url(images/booksplit.png) repeat scroll 0% 0%;
116
+ cursor: pointer;
117
+ top: 0;
118
+ transform-style: preserve-3d;
119
+
120
+ &[side=left] {
121
+ border-radius: 4px 0 0 4px;
122
+ .br-leaf-edges__label {
123
+ padding-right: 10px;
124
+ border-radius: 4px 0 0 4px;
125
+ }
126
+ }
127
+ &[side=right] {
128
+ border-radius: 0 4px 4px 0;
129
+ .br-leaf-edges__label {
130
+ padding-left: 20px;
131
+ border-radius: 0 4px 4px 0;
132
+ }
133
+ }
134
+ &.br-mode-2up__leafs--flipping {
135
+ z-index: 200000;
136
+ transition: transform 5s;
137
+ transition-timing-function: ease-in-out;
138
+ border-radius: 0;
139
+
140
+ // Have a copy of the background at a perpendicular angle,
141
+ // so that during the rotation, it's always visible.
142
+ &:before {
143
+ content: '';
144
+ display: block;
145
+ width: 100%;
146
+ height: 100%;
147
+ position: absolute;
148
+ transform: rotateY(-90deg);
149
+ }
150
+ }
151
+
152
+ &, &.br-mode-2up__leafs--flipping::before {
153
+ background: transparent url(images/back_pages.png) repeat scroll 0% 0%;
154
+ }
155
+
156
+ .br-leaf-edges__bar {
157
+ display: none;
158
+ pointer-events: none;
159
+ position: absolute;
160
+ top: 0;
161
+ bottom: 0;
162
+ min-width: 1px;
163
+ background-color: #9A9B9D;
164
+ opacity: 0.85;
165
+ transform: translateX(-50%);
166
+ }
167
+
168
+ .br-leaf-edges__label {
169
+ display: none;
170
+ pointer-events: none;
171
+ z-index: 1000;
172
+ position: absolute;
173
+ padding: 6px;
174
+ color: white;
175
+ background-color: #9A9B9D;
176
+ opacity: 0.85;
177
+ white-space: nowrap;
178
+ transform: translateY(-10px);
179
+ }
93
180
  }
94
181
 
95
- .BRtwoPagePopUp {
96
- padding: 6px;
97
- position: absolute;
98
- font-size: $brFontSizeSmaller;
99
- color: white;
100
- background-color: #9A9B9D;
101
- opacity: 0.85;
102
- border-radius: 4px;
103
- white-space: nowrap;
182
+ .br-mode-2up--flipping-left {
183
+ .BRpage-entering[data-side=R] {
184
+ z-index: 10;
185
+ transform-origin: left;
186
+ transform: rotateY(0deg);
187
+ }
188
+
189
+ .BRpage-exiting[data-side=L] {
190
+ z-index: 10;
191
+ transform-origin: right;
192
+ }
193
+
194
+ .BRpage-exiting[data-side=R] {
195
+ z-index: 9;
196
+ }
197
+ }
198
+
199
+ .br-mode-2up--flipping-right {
200
+ .BRpage-entering[data-side=L] {
201
+ z-index: 10;
202
+ transform-origin: right;
203
+ }
204
+
205
+ .BRpage-exiting[data-side=R] {
206
+ z-index: 10;
207
+ transform-origin: left;
208
+ }
209
+
210
+ .BRpage-exiting[data-side=L] {
211
+ z-index: 9;
212
+ }
104
213
  }
@@ -1,40 +1,71 @@
1
+ @mixin ellipsis-lines($lines: 4) {
2
+ display: -webkit-box;
3
+ -webkit-line-clamp: $lines;
4
+ -webkit-box-orient: vertical;
5
+ overflow: hidden;
6
+ }
7
+
1
8
  %timeline-tooltip {
2
9
  display: none;
3
10
  position: absolute;
4
11
  bottom: calc(100% + 5px);
5
- left: 50%;
6
- transform: translateX(-50%);
7
- width: 230px;
12
+ left: -14px;
13
+ width: 350px;
14
+ max-width: 100vw;
8
15
  padding: 12px 14px;
16
+ padding-bottom: 10px;
9
17
  color: $tooltipText;
10
- font-weight: bold;
11
18
  background: $tooltipBG;
12
19
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
20
+ border-radius: 4px;
21
+ animation: fadeUp 0.2s;
22
+
23
+ // Disable text selection
24
+ -webkit-user-select: none;
25
+ -moz-user-select: none;
26
+ -ms-user-select: none;
27
+ -o-user-select: none;
28
+ user-select: none;
29
+
30
+ // Create a triangle under the tooltip using clip-path
31
+ // This makes it possible to move the mouse onto the tooltip
13
32
  &:after {
14
- display: none;
15
33
  position: absolute;
16
- top: 100%;
17
- left: 50%;
18
- transform: translateX(-50%);
19
34
  content: "";
20
- border: 7px solid transparent;
21
- border-width: 7px 4px;
22
- border-bottom: none;
23
- border-top-color: $tooltipBG;
35
+ bottom: -9px;
36
+ left: 0;
37
+ width: 30px;
38
+ height: 10px;
39
+ clip-path: polygon(0 0, 100% 0, 50% 100%);
24
40
  }
25
41
  }
26
42
 
27
43
  #{$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;
44
+ // FIXME: .ttsHiliteLayer should probably not be in this file,
45
+ // but they appear the same in the UI.
46
+ .searchHiliteLayer, .ttsHiliteLayer {
47
+ pointer-events: none;
48
+
49
+ rect {
50
+ // Note: Can't use fill-opacity ; safari inexplicably applies that to
51
+ // the outline as well
52
+ fill: rgba(0, 0, 255, 0.2);
53
+ }
54
+ }
55
+
56
+ .searchHiliteLayer rect {
57
+ animation: highlightFocus 600ms 1 reverse;
58
+ stroke: blue;
59
+ stroke-width: 4px;
35
60
 
36
- animation: hiliteFadeIn .2s;
61
+ // Sass for loop for nth-child animation delay
62
+ @for $i from 1 through 10 {
63
+ &:nth-child(#{$i}) {
64
+ animation-delay: #{($i - 1) * 50}ms;
65
+ }
66
+ }
37
67
  }
68
+
38
69
  .BRchapter, .BRsearch {
39
70
  position: absolute;
40
71
  bottom: 0; /* Relative to nav line */
@@ -64,6 +95,10 @@
64
95
  // background-image: url(images/marker_chap-on.svg);
65
96
  background-color: blue;
66
97
  }
98
+ .BRchapterPage {
99
+ font-size: 0.85em;
100
+ opacity: .8;
101
+ }
67
102
  }
68
103
  .BRsearch {
69
104
  width: 9px;
@@ -90,7 +125,17 @@
90
125
  }
91
126
  .BRquery {
92
127
  @extend %timeline-tooltip;
93
- b {
128
+ main {
129
+ @include ellipsis-lines(4);
130
+ margin-bottom: 6px;
131
+ &:before { content: "“"; }
132
+ &:after { content: "”"; }
133
+ }
134
+ footer {
135
+ font-size: 0.85em;
136
+ opacity: .8;
137
+ }
138
+ mark {
94
139
  color: $searchResultText;
95
140
  font-weight: bold;
96
141
  background-color: $searchResultBG;
@@ -119,7 +164,6 @@
119
164
  max-width: 160px;
120
165
  height: 100%;
121
166
  color: white;
122
- outline: none;
123
167
  border: none;
124
168
  padding: 3px 0px 3px 10px;
125
169
  margin: 0;
@@ -205,9 +249,8 @@
205
249
  }
206
250
  }
207
251
 
208
- @keyframes hiliteFadeIn {
209
- from { opacity: 0; }
210
- to { opacity: 0.2; }
252
+ @keyframes highlightFocus {
253
+ to { stroke-width: 20px; }
211
254
  }
212
255
 
213
256
  /* Mid size breakpoint */
@@ -34,8 +34,6 @@
34
34
  }
35
35
  .BRtoolbarbuttons {
36
36
  white-space: nowrap;
37
- text-align: right;
38
- border-spacing: 0;
39
37
  box-sizing: border-box;
40
38
  display: flex;
41
39
  flex-direction: row;
@@ -65,13 +63,11 @@
65
63
  display: none;
66
64
  }
67
65
  .BRtoolbarLeft {
68
- text-align: left;
69
66
  flex: 1 auto;
70
67
  overflow-y: hidden;
71
68
  }
72
69
  // .BRtoolbarSectionTitle {}
73
70
  .BRtoolbarRight {
74
- text-align: right;
75
71
  flex: none;
76
72
  }
77
73
 
@@ -81,4 +77,8 @@
81
77
  padding: 0;
82
78
  box-shadow: 0px 1px 3px 0px rgba(#666, .25);
83
79
  }
84
- }
80
+ }
81
+
82
+ ia-bookreader .BRtoolbar {
83
+ padding-left: 50px;
84
+ }