@internetarchive/bookreader 5.0.0-66 → 5.0.0-68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/BookReader/BookReader.css +68 -918
  2. package/BookReader/BookReader.js +1 -1
  3. package/BookReader/BookReader.js.map +1 -1
  4. package/BookReader/ia-bookreader-bundle.js +118 -128
  5. package/BookReader/ia-bookreader-bundle.js.map +1 -1
  6. package/BookReader/plugins/plugin.autoplay.js +1 -1
  7. package/BookReader/plugins/plugin.autoplay.js.map +1 -1
  8. package/BookReader/plugins/plugin.chapters.js +24 -1
  9. package/BookReader/plugins/plugin.chapters.js.map +1 -1
  10. package/BookReader/plugins/plugin.search.js.map +1 -1
  11. package/BookReader/plugins/plugin.tts.js +1 -1
  12. package/BookReader/plugins/plugin.tts.js.map +1 -1
  13. package/BookReaderDemo/BookReaderDemo.css +0 -18
  14. package/BookReaderDemo/BookReaderJSAdvanced.js +0 -3
  15. package/BookReaderDemo/demo-autoplay.html +0 -2
  16. package/BookReaderDemo/demo-fullscreen-mobile.html +1 -4
  17. package/BookReaderDemo/demo-fullscreen.html +0 -3
  18. package/BookReaderDemo/demo-iiif.js +0 -1
  19. package/BookReaderDemo/demo-internetarchive.html +41 -3
  20. package/BookReaderDemo/demo-vendor-fullscreen.html +0 -3
  21. package/BookReaderDemo/immersion-1up.html +0 -1
  22. package/BookReaderDemo/immersion-mode.html +0 -3
  23. package/BookReaderDemo/toggle_controls.html +1 -1
  24. package/CHANGELOG.md +10 -0
  25. package/index.html +1 -1
  26. package/package.json +9 -9
  27. package/src/BookNavigator/book-navigator.js +4 -3
  28. package/src/BookReader/Mode1Up.js +1 -1
  29. package/src/BookReader/Mode1UpLit.js +1 -1
  30. package/src/BookReader/Navbar/Navbar.js +2 -2
  31. package/src/BookReader/events.js +0 -1
  32. package/src/BookReader.js +1 -2
  33. package/src/css/BookReader.scss +1 -5
  34. package/src/css/_BRnav.scss +5 -10
  35. package/src/css/_BRsearch.scss +6 -2
  36. package/src/css/_controls.scss +3 -2
  37. package/src/plugins/plugin.autoplay.js +1 -2
  38. package/src/plugins/plugin.chapters.js +201 -169
  39. package/src/plugins/search/plugin.search.js +0 -3
  40. package/src/plugins/tts/plugin.tts.js +1 -1
  41. package/tests/e2e/base.test.js +3 -11
  42. package/tests/e2e/helpers/base.js +26 -26
  43. package/tests/e2e/helpers/rightToLeft.js +4 -4
  44. package/tests/e2e/helpers/{desktopSearch.js → search.js} +19 -19
  45. package/tests/e2e/models/Navigation.js +16 -42
  46. package/tests/e2e/viewmode.test.js +3 -3
  47. package/tests/jest/plugins/plugin.chapters.test.js +92 -76
  48. package/tests/jest/plugins/search/plugin.search.view.test.js +0 -1
  49. package/webpack.config.js +0 -1
  50. package/BookReader/plugins/plugin.mobile_nav.js +0 -2
  51. package/BookReader/plugins/plugin.mobile_nav.js.map +0 -1
  52. package/src/css/_MobileNav.scss +0 -194
  53. package/src/plugins/plugin.mobile_nav.js +0 -288
  54. package/tests/e2e/helpers/mobileSearch.js +0 -85
  55. package/tests/jest/plugins/plugin.mobile_nav.test.js +0 -66
@@ -36,21 +36,3 @@ ia-bookreader{
36
36
  overflow: hidden;
37
37
  margin: 0 auto;
38
38
  }
