@internetarchive/bookreader 5.0.0-88-alpha.8 → 5.0.0-88-alpha.10

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 (182) hide show
  1. package/dist/esm/BookNavigator/assets/bookmark-colors.js +4 -0
  2. package/dist/esm/BookNavigator/assets/button-base.js +4 -0
  3. package/dist/esm/BookNavigator/assets/ia-logo.js +4 -0
  4. package/dist/esm/BookNavigator/assets/icon_checkmark.js +8 -0
  5. package/dist/esm/BookNavigator/assets/icon_close.js +4 -0
  6. package/dist/esm/BookNavigator/book-navigator.js +612 -0
  7. package/dist/esm/BookNavigator/bookmarks/bookmark-button.js +35 -0
  8. package/dist/esm/BookNavigator/bookmarks/bookmark-edit.js +78 -0
  9. package/dist/esm/BookNavigator/bookmarks/bookmarks-list.js +160 -0
  10. package/dist/esm/BookNavigator/bookmarks/bookmarks-loginCTA.js +24 -0
  11. package/dist/esm/BookNavigator/bookmarks/bookmarks-provider.js +55 -0
  12. package/dist/esm/BookNavigator/bookmarks/ia-bookmarks.js +521 -0
  13. package/dist/esm/BookNavigator/delete-modal-actions.js +29 -0
  14. package/dist/esm/BookNavigator/downloads/downloads-provider.js +84 -0
  15. package/dist/esm/BookNavigator/downloads/downloads.js +69 -0
  16. package/dist/esm/BookNavigator/search/search-provider.js +238 -0
  17. package/dist/esm/BookNavigator/search/search-results.js +161 -0
  18. package/dist/esm/BookNavigator/sharing.js +26 -0
  19. package/dist/esm/BookNavigator/viewable-files.js +94 -0
  20. package/dist/esm/BookNavigator/visual-adjustments/visual-adjustments-provider.js +83 -0
  21. package/dist/esm/BookNavigator/visual-adjustments/visual-adjustments.js +131 -0
  22. package/dist/esm/BookReader/BookModel.js +575 -0
  23. package/dist/esm/BookReader/DragScrollable.js +224 -0
  24. package/dist/esm/BookReader/ImageCache.js +122 -0
  25. package/dist/esm/BookReader/Mode1Up.js +114 -0
  26. package/dist/esm/BookReader/Mode1UpLit.js +579 -0
  27. package/dist/esm/BookReader/Mode2Up.js +106 -0
  28. package/dist/esm/BookReader/Mode2UpLit.js +1020 -0
  29. package/dist/esm/BookReader/ModeCoordinateSpace.js +28 -0
  30. package/dist/esm/BookReader/ModeSmoothZoom.js +318 -0
  31. package/dist/esm/BookReader/ModeThumb.js +366 -0
  32. package/dist/esm/BookReader/Navbar/Navbar.js +253 -0
  33. package/dist/esm/BookReader/PageContainer.js +165 -0
  34. package/dist/esm/BookReader/ReduceSet.js +27 -0
  35. package/dist/esm/BookReader/Toolbar/Toolbar.js +242 -0
  36. package/dist/esm/BookReader/events.js +20 -0
  37. package/dist/esm/BookReader/options.js +331 -0
  38. package/dist/esm/BookReader/utils/HTMLDimensionsCacher.js +48 -0
  39. package/dist/esm/BookReader/utils/ScrollClassAdder.js +31 -0
  40. package/dist/esm/BookReader/utils/SelectionObserver.js +42 -0
  41. package/dist/esm/BookReader/utils/classes.js +37 -0
  42. package/dist/esm/BookReader/utils.js +315 -0
  43. package/dist/esm/BookReader.js +1827 -0
  44. package/dist/esm/assets/icons/1up.svg +12 -0
  45. package/dist/esm/assets/icons/2up.svg +15 -0
  46. package/dist/esm/assets/icons/advance.svg +26 -0
  47. package/dist/esm/assets/icons/chevron-right.svg +1 -0
  48. package/dist/esm/assets/icons/close-circle-dark.svg +1 -0
  49. package/dist/esm/assets/icons/close-circle.svg +1 -0
  50. package/dist/esm/assets/icons/fullscreen.svg +17 -0
  51. package/dist/esm/assets/icons/fullscreen_exit.svg +17 -0
  52. package/dist/esm/assets/icons/hamburger.svg +15 -0
  53. package/dist/esm/assets/icons/left-arrow.svg +12 -0
  54. package/dist/esm/assets/icons/magnify-minus.svg +12 -0
  55. package/dist/esm/assets/icons/magnify-plus.svg +13 -0
  56. package/dist/esm/assets/icons/magnify.svg +15 -0
  57. package/dist/esm/assets/icons/pause.svg +23 -0
  58. package/dist/esm/assets/icons/play.svg +22 -0
  59. package/dist/esm/assets/icons/playback-speed.svg +34 -0
  60. package/dist/esm/assets/icons/read-aloud.svg +22 -0
  61. package/dist/esm/assets/icons/review.svg +22 -0
  62. package/dist/esm/assets/icons/thumbnails.svg +17 -0
  63. package/dist/esm/assets/icons/voice.svg +1 -0
  64. package/dist/esm/assets/icons/volume-full.svg +22 -0
  65. package/dist/esm/assets/images/BRicons.png +0 -0
  66. package/dist/esm/assets/images/BRicons.svg +94 -0
  67. package/dist/esm/assets/images/BRicons_ia.png +0 -0
  68. package/dist/esm/assets/images/back_pages.png +0 -0
  69. package/dist/esm/assets/images/book_bottom_icon.png +0 -0
  70. package/dist/esm/assets/images/book_down_icon.png +0 -0
  71. package/dist/esm/assets/images/book_left_icon.png +0 -0
  72. package/dist/esm/assets/images/book_leftmost_icon.png +0 -0
  73. package/dist/esm/assets/images/book_right_icon.png +0 -0
  74. package/dist/esm/assets/images/book_rightmost_icon.png +0 -0
  75. package/dist/esm/assets/images/book_top_icon.png +0 -0
  76. package/dist/esm/assets/images/book_up_icon.png +0 -0
  77. package/dist/esm/assets/images/books_graphic.svg +177 -0
  78. package/dist/esm/assets/images/booksplit.png +0 -0
  79. package/dist/esm/assets/images/control_pause_icon.png +0 -0
  80. package/dist/esm/assets/images/control_play_icon.png +0 -0
  81. package/dist/esm/assets/images/embed_icon.png +0 -0
  82. package/dist/esm/assets/images/icon-home-ia.png +0 -0
  83. package/dist/esm/assets/images/icon_OL-logo-xs.png +0 -0
  84. package/dist/esm/assets/images/icon_alert-xs.png +0 -0
  85. package/dist/esm/assets/images/icon_book.svg +12 -0
  86. package/dist/esm/assets/images/icon_bookmark.svg +12 -0
  87. package/dist/esm/assets/images/icon_close-pop.png +0 -0
  88. package/dist/esm/assets/images/icon_download.png +0 -0
  89. package/dist/esm/assets/images/icon_gear.svg +14 -0
  90. package/dist/esm/assets/images/icon_hamburger.svg +20 -0
  91. package/dist/esm/assets/images/icon_home.png +0 -0
  92. package/dist/esm/assets/images/icon_home.svg +21 -0
  93. package/dist/esm/assets/images/icon_home_ia.png +0 -0
  94. package/dist/esm/assets/images/icon_indicator.png +0 -0
  95. package/dist/esm/assets/images/icon_info.svg +11 -0
  96. package/dist/esm/assets/images/icon_one_page.svg +8 -0
  97. package/dist/esm/assets/images/icon_pause.svg +1 -0
  98. package/dist/esm/assets/images/icon_play.svg +1 -0
  99. package/dist/esm/assets/images/icon_playback-rate.svg +15 -0
  100. package/dist/esm/assets/images/icon_return.png +0 -0
  101. package/dist/esm/assets/images/icon_search_button.svg +8 -0
  102. package/dist/esm/assets/images/icon_share.svg +9 -0
  103. package/dist/esm/assets/images/icon_skip-ahead.svg +6 -0
  104. package/dist/esm/assets/images/icon_skip-back.svg +13 -0
  105. package/dist/esm/assets/images/icon_speaker.svg +18 -0
  106. package/dist/esm/assets/images/icon_speaker_open.svg +10 -0
  107. package/dist/esm/assets/images/icon_thumbnails.svg +12 -0
  108. package/dist/esm/assets/images/icon_toc.svg +5 -0
  109. package/dist/esm/assets/images/icon_two_pages.svg +9 -0
  110. package/dist/esm/assets/images/icon_zoomer.png +0 -0
  111. package/dist/esm/assets/images/loading.gif +0 -0
  112. package/dist/esm/assets/images/logo_icon.png +0 -0
  113. package/dist/esm/assets/images/marker_chap-off.png +0 -0
  114. package/dist/esm/assets/images/marker_chap-off.svg +11 -0
  115. package/dist/esm/assets/images/marker_chap-off_ia.png +0 -0
  116. package/dist/esm/assets/images/marker_chap-on.png +0 -0
  117. package/dist/esm/assets/images/marker_chap-on.svg +11 -0
  118. package/dist/esm/assets/images/marker_srch-on.svg +11 -0
  119. package/dist/esm/assets/images/marker_srchchap-off.png +0 -0
  120. package/dist/esm/assets/images/marker_srchchap-on.png +0 -0
  121. package/dist/esm/assets/images/nav_control-dn.png +0 -0
  122. package/dist/esm/assets/images/nav_control-dn_ia.png +0 -0
  123. package/dist/esm/assets/images/nav_control-up.png +0 -0
  124. package/dist/esm/assets/images/nav_control-up_ia.png +0 -0
  125. package/dist/esm/assets/images/nav_control.png +0 -0
  126. package/dist/esm/assets/images/one_page_mode_icon.png +0 -0
  127. package/dist/esm/assets/images/paper-badge.png +0 -0
  128. package/dist/esm/assets/images/print_icon.png +0 -0
  129. package/dist/esm/assets/images/progressbar.gif +0 -0
  130. package/dist/esm/assets/images/right_edges.png +0 -0
  131. package/dist/esm/assets/images/slider.png +0 -0
  132. package/dist/esm/assets/images/slider_ia.png +0 -0
  133. package/dist/esm/assets/images/thumbnail_mode_icon.png +0 -0
  134. package/dist/esm/assets/images/transparent.png +0 -0
  135. package/dist/esm/assets/images/two_page_mode_icon.png +0 -0
  136. package/dist/esm/assets/images/unviewable_page.png +0 -0
  137. package/dist/esm/assets/images/zoom_in_icon.png +0 -0
  138. package/dist/esm/assets/images/zoom_out_icon.png +0 -0
  139. package/dist/esm/css/BookReader.scss +85 -0
  140. package/dist/esm/css/_BRBookmarks.scss +29 -0
  141. package/dist/esm/css/_BRComponent.scss +13 -0
  142. package/dist/esm/css/_BRfloat.scss +197 -0
  143. package/dist/esm/css/_BRicon.scss +54 -0
  144. package/dist/esm/css/_BRmain.scss +262 -0
  145. package/dist/esm/css/_BRnav.scss +354 -0
  146. package/dist/esm/css/_BRpages.scss +213 -0
  147. package/dist/esm/css/_BRsearch.scss +268 -0
  148. package/dist/esm/css/_BRtoolbar.scss +84 -0
  149. package/dist/esm/css/_BRvendor.scss +5 -0
  150. package/dist/esm/css/_TextSelection.scss +108 -0
  151. package/dist/esm/css/_colorbox.scss +52 -0
  152. package/dist/esm/css/_controls.scss +257 -0
  153. package/dist/esm/css/_icons.scss +121 -0
  154. package/dist/esm/ia-bookreader/ia-bookreader.js +141 -0
  155. package/dist/esm/jquery-wrapper.js +3 -0
  156. package/dist/esm/plugins/plugin.archive_analytics.js +72 -0
  157. package/dist/esm/plugins/plugin.autoplay.js +119 -0
  158. package/dist/esm/plugins/plugin.chapters.js +288 -0
  159. package/dist/esm/plugins/plugin.iframe.js +44 -0
  160. package/dist/esm/plugins/plugin.iiif.js +146 -0
  161. package/dist/esm/plugins/plugin.resume.js +66 -0
  162. package/dist/esm/plugins/plugin.text_selection.js +621 -0
  163. package/dist/esm/plugins/plugin.vendor-fullscreen.js +227 -0
  164. package/dist/esm/plugins/search/plugin.search.js +499 -0
  165. package/dist/esm/plugins/search/utils.js +42 -0
  166. package/dist/esm/plugins/search/view.js +360 -0
  167. package/dist/esm/plugins/tts/AbstractTTSEngine.js +282 -0
  168. package/dist/esm/plugins/tts/FestivalTTSEngine.js +192 -0
  169. package/dist/esm/plugins/tts/PageChunk.js +105 -0
  170. package/dist/esm/plugins/tts/PageChunkIterator.js +155 -0
  171. package/dist/esm/plugins/tts/WebTTSEngine.js +364 -0
  172. package/dist/esm/plugins/tts/plugin.tts.js +315 -0
  173. package/dist/esm/plugins/tts/tooltip_dict.js +14 -0
  174. package/dist/esm/plugins/tts/utils.js +79 -0
  175. package/dist/esm/plugins/url/UrlPlugin.js +197 -0
  176. package/dist/esm/plugins/url/plugin.url.js +212 -0
  177. package/dist/esm/util/browserSniffing.js +56 -0
  178. package/dist/esm/util/debouncer.js +25 -0
  179. package/dist/esm/util/docCookies.js +75 -0
  180. package/dist/esm/util/strings.js +34 -0
  181. package/jsconfig.json +1 -0
  182. package/package.json +1 -7
