@internetarchive/bookreader 5.0.0-88-alpha.7 → 5.0.0-88-alpha.9

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 (183) hide show
  1. package/babel.config.js +30 -12
  2. package/dist/esm/BookNavigator/assets/bookmark-colors.js +4 -0
  3. package/dist/esm/BookNavigator/assets/button-base.js +4 -0
  4. package/dist/esm/BookNavigator/assets/ia-logo.js +4 -0
  5. package/dist/esm/BookNavigator/assets/icon_checkmark.js +8 -0
  6. package/dist/esm/BookNavigator/assets/icon_close.js +4 -0
  7. package/dist/esm/BookNavigator/book-navigator.js +612 -0
  8. package/dist/esm/BookNavigator/bookmarks/bookmark-button.js +35 -0
  9. package/dist/esm/BookNavigator/bookmarks/bookmark-edit.js +78 -0
  10. package/dist/esm/BookNavigator/bookmarks/bookmarks-list.js +160 -0
  11. package/dist/esm/BookNavigator/bookmarks/bookmarks-loginCTA.js +24 -0
  12. package/dist/esm/BookNavigator/bookmarks/bookmarks-provider.js +55 -0
  13. package/dist/esm/BookNavigator/bookmarks/ia-bookmarks.js +521 -0
  14. package/dist/esm/BookNavigator/delete-modal-actions.js +29 -0
  15. package/dist/esm/BookNavigator/downloads/downloads-provider.js +84 -0
  16. package/dist/esm/BookNavigator/downloads/downloads.js +69 -0
  17. package/dist/esm/BookNavigator/search/search-provider.js +238 -0
  18. package/dist/esm/BookNavigator/search/search-results.js +161 -0
  19. package/dist/esm/BookNavigator/sharing.js +26 -0
  20. package/dist/esm/BookNavigator/viewable-files.js +94 -0
  21. package/dist/esm/BookNavigator/visual-adjustments/visual-adjustments-provider.js +83 -0
  22. package/dist/esm/BookNavigator/visual-adjustments/visual-adjustments.js +131 -0
  23. package/dist/esm/BookReader/BookModel.js +575 -0
  24. package/dist/esm/BookReader/DragScrollable.js +224 -0
  25. package/dist/esm/BookReader/ImageCache.js +122 -0
  26. package/dist/esm/BookReader/Mode1Up.js +114 -0
  27. package/dist/esm/BookReader/Mode1UpLit.js +579 -0
  28. package/dist/esm/BookReader/Mode2Up.js +106 -0
  29. package/dist/esm/BookReader/Mode2UpLit.js +1020 -0
  30. package/dist/esm/BookReader/ModeCoordinateSpace.js +28 -0
  31. package/dist/esm/BookReader/ModeSmoothZoom.js +318 -0
  32. package/dist/esm/BookReader/ModeThumb.js +366 -0
  33. package/dist/esm/BookReader/Navbar/Navbar.js +253 -0
  34. package/dist/esm/BookReader/PageContainer.js +165 -0
  35. package/dist/esm/BookReader/ReduceSet.js +27 -0
  36. package/dist/esm/BookReader/Toolbar/Toolbar.js +242 -0
  37. package/dist/esm/BookReader/events.js +20 -0
  38. package/dist/esm/BookReader/options.js +331 -0
  39. package/dist/esm/BookReader/utils/HTMLDimensionsCacher.js +48 -0
  40. package/dist/esm/BookReader/utils/ScrollClassAdder.js +31 -0
  41. package/dist/esm/BookReader/utils/SelectionObserver.js +42 -0
  42. package/dist/esm/BookReader/utils/classes.js +37 -0
  43. package/dist/esm/BookReader/utils.js +315 -0
  44. package/dist/esm/BookReader.js +1827 -0
  45. package/dist/esm/assets/icons/1up.svg +12 -0
  46. package/dist/esm/assets/icons/2up.svg +15 -0
  47. package/dist/esm/assets/icons/advance.svg +26 -0
  48. package/dist/esm/assets/icons/chevron-right.svg +1 -0
  49. package/dist/esm/assets/icons/close-circle-dark.svg +1 -0
  50. package/dist/esm/assets/icons/close-circle.svg +1 -0
  51. package/dist/esm/assets/icons/fullscreen.svg +17 -0
  52. package/dist/esm/assets/icons/fullscreen_exit.svg +17 -0
  53. package/dist/esm/assets/icons/hamburger.svg +15 -0
  54. package/dist/esm/assets/icons/left-arrow.svg +12 -0
  55. package/dist/esm/assets/icons/magnify-minus.svg +12 -0
  56. package/dist/esm/assets/icons/magnify-plus.svg +13 -0
  57. package/dist/esm/assets/icons/magnify.svg +15 -0
  58. package/dist/esm/assets/icons/pause.svg +23 -0
  59. package/dist/esm/assets/icons/play.svg +22 -0
  60. package/dist/esm/assets/icons/playback-speed.svg +34 -0
  61. package/dist/esm/assets/icons/read-aloud.svg +22 -0
  62. package/dist/esm/assets/icons/review.svg +22 -0
  63. package/dist/esm/assets/icons/thumbnails.svg +17 -0
  64. package/dist/esm/assets/icons/voice.svg +1 -0
  65. package/dist/esm/assets/icons/volume-full.svg +22 -0
  66. package/dist/esm/assets/images/BRicons.png +0 -0
  67. package/dist/esm/assets/images/BRicons.svg +94 -0
  68. package/dist/esm/assets/images/BRicons_ia.png +0 -0
  69. package/dist/esm/assets/images/back_pages.png +0 -0
  70. package/dist/esm/assets/images/book_bottom_icon.png +0 -0
  71. package/dist/esm/assets/images/book_down_icon.png +0 -0
  72. package/dist/esm/assets/images/book_left_icon.png +0 -0
  73. package/dist/esm/assets/images/book_leftmost_icon.png +0 -0
  74. package/dist/esm/assets/images/book_right_icon.png +0 -0
  75. package/dist/esm/assets/images/book_rightmost_icon.png +0 -0
  76. package/dist/esm/assets/images/book_top_icon.png +0 -0
  77. package/dist/esm/assets/images/book_up_icon.png +0 -0
  78. package/dist/esm/assets/images/books_graphic.svg +177 -0
  79. package/dist/esm/assets/images/booksplit.png +0 -0
  80. package/dist/esm/assets/images/control_pause_icon.png +0 -0
  81. package/dist/esm/assets/images/control_play_icon.png +0 -0
  82. package/dist/esm/assets/images/embed_icon.png +0 -0
  83. package/dist/esm/assets/images/icon-home-ia.png +0 -0
  84. package/dist/esm/assets/images/icon_OL-logo-xs.png +0 -0
  85. package/dist/esm/assets/images/icon_alert-xs.png +0 -0
  86. package/dist/esm/assets/images/icon_book.svg +12 -0
  87. package/dist/esm/assets/images/icon_bookmark.svg +12 -0
  88. package/dist/esm/assets/images/icon_close-pop.png +0 -0
  89. package/dist/esm/assets/images/icon_download.png +0 -0
  90. package/dist/esm/assets/images/icon_gear.svg +14 -0
  91. package/dist/esm/assets/images/icon_hamburger.svg +20 -0
  92. package/dist/esm/assets/images/icon_home.png +0 -0
  93. package/dist/esm/assets/images/icon_home.svg +21 -0
  94. package/dist/esm/assets/images/icon_home_ia.png +0 -0
  95. package/dist/esm/assets/images/icon_indicator.png +0 -0
  96. package/dist/esm/assets/images/icon_info.svg +11 -0
  97. package/dist/esm/assets/images/icon_one_page.svg +8 -0
  98. package/dist/esm/assets/images/icon_pause.svg +1 -0
  99. package/dist/esm/assets/images/icon_play.svg +1 -0
  100. package/dist/esm/assets/images/icon_playback-rate.svg +15 -0
  101. package/dist/esm/assets/images/icon_return.png +0 -0
  102. package/dist/esm/assets/images/icon_search_button.svg +8 -0
  103. package/dist/esm/assets/images/icon_share.svg +9 -0
  104. package/dist/esm/assets/images/icon_skip-ahead.svg +6 -0
  105. package/dist/esm/assets/images/icon_skip-back.svg +13 -0
  106. package/dist/esm/assets/images/icon_speaker.svg +18 -0
  107. package/dist/esm/assets/images/icon_speaker_open.svg +10 -0
  108. package/dist/esm/assets/images/icon_thumbnails.svg +12 -0
  109. package/dist/esm/assets/images/icon_toc.svg +5 -0
  110. package/dist/esm/assets/images/icon_two_pages.svg +9 -0
  111. package/dist/esm/assets/images/icon_zoomer.png +0 -0
  112. package/dist/esm/assets/images/loading.gif +0 -0
  113. package/dist/esm/assets/images/logo_icon.png +0 -0
  114. package/dist/esm/assets/images/marker_chap-off.png +0 -0
  115. package/dist/esm/assets/images/marker_chap-off.svg +11 -0
  116. package/dist/esm/assets/images/marker_chap-off_ia.png +0 -0
  117. package/dist/esm/assets/images/marker_chap-on.png +0 -0
  118. package/dist/esm/assets/images/marker_chap-on.svg +11 -0
  119. package/dist/esm/assets/images/marker_srch-on.svg +11 -0
  120. package/dist/esm/assets/images/marker_srchchap-off.png +0 -0
  121. package/dist/esm/assets/images/marker_srchchap-on.png +0 -0
  122. package/dist/esm/assets/images/nav_control-dn.png +0 -0
  123. package/dist/esm/assets/images/nav_control-dn_ia.png +0 -0
  124. package/dist/esm/assets/images/nav_control-up.png +0 -0
  125. package/dist/esm/assets/images/nav_control-up_ia.png +0 -0
  126. package/dist/esm/assets/images/nav_control.png +0 -0
  127. package/dist/esm/assets/images/one_page_mode_icon.png +0 -0
  128. package/dist/esm/assets/images/paper-badge.png +0 -0
  129. package/dist/esm/assets/images/print_icon.png +0 -0
  130. package/dist/esm/assets/images/progressbar.gif +0 -0
  131. package/dist/esm/assets/images/right_edges.png +0 -0
  132. package/dist/esm/assets/images/slider.png +0 -0
  133. package/dist/esm/assets/images/slider_ia.png +0 -0
  134. package/dist/esm/assets/images/thumbnail_mode_icon.png +0 -0
  135. package/dist/esm/assets/images/transparent.png +0 -0
  136. package/dist/esm/assets/images/two_page_mode_icon.png +0 -0
  137. package/dist/esm/assets/images/unviewable_page.png +0 -0
  138. package/dist/esm/assets/images/zoom_in_icon.png +0 -0
  139. package/dist/esm/assets/images/zoom_out_icon.png +0 -0
  140. package/dist/esm/css/BookReader.scss +85 -0
  141. package/dist/esm/css/_BRBookmarks.scss +29 -0
  142. package/dist/esm/css/_BRComponent.scss +13 -0
  143. package/dist/esm/css/_BRfloat.scss +197 -0
  144. package/dist/esm/css/_BRicon.scss +54 -0
  145. package/dist/esm/css/_BRmain.scss +262 -0
  146. package/dist/esm/css/_BRnav.scss +354 -0
  147. package/dist/esm/css/_BRpages.scss +213 -0
  148. package/dist/esm/css/_BRsearch.scss +268 -0
  149. package/dist/esm/css/_BRtoolbar.scss +84 -0
  150. package/dist/esm/css/_BRvendor.scss +5 -0
  151. package/dist/esm/css/_TextSelection.scss +108 -0
  152. package/dist/esm/css/_colorbox.scss +52 -0
  153. package/dist/esm/css/_controls.scss +257 -0
  154. package/dist/esm/css/_icons.scss +121 -0
  155. package/dist/esm/ia-bookreader/ia-bookreader.js +141 -0
  156. package/dist/esm/jquery-wrapper.js +3 -0
  157. package/dist/esm/plugins/plugin.archive_analytics.js +72 -0
  158. package/dist/esm/plugins/plugin.autoplay.js +119 -0
  159. package/dist/esm/plugins/plugin.chapters.js +288 -0
  160. package/dist/esm/plugins/plugin.iframe.js +44 -0
  161. package/dist/esm/plugins/plugin.iiif.js +146 -0
  162. package/dist/esm/plugins/plugin.resume.js +66 -0
  163. package/dist/esm/plugins/plugin.text_selection.js +621 -0
  164. package/dist/esm/plugins/plugin.vendor-fullscreen.js +227 -0
  165. package/dist/esm/plugins/search/plugin.search.js +499 -0
  166. package/dist/esm/plugins/search/utils.js +42 -0
  167. package/dist/esm/plugins/search/view.js +360 -0
  168. package/dist/esm/plugins/tts/AbstractTTSEngine.js +282 -0
  169. package/dist/esm/plugins/tts/FestivalTTSEngine.js +192 -0
  170. package/dist/esm/plugins/tts/PageChunk.js +105 -0
  171. package/dist/esm/plugins/tts/PageChunkIterator.js +155 -0
  172. package/dist/esm/plugins/tts/WebTTSEngine.js +364 -0
  173. package/dist/esm/plugins/tts/plugin.tts.js +315 -0
  174. package/dist/esm/plugins/tts/tooltip_dict.js +14 -0
  175. package/dist/esm/plugins/tts/utils.js +79 -0
  176. package/dist/esm/plugins/url/UrlPlugin.js +197 -0
  177. package/dist/esm/plugins/url/plugin.url.js +212 -0
  178. package/dist/esm/util/browserSniffing.js +56 -0
  179. package/dist/esm/util/debouncer.js +25 -0
  180. package/dist/esm/util/docCookies.js +75 -0
  181. package/dist/esm/util/strings.js +34 -0
  182. package/jsconfig.json +1 -0
  183. package/package.json +13 -6
@@ -0,0 +1,213 @@
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
+ }
@@ -0,0 +1,268 @@
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
+ }
@@ -0,0 +1,84 @@
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
+ }
@@ -0,0 +1,5 @@
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; }
@@ -0,0 +1,108 @@
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
+ }
@@ -0,0 +1,52 @@
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
+ }