@edrlab/thorium-web 1.2.0 → 1.3.0

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 (100) hide show
  1. package/dist/{ThPreferencesAdapter-DrZ5_6Dv.d.mts → ThPreferencesAdapter-D0rzsGRl.d.mts} +50 -13
  2. package/dist/{ThSettingsWrapper-8Kx0SnH4.d.mts → ThSettingsWrapper-BXuRgdqp.d.mts} +42 -4
  3. package/dist/{actions-D2CHvCHu.d.mts → actions-BLAr0oaM.d.mts} +16 -4
  4. package/dist/{actionsReducer-kc-S130w.d.mts → actionsReducer-BhG1wicI.d.mts} +37 -12
  5. package/dist/chunk-3GDQP6AS.mjs +14 -0
  6. package/dist/chunk-3GDQP6AS.mjs.map +1 -0
  7. package/dist/{chunk-72XCX5TD.mjs → chunk-3LDWKC5N.mjs} +13 -8
  8. package/dist/chunk-3LDWKC5N.mjs.map +1 -0
  9. package/dist/{chunk-NYZBHYW2.mjs → chunk-4ODYHZKD.mjs} +343 -38
  10. package/dist/chunk-4ODYHZKD.mjs.map +1 -0
  11. package/dist/{chunk-34MVY33F.mjs → chunk-4TVEDX7L.mjs} +23 -32
  12. package/dist/chunk-4TVEDX7L.mjs.map +1 -0
  13. package/dist/chunk-7CGMWOZN.mjs +20 -0
  14. package/dist/chunk-7CGMWOZN.mjs.map +1 -0
  15. package/dist/{chunk-7NEQAW7J.mjs → chunk-C236BQQB.mjs} +656 -917
  16. package/dist/chunk-C236BQQB.mjs.map +1 -0
  17. package/dist/{chunk-H4J2VY7Z.mjs → chunk-D7MFLHXV.mjs} +2267 -1599
  18. package/dist/chunk-D7MFLHXV.mjs.map +1 -0
  19. package/dist/{chunk-47AIIJFO.mjs → chunk-ITDBOMY5.mjs} +3 -3
  20. package/dist/{chunk-47AIIJFO.mjs.map → chunk-ITDBOMY5.mjs.map} +1 -1
  21. package/dist/{chunk-XVSFXHYB.mjs → chunk-L4XGZAZ5.mjs} +23 -20
  22. package/dist/chunk-L4XGZAZ5.mjs.map +1 -0
  23. package/dist/chunk-OWHP7ONM.mjs +134 -0
  24. package/dist/chunk-OWHP7ONM.mjs.map +1 -0
  25. package/dist/{chunk-S4M7ED5Q.mjs → chunk-RRVLWDT3.mjs} +10 -7
  26. package/dist/chunk-RRVLWDT3.mjs.map +1 -0
  27. package/dist/chunk-T2E6MRVP.mjs +862 -0
  28. package/dist/chunk-T2E6MRVP.mjs.map +1 -0
  29. package/dist/chunk-TEZB4ULX.mjs +57 -0
  30. package/dist/chunk-TEZB4ULX.mjs.map +1 -0
  31. package/dist/chunk-UCTMVCW7.mjs +833 -0
  32. package/dist/chunk-UCTMVCW7.mjs.map +1 -0
  33. package/dist/chunk-WECWPYZB.mjs +1950 -0
  34. package/dist/chunk-WECWPYZB.mjs.map +1 -0
  35. package/dist/{chunk-4VHEHMJN.mjs → chunk-XBZWGRDM.mjs} +228 -94
  36. package/dist/chunk-XBZWGRDM.mjs.map +1 -0
  37. package/dist/{chunk-K3K7TUWM.mjs → chunk-YZ3KCMKY.mjs} +237 -83
  38. package/dist/chunk-YZ3KCMKY.mjs.map +1 -0
  39. package/dist/components/Audio/index.css +1858 -0
  40. package/dist/components/Audio/index.css.map +1 -0
  41. package/dist/components/Audio/index.d.mts +103 -0
  42. package/dist/components/Audio/index.mjs +23 -0
  43. package/dist/components/Audio/index.mjs.map +1 -0
  44. package/dist/components/Epub/index.css +372 -9
  45. package/dist/components/Epub/index.css.map +1 -1
  46. package/dist/components/Epub/index.d.mts +17 -19
  47. package/dist/components/Epub/index.mjs +15 -10
  48. package/dist/components/Misc/index.css +5 -2
  49. package/dist/components/Misc/index.css.map +1 -1
  50. package/dist/components/Misc/index.mjs +4 -132
  51. package/dist/components/Misc/index.mjs.map +1 -1
  52. package/dist/components/Reader/index.css +1030 -184
  53. package/dist/components/Reader/index.css.map +1 -1
  54. package/dist/components/Reader/index.d.mts +16 -16
  55. package/dist/components/Reader/index.mjs +121 -22
  56. package/dist/components/Reader/index.mjs.map +1 -1
  57. package/dist/components/WebPub/index.css +372 -9
  58. package/dist/components/WebPub/index.css.map +1 -1
  59. package/dist/components/WebPub/index.d.mts +16 -16
  60. package/dist/components/WebPub/index.mjs +15 -10
  61. package/dist/core/Components/index.d.mts +64 -15
  62. package/dist/core/Components/index.mjs +2 -1
  63. package/dist/core/Helpers/index.d.mts +2 -2
  64. package/dist/core/Helpers/index.mjs +4 -2
  65. package/dist/core/Hooks/index.d.mts +7 -8
  66. package/dist/core/Hooks/index.mjs +3 -1
  67. package/dist/i18n/index.mjs +4 -5
  68. package/dist/lib/index.d.mts +159 -15
  69. package/dist/lib/index.mjs +4 -2
  70. package/dist/lib-M3PPQDJJ.mjs +6548 -0
  71. package/dist/lib-M3PPQDJJ.mjs.map +1 -0
  72. package/dist/locales/en/thorium-shared.json +84 -0
  73. package/dist/locales/en/thorium-web.json +22 -0
  74. package/dist/locales/et/thorium-shared.json +93 -2
  75. package/dist/locales/fi/thorium-shared.json +68 -0
  76. package/dist/next-lib/index.mjs +2 -0
  77. package/dist/next-lib/index.mjs.map +1 -1
  78. package/dist/preferences/index.d.mts +111 -13
  79. package/dist/preferences/index.mjs +6 -3
  80. package/dist/{settingsReducer-C1wwCAMv.d.mts → settingsReducer-Bu1zeveu.d.mts} +1 -1
  81. package/dist/{ui-CamWuqOo.d.mts → ui-nBv8gfr0.d.mts} +20 -1
  82. package/dist/useAudioNavigator-C5aW4-eT.d.mts +133 -0
  83. package/dist/{useContrast-D6sjPjxy.d.mts → useContrast-2t429O9O.d.mts} +16 -8
  84. package/dist/usePreferences-VaBf46eP.d.mts +230 -0
  85. package/dist/useReaderTransitions-JDzlBFsu.d.mts +530 -0
  86. package/dist/{useTimeline-DyMx_aWY.d.mts → useTimeline-DCZ1qoCO.d.mts} +4 -2
  87. package/package.json +15 -11
  88. package/dist/chunk-34MVY33F.mjs.map +0 -1
  89. package/dist/chunk-4VHEHMJN.mjs.map +0 -1
  90. package/dist/chunk-72XCX5TD.mjs.map +0 -1
  91. package/dist/chunk-7NEQAW7J.mjs.map +0 -1
  92. package/dist/chunk-H4J2VY7Z.mjs.map +0 -1
  93. package/dist/chunk-K3K7TUWM.mjs.map +0 -1
  94. package/dist/chunk-NYZBHYW2.mjs.map +0 -1
  95. package/dist/chunk-S4M7ED5Q.mjs.map +0 -1
  96. package/dist/chunk-XVSFXHYB.mjs.map +0 -1
  97. package/dist/useEpubNavigator-CwHJfoiV.d.mts +0 -42
  98. package/dist/usePreferences-BXFJbval.d.mts +0 -43
  99. package/dist/useReaderTransitions-guT-eA-Q.d.mts +0 -365
  100. package/dist/useWebPubNavigator-Che8r5Wg.d.mts +0 -39