@@ -0,0 +1,262 @@
1
+ #{$brScope} {
2
+ /* Shared root element rules */
3
+ font-family: $brFontFamily;
4
+ font-size: $brFontSizeBase;
5
+ line-height: 1.2;
6
+ -webkit-text-size-adjust: none;
7
+
8
+
9
+ /* Some helper functional css utilities */
10
+ .larger { font-size: 1.2em; }
11
+
12
+ /* Desktop-only */
13
+ @media (min-width: ($brBreakPointMobile + 1)) {
14
+ .mv20-lg { margin-top: 20px; margin-bottom: 20px; }
15
+ }
16
+
17
+ /* Element-level rules */
18
+ h3 {
19
+ font-size: 20px;
20
+ font-weight: 700;
21
+ color: #dedede;
22
+ }
23
+ button {
24
+ cursor: pointer;
25
+ }
26
+
27
+ a.logo {
28
+ display: inline-block;
29
+ width: auto;
30
+ height: 100%;
31
+ margin: 0 10px;
32
+ background: transparent url(images/icon_home.svg) no-repeat center center;
33
+ background-size: contain;
34
+ }
35
+ }
36
+
37
+ .BookReader {
38
+ margin: 0;
39
+ padding: 0;
40
+ position: relative;
41
+ overflow: hidden;
42
+ background-color: $brColorMainBg;
43
+
44
+ contain: strict;
45
+ }
46
+
47
+ .BRcontainer {
48
+ top: 0;
49
+ bottom: 0;
50
+ z-index: 1;
51
+ width: 100%;
52
+ overflow-x: auto;
53
+ overflow-y: scroll;
54
+ position: absolute;
55
+ -webkit-overflow-scrolling: touch;
56
+ }
57
+
58
+ .BRprogresspopup {
59
+ margin: 80px auto auto;
60
+ position: relative;
61
+ width: 320px;
62
+ background-color: white;
63
+ font-size: 1.5em;
64
+ padding: 20px;
65
+ border: 2px solid #999;
66
+ z-index: $brZindexPopup;
67
+ color: $gray13;
68
+
69
+ .close-popup {
70
+ position: absolute;
71
+ top: 0;
72
+ right: 0;
73
+ width: 30px;
74
+ width: 30px;
75
+ padding: 0;
76
+ border: 0;
77
+ background-color: transparent;
78
+
79
+ .icon.icon-close-dark {
80
+ position: absolute;
81
+ top: 5px;
82
+ right: 5px;
83
+ }
84
+ }
85
+ }
86
+
87
+ .BRprogressbar {
88
+ background-image: url("images/progressbar.gif");
89
+ background-repeat:no-repeat;
90
+ background-position:center top;
91
+ }
92
+
93
+ /* Share dialog */
94
+ .BRshare {
95
+ &.BRfloat { width: 600px; }
96
+
97
+ .share-title { margin: 15px 15px 0; font-weight: bold; font-size: 18px; line-height: 22px; }
98
+ .share-social { margin: 15px 15px 0;}
99
+ .share-social button {
100
+ padding: 0 5px;
101
+ height: 40px;
102
+ text-align: left;
103
+ color: white;
104
+ }
105
+ .share-social button > i { margin-right: 5px; }
106
+ .share-social > div { display: inline; }
107
+ .share-embed { margin-top: 20px; }
108
+
109
+ label.sub.open-to-this-page {
110
+ display: block;
111
+ }
112
+
113
+ button[type=button].share-finished {
114
+ background-color: rgb(74,144,226);
115
+ border: 0;
116
+ color: white;
117
+ border-radius: 3px;
118
+ padding: 10px 25px;
119
+ font-size: 15px;
120
+ }
121
+ }
122
+
123
+ /* Info dialog */
124
+ .BRinfoValueWrapper { margin-bottom: 10px; }
125
+ .BRinfoValue { font-size: $brFontSizeLarger; }
126
+ .BRinfoLabel { font-size: $brFontSizeSmaller; color: #999; }
127
+ .BRinfoMoreInfoWrapper {
128
+ background-color: $brColorThemeBlue3;
129
+ border-radius: 2px;
130
+ padding: 8px;
131
+ text-align: center;
132
+ &:active { background-color: rgb(80, 155, 242); }
133
+ }
134
+ .BRinfoOtherFormats { margin-bottom: 40px; }
135
+ .BRinfoRightCol > div { margin-bottom: 15px; }
136
+ .BRinfoFooter { text-align: right; }
137
+
138
+ /* Fullscreen rules */
139
+ .BookReader {
140
+ &.fullscreenActive {
141
+ position: fixed;
142
+ width: 100%;
143
+ height: 100%;
144
+ max-height: 100%;
145
+ background-color: black;
146
+ top: 0;
147
+ left: 0;
148
+ margin: 0;
149
+ z-index: $brZindexFullscreen;
150
+
151
+ .BRmobileHamburgerWrapper {
152
+ z-index: $brZindexFullscreen + 2;
153
+ }
154
+ }
155
+ }
156
+ body.BRfullscreenActive {
157
+ overflow: hidden;
158
+
159
+ .mm-menu {
160
+ z-index: $brZindexFullscreen - 1;
161
+ }
162
+ }
163
+
164
+ .BRaction {
165
+ margin-left: 5px;
166
+ margin-right: 5px;
167
+ padding: 8px 30px;
168
+ font-size: $brFontSizeBase;
169
+ border: none;
170
+ border-radius: 3px;
171
+ cursor: pointer;
172
+ min-width: 150px;
173
+ text-align: center;
174
+ line-height: 1;
175
+ &:active { background-color: rgb(171, 171, 171); }
176
+ &.default {
177
+ background-color: rgb(193,193,193);
178
+ color: white;
179
+ }
180
+ &.primary {
181
+ background-color: #4990E2;
182
+ &:active { background-color: #2a76cd; }
183
+ }
184
+ &.orangeButton {
185
+ background-color: transparent;
186
+ border: 2px solid orange;
187
+ color: orange;
188
+ &:active { border-color: rgb(249, 198, 19); }
189
+ }
190
+ &.skinny { min-width: 50px; }
191
+ &.facebook-share-button { background-color: #3a5998; }
192
+ &.twitter-share-button { background-color: #429aff; }
193
+ &.email-share-button { background-color: #c1c1c1; }
194
+ }
195
+
196
+ /* Mobile Only */
197
+ @media (max-width: $brBreakPointMobile) {
198
+ .BRinfoLeftCol { font-size: $brFontSizeBase; }
199
+ .BRimageW {text-align: center; margin-bottom: 10px;}
200
+ .BRimageW img { height: 200px; width: auto;}
201
+ .BRinfoValue.larger { font-size: $brFontSizeLarger; }
202
+ .BRinfoMoreInfoWrapper a {
203
+ font-size: inherit;
204
+ color: white;
205
+ text-decoration: none;
206
+ }
207
+ .BRinfoOtherFormatsFormat { margin-bottom: 6px; }
208
+ .BRinfoFooter { margin-bottom: 10px; text-align: left; }
209
+ .BRinfoFooter a { display: block;}
210
+ .BRfloatFoot.BRinfoFooter {
211
+ margin: initial;
212
+ padding: initial;
213
+ border: initial;
214
+ font-size: inherit;
215
+ }
216
+
217
+ #{$brScope} {
218
+ .fieldset-embed { display: none; }
219
+ .BRaction {
220
+ padding: 8px 10px;
221
+ margin-left: 0; margin-bottom: 10px;
222
+ }
223
+ }
224
+ }
225
+
226
+ /* Desktop Only */
227
+ @media (min-width: ($brBreakPointMobile + 1)) {
228
+ .BRinfoW { font-size: $brFontSizeBase; position: relative; padding: 15px; }
229
+ .BRinfoLeftCol { float: left; width: 40%; min-height: 1px; }
230
+ .BRinfoRightCol { float: left; width: 58%; }
231
+ .BRimageW {text-align: center; margin-bottom: 10px; margin-right: 26px;}
232
+ .BRimageW img { height:auto; width: 100%;}
233
+ .BRinfoValue.larger { font-size: 20px; line-height: 1.2; }
234
+ .BRinfoMoreInfoWrapper a { font-size: $brFontSizeBase; color: white; text-decoration: none; font-weight: bold; }
235
+ .BRinfoOtherFormatsFormat { display: inline; margin-right: 10px; }
236
+ .BRinfoFooter { font-size: 1em; clear:both; }
237
+ .BRinfoFooter a { display: inline; margin-right: 10px;}
238
+
239
+ #{$brScope} {
240
+ .BRaction { padding: 8px 16px; }
241
+ }
242
+ }
243
+
244
+ /* filters */
245
+ .filter-applied {
246
+ .BRpagediv1up { background-color: white; }
247
+ .BRpagedivthumb { background-color: white; }
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
+ }
@@ -0,0 +1,354 @@
1
+ /**
2
+ * BRnav is the bottom control bar (eg footer)
3
+ */
4
+ @use "sass:math";
5
+
6
+ @mixin pseudoElementLayer {
7
+ content: "";
8
+ top: 0;
9
+ left: 0;
10
+ width: 100%;
11
+ height: 100%;
12
+ box-sizing: border-box;
13
+ display: block;
14
+ }
15
+
16
+ @mixin brNavDark {
17
+ @include brDarkControls;
18
+
19
+ .BRpager {
20
+ background-color: $brColorDarkBorder;
21
+ .ui-slider-handle {
22
+ background: white;
23
+ border: none;
24
+ }
25
+ .ui-slider-range {
26
+ background: rgba(255, 255, 255, 0.59);
27
+ }
28
+ }
29
+
30
+ .BRpage {
31
+ .BRicon { border-left: 1px solid $brColorDarkBorder; }
32
+ .BRicon.activated { background-color: rgba(255,255,255,0.4); }
33
+ .BRicon.activated:before {
34
+ @include pseudoElementLayer;
35
+ border: 3px solid rgba(255,255,255,0.3);
36
+ }
37
+ }
38
+
39
+ .BRnavCntl {
40
+ z-index: $brZindexBase + 5;
41
+ background-color: $brColorDarkBorder;
42
+ }
43
+ .BRnavCntlBtm:hover {
44
+ background-color: $brColorThemeblue;
45
+ }
46
+ }
47
+
48
+ @mixin brNavLight {
49
+ @include brLightControls;
50
+
51
+ .BRpager.ui-slider {
52
+ background: #B7B7B7;
53
+ .ui-slider-handle {
54
+ background: $brColorThemeblue;
55
+ }
56
+ .ui-slider-range {
57
+ background: rgba($brColorThemeblue, .25);
58
+ }
59
+ }
60
+
61
+ .BRpage {
62
+ .BRicon { border-left: 1px solid $brColorLightBorder; }
63
+ .BRicon.activated { background-color: rgba($brColorThemeblue,0.4); }
64
+ .BRicon.activated:before {
65
+ @include pseudoElementLayer;
66
+ border: 3px solid rgba($brColorThemeblue,0.3);
67
+ }
68
+ }
69
+
70
+ .BRnavCntl {
71
+ background-color: $brColorLightBorder;
72
+ }
73
+
74
+ .BRnavCntlBtm:hover {
75
+ background-color: $brColorThemeblue;
76
+ }
77
+ }
78
+
79
+ @keyframes fadeUp {
80
+ from { opacity: 0; translate: 0 10px; }
81
+ to { opacity: 1; translate: 0 0; }
82
+ }
83
+
84
+ .BRfooter {
85
+ position: absolute;
86
+ bottom: 0;
87
+ left: 0;
88
+ width: 100%;
89
+
90
+ display: flex;
91
+ flex-direction: column;
92
+ /* important so it overlays over the book pages when showing */
93
+ z-index: 3;
94
+
95
+ button {
96
+ width: 30px;
97
+ height: 30px;
98
+ -webkit-appearance: none;
99
+ -moz-appearance: none;
100
+ appearance: none;
101
+ padding: 0;
102
+ cursor: pointer;
103
+ border: none;
104
+ border-radius: 2px;
105
+ background: transparent;
106
+
107
+ @media (hover: hover) {
108
+ /* styles to apply on devices that support hover */
109
+ &:hover .BRtooltip {
110
+ display: block;
111
+ }
112
+ }
113
+ &.hide {
114
+ display: none;
115
+ }
116
+ }
117
+ }
118
+
119
+ .BRReadAloudToolbar {
120
+ $toolbarHeight: $brNavHeightMobile;
121
+ display: flex;
122
+ justify-content: center;
123
+ margin: 5px;
124
+ padding: 0 math.div($brNavHeightMobile, 4);
125
+ border-radius: 4px;
126
+ align-self: center;
127
+ height: $toolbarHeight;
128
+ animation: fadeUp .2s;
129
+
130
+ // Default
131
+ @include brNavDark;
132
+
133
+ &--controls {
134
+ display: flex;
135
+ }
136
+ &--controls > * {
137
+ height: 100%;
138
+ }
139
+
140
+
141
+ .BRToolbarButton {
142
+ .icon {
143
+ width: $toolbarHeight;
144
+ height: $toolbarHeight;
145
+ box-sizing: border-box;
146
+ }
147
+
148
+ &.jumpForward .icon, &.jumpBackward .icon { padding: 9px; }
149
+ }
150
+
151
+ button {
152
+ padding: 0;
153
+ margin: 0;
154
+ border: 0px none;
155
+ box-sizing: border-box;
156
+ background: transparent none repeat scroll 0% 0%;
157
+ display: block;
158
+ }
159
+
160
+ .playback-rate-container {
161
+ width: $toolbarHeight;
162
+ height: $toolbarHeight;
163
+ position: relative;
164
+
165
+ .icon {
166
+ position: absolute;
167
+ top: 0;
168
+ left: 0;
169
+ width: 100%;
170
+ height: 100%;
171
+ padding: 6px;
172
+ box-sizing: border-box;
173
+ padding-bottom: 1em;
174
+ }
175
+
176
+ select {
177
+ cursor: pointer;
178
+ position: absolute;
179
+ top: 0;
180
+ bottom: 0;
181
+ left: 0;
182
+ width: 100%;
183
+ font-size: 0.8em;
184
+ -moz-appearance: none;
185
+ -webkit-appearance: none;
186
+ appearance: none;
187
+ border: 0;
188
+ text-align: center;
189
+ text-align-last: center; /* Chrome */
190
+ padding-top: 60%;
191
+ padding-left: 10%;
192
+ padding-right: 10%;
193
+ color: #333;
194
+ background: transparent;
195
+
196
+ /* IE */
197
+ &::-ms-expand { display: none; }
198
+ }
199
+ }
200
+
201
+ button:hover, .playback-rate-container:hover {
202
+ background: rgba(50, 50, 50, 0.2);
203
+ }
204
+ }
205
+
206
+ .BRnav {
207
+ box-sizing: border-box;
208
+ height: $brNavHeightDesktop;
209
+ padding-top: 0;
210
+ overflow: visible;
211
+
212
+ display: block;
213
+ display: flex;
214
+ flex-direction: row;
215
+ border-top: 1px solid $controlsBorder;
216
+
217
+ /* Theming */
218
+
219
+ // Default
220
+ @include brNavDark;
221
+
222
+ /* Full mobile styles */
223
+ @media (max-width: $brBreakPointMobile) {
224
+ height: $brNavHeightMobile;
225
+ box-shadow: 0px -1px 3px 0px rgba(#666, .25);
226
+ }
227
+ }
228
+
229
+ .BRnavpos {
230
+ position: relative;
231
+ margin-right: 10px;
232
+ margin-left: 10px;
233
+ float: left;
234
+ flex: 1 auto;
235
+ }
236
+ .BRpager.ui-slider {
237
+ position: relative;
238
+ height: 8px;
239
+ top: math.div($brNavHeightDesktop, 2) - 4px;
240
+ box-sizing: content-box;
241
+ border-radius: 10px;
242
+ cursor: pointer;
243
+
244
+ &.ui-widget.ui-widget-content {
245
+ border: none;
246
+ }
247
+
248
+ .ui-slider-horizontal .ui-slider-handle,
249
+ .ui-slider-handle {
250
+ position: absolute;
251
+ width: 20px;
252
+ height: 20px;
253
+ border-radius:50%;
254
+ top: -5px;
255
+ margin-left: -9px; /* Center icon */
256
+ z-index: $brZindexBase + 5;
257
+ border: none;
258
+ }
259
+ .ui-slider-range {
260
+ height: 100%;
261
+ border-radius: 10px;
262
+ }
263
+
264
+ /* handle active state for touch */
265
+ .touch & .ui-slider-handle.ui-state-active {
266
+ width: 24px;
267
+ height: 24px;
268
+ top: -4px;
269
+ margin-left: -11px;
270
+ }
271
+ }
272
+
273
+ /* BRnavlin is where chapters/search are appended */
274
+ .BRnavline {
275
+ position: relative;
276
+ height: 1px;
277
+ width: auto;
278
+ top: -1px;
279
+ margin: 0 10px;
280
+ width: 100%;
281
+ }
282
+ .BRcurrentpage {
283
+ display: inline-block;
284
+ text-align: center;
285
+ padding: 0 0 0 0;
286
+ font-size: $brFontSizeSmaller;
287
+ margin-left: 5px;
288
+ margin-right: 10px;
289
+ line-height: 1;
290
+ }
291
+ .BRnavTitle {
292
+ position: relative;
293
+ z-index: 2;
294
+ text-align: center;
295
+ padding: 0 0 0 0;
296
+ font-size: $brFontSizeSmaller;
297
+ margin-left: 10px;
298
+ margin-right: 5px;
299
+ line-height: 1;
300
+ display: flex;
301
+ flex-direction: column;
302
+ justify-content: center;
303
+ letter-spacing: 0.5px;
304
+ font-style: italic;
305
+ }
306
+ .BRpage {
307
+ height: 100%;
308
+ overflow: hidden;
309
+ padding-left: 0;
310
+ text-align: right;
311
+ white-space: nowrap;
312
+ float: left;
313
+ flex: none;
314
+ }
315
+ .BRpageLparan {
316
+ margin-right: 1px;
317
+ font-size: .8em;
318
+ vertical-align: top;
319
+ }
320
+ .BRpageRparan {
321
+ margin-left: 1px;
322
+ font-size: .8em;
323
+ vertical-align: top;
324
+ }
325
+ .BRup {
326
+ background-image: url("images/nav_control-up.png");
327
+ background-repeat: no-repeat;
328
+ }
329
+
330
+
331
+ /* Mobile Only */
332
+ @media (max-width: $brBreakPointMobile) {
333
+ /* hide navline chapters and search in mobile */
334
+ .BRnavline .BRchapter { display: none; }
335
+
336
+ .BRnavCntlBtm {
337
+ bottom: $brNavHeightMobile;
338
+ }
339
+ .BRpager.ui-slider {
340
+ height: 10px;
341
+ top: math.div($brNavHeightMobile, 2) - 5px;
342
+ }
343
+ }
344
+
345
+ /* Mobile nav zoom buttons */
346
+ .DrawerSettingsWrapper [class*="zoom"] {
347
+ width: 40px;
348
+ height: 40px;
349
+ background-position: -1224px center;
350
+ background-size: 3440px auto;
351
+ }
352
+ .DrawerSettingsWrapper .zoom_in {
353
+ background-position: -1384px center;
354
+ }