@internetarchive/bookreader 5.0.0-97 → 5.0.0-99

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.
@@ -521,15 +521,7 @@ body.BRfullscreenActive .mm-menu {
521
521
  background-image: none;
522
522
  }
523
523
 
524
- svg.BRPageLayer {
525
- position: absolute;
526
- top: 0;
527
- left: 0;
528
- right: 0;
529
- bottom: 0;
530
- }
531
-
532
- .BRpageFlipping .BRPageLayer {
524
+ .BRpageFlipping .BRtextLayer {
533
525
  display: none;
534
526
  }
535
527
 
@@ -1490,6 +1482,7 @@ ia-bookreader .BRtoolbar {
1490
1482
 
1491
1483
  .BookReader .searchHiliteLayer, .BookReader .ttsHiliteLayer, .BRfloat .searchHiliteLayer, .BRfloat .ttsHiliteLayer {
1492
1484
  pointer-events: none;
1485
+ z-index: 4;
1493
1486
  }
1494
1487
  .BookReader .searchHiliteLayer rect, .BookReader .ttsHiliteLayer rect, .BRfloat .searchHiliteLayer rect, .BRfloat .ttsHiliteLayer rect {
1495
1488
  fill: rgba(0, 0, 255, 0.2);
@@ -2136,6 +2129,19 @@ ia-bookreader .BRtoolbar {
2136
2129
  color: transparent;
2137
2130
  }
2138
2131
 
2132
+ .BRtextLayer ::target-text {
2133
+ background-color: hsla(45, 80%, 66%, 0.6);
2134
+ color: transparent;
2135
+ }
2136
+
2137
+ .BRtranslateLayer ::selection {
2138
+ background: hsla(210, 74%, 62%, 0.4);
2139
+ }
2140
+
2141
+ .BRtranslateLayer ::-moz-selection {
2142
+ background: hsla(210, 74%, 62%, 0.4);
2143
+ }
2144
+
2139
2145
  .BRparagraphElement br {
2140
2146
  visibility: hidden;
2141
2147
  }
@@ -2158,19 +2164,18 @@ ia-bookreader .BRtoolbar {
2158
2164
  user-select: none;
2159
2165
  }
2160
2166
 
2167
+ .BRtextLayer:has([_istranslated="1"], msreadoutspan) {
2168
+ mix-blend-mode: normal;
2169
+ }
2170
+
2161
2171
  .BRwordElement[_istranslated="1"], .BRwordElement[_msttexthash], .BRspace[_istranslated="1"], .BRspace[_msttexthash] {
2162
- background-color: #e4dccd;
2163
2172
  color: black;
2164
2173
  letter-spacing: unset !important;
2165
- background: #ccbfa7;
2166
- }
2167
-
2168
- .BRlineElement font[_mstmutation="1"] {
2169
- background: #ccbfa7;
2170
2174
  }
2171
2175
 
2172
2176
  .BRlineElement:has([_istranslated="1"], [_msttexthash]) {
2173
- background-color: #e4dccd;
2177
+ background: rgba(248, 237, 192, 0.8);
2178
+ backdrop-filter: blur(8px);
2174
2179
  color: black;
2175
2180
  text-align: justify;
2176
2181
  width: inherit;
@@ -2180,14 +2185,13 @@ ia-bookreader .BRtoolbar {
2180
2185
  }
2181
2186
 
2182
2187
  .BRlineElement[_msttexthash] {
2183
- background: #ccbfa7;
2184
2188
  word-spacing: unset !important;
2185
2189
  }
2186
2190
 
2187
2191
  .BRtranslateLayer .BRparagraphElement {
2188
2192
  pointer-events: auto;
2189
2193
  overflow-y: auto;
2190
- background: rgba(248, 237, 192, 0.5);
2194
+ background: rgba(248, 237, 192, 0.8);
2191
2195
  backdrop-filter: blur(8px);
2192
2196
  color: black;
2193
2197
  line-height: 1em;
@@ -2200,8 +2204,7 @@ ia-bookreader .BRtoolbar {
2200
2204
  }
2201
2205
 
2202
2206
  .BRtextLayer.showingTranslation {
2203
- visibility: hidden;
2204
- pointer-events: none;
2207
+ display: none;
2205
2208
  }
2206
2209
 
2207
2210
  .BRtranslateLayer .BRparagraphElement.BRtranslateHidden {