@@ -71,7 +71,7 @@ input {
71
71
  .thorium_web_button_dockerButton svg,
72
72
  .thorium_web_button_closeButton svg,
73
73
  .thorium_web_button_backButton svg {
74
- fill: var(--th-theme-text);
74
+ fill: currentColor;
75
75
  width: var(--th-icon-size, 24px);
76
76
  height: var(--th-icon-size, 24px);
77
77
  }
@@ -80,6 +80,7 @@ input {
80
80
  .thorium_web_button_closeButton[data-hovered],
81
81
  .thorium_web_button_backButton[data-hovered] {
82
82
  background-color: var(--th-theme-hover);
83
+ color: var(--th-theme-onHover);
83
84
  }
84
85
  .thorium_web_button_icon[data-focus-visible],
85
86
  .thorium_web_button_dockerButton[data-focus-visible],
@@ -90,12 +91,6 @@ input {
90
91
  .thorium_web_button_backButton[data-disabled] {
91
92
  color: var(--th-theme-disable);
92
93
  }
93
- .thorium_web_button_icon[data-disabled] svg,
94
- .thorium_web_button_dockerButton[data-disabled] svg,
95
- .thorium_web_button_closeButton[data-disabled] svg,
96
- .thorium_web_button_backButton[data-disabled] svg {
97
- fill: var(--th-theme-disable);
98
- }
99
94
  .thorium_web_button_tooltip {
100
95
  background-color: var(--th-theme-text);
101
96
  color: var(--th-theme-background);
@@ -162,6 +157,7 @@ input {
162
157
  }
163
158
  .thorium_web_overflow_menuItem[data-hovered] {
164
159
  background-color: var(--th-theme-hover);
160
+ color: var(--th-theme-onHover);
165
161
  }
166
162
  .thorium_web_overflow_menuItem[data-focus-visible] {
167
163
  outline: 2px solid var(--th-theme-focus);
@@ -216,6 +212,7 @@ input {
216
212
  }
217
213
  .thorium_web_jumpToPosition_button[data-hovered] {
218
214
  background-color: var(--th-theme-hover);
215
+ color: var(--th-theme-onHover);
219
216
  }
220
217
  .thorium_web_jumpToPosition_input[data-focus-visible],
221
218
  .thorium_web_jumpToPosition_button[data-focus-visible] {
@@ -245,6 +242,32 @@ input {
245
242
  color: var(--th-theme-text);
246
243
  align-items: center;
247
244
  }
245
+ .thorium_web_sheets_modal {
246
+ position: fixed;
247
+ inset: 0;
248
+ z-index: 10;
249
+ display: flex;
250
+ align-items: center;
251
+ justify-content: center;
252
+ padding: var(--th-layout-spacing);
253
+ background-color: var(--th-layout-defaults-scrim, rgba(0, 0, 0, 0.2));
254
+ pointer-events: none;
255
+ }
256
+ .thorium_web_sheets_modalDialog {
257
+ pointer-events: auto;
258
+ overflow-y: auto;
259
+ scroll-padding-top: calc(var(--th-sheet-sticky-header, 80px) + var(--th-layout-spacing));
260
+ scroll-padding-bottom: var(--th-layout-spacing);
261
+ box-sizing: border-box;
262
+ width: 100%;
263
+ max-width: var(--th-layout-constraints-modal, 600px);
264
+ max-height: 90dvh;
265
+ background-color: var(--th-theme-background);
266
+ color: var(--th-theme-text);
267
+ border-radius: var(--th-layout-radius);
268
+ border: 1px solid var(--th-theme-subdue);
269
+ filter: drop-shadow(var(--th-theme-elevate));
270
+ }
248
271
  .thorium_web_sheets_popover {
249
272
  overflow-y: auto;
250
273
  scroll-padding-top: calc(var(--th-sheet-sticky-header, 80px) + var(--th-layout-spacing));
@@ -261,6 +284,22 @@ input {
261
284
  border: 1px solid var(--th-theme-subdue);
262
285
  filter: drop-shadow(var(--th-theme-elevate));
263
286
  }
287
+ .thorium_web_sheets_compactPopover {
288
+ overflow-y: auto;
289
+ scroll-padding-top: var(--th-layout-spacing);
290
+ scroll-padding-bottom: var(--th-layout-spacing);
291
+ box-sizing: border-box;
292
+ width: calc(340px + (2 * var(--th-layout-spacing)));
293
+ max-width: var(--th-layout-constraints-popover, 500px);
294
+ max-height: 100%;
295
+ max-height: var(--visual-viewport-height, 100dvh);
296
+ padding: 0;
297
+ background-color: var(--th-theme-background);
298
+ color: var(--th-theme-text);
299
+ border-radius: var(--th-layout-radius);
300
+ border: 1px solid var(--th-theme-subdue);
301
+ filter: drop-shadow(var(--th-theme-elevate));
302
+ }
264
303
  .thorium_web_sheets_draggable {
265
304
  box-sizing: border-box;
266
305
  max-width: var(--th-layout-constraints-bottomSheet, 600px);
@@ -386,6 +425,17 @@ input {
386
425
  margin: 0;
387
426
  padding: 0;
388
427
  }
428
+ .thorium_web_sheets_compactHeader {
429
+ position: absolute;
430
+ width: 1px;
431
+ height: 1px;
432
+ padding: 0;
433
+ margin: -1px;
434
+ overflow: hidden;
435
+ clip: rect(0, 0, 0, 0);
436
+ white-space: nowrap;
437
+ border: 0;
438
+ }
389
439
  .thorium_web_sheets_body {
390
440
  padding: var(--th-layout-spacing);
391
441
  }
@@ -543,9 +593,11 @@ input {
543
593
  }
544
594
  .thorium_web_reader_settings_radio[data-hovered] {
545
595
  background-color: var(--th-theme-hover);
596
+ color: var(--th-theme-onHover);
546
597
  }
547
598
  .thorium_web_reader_settings_radio[data-focus-visible] {
548
599
  outline: 2px solid var(--th-theme-focus);
600
+ outline-offset: 2px;
549
601
  }
550
602
  .thorium_web_reader_settings_radio svg {
551
603
  width: var(--th-icon-size, 32px);
@@ -642,6 +694,50 @@ input {
642
694
  .thorium_web_reader_settings_sliderPlaceholder {
643
695
  color: var(--th-theme-subdue);
644
696
  }
697
+ .thorium_web_reader_settings_sliderWithPresetsWrapper {
698
+ display: flex;
699
+ flex-direction: column;
700
+ gap: var(--th-layout-spacing);
701
+ }
702
+ .thorium_web_reader_settings_sliderWithPresetsWrapper .thorium_web_reader_settings_sliderWrapper {
703
+ width: 100%;
704
+ }
705
+ .thorium_web_reader_settings_sliderWithPresetsWrapper .thorium_web_reader_settings_slider {
706
+ max-width: 100%;
707
+ }
708
+ .thorium_web_reader_settings_sliderWithPresetsRadioGroup {
709
+ display: grid;
710
+ grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
711
+ gap: calc(var(--th-layout-spacing) / 4);
712
+ list-style: none;
713
+ margin: 0;
714
+ padding: 0;
715
+ }
716
+ .thorium_web_reader_settings_sliderWithPresetsRadio {
717
+ padding: calc(var(--th-layout-spacing) / 2);
718
+ border-radius: var(--th-layout-radius);
719
+ box-sizing: border-box;
720
+ border: 2px solid transparent;
721
+ text-align: center;
722
+ font-variant-numeric: tabular-nums;
723
+ background: transparent;
724
+ color: var(--th-theme-text);
725
+ }
726
+ .thorium_web_reader_settings_sliderWithPresetsRadio[data-selected] {
727
+ border: 2px solid var(--th-theme-subdue);
728
+ }
729
+ .thorium_web_reader_settings_sliderWithPresetsRadio[data-hovered] {
730
+ background-color: var(--th-theme-hover);
731
+ color: var(--th-theme-onHover);
732
+ }
733
+ .thorium_web_reader_settings_sliderWithPresetsRadio[data-focus-visible] {
734
+ outline: 2px solid var(--th-theme-focus);
735
+ outline-offset: 2px;
736
+ }
737
+ .thorium_web_reader_settings_sliderWithPresetsRadio[data-disabled] {
738
+ color: var(--th-theme-disable);
739
+ border-color: var(--th-theme-disable);
740
+ }
645
741
  .thorium_web_reader_settings_sliderWithTicks .thorium_web_reader_settings_sliderTrack::before {
646
742
  background:
647
743
  linear-gradient(
@@ -724,10 +820,16 @@ input {
724
820
  }
725
821
  .thorium_web_reader_settings_dropdownListboxItem {
726
822
  padding: calc(var(--th-layout-spacing) / 4);
823
+ border-radius: var(--th-layout-radius);
824
+ outline: none;
727
825
  }
728
826
  .thorium_web_reader_settings_dropdownListboxItem[data-selected] {
729
827
  color: var(--th-theme-subdue);
730
828
  }
829
+ .thorium_web_reader_settings_dropdownListboxItem[data-hovered] {
830
+ background-color: var(--th-theme-hover);
831
+ color: var(--th-theme-onHover);
832
+ }
731
833
  .thorium_web_reader_settings_dropdownListboxItem[data-focus-visible] {
732
834
  outline: 2px solid var(--th-theme-focus);
733
835
  }
@@ -879,6 +981,7 @@ input {
879
981
  }
880
982
  .thorium_web_toc_treeItem:hover {
881
983
  background-color: var(--th-theme-hover);
984
+ color: var(--th-theme-onHover);
882
985
  }
883
986
  .thorium_web_toc_treeItem[data-focus-visible] {
884
987
  outline: 2px solid var(--th-theme-focus);
@@ -895,7 +998,7 @@ input {
895
998
  transition: rotate 200ms;
896
999
  width: 100%;
897
1000
  height: 100%;
898
- fill: var(--th-theme-text);
1001
+ fill: currentColor;
899
1002
  }
900
1003
  .thorium_web_toc_treeItem[data-expanded] .thorium_web_toc_treeItemButton svg {
901
1004
  rotate: 90deg;
@@ -906,6 +1009,261 @@ input {
906
1009
  text-wrap: balance;
907
1010
  }
908
1011
 
1012
+ /* src/components/Audio/actions/Volume/assets/styles/thorium-web.volume.module.css */
1013
+ .thorium_web_volume_wrapper {
1014
+ width: auto;
1015
+ }
1016
+ .thorium_web_volume_button {
1017
+ --th-icon-size: calc(var(--audio-icon-base) * (5/4));
1018
+ padding: calc(var(--th-icon-size) * (1/4));
1019
+ outline: none;
1020
+ }
1021
+ .thorium_web_volume_button[data-focus-visible] {
1022
+ outline: 2px solid var(--th-theme-focus);
1023
+ }
1024
+ .thorium_web_volume_button[data-disabled] {
1025
+ color: var(--th-theme-disable);
1026
+ }
1027
+ .thorium_web_volume_sliderTrack {
1028
+ position: relative;
1029
+ box-sizing: border-box;
1030
+ }
1031
+ .thorium_web_volume_sliderTrack::before {
1032
+ content: "";
1033
+ display: block;
1034
+ position: absolute;
1035
+ background: var(--th-theme-subdue);
1036
+ }
1037
+ .thorium_web_volume_slider[data-disabled] .thorium_web_volume_sliderTrack::before {
1038
+ background: var(--th-theme-disable);
1039
+ }
1040
+ .thorium_web_volume_slider[data-orientation=vertical] .thorium_web_volume_sliderTrack {
1041
+ height: 150px;
1042
+ width: 30px;
1043
+ margin-block: calc(1.25rem / 2);
1044
+ }
1045
+ .thorium_web_volume_slider[data-orientation=vertical] .thorium_web_volume_sliderTrack::before {
1046
+ width: 3px;
1047
+ height: 100%;
1048
+ left: 50%;
1049
+ transform: translateX(-50%);
1050
+ }
1051
+ .thorium_web_volume_slider[data-orientation=vertical] .thorium_web_volume_sliderThumb {
1052
+ left: 50%;
1053
+ transform: translateX(-50%);
1054
+ }
1055
+ .thorium_web_volume_slider[data-orientation=horizontal] {
1056
+ max-width: 320px;
1057
+ width: 100%;
1058
+ }
1059
+ .thorium_web_volume_slider[data-orientation=horizontal] .thorium_web_volume_sliderTrack {
1060
+ width: 100%;
1061
+ height: 30px;
1062
+ }
1063
+ .thorium_web_volume_slider[data-orientation=horizontal] .thorium_web_volume_sliderTrack::before {
1064
+ height: 3px;
1065
+ width: 100%;
1066
+ top: 50%;
1067
+ transform: translateY(-50%);
1068
+ }
1069
+ .thorium_web_volume_slider[data-orientation=horizontal] .thorium_web_volume_sliderThumb {
1070
+ top: 50%;
1071
+ transform: translateY(-50%);
1072
+ }
1073
+ .thorium_web_volume_sliderThumb {
1074
+ width: 1.25rem;
1075
+ height: 1.25rem;
1076
+ border-radius: 50%;
1077
+ background: var(--th-theme-text);
1078
+ border: 2px solid var(--th-theme-subdue);
1079
+ }
1080
+ .thorium_web_volume_slider[data-disabled] .thorium_web_volume_sliderThumb {
1081
+ background: var(--th-theme-disable);
1082
+ border: 2px solid var(--th-theme-disable);
1083
+ }
1084
+ .thorium_web_volume_sliderThumb[data-dragging] {
1085
+ background: var(--th-theme-subdue);
1086
+ }
1087
+ .thorium_web_volume_sliderThumb[data-focus-visible] {
1088
+ outline: 2px solid var(--th-theme-focus);
1089
+ border: 2px solid var(--th-theme-focus);
1090
+ }
1091
+
1092
+ /* src/components/Audio/actions/PlaybackRate/assets/styles/thorium-web.playbackRate.module.css */
1093
+ .thorium_web_playbackRate_wrapper {
1094
+ width: auto;
1095
+ }
1096
+ .thorium_web_playbackRate_button {
1097
+ --th-icon-size: calc(var(--audio-icon-base) * (5/4));
1098
+ padding: calc(var(--th-icon-size) * (1/4));
1099
+ position: relative;
1100
+ display: flex;
1101
+ flex-direction: column;
1102
+ align-items: center;
1103
+ outline: none;
1104
+ }
1105
+ .thorium_web_playbackRate_button[data-focus-visible] {
1106
+ outline: 2px solid var(--th-theme-focus);
1107
+ }
1108
+ .thorium_web_playbackRate_button[data-disabled] {
1109
+ color: var(--th-theme-disable);
1110
+ }
1111
+ .thorium_web_playbackRate_button:has(.thorium_web_playbackRate_label) {
1112
+ padding-bottom: calc(var(--th-icon-size) * (2/3));
1113
+ }
1114
+ .thorium_web_playbackRate_label {
1115
+ position: absolute;
1116
+ bottom: calc(var(--th-icon-size) * (1/4));
1117
+ left: 50%;
1118
+ transform: translateX(-50%);
1119
+ white-space: nowrap;
1120
+ line-height: 1;
1121
+ font-size: calc(var(--th-icon-size, 24px) * (5/12));
1122
+ font-variant-numeric: tabular-nums;
1123
+ font-weight: bold;
1124
+ }
1125
+ .thorium_web_playbackRate_slider {
1126
+ min-width: 260px;
1127
+ }
1128
+ .thorium_web_playbackRate_numberfield {
1129
+ min-width: 140px;
1130
+ display: flex;
1131
+ justify-content: center;
1132
+ }
1133
+
1134
+ /* src/components/Audio/actions/Toc/assets/styles/thorium-web.audioToc.module.css */
1135
+ .thorium_web_audioToc_button {
1136
+ --th-icon-size: calc(var(--audio-icon-base) * (5/4));
1137
+ padding: calc(var(--th-icon-size) * (1/4));
1138
+ outline: none;
1139
+ }
1140
+ .thorium_web_audioToc_button[data-focus-visible] {
1141
+ outline: 2px solid var(--th-theme-focus);
1142
+ }
1143
+ .thorium_web_audioToc_button[data-disabled] {
1144
+ color: var(--th-theme-disable);
1145
+ }
1146
+
1147
+ /* src/components/Audio/actions/SleepTimer/assets/styles/thorium-web.sleepTimer.module.css */
1148
+ .thorium_web_sleepTimer_wrapper {
1149
+ }
1150
+ .thorium_web_sleepTimer_button {
1151
+ --th-icon-size: calc(var(--audio-icon-base) * (5/4));
1152
+ padding: calc(var(--th-icon-size) * (1/4));
1153
+ position: relative;
1154
+ display: flex;
1155
+ flex-direction: column;
1156
+ align-items: center;
1157
+ outline: none;
1158
+ }
1159
+ .thorium_web_sleepTimer_button[data-focus-visible] {
1160
+ outline: 2px solid var(--th-theme-focus);
1161
+ }
1162
+ .thorium_web_sleepTimer_button[data-disabled] {
1163
+ color: var(--th-theme-disable);
1164
+ }
1165
+ .thorium_web_sleepTimer_button:has(.thorium_web_sleepTimer_label) {
1166
+ padding-bottom: calc(var(--th-icon-size) * (2/3));
1167
+ }
1168
+ .thorium_web_sleepTimer_label {
1169
+ position: absolute;
1170
+ bottom: calc(var(--th-icon-size) * (1/4));
1171
+ left: 50%;
1172
+ transform: translateX(-50%);
1173
+ white-space: nowrap;
1174
+ line-height: 1;
1175
+ font-size: calc(var(--th-icon-size, 24px) * (5/12));
1176
+ font-variant-numeric: tabular-nums;
1177
+ font-weight: bold;
1178
+ }
1179
+ .thorium_web_sleepTimer_listbox {
1180
+ display: flex;
1181
+ flex-direction: column;
1182
+ gap: calc(var(--th-layout-spacing) / 2);
1183
+ }
1184
+ .thorium_web_sleepTimer_listboxItem {
1185
+ padding: calc(var(--th-layout-spacing) / 4);
1186
+ border-radius: var(--th-layout-radius);
1187
+ outline: none;
1188
+ cursor: default;
1189
+ }
1190
+ .thorium_web_sleepTimer_listboxItem[data-selected] {
1191
+ background-color: var(--th-theme-hover);
1192
+ font-weight: bold;
1193
+ }
1194
+ .thorium_web_sleepTimer_listboxItem[data-hovered]:not([data-selected]) {
1195
+ background-color: var(--th-theme-hover);
1196
+ color: var(--th-theme-onHover);
1197
+ }
1198
+ .thorium_web_sleepTimer_listboxItem[data-focus-visible] {
1199
+ outline: 2px solid var(--th-theme-focus);
1200
+ }
1201
+ .thorium_web_sleepTimer_durationField {
1202
+ display: flex;
1203
+ flex-direction: column;
1204
+ }
1205
+ .thorium_web_sleepTimer_instruction {
1206
+ display: block;
1207
+ margin: 0 0 var(--th-layout-spacing) 0;
1208
+ }
1209
+ .thorium_web_sleepTimer_inputs {
1210
+ display: flex;
1211
+ align-items: center;
1212
+ justify-content: center;
1213
+ gap: calc(var(--th-layout-spacing) / 4);
1214
+ margin-bottom: var(--th-layout-spacing);
1215
+ }
1216
+ .thorium_web_sleepTimer_fieldGroup {
1217
+ display: contents;
1218
+ }
1219
+ .thorium_web_sleepTimer_fieldInput {
1220
+ width: 4ch;
1221
+ text-align: center;
1222
+ background: transparent;
1223
+ border: 2px solid var(--th-theme-subdue);
1224
+ border-radius: var(--th-layout-radius);
1225
+ padding: calc(var(--th-icon-size, 24px) * (1/4)) calc(var(--th-layout-spacing) / 2);
1226
+ color: var(--th-theme-text);
1227
+ font-variant-numeric: tabular-nums;
1228
+ font-weight: bold;
1229
+ outline: none;
1230
+ }
1231
+ .thorium_web_sleepTimer_fieldInput[data-focus-visible] {
1232
+ outline: 2px solid var(--th-theme-focus);
1233
+ }
1234
+ .thorium_web_sleepTimer_unitLabel {
1235
+ margin-inline-end: calc(var(--th-layout-spacing) / 4);
1236
+ }
1237
+ .thorium_web_sleepTimer_remaining {
1238
+ font-variant-numeric: tabular-nums;
1239
+ font-weight: bold;
1240
+ margin: 0 0 var(--th-layout-spacing) 0;
1241
+ }
1242
+ .thorium_web_sleepTimer_cancelButton {
1243
+ margin-top: var(--th-layout-spacing);
1244
+ }
1245
+ .thorium_web_sleepTimer_startButton {
1246
+ padding: calc(var(--th-icon-size, 24px) * (1/4)) calc(var(--th-icon-size, 24px) * (1/2));
1247
+ border-radius: var(--th-layout-radius);
1248
+ border: 2px solid var(--th-theme-subdue);
1249
+ background: transparent;
1250
+ color: var(--th-theme-text);
1251
+ cursor: default;
1252
+ width: 100%;
1253
+ box-sizing: border-box;
1254
+ text-align: center;
1255
+ }
1256
+ .thorium_web_sleepTimer_startButton[data-hovered] {
1257
+ background-color: var(--th-theme-hover);
1258
+ color: var(--th-theme-onHover);
1259
+ }
1260
+ .thorium_web_sleepTimer_startButton[data-focus-visible] {
1261
+ outline: 2px solid var(--th-theme-focus);
1262
+ }
1263
+ .thorium_web_sleepTimer_startButton[data-disabled] {
1264
+ color: var(--th-theme-disable);
1265
+ }
1266
+
909
1267
  /* src/components/assets/styles/thorium-web.reader.app.module.css */
910
1268
  .thorium_web_reader_app_wrapper {
911
1269
  height: 100%;
@@ -1196,6 +1554,10 @@ input {
1196
1554
  }
1197
1555
  .thorium_web_backlink_link[data-hovered] {
1198
1556
  background-color: var(--th-theme-hover);
1557
+ color: var(--th-theme-onHover);
1558
+ }
1559
+ .thorium_web_backlink_link[data-hovered] svg {
1560
+ fill: var(--th-theme-onHover);
1199
1561
  }
1200
1562
  .thorium_web_backlink_link[data-focus-visible] {
1201
1563
  outline: 2px solid var(--th-theme-focus);
@@ -1252,6 +1614,7 @@ input {
1252
1614
  }
1253
1615
  .thorium_web_reader_pagination_listItem button[data-hovered] {
1254
1616
  background-color: var(--th-theme-hover);
1617
+ color: var(--th-theme-onHover);
1255
1618
  }
1256
1619
  .thorium_web_reader_pagination_listItem button[data-focus-visible] {
1257
1620
  outline: 2px solid var(--th-theme-focus);
@@ -1271,7 +1634,7 @@ input {
1271
1634
  flex: none;
1272
1635
  width: var(--th-icon-size, 24px);
1273
1636
  height: var(--th-icon-size, 24px);
1274
- fill: var(--th-theme-text);
1637
+ fill: currentColor;
1275
1638
  }
1276
1639
 
1277
1640
  /* src/components/assets/styles/thorium-web.reader.progression.module.css */