39
-
40
- @media only screen and (max-width: 799px) {
41
- body.BRbodyMobileNavEnabled {
42
- margin: 0;
43
- width: 100%;
44
- overflow: hidden;
45
- }
46
- .BRbodyMobileNavEnabled .BookReader {
47
- top: 0;
48
- bottom: 0;
49
- left: 0;
50
- right: 0;
51
- position: absolute;
52
- height: 100%;
53
- margin: 0;
54
- width: 100%;
55
- }
56
- }
@@ -92,9 +92,6 @@ var options = {
92
92
  {label: 'Author', value: 'Internet Archive'},
93
93
  {label: 'Demo Info', value: 'This demo shows how one could use BookReader with their own content.'},
94
94
  ],
95
- // This toggles the mobile drawer (not shown in 'embed' mode)
96
- enableMobileNav: false,
97
- mobileNavTitle: 'BookReader demo',
98
95
 
99
96
  // Override the path used to find UI images
100
97
  imagesBaseURL: '../BookReader/images/',
@@ -15,8 +15,6 @@
15
15
  <link rel="stylesheet" href="../BookReader/BookReader.css"/>
16
16
  <script src="../BookReader/BookReader.js"></script>
17
17
 
18
- <!-- Mobile nav plugin -->
19
- <script src="../BookReader/plugins/plugin.mobile_nav.js"></script>
20
18
  <!-- Autoplay plugin -->
21
19
  <script src="../BookReader/plugins/plugin.autoplay.js"></script>
22
20
 
@@ -15,9 +15,6 @@
15
15
  <link rel="stylesheet" href="../BookReader/BookReader.css"/>
16
16
  <script src="../BookReader/BookReader.js"></script>
17
17
 
18
- <!-- Mobile nav plugin -->
19
- <script src="../BookReader/plugins/plugin.mobile_nav.js"></script>
20
-
21
18
  <!-- URL-changing plugin -->
22
19
  <script src="../BookReader/plugins/plugin.url.js"></script>
23
20
 
