@internetarchive/bookreader 5.0.0-110 → 5.0.0-111
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 +59 -0
- package/BookReader/BookReader.js +1 -1
- package/BookReader/BookReader.js.map +1 -1
- package/BookReader/ia-bookreader-bundle.js +74 -77
- package/BookReader/ia-bookreader-bundle.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.experiments.js +1 -1
- package/BookReader/plugins/plugin.experiments.js.map +1 -1
- package/BookReader/plugins/plugin.text_selection.js +23 -1
- package/BookReader/plugins/plugin.text_selection.js.map +1 -1
- package/BookReader/plugins/plugin.translate.js +25 -3
- package/BookReader/plugins/plugin.translate.js.map +1 -1
- package/BookReader/plugins/plugin.url.js +2 -1
- package/BookReader/plugins/plugin.url.js.LICENSE.txt +1 -0
- package/BookReader/plugins/plugin.url.js.map +1 -1
- package/package.json +2 -1
- package/src/BookReader/Mode2UpLit.js +1 -3
- package/src/BookReader/utils/SelectionObserver.js +9 -1
- package/src/BookReader.js +17 -2
- package/src/css/_TextSelection.scss +59 -0
- package/src/plugins/plugin.chapters.js +8 -3
- package/src/plugins/plugin.experiments.js +21 -3
- package/src/plugins/plugin.text_selection.js +17 -0
- package/src/plugins/url/UrlPlugin.js +23 -3
- package/src/plugins/url/plugin.url.js +63 -7
- package/src/util/TextSelectionManager.js +252 -2
|
@@ -2287,6 +2287,65 @@ ia-bookreader .BRtoolbar {
|
|
|
2287
2287
|
display: none;
|
|
2288
2288
|
}
|
|
2289
2289
|
|
|
2290
|
+
.br-select-menu__root {
|
|
2291
|
+
display: none;
|
|
2292
|
+
border-radius: 20px;
|
|
2293
|
+
background-color: #333;
|
|
2294
|
+
color-scheme: dark;
|
|
2295
|
+
padding: 2px;
|
|
2296
|
+
overflow: hidden;
|
|
2297
|
+
transition: border-radius 0.2s;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
.br-select-menu__root:hover {
|
|
2301
|
+
border-radius: 8px;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
.br-select-menu__root:hover .br-select-menu__option {
|
|
2305
|
+
border-radius: 6px;
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
.br-select-menu__option {
|
|
2309
|
+
--iconWidth: 15px;
|
|
2310
|
+
--iconHeight: 15px;
|
|
2311
|
+
--iconFillColor: currentColor;
|
|
2312
|
+
background: transparent;
|
|
2313
|
+
display: flex;
|
|
2314
|
+
align-items: center;
|
|
2315
|
+
border-radius: 20px;
|
|
2316
|
+
font-family: inherit;
|
|
2317
|
+
border: 0;
|
|
2318
|
+
transition: background-color 0.2s, border-radius 0.2s;
|
|
2319
|
+
cursor: pointer;
|
|
2320
|
+
text-wrap: nowrap;
|
|
2321
|
+
padding: 4px;
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
.br-select-menu__option:hover {
|
|
2325
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
.br-select-menu__icon {
|
|
2329
|
+
display: block;
|
|
2330
|
+
flex-shrink: 0;
|
|
2331
|
+
width: 17px;
|
|
2332
|
+
height: 17px;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
.br-select-menu__label {
|
|
2336
|
+
width: 0px;
|
|
2337
|
+
opacity: 0;
|
|
2338
|
+
interpolate-size: allow-keywords;
|
|
2339
|
+
transition: width 0.2s;
|
|
2340
|
+
font-size: 12px;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
.br-select-menu__root:hover .br-select-menu__label {
|
|
2344
|
+
width: auto;
|
|
2345
|
+
margin-left: 4px;
|
|
2346
|
+
opacity: 1;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2290
2349
|
/**
|
|
2291
2350
|
* Hide modal-manager that loads item-navigator-modal
|
|
2292
2351
|
* loading bookmarks related alert messages
|