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

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 (215) hide show
  1. package/BookReader/BookReader.css +3 -3
  2. package/BookReader/BookReader.js +1 -1
  3. package/BookReader/BookReader.js.map +1 -1
  4. package/BookReader/ia-bookreader-bundle.js +87 -108
  5. package/BookReader/ia-bookreader-bundle.js.map +1 -1
  6. package/BookReader/plugins/plugin.archive_analytics.js +1 -1
  7. package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
  8. package/BookReader/plugins/plugin.search.js +1 -1
  9. package/BookReader/plugins/plugin.search.js.map +1 -1
  10. package/BookReader/plugins/plugin.text_selection.js +1 -1
  11. package/BookReader/plugins/plugin.text_selection.js.map +1 -1
  12. package/BookReader/plugins/plugin.tts.js +1 -1
  13. package/BookReader/plugins/plugin.tts.js.map +1 -1
  14. package/BookReader/plugins/plugin.url.js +1 -1
  15. package/BookReader/plugins/plugin.url.js.map +1 -1
  16. package/CHANGELOG.md +4 -0
  17. package/babel.config.js +12 -30
  18. package/jsconfig.json +1 -3
  19. package/package.json +14 -16
  20. package/src/BookNavigator/search/search-results.js +1 -1
  21. package/src/BookReader/Mode1UpLit.js +56 -86
  22. package/src/BookReader/Mode2UpLit.js +2 -3
  23. package/src/BookReader/Navbar/Navbar.js +53 -11
  24. package/src/BookReader/options.js +3 -0
  25. package/src/BookReader.js +49 -1
  26. package/src/BookReaderPlugin.js +28 -0
  27. package/src/css/_BRnav.scss +0 -3
  28. package/src/css/_controls.scss +4 -0
  29. package/src/plugins/plugin.archive_analytics.js +84 -78
  30. package/src/plugins/plugin.chapters.js +17 -22
  31. package/src/plugins/plugin.text_selection.js +1 -1
  32. package/src/plugins/tts/plugin.tts.js +2 -2
  33. package/tests/jest/BookReader/Navbar/Navbar.test.js +16 -3
  34. package/tests/jest/plugins/plugin.archive_analytics.test.js +8 -11
  35. package/dist/esm/BookNavigator/assets/bookmark-colors.js +0 -4
  36. package/dist/esm/BookNavigator/assets/button-base.js +0 -4
  37. package/dist/esm/BookNavigator/assets/ia-logo.js +0 -4
  38. package/dist/esm/BookNavigator/assets/icon_checkmark.js +0 -8
  39. package/dist/esm/BookNavigator/assets/icon_close.js +0 -4
  40. package/dist/esm/BookNavigator/book-navigator.js +0 -612
  41. package/dist/esm/BookNavigator/bookmarks/bookmark-button.js +0 -35
  42. package/dist/esm/BookNavigator/bookmarks/bookmark-edit.js +0 -78
  43. package/dist/esm/BookNavigator/bookmarks/bookmarks-list.js +0 -160
  44. package/dist/esm/BookNavigator/bookmarks/bookmarks-loginCTA.js +0 -24
  45. package/dist/esm/BookNavigator/bookmarks/bookmarks-provider.js +0 -55
  46. package/dist/esm/BookNavigator/bookmarks/ia-bookmarks.js +0 -521
  47. package/dist/esm/BookNavigator/delete-modal-actions.js +0 -29
  48. package/dist/esm/BookNavigator/downloads/downloads-provider.js +0 -84
  49. package/dist/esm/BookNavigator/downloads/downloads.js +0 -69
  50. package/dist/esm/BookNavigator/search/search-provider.js +0 -238
  51. package/dist/esm/BookNavigator/search/search-results.js +0 -161
  52. package/dist/esm/BookNavigator/sharing.js +0 -26
  53. package/dist/esm/BookNavigator/viewable-files.js +0 -94
  54. package/dist/esm/BookNavigator/visual-adjustments/visual-adjustments-provider.js +0 -83
  55. package/dist/esm/BookNavigator/visual-adjustments/visual-adjustments.js +0 -131
  56. package/dist/esm/BookReader/BookModel.js +0 -575
  57. package/dist/esm/BookReader/DragScrollable.js +0 -224
  58. package/dist/esm/BookReader/ImageCache.js +0 -122
  59. package/dist/esm/BookReader/Mode1Up.js +0 -114
  60. package/dist/esm/BookReader/Mode1UpLit.js +0 -579
  61. package/dist/esm/BookReader/Mode2Up.js +0 -106
  62. package/dist/esm/BookReader/Mode2UpLit.js +0 -1020
  63. package/dist/esm/BookReader/ModeCoordinateSpace.js +0 -28
  64. package/dist/esm/BookReader/ModeSmoothZoom.js +0 -318
  65. package/dist/esm/BookReader/ModeThumb.js +0 -366
  66. package/dist/esm/BookReader/Navbar/Navbar.js +0 -253
  67. package/dist/esm/BookReader/PageContainer.js +0 -165
  68. package/dist/esm/BookReader/ReduceSet.js +0 -27
  69. package/dist/esm/BookReader/Toolbar/Toolbar.js +0 -242
  70. package/dist/esm/BookReader/events.js +0 -20
  71. package/dist/esm/BookReader/options.js +0 -331
  72. package/dist/esm/BookReader/utils/HTMLDimensionsCacher.js +0 -48
  73. package/dist/esm/BookReader/utils/ScrollClassAdder.js +0 -31
  74. package/dist/esm/BookReader/utils/SelectionObserver.js +0 -42
  75. package/dist/esm/BookReader/utils/classes.js +0 -37
  76. package/dist/esm/BookReader/utils.js +0 -315
  77. package/dist/esm/BookReader.js +0 -1827
  78. package/dist/esm/assets/icons/1up.svg +0 -12
  79. package/dist/esm/assets/icons/2up.svg +0 -15
  80. package/dist/esm/assets/icons/advance.svg +0 -26
  81. package/dist/esm/assets/icons/chevron-right.svg +0 -1
  82. package/dist/esm/assets/icons/close-circle-dark.svg +0 -1
  83. package/dist/esm/assets/icons/close-circle.svg +0 -1
  84. package/dist/esm/assets/icons/fullscreen.svg +0 -17
  85. package/dist/esm/assets/icons/fullscreen_exit.svg +0 -17
  86. package/dist/esm/assets/icons/hamburger.svg +0 -15
  87. package/dist/esm/assets/icons/left-arrow.svg +0 -12
  88. package/dist/esm/assets/icons/magnify-minus.svg +0 -12
  89. package/dist/esm/assets/icons/magnify-plus.svg +0 -13
  90. package/dist/esm/assets/icons/magnify.svg +0 -15
  91. package/dist/esm/assets/icons/pause.svg +0 -23
  92. package/dist/esm/assets/icons/play.svg +0 -22
  93. package/dist/esm/assets/icons/playback-speed.svg +0 -34
  94. package/dist/esm/assets/icons/read-aloud.svg +0 -22
  95. package/dist/esm/assets/icons/review.svg +0 -22
  96. package/dist/esm/assets/icons/thumbnails.svg +0 -17
  97. package/dist/esm/assets/icons/voice.svg +0 -1
  98. package/dist/esm/assets/icons/volume-full.svg +0 -22
  99. package/dist/esm/assets/images/BRicons.png +0 -0
  100. package/dist/esm/assets/images/BRicons.svg +0 -94
  101. package/dist/esm/assets/images/BRicons_ia.png +0 -0
  102. package/dist/esm/assets/images/back_pages.png +0 -0
  103. package/dist/esm/assets/images/book_bottom_icon.png +0 -0
  104. package/dist/esm/assets/images/book_down_icon.png +0 -0
  105. package/dist/esm/assets/images/book_left_icon.png +0 -0
  106. package/dist/esm/assets/images/book_leftmost_icon.png +0 -0
  107. package/dist/esm/assets/images/book_right_icon.png +0 -0
  108. package/dist/esm/assets/images/book_rightmost_icon.png +0 -0
  109. package/dist/esm/assets/images/book_top_icon.png +0 -0
  110. package/dist/esm/assets/images/book_up_icon.png +0 -0
  111. package/dist/esm/assets/images/books_graphic.svg +0 -177
  112. package/dist/esm/assets/images/booksplit.png +0 -0
  113. package/dist/esm/assets/images/control_pause_icon.png +0 -0
  114. package/dist/esm/assets/images/control_play_icon.png +0 -0
  115. package/dist/esm/assets/images/embed_icon.png +0 -0
  116. package/dist/esm/assets/images/icon-home-ia.png +0 -0
  117. package/dist/esm/assets/images/icon_OL-logo-xs.png +0 -0
  118. package/dist/esm/assets/images/icon_alert-xs.png +0 -0
  119. package/dist/esm/assets/images/icon_book.svg +0 -12
  120. package/dist/esm/assets/images/icon_bookmark.svg +0 -12
  121. package/dist/esm/assets/images/icon_close-pop.png +0 -0
  122. package/dist/esm/assets/images/icon_download.png +0 -0
  123. package/dist/esm/assets/images/icon_gear.svg +0 -14
  124. package/dist/esm/assets/images/icon_hamburger.svg +0 -20
  125. package/dist/esm/assets/images/icon_home.png +0 -0
  126. package/dist/esm/assets/images/icon_home.svg +0 -21
  127. package/dist/esm/assets/images/icon_home_ia.png +0 -0
  128. package/dist/esm/assets/images/icon_indicator.png +0 -0
  129. package/dist/esm/assets/images/icon_info.svg +0 -11
  130. package/dist/esm/assets/images/icon_one_page.svg +0 -8
  131. package/dist/esm/assets/images/icon_pause.svg +0 -1
  132. package/dist/esm/assets/images/icon_play.svg +0 -1
  133. package/dist/esm/assets/images/icon_playback-rate.svg +0 -15
  134. package/dist/esm/assets/images/icon_return.png +0 -0
  135. package/dist/esm/assets/images/icon_search_button.svg +0 -8
  136. package/dist/esm/assets/images/icon_share.svg +0 -9
  137. package/dist/esm/assets/images/icon_skip-ahead.svg +0 -6
  138. package/dist/esm/assets/images/icon_skip-back.svg +0 -13
  139. package/dist/esm/assets/images/icon_speaker.svg +0 -18
  140. package/dist/esm/assets/images/icon_speaker_open.svg +0 -10
  141. package/dist/esm/assets/images/icon_thumbnails.svg +0 -12
  142. package/dist/esm/assets/images/icon_toc.svg +0 -5
  143. package/dist/esm/assets/images/icon_two_pages.svg +0 -9
  144. package/dist/esm/assets/images/icon_zoomer.png +0 -0
  145. package/dist/esm/assets/images/loading.gif +0 -0
  146. package/dist/esm/assets/images/logo_icon.png +0 -0
  147. package/dist/esm/assets/images/marker_chap-off.png +0 -0
  148. package/dist/esm/assets/images/marker_chap-off.svg +0 -11
  149. package/dist/esm/assets/images/marker_chap-off_ia.png +0 -0
  150. package/dist/esm/assets/images/marker_chap-on.png +0 -0
  151. package/dist/esm/assets/images/marker_chap-on.svg +0 -11
  152. package/dist/esm/assets/images/marker_srch-on.svg +0 -11
  153. package/dist/esm/assets/images/marker_srchchap-off.png +0 -0
  154. package/dist/esm/assets/images/marker_srchchap-on.png +0 -0
  155. package/dist/esm/assets/images/nav_control-dn.png +0 -0
  156. package/dist/esm/assets/images/nav_control-dn_ia.png +0 -0
  157. package/dist/esm/assets/images/nav_control-up.png +0 -0
  158. package/dist/esm/assets/images/nav_control-up_ia.png +0 -0
  159. package/dist/esm/assets/images/nav_control.png +0 -0
  160. package/dist/esm/assets/images/one_page_mode_icon.png +0 -0
  161. package/dist/esm/assets/images/paper-badge.png +0 -0
  162. package/dist/esm/assets/images/print_icon.png +0 -0
  163. package/dist/esm/assets/images/progressbar.gif +0 -0
  164. package/dist/esm/assets/images/right_edges.png +0 -0
  165. package/dist/esm/assets/images/slider.png +0 -0
  166. package/dist/esm/assets/images/slider_ia.png +0 -0
  167. package/dist/esm/assets/images/thumbnail_mode_icon.png +0 -0
  168. package/dist/esm/assets/images/transparent.png +0 -0
  169. package/dist/esm/assets/images/two_page_mode_icon.png +0 -0
  170. package/dist/esm/assets/images/unviewable_page.png +0 -0
  171. package/dist/esm/assets/images/zoom_in_icon.png +0 -0
  172. package/dist/esm/assets/images/zoom_out_icon.png +0 -0
  173. package/dist/esm/css/BookReader.scss +0 -85
  174. package/dist/esm/css/_BRBookmarks.scss +0 -29
  175. package/dist/esm/css/_BRComponent.scss +0 -13
  176. package/dist/esm/css/_BRfloat.scss +0 -197
  177. package/dist/esm/css/_BRicon.scss +0 -54
  178. package/dist/esm/css/_BRmain.scss +0 -262
  179. package/dist/esm/css/_BRnav.scss +0 -354
  180. package/dist/esm/css/_BRpages.scss +0 -213
  181. package/dist/esm/css/_BRsearch.scss +0 -268
  182. package/dist/esm/css/_BRtoolbar.scss +0 -84
  183. package/dist/esm/css/_BRvendor.scss +0 -5
  184. package/dist/esm/css/_TextSelection.scss +0 -108
  185. package/dist/esm/css/_colorbox.scss +0 -52
  186. package/dist/esm/css/_controls.scss +0 -257
  187. package/dist/esm/css/_icons.scss +0 -121
  188. package/dist/esm/ia-bookreader/ia-bookreader.js +0 -141
  189. package/dist/esm/jquery-wrapper.js +0 -3
  190. package/dist/esm/plugins/plugin.archive_analytics.js +0 -72
  191. package/dist/esm/plugins/plugin.autoplay.js +0 -119
  192. package/dist/esm/plugins/plugin.chapters.js +0 -288
  193. package/dist/esm/plugins/plugin.iframe.js +0 -44
  194. package/dist/esm/plugins/plugin.iiif.js +0 -146
  195. package/dist/esm/plugins/plugin.resume.js +0 -66
  196. package/dist/esm/plugins/plugin.text_selection.js +0 -621
  197. package/dist/esm/plugins/plugin.vendor-fullscreen.js +0 -227
  198. package/dist/esm/plugins/search/plugin.search.js +0 -499
  199. package/dist/esm/plugins/search/utils.js +0 -42
  200. package/dist/esm/plugins/search/view.js +0 -360
  201. package/dist/esm/plugins/tts/AbstractTTSEngine.js +0 -282
  202. package/dist/esm/plugins/tts/FestivalTTSEngine.js +0 -192
  203. package/dist/esm/plugins/tts/PageChunk.js +0 -105
  204. package/dist/esm/plugins/tts/PageChunkIterator.js +0 -155
  205. package/dist/esm/plugins/tts/WebTTSEngine.js +0 -364
  206. package/dist/esm/plugins/tts/plugin.tts.js +0 -315
  207. package/dist/esm/plugins/tts/tooltip_dict.js +0 -14
  208. package/dist/esm/plugins/tts/utils.js +0 -79
  209. package/dist/esm/plugins/url/UrlPlugin.js +0 -197
  210. package/dist/esm/plugins/url/plugin.url.js +0 -212
  211. package/dist/esm/util/browserSniffing.js +0 -56
  212. package/dist/esm/util/debouncer.js +0 -25
  213. package/dist/esm/util/docCookies.js +0 -75
  214. package/dist/esm/util/strings.js +0 -34
  215. package/index.js +0 -2