@@ -31,7 +28,7 @@ html, body { width: 100%; height: 100%; margin: 0; padding: 0; background: grey;
31
28
  <div id="BookReader"></div>
32
29
  <script type="text/javascript" src="BookReaderJSSimple.js"></script>
33
30
  <script>
34
- instantiateBookReader('#BookReader', {mobileNavFullscreenOnly: true});
31
+ instantiateBookReader('#BookReader');
35
32
  </script>
36
33
  </body>
37
34
  </html>
@@ -15,9 +15,6 @@
15
15
  <link rel="stylesheet" href="../BookReader/BookReader.css"/>
16
16
  <script src="../BookReader/BookReader.js"></script>
17
17
 
18
- <!-- Mobile nav plugin -->
19
- <script src="../BookReader/plugins/plugin.mobile_nav.js"></script>
20
-
21
18
  <!-- URL-changing plugin -->
22
19
  <script src="../BookReader/plugins/plugin.url.js"></script>
23
20
 
@@ -11,7 +11,6 @@ var br = new BookReader({
11
11
 
12
12
  // Override the path used to find UI images
13
13
  imagesBaseURL: '../BookReader/images/',
14
- enableMobileNav: false,
15
14
  });
16
15
 
17
16
  br.IIIF({
@@ -161,6 +161,44 @@
161
161
  </li>
162
162
  </ul>
163
163
  </li>
164
+ <li>
165
+ Chapters
166
+ <ul>
167
+ <li>
168
+ Normal book with chapters
169
+ <ul>
170
+ <li><a href="/BookReaderDemo/demo-internetarchive.html?ocaid=adventureofsherl0000unse">
171
+ <i>The Adventures of Sherlock Holmes</i> by Arthur Conan Doyle
172
+ </a></li>
173
+ <li><a href="/BookReaderDemo/demo-internetarchive.html?ocaid=jalna00dela">
174
+ <i>Jalna</i> by Mazo de la Roche
175
+ </a></li>
176
+ </ul>
177
+ </li>
178
+ <li>
179
+ Book preview
180
+ <ul>
181
+ <li><a href="/BookReaderDemo/demo-internetarchive.html?ocaid=peoplewareproduc00dema_0">
182
+ <i>Peopleware</i> by Tom DeMarco and Timothy Lister
183
+ </a></li>
184
+ <li><a href="/BookReaderDemo/demo-internetarchive.html?ocaid=passionforbooksb00rabi">
185
+ <i>A Passion for Books</i>
186
+ </a></li>
187
+ </ul>
188
+ </li>
189
+ <li>
190
+ Book with levelled chapters
191
+ <ul>
192
+ <li><a href="/BookReaderDemo/demo-internetarchive.html?ocaid=notredamedepar01hugo">
193
+ <i>Notre-Dame de Paris: Tome Premier</i> par Victor Hugo
194
+ </a></li>
195
+ <li><a href="/BookReaderDemo/demo-internetarchive.html?ocaid=alanturingenigma0000hodg">
196
+ <i>Alan Turing: The Enigma</i> by Andrew Hodges
197
+ </a></li>
198
+ </ul>
199
+ </li>
200
+ </ul>
201
+ </li>
164
202
  </ul>
165
203
  </details>
166
204
  <div class="demo">
@@ -220,9 +258,9 @@
220
258
 
221
259
  // analytics stub
222
260
  window.archive_analytics = {
223
- send_event_no_sampling: (category, action, label) => console.log('~~~ NO SAMPLE EVENT CALLED: ', { category, action, label }),
224
- send_event: (category, action, label) => console.log('~~~ send_event SAMPLE EVENT CALLED: ', { category, action, label }),
225
- send_ping: (category, action, label) => console.log('~~~ send_ping SAMPLE EVENT CALLED: ', { category, action, label }),
261
+ send_event_no_sampling: (category, action, label) => {}, //console.log('~~~ NO SAMPLE EVENT CALLED: ', { category, action, label }),
262
+ send_event: (category, action, label) => {}, //console.log('~~~ send_event SAMPLE EVENT CALLED: ', { category, action, label }),
263
+ send_ping: (category, action, label) => {}, //console.log('~~~ send_ping SAMPLE EVENT CALLED: ', { category, action, label }),
226
264
  }
227
265
  </script>
228
266
 
@@ -15,9 +15,6 @@
15
15
  <link rel="stylesheet" href="../BookReader/BookReader.css"/>
16
16
  <script src="../BookReader/BookReader.js"></script>
17
17
 
18
- <!-- Mobile nav plugin -->
19
- <script src="../BookReader/plugins/plugin.mobile_nav.js"></script>
20
-
21
18
  <!-- URL-changing plugin -->
22
19
  <script src="../BookReader/plugins/plugin.url.js"></script>
23
20
 
@@ -14,7 +14,6 @@
14
14
  <link rel="stylesheet" href="../BookReader/BookReader.css"/>
15
15
 
16
16
  <!-- plugins needed for archive.org, in same order as archive.org -->
17
- <script src="../BookReader/plugins/plugin.mobile_nav.js"></script>
18
17
  <script src="../BookReader/plugins/plugin.search.js"></script>
19
18
  <script src="../BookReader/plugins/plugin.chapters.js"></script>
20
19
  <script src="../BookReader/plugins/plugin.tts.js"></script>
@@ -15,9 +15,6 @@
15
15
  <link rel="stylesheet" href="../BookReader/BookReader.css"/>
16
16
  <script src="../BookReader/BookReader.js"></script>
17
17
 
18
- <!-- Mobile nav plugin -->
19
- <script src="../BookReader/plugins/plugin.mobile_nav.js"></script>
20
-
21
18
  <!-- URL-changing plugin -->
22
19
  <script src="../BookReader/plugins/plugin.url.js"></script>
23
20
 
@@ -40,7 +40,7 @@
40
40
  template: function(br) {
41
41
  return '<button class="BRicon ' + this.className + ' desktop-only js-tooltip" data-param="foo">' +
42
42
  '<div class="icon icon-onepg"></div>' +
43
- '<span class="tooltip">Overridden control</span>' +
43
+ '<span class="BRtooltip">Overridden control</span>' +
44
44
  '</button>';
45
45
  }
46
46
  },
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 5.0.0-68
2
+ - Fix: 1up zoom wrong on start/entering full screen @cdrini
3
+ - Dev: BREAKING: delete `plugin.mobile_nav.js` no longer used @cdrini
4
+ - Dev: Move page 1 label correction logic to BookReaderJSIA @cdrini
5
+
6
+ # 5.0.0-67
7
+ - Feature: Re-enable chapters plugin + migrate off mmenu @cdrini
8
+ - Fix: Disable tooltips on touchscreens + fix on IA @cdrini
9
+ - Dev: Remove core-js update block; issue resolved in core-js @cdrini
10
+
1
11
  # 5.0.0-66
2
12
  - Fix: Pinch zooming on iPad/iPhone, Samsung Internet @cdrini
3
13
 
package/index.html CHANGED
@@ -21,7 +21,7 @@
21
21
  <!-- plugin.search.js -->
22
22
  <li><a href="BookReaderDemo/demo-internetarchive.html?ocaid=theworksofplato01platiala">From Internet Archive</a></li>
23
23
  <!-- plugin.search.js -->
24
- <li><a href="BookReaderDemo/demo-internetarchive.html?ocaid=adventuresofoli00dick">From Internet Archive - a book with CHAPTERS</a></li>
24
+ <li><a href="BookReaderDemo/demo-internetarchive.html?ocaid=adventureofsherl0000unse">From Internet Archive - a book with CHAPTERS</a></li>
25
25
  <li><a href="BookReaderDemo/demo-iiif.html">IIIF</a></li>
26
26
  <li><a href="BookReaderDemo/demo-autoplay.html">Autoplay (kiosk mode)</a></li>
27
27
  <li><a href="BookReaderDemo/demo-plugin-menu-toggle.html">Plugin: Full screen menu toggle</a></li>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/bookreader",
3
- "version": "5.0.0-66",
3
+ "version": "5.0.0-68",
4
4
  "description": "The Internet Archive BookReader.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "private": false,
27
27
  "dependencies": {
28
28
  "@internetarchive/ia-activity-indicator": "^0.0.4",
29
- "@internetarchive/ia-item-navigator": "^1.0.3",
29
+ "@internetarchive/ia-item-navigator": "^1.1.1",
30
30
  "@internetarchive/ia-sharing-options": "^1.0.2",
31
31
  "@internetarchive/icon-bookmark": "^1.3.4",
32
32
  "@internetarchive/icon-dl": "^1.3.4",
@@ -35,6 +35,7 @@
35
35
  "@internetarchive/icon-magnify-plus": "^1.3.4",
36
36
  "@internetarchive/icon-search": "^1.3.4",
37
37
  "@internetarchive/icon-share": "^1.3.4",
38
+ "@internetarchive/icon-toc": "^1.3.4",
38
39
  "@internetarchive/icon-visual-adjustment": "^1.3.4",
39
40
  "@internetarchive/modal-manager": "^0.2.12",
40
41
  "@internetarchive/shared-resize-observer": "^0.2.0",
@@ -47,11 +48,11 @@
47
48
  "@babel/plugin-proposal-decorators": "7.22.7",
48
49
  "@babel/preset-env": "7.22.9",
49
50
  "@open-wc/testing-helpers": "^2.3.0",
50
- "@types/jest": "29.5.3",
51
+ "@types/jest": "29.5.4",
51
52
  "@webcomponents/webcomponentsjs": "^2.6.0",
52
53
  "babel-loader": "9.1.3",
53
54
  "codecov": "^3.8.3",
54
- "concurrently": "7.4.0",
55
+ "concurrently": "7.6.0",
55
56
  "core-js": "3.27.1",
56
57
  "cpx2": "4.2.3",
57
58
  "eslint": "^7.32.0",
@@ -60,16 +61,15 @@
60
61
  "http-server": "14.1.1",
61
62
  "interactjs": "^1.10.18",
62
63
  "iso-language-codes": "1.1.0",
63
- "jest": "29.6.2",
64
- "jest-environment-jsdom": "^29.4.3",
64
+ "jest": "29.6.4",
65
+ "jest-environment-jsdom": "^29.6.4",
65
66
  "jquery": "3.6.1",
66
67
  "jquery-colorbox": "1.6.4",
67
68
  "jquery-ui": "1.12.1",
68
69
  "jquery-ui-touch-punch": "0.2.3",
69
70
  "jquery.browser": "0.1.0",
70
- "jquery.mmenu": "5.6.5",
71
71
  "live-server": "1.2.2",
72
- "node-fetch": "3.2.10",
72
+ "node-fetch": "3.3.2",
73
73
  "regenerator-runtime": "0.13.11",
74
74
  "sass": "1.64.2",
75
75
  "sinon": "^15.1.0",
@@ -121,7 +121,7 @@
121
121
  "DOCS:update:test-deps": "If CI succeeds, these should be good to update",
122
122
  "update:test-deps": "npm i @babel/eslint-parser@latest @open-wc/testing-helpers@latest @types/jest@latest codecov@latest eslint@7 eslint-plugin-testcafe@latest jest@latest sinon@latest testcafe@latest",
123
123
  "DOCS:update:build-deps": "These can cause strange changes, so do an npm run build + check file size (git diff --stat), and check the site is as expected",
124
- "update:build-deps": "npm i @babel/core@latest @babel/preset-env@latest @babel/plugin-proposal-class-properties@latest @babel/plugin-proposal-decorators@latest babel-loader@latest core-js@3.27.1 regenerator-runtime@latest sass@latest svgo@latest webpack@latest webpack-cli@latest",
124
+ "update:build-deps": "npm i @babel/core@latest @babel/preset-env@latest @babel/plugin-proposal-class-properties@latest @babel/plugin-proposal-decorators@latest babel-loader@latest core-js@latest regenerator-runtime@latest sass@latest svgo@latest webpack@latest webpack-cli@latest",
125
125
  "codecov": "npx codecov"
126
126
  }
127
127
  }
@@ -239,7 +239,7 @@ export class BookNavigator extends LitElement {
239
239
  });
