@internetarchive/bookreader 5.0.0-66 → 5.0.0-67
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.
- package/BookReader/BookReader.css +16 -28
- package/BookReader/BookReader.js +1 -1
- package/BookReader/BookReader.js.map +1 -1
- package/BookReader/ia-bookreader-bundle.js +102 -114
- package/BookReader/ia-bookreader-bundle.js.map +1 -1
- package/BookReader/plugins/plugin.chapters.js +24 -1
- package/BookReader/plugins/plugin.chapters.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/BookReaderDemo/demo-internetarchive.html +41 -3
- package/BookReaderDemo/toggle_controls.html +1 -1
- package/CHANGELOG.md +5 -0
- package/index.html +1 -1
- package/package.json +4 -3
- package/src/BookNavigator/book-navigator.js +4 -3
- package/src/BookReader/BookModel.js +12 -0
- package/src/BookReader/Navbar/Navbar.js +2 -2
- package/src/css/_BRnav.scss +5 -2
- package/src/css/_BRsearch.scss +6 -2
- package/src/css/_MobileNav.scss +0 -26
- package/src/css/_controls.scss +3 -2
- package/src/plugins/plugin.chapters.js +201 -169
- package/src/plugins/tts/plugin.tts.js +1 -1
- package/tests/jest/plugins/plugin.chapters.test.js +93 -76
|
@@ -1069,8 +1069,13 @@ i.BRicon {
|
|
|
1069
1069
|
background: transparent;
|
|
1070
1070
|
outline: none;
|
|
1071
1071
|
}
|
|
1072
|
-
|
|
1073
|
-
|
|
1072
|
+
@media (hover: hover) {
|
|
1073
|
+
.BRfooter button {
|
|
1074
|
+
/* styles to apply on devices that support hover */
|
|
1075
|
+
}
|
|
1076
|
+
.BRfooter button:hover .BRtooltip {
|
|
1077
|
+
display: block;
|
|
1078
|
+
}
|
|
1074
1079
|
}
|
|
1075
1080
|
.BRfooter button.hide {
|
|
1076
1081
|
display: none;
|
|
@@ -1605,6 +1610,10 @@ i.BRicon {
|
|
|
1605
1610
|
.BookReader .BRchapter.front, .BRmobileMenu .BRchapter.front, .BRfloat .BRchapter.front {
|
|
1606
1611
|
background-color: blue;
|
|
1607
1612
|
}
|
|
1613
|
+
.BookReader .BRchapter .BRchapterPage, .BRmobileMenu .BRchapter .BRchapterPage, .BRfloat .BRchapter .BRchapterPage {
|
|
1614
|
+
font-size: 0.85em;
|
|
1615
|
+
opacity: 0.8;
|
|
1616
|
+
}
|
|
1608
1617
|
.BookReader .BRsearch, .BRmobileMenu .BRsearch, .BRfloat .BRsearch {
|
|
1609
1618
|
width: 9px;
|
|
1610
1619
|
height: 6px;
|
|
@@ -1635,8 +1644,8 @@ i.BRicon {
|
|
|
1635
1644
|
}
|
|
1636
1645
|
.BookReader .BRquery footer, .BRmobileMenu .BRquery footer, .BRfloat .BRquery footer {
|
|
1637
1646
|
text-align: center;
|
|
1638
|
-
font-
|
|
1639
|
-
|
|
1647
|
+
font-size: 0.85em;
|
|
1648
|
+
opacity: 0.8;
|
|
1640
1649
|
}
|
|
1641
1650
|
.BookReader .BRquery mark, .BRmobileMenu .BRquery mark, .BRfloat .BRquery mark {
|
|
1642
1651
|
color: #adaedc;
|
|
@@ -2555,28 +2564,6 @@ html.mm-background .BookReader {
|
|
|
2555
2564
|
display: block;
|
|
2556
2565
|
}
|
|
2557
2566
|
}
|
|
2558
|
-
li.BRtable-contents-el {
|
|
2559
|
-
line-height: 150%;
|
|
2560
|
-
padding: 10px 10px 10px 20px;
|
|
2561
|
-
overflow: hidden;
|
|
2562
|
-
color: #fff;
|
|
2563
|
-
}
|
|
2564
|
-
li.BRtable-contents-el.chapter-clickable {
|
|
2565
|
-
font-weight: normal;
|
|
2566
|
-
}
|
|
2567
|
-
li.BRtable-contents-el.current-chapter {
|
|
2568
|
-
background-color: lightblue;
|
|
2569
|
-
}
|
|
2570
|
-
li.BRtable-contents-el > span {
|
|
2571
|
-
display: inline;
|
|
2572
|
-
padding: 0;
|
|
2573
|
-
white-space: normal;
|
|
2574
|
-
}
|
|
2575
|
-
li.BRtable-contents-el .BRTOCElementPage {
|
|
2576
|
-
font-size: 0.85em;
|
|
2577
|
-
opacity: 0.8;
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
2567
|
/****************** Excerpt from jquery-ui *********************/
|
|
2581
2568
|
.ui-helper-hidden {
|
|
2582
2569
|
display: none;
|
|
@@ -2733,7 +2720,7 @@ li.BRtable-contents-el .BRTOCElementPage {
|
|
|
2733
2720
|
width: 100%;
|
|
2734
2721
|
/* BookReader defaults overrides */
|
|
2735
2722
|
}
|
|
2736
|
-
.BRcontrols .
|
|
2723
|
+
.BRcontrols .BRtooltip {
|
|
2737
2724
|
display: none;
|
|
2738
2725
|
position: absolute;
|
|
2739
2726
|
width: auto;
|
|
@@ -2746,8 +2733,9 @@ li.BRtable-contents-el .BRTOCElementPage {
|
|
|
2746
2733
|
color: #fff;
|
|
2747
2734
|
border-radius: 3px;
|
|
2748
2735
|
background: #333;
|
|
2736
|
+
pointer-events: none;
|
|
2749
2737
|
}
|
|
2750
|
-
.BRcontrols .full .
|
|
2738
|
+
.BRcontrols .full .BRtooltip {
|
|
2751
2739
|
left: auto;
|
|
2752
2740
|
right: 0;
|
|
2753
2741
|
transform: translateX(0);
|