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