@@ -1,213 +0,0 @@
1
- .BRpageview {
2
- position: relative;
3
- margin: auto;
4
- }
5
-
6
- .BRmode1up .BRpagecontainer, .BRmodeThumb .BRpagecontainer {
7
- box-shadow: 1px 1px 2px #333;
8
- img {
9
- border: 0;
10
- }
11
- }
12
-
13
- .BRmodeThumb .BRpagecontainer, .BRmode2up .BRpagecontainer {
14
- cursor: pointer;
15
- }
16
- .BRpagecontainer.BRemptypage {
17
- cursor: unset;
18
- }
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
-
42
- .BRpagecontainer {
43
- position: relative;
44
- overflow: hidden;
45
- background: $brColorPlaceholderBg;
46
- overflow: hidden;
47
- overflow: clip;
48
- img {
49
- position: absolute;
50
- background: transparent;
51
- display: block;
52
- width: 100%;
53
- height: 100%;
54
- }
55
- .BRscreen {
56
- position: absolute;
57
- top: 0;
58
- right: 0;
59
- bottom: 0;
60
- left: 0;
61
- z-index: 1;
62
- }
63
- &.BRpageloading img {
64
- // Don't show the alt text while loading
65
- color: transparent;
66
- }
67
- &.BRemptypage {
68
- background: transparent;
69
- img {
70
- background-image: none;
71
- }
72
- }
73
- }
74
-
75
- svg.BRPageLayer {
76
- position: absolute;
77
- top: 0;
78
- left: 0;
79
- right: 0;
80
- bottom: 0;
81
- }
82
-
83
- // Hides page layers during page flip animation
84
- .BRpageFlipping .BRPageLayer {
85
- display: none;
86
- }
87
-
88
- .br-mode-2up__root {
89
- display: block;
90
- overflow: auto;
91
- width: 100%;
92
- height: 100%;
93
- }
94
-
95
- .br-mode-2up__book {
96
- position: relative;
97
- transform-origin: 0 0;
98
- width: 0px;
99
- height: 0px;
100
- }
101
-
102
- .BRmode2up {
103
- // Used while loading stuff
104
- transition: opacity 0.2s;
105
- }
106
-
107
- .BRmode2up .BRpagecontainer {
108
- backface-visibility: hidden;
109
- &:not(.BRpage-visible) {
110
- display: none;
111
- }
112
- }
113
-
114
- .br-mode-2up__leafs {
115
- position: absolute;
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
- }
180
- }
181
-
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
- }
213
- }
@@ -1,268 +0,0 @@
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
-
8
- %timeline-tooltip {
9
- display: none;
10
- position: absolute;
11
- bottom: calc(100% + 5px);
12
- left: -14px;
13
- width: 350px;
14
- max-width: 100vw;
15
- padding: 12px 14px;
16
- padding-bottom: 10px;
17
- color: $tooltipText;
18
- background: $tooltipBG;
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
32
- &:after {
33
- position: absolute;
34
- content: "";
35
- bottom: -9px;
36
- left: 0;
37
- width: 30px;
38
- height: 10px;
39
- clip-path: polygon(0 0, 100% 0, 50% 100%);
40
- }
41
- }
42
-
43
- #{$brScope} {
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;
60
-
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
- }
67
- }
68
-
69
- .BRchapter, .BRsearch {
70
- position: absolute;
71
- bottom: 0; /* Relative to nav line */
72
- cursor: pointer;
73
- z-index: $brZindexBase + 2;
74
- background-color: transparent;
75
- background-repeat: no-repeat;
76
- font-weight: normal;
77
- }
78
- .BRchapter {
79
- // background-image: url(images/marker_chap-off.svg);
80
- background-color: white;
81
- color: #666;
82
- height: 8px;
83
- width: 4px;
84
- bottom: -13px;
85
- margin-left: -12px; /* Center icon */
86
- > div {
87
- @extend %timeline-tooltip;
88
- }
89
- &:hover {
90
- > div {
91
- display: block;
92
- }
93
- }
94
- &.front {
95
- // background-image: url(images/marker_chap-on.svg);
96
- background-color: blue;
97
- }
98
- .BRchapterPage {
99
- font-size: 0.85em;
100
- opacity: .8;
101
- }
102
- }
103
- .BRsearch {
104
- width: 9px;
105
- height: 6px;
106
- margin-left: -10px;
107
- &:before {
108
- position: absolute;
109
- left: calc(50% - 2px);
110
- transform: translateX(-50%);
111
- width: 2px;
112
- height: 6px;
113
- content: "";
114
- background: $searchMarkerBG;
115
- border-radius: 2px;
116
- }
117
- &:hover {
118
- .BRquery {
119
- display: block;
120
- }
121
- }
122
- }
123
- .BRsearch .BRquery {
124
- display: none;
125
- }
126
- .BRquery {
127
- @extend %timeline-tooltip;
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 {
139
- color: $searchResultText;
140
- font-weight: bold;
141
- background-color: $searchResultBG;
142
- }
143
- }
144
-
145
- .BRbooksearch {
146
- position:relative;
147
- box-sizing: border-box;
148
- }
149
- .BRbooksearch.desktop {
150
- position: relative;
151
- height: 30px;
152
- border: 1px solid white;
153
- border-radius: 20px;
154
- display: inline-block;
155
- line-height:0;
156
- vertical-align: top;
157
- margin-top: 0;
158
- margin-bottom: 0;
159
-
160
- .BRsearchInput {
161
- -webkit-appearance: none;
162
- position: relative;
163
- width: 130px;
164
- max-width: 160px;
165
- height: 100%;
166
- color: white;
167
- border: none;
168
- padding: 3px 0px 3px 10px;
169
- margin: 0;
170
- box-sizing: border-box;
171
- background: transparent;
172
- display: block;
173
- float: left;
174
- font-size: $brFontSizeBase;
175
- line-height: 1.2;
176
- }
177
- .BRsearchSubmit {
178
- width: auto;
179
- height: 100%;
180
- border: none;
181
- text-align: center;
182
- color: #fff;
183
- overflow: hidden;
184
- box-sizing:boder-box;
185
- display: block;
186
- background: transparent;
187
- float: left;
188
- cursor: pointer;
189
- }
190
- }
191
-
192
- .BRsearch-navigation {
193
- position: relative;
194
- z-index: 1;
195
- display: flex;
196
- justify-content: space-between;
197
- align-items: center;
198
- color: $white;
199
- background-color: $brColorDarkGreyBg;
200
- padding: 5px 0;
201
- button.toggle-sidebar {
202
- width: unset;
203
- padding: 0 10px;
204
- h4 {
205
- padding: 0;
206
- margin: 0;
207
- font-size: 15px;
208
- font-weight: normal;
209
- color: $white;
210
- span {
211
- vertical-align: middle;
212
- }
213
- }
214
- }
215
- .pagination {
216
- position: absolute;
217
- left: 50%;
218
- top: 50%;
219
- transform: translate(-50%, -50%);
220
- margin: 0;
221
- span {
222
- display: inline-block;
223
- padding: 0 5px;
224
- }
225
- button {
226
- &[disabled] {
227
- opacity: .3;
228
- cursor: default;
229
- }
230
- span {
231
- width: 8px;
232
- height: 13px;
233
- padding: 0;
234
- background-size: 100% auto;
235
- }
236
- }
237
- }
238
- .clear {
239
- span {
240
- width: 18px;
241
- height: 18px;
242
- }
243
- }
244
- + .BRnav {
245
- .BRnavCntl {
246
- display: none;
247
- }
248
- }
249
- }
250
- }
251
-
252
- @keyframes highlightFocus {
253
- to { stroke-width: 20px; }
254
- }
255
-
256
- /* Mid size breakpoint */
257
- @media (max-width: $brBreakPointMid) {
258
- #{$brScope} {
259
- .BRbooksearch .BRsearchInput {
260
- padding: 0 0 0 8px;
261
- width: 110px;
262
- min-width: 110px;
263
- }
264
- .BRbooksearch .BRsearchSubmit {
265
- float: left;
266
- }
267
- }
268
- }
@@ -1,84 +0,0 @@
1
- /**
2
- * BRtoolbar is the top control bar (eg header)
3
- */
4
-
5
- .BRtoolbar {
6
- position: relative;
7
- top: 0;
8
- left: 0;
9
- padding: 10px 10px 4px 10px;
10
- width: 100%;
11
- background-color: transparent;
12
- box-sizing: border-box;
13
- width: 100%;
14
- color: white;
15
- font-size: $brFontSizeBase;
16
- /* ensure that this displays over book */
17
- z-index: 3;
18
- }
19
- .BRtoolbar .label {
20
- font-size: $brFontSizeSmaller;
21
- color: #ccc;
22
- }
23
- .BRtoolbar a {
24
- text-decoration: none;
25
- color: white;
26
- &:hover {
27
- color: white;
28
- text-decoration: underline;
29
- }
30
- }
31
- /* desktop header */
32
- .BRtoolbarSection > * {
33
- margin-left: 6px;
34
- }
35
- .BRtoolbarbuttons {
36
- white-space: nowrap;
37
- box-sizing: border-box;
38
- display: flex;
39
- flex-direction: row;
40
- }
41
- .BRtoolbarbuttons .BRpill {
42
- border: 1px solid white;
43
- background: transparent;
44
- padding: 5px 10px;
45
- height: 30px;
46
- border-radius: 20px;
47
- color: white;
48
- line-height: 0;
49
- vertical-align: middle;
50
- font-size: $brFontSizeSmaller;
51
- cursor: pointer;
52
- &.BRtoolbarHamburger {
53
- border: none;
54
- border-radius: none;
55
- }
56
- }
57
-
58
- .BRtoolbarSection {
59
- white-space: nowrap;
60
- }
61
- .BRtoolbarSectionLogo {
62
- text-align: center;
63
- display: none;
64
- }
65
- .BRtoolbarLeft {
66
- flex: 1 auto;
67
- overflow-y: hidden;
68
- }
69
- // .BRtoolbarSectionTitle {}
70
- .BRtoolbarRight {
71
- flex: none;
72
- }
73
-
74
- @media (max-width: $brBreakPointMobile) {
75
- .BRtoolbar {
76
- height: $brNavHeightMobile;
77
- padding: 0;
78
- box-shadow: 0px 1px 3px 0px rgba(#666, .25);
79
- }
80
- }
81
-
82
- ia-bookreader .BRtoolbar {
83
- padding-left: 50px;
84
- }
@@ -1,5 +0,0 @@
1
- /****************** Excerpt from jquery-ui *********************/
2
- .ui-helper-hidden { display: none; }
3
- .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
4
- .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
5
- .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
@@ -1,108 +0,0 @@
1
- .BRtextLayer {
2
- z-index: 2;
3
- position: absolute;
4
- top: 0;
5
- left: 0;
6
- color: transparent;
7
- transform-origin: 0 0;
8
- // Make it so right-clicking on "blank" part of text layer sends events to the image (for saving)
9
- pointer-events: none;
10
- cursor: text;
11
- }
12
-
13
- .BRparagraphElement {
14
- margin: 0;
15
- cursor: text;
16
- font-family: Georgia, serif;
17
- line-height: 0;
18
- }
19
-
20
- .BRlineElement {
21
- pointer-events: all;
22
- white-space: nowrap;
23
- display: inline-block;
24
-
25
- // We use display: inline-block, otherwise this causes every line
26
- // to have newlines at the end in safari. BUT, since they're inline,
27
- // if the OCR has to short line in the same paragraph, they can wrap
28
- // and one can go onto the other. This adds an arbitrary margin to
29
- // the right of each line, forcing things to wrap.
30
- // See eg https://www-drini.archive.org/details/countofmontecris00duma_7/page/261/mode/2up
31
- // Page 261, second last line on the page.
32
- .BRtextLayer[dir=ltr] & { margin-right: 100%; }
33
- .BRtextLayer[dir=rtl] & { margin-left: 100%; }
34
- }
35
-
36
- // Highlight colors for text selection layer
37
- .BRwordElement, .BRspace, .BRparagraphElement, .BRparagraphElement br {
38
- // these 2 properties do not work if joined
39
- &::selection {
40
- background: hsla(210, 74%, 62%, 0.4);
41
- }
42
-
43
- &::-moz-selection {
44
- background: hsla(210, 74%, 62%, 0.4);
45
- color:transparent;
46
- }
47
- }
48
-
49
- .BRparagraphElement br {
50
- visibility: hidden;
51
- }
52
-
53
- // Use CSS pseudo-elements to render the hyphens. This makes them
54
- // not selectable, so copy/pasting text doesn't include them.
55
- .BRwordElement--hyphen::after {
56
- content: "-";
57
- }
58
-
59
- // Hide text layer for performance during zooming & scrolling
60
- .BRsmooth-zooming, .BRscrolling-active {
61
- .BRpagecontainer:not(.BRpagecontainer--hasSelection) .BRtextLayer {
62
- display: none;
63
- }
64
- }
65
-
66
- // Hide text selection layers of off-screen pages
67
- .BRmode1up .BRpagecontainer:not(.BRpage-visible) .BRtextLayer {
68
- display: none;
69
- }
70
-
71
- // Makes page image unselectable
72
- .BRpagecontainer img {
73
- -webkit-user-select: none;
74
- -moz-user-select: none;
75
- user-select: none;
76
- }
77
-
78
-
79
- // These are Microsoft Edge specific fixed to make some of the
80
- // browsers features work well. These are for the in-place
81
- // translation.
82
- .BRwordElement, .BRspace {
83
- &[_istranslated="1"], &[_msttexthash] {
84
- background-color: #e4dccd;
85
- color: black;
86
- letter-spacing: unset !important;
87
- background: #ccbfa7;
88
- }
89
- }
90
-
91
- .BRlineElement font[_mstmutation="1"] {
92
- background: #ccbfa7;
93
- }
94
-
95
- .BRlineElement:has([_istranslated="1"], [_msttexthash]) {
96
- background-color: #e4dccd;
97
- color: black;
98
- text-align: justify;
99
- width: inherit;
100
- &:not(:nth-last-child(2)) {
101
- text-align-last: justify;
102
- }
103
- }
104
-
105
- .BRlineElement[_msttexthash] {
106
- background: #ccbfa7;
107
- word-spacing: unset !important;
108
- }
@@ -1,52 +0,0 @@
1
- /* COLORBOX POP-UP */
2
-
3
- #colorbox, #cboxOverlay, #cboxWrapper {
4
- position: absolute;
5
- top: 0;
6
- left: 0;
7
- z-index: $brZindexPopup;
8
- }
9
- #cboxOverlay {
10
- position: fixed;
11
- width: 100%;
12
- height: 100%;
13
- background: #000;
14
- opacity:0.75; filter:Alpha(Opacity=75);
15
- }
16
- #cboxMiddleLeft, #cboxBottomLeft { clear:left; }
17
- #cboxContent { position:relative; }
18
- #cboxLoadedContent { overflow: hidden!important; }
19
- #cboxLoadedContent iframe { display: block; border: 0; }
20
- #cboxTitle { margin: 0; display: none !important; }
21
- #cboxLoadingOverlay, #cboxLoadingGraphic {
22
- position: absolute;
23
- top: 25px;
24
- left: 25px;
25
- width: 100%;
26
- }
27
- #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow { cursor:pointer; }
28
- #cboxClose { display: none !important; }
29
-
30
- #colorbox{
31
- background: white;
32
- border: 2px solid #ccc;
33
- -webkit-border-radius:12px;
34
- -moz-border-radius:12px;
35
- border-radius:12px;
36
- -webkit-box-shadow: 0px 0px 27px 6px rgba(66, 66, 66, 0.8);
37
- -moz-box-shadow: 0px 0px 27px 6px rgba(66, 66, 66, 0.8);
38
- box-shadow: 0px 0px 27px 6px rgba(66, 66, 66, 0.8);
39
- }
40
- #cboxWrapper {}
41
- #cboxContent {
42
- padding:0;
43
- }
44
- #cboxLoadedContent{
45
- margin:0;
46
- }
47
- #cboxLoadingOverlay{background:transparent;}
48
-
49
- .br-colorbox-shift {
50
- position: absolute !important;
51
- left: -10000px !important;
52
- }