240
240
  }
241
241
 
242
- this.menuProviders = providers;
242
+ Object.assign(this.menuProviders, providers);
243
243
  this.addMenuShortcut('search');
244
244
  this.addMenuShortcut('volumes');
245
245
  this.updateMenuContents();
@@ -306,9 +306,9 @@ export class BookNavigator extends LitElement {
306
306
  */
307
307
  updateMenuContents() {
308
308
  const {
309
- search, downloads, visualAdjustments, share, bookmarks, volumes
309
+ search, downloads, visualAdjustments, share, bookmarks, volumes, chapters
310
310
  } = this.menuProviders;
311
- const availableMenus = [volumes, search, bookmarks, visualAdjustments, share].filter((menu) => !!menu);
311
+ const availableMenus = [volumes, chapters, search, bookmarks, visualAdjustments, share].filter((menu) => !!menu);
312
312
 
313
313
  if (this.shouldShowDownloadsMenu()) {
314
314
  downloads?.update(this.downloadableTypes);
@@ -410,6 +410,7 @@ export class BookNavigator extends LitElement {
410
410
  bindEventListeners() {
411
411
  window.addEventListener('BookReader:PostInit', (e) => {
412
412
  this.bookreader = e.detail.props;
413
+ this.bookreader.shell = this;
413
414
  this.bookReaderLoaded = true;
414
415
  this.bookReaderCannotLoad = false;
415
416
  this.emitLoadingStatusUpdate(true);
@@ -77,7 +77,7 @@ export class Mode1Up {
77
77
  jumpToIndex(index, pageX, pageY, noAnimate) {
78
78
  // Only smooth for small distances
79
79
  const distance = Math.abs(this.br.currentIndex() - index);
80
- const smooth = !noAnimate && distance <= 4;
80
+ const smooth = !noAnimate && distance > 0 && distance <= 4;
81
81
  this.mode1UpLit.jumpToIndex(index, { smooth });
82
82
  }
83
83
 
@@ -350,7 +350,7 @@ export class Mode1UpLit extends LitElement {
350
350
  */
351
351
  computeDefaultScale(page) {
352
352
  // Default to real size if it fits, otherwise default to full width
353
- const containerWidthIn = this.coordSpace.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth);
353
+ const containerWidthIn = this.coordSpace.renderedPixelsToWorldUnits(this.clientWidth);
354
354
  return Math.min(1, containerWidthIn / (page.widthInches + 2 * this.SPACING_IN)) || 1;
355
355
  }
356
356
 
@@ -41,7 +41,7 @@ export class Navbar {
41
41
  return `<li>
42
42
  <button class="BRicon ${option.className}" title="${option.label}">
43
43
  <div class="icon icon-${option.iconClassName}"></div>
44
- <span class="tooltip">${option.label}</span>
44
+ <span class="BRtooltip">${option.label}</span>
45
45
  </button>
46
46
  </li>`;
47
47
  }
@@ -130,7 +130,7 @@ export class Navbar {
130
130
  .removeClass()
131
131
  .addClass(`icon icon-${iconClass}`)
132
132
  .end()
133
- .find('.tooltip')
133
+ .find('.BRtooltip')
134
134
  .text(tooltipText);
135
135
  }
136
136
 
@@ -16,5 +16,4 @@ export const EVENTS = {
16
16
  '2PageViewSelected': '2PageViewSelected',
17
17
  /* currently 3 represents thumbnail view */
18
18
  '3PageViewSelected': '3PageViewSelected',
19
- mobileNavOpen: 'mobileNavOpen',
20
19
  };
package/src/BookReader.js CHANGED
@@ -1355,9 +1355,8 @@ exposeOverrideableMethod(Toolbar, '_components.toolbar', 'getToolBarHeight');
1355
1355
  */
1356
1356
  BookReader.prototype.bindNavigationHandlers = function() {
1357
1357
  const self = this;
1358
+ const jIcons = this.$('.BRicon');
1358
1359
 
1359
- // Note the mobile plugin attaches itself to body, so we need to select outside
1360
- const jIcons = this.$('.BRicon').add('.BRmobileMenu .BRicon');
1361
1360
  // Map of jIcon class -> click handler
1362
1361
  const navigationControls = {
1363
1362
  book_left: () => {
@@ -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';
@@ -104,8 +104,11 @@
104
104
  border-radius: 2px;
105
105
  background: transparent;
106
106
  outline: none;
107
- &:hover .tooltip {
108
- display: block;
107
+ @media (hover: hover) {
108
+ /* styles to apply on devices that support hover */
109
+ &:hover .BRtooltip {
110
+ display: block;
111
+ }
109
112
  }
110
113
  &.hide {
111
114
  display: none;
@@ -127,14 +130,6 @@
127
130
  // Default
128
131
  @include brNavDark;
129
132
 
130
- /* Full mobile styles */
131
- @media (max-width: $brBreakPointMobile) {
132
- .BRbodyMobileNavEnabled &,
133
- .BRbodyMobileNavEnabledFullscreen.BRfullscreenActive & {
134
- @include brNavLight;
135
- }
136
- }
137
-
138
133
  &--controls {
139
134
  display: flex;
140
135
  }
@@ -98,6 +98,10 @@
98
98
  // background-image: url(images/marker_chap-on.svg);
99
99
  background-color: blue;
100
100
  }
101
+ .BRchapterPage {
102
+ font-size: 0.85em;
103
+ opacity: .8;
104
+ }
101
105
  }
102
106
  .BRsearch {
103
107
  width: 9px;
@@ -130,8 +134,8 @@
130
134
  }
131
135
  footer {
132
136
  text-align: center;
133
- font-weight: bold;
134
- font-size: 0.9em;
137
+ font-size: 0.85em;
138
+ opacity: .8;
135
139
  }
136
140
  mark {
137
141
  color: $searchResultText;
@@ -1,7 +1,7 @@
1
1
  .BRcontrols {
2
2
  width: 100%;
3
3
 
4
- .tooltip {
4
+ .BRtooltip {
5
5
  display: none;
6
6
  position: absolute;
7
7
  width: auto;
@@ -14,9 +14,10 @@
14
14
  color: $controlsText;
15
15
  border-radius: 3px;
16
16
  background: $tooltipBG;
17
+ pointer-events: none;
17
18
  }
18
19
 
19
- .full .tooltip {
20
+ .full .BRtooltip {
20
21
  left: auto;
21
22
  right: 0;
22
23
  transform: translateX(0);
@@ -41,8 +41,7 @@ BookReader.prototype.bindNavigationHandlers = (function(super_) {
41
41
 
42
42
  if (!this.options.enableAutoPlayPlugin) return;
43
43
 
44
- // Note the mobile plugin attaches itself to body, so we need to select outside
45
- const jIcons = this.$('.BRicon').add('.BRmobileMenu .BRicon');
44
+ const jIcons = this.$('.BRicon');
46
45
 
47
46
  jIcons.filter('.play').click(() => {
48
47
  this.autoToggle();