@d-i-t-a/reader 2.0.3 → 2.0.6-beta.1
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/dist/esm/index.js +489 -10258
- package/dist/esm/index.js.map +3 -3
- package/dist/injectables/click/click.js +4 -4
- package/dist/injectables/click/click.js.map +1 -1
- package/dist/injectables/mui/script.js +205 -0
- package/dist/injectables/mui/style.css +271 -0
- package/dist/injectables/style/style.css +1 -1
- package/dist/injectables/style/toast.css +76 -0
- package/dist/reader.css +165 -73
- package/dist/reader.js +60 -93
- package/dist/reader.js.map +3 -3
- package/dist/reader.map.css +1 -1
- package/dist/types/modules/TTS/TTSModule2.d.ts +4 -0
- package/dist/types/modules/TTS/TTSSettings.d.ts +0 -1
- package/dist/types/modules/highlight/TextHighlighter.d.ts +1 -1
- package/dist/types/navigator/IFrameNavigator.d.ts +1 -9
- package/dist/types/utils/KeyboardEventHandler.d.ts +2 -1
- package/dist/types/utils/TouchEventHandler.d.ts +3 -0
- package/package.json +1 -3
- package/dist/material.css +0 -4637
- package/dist/material.map.css +0 -30
- package/dist/types/modules/TTS/TTSModule.d.ts +0 -33
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body CSS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
html,
|
|
7
|
+
body {
|
|
8
|
+
height: 100%;
|
|
9
|
+
background-color: #eee;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html,
|
|
13
|
+
body,
|
|
14
|
+
input,
|
|
15
|
+
textarea,
|
|
16
|
+
buttons {
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-moz-osx-font-smoothing: grayscale;
|
|
19
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Layout CSS
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
#header {
|
|
28
|
+
position: fixed;
|
|
29
|
+
top: 0;
|
|
30
|
+
right: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
z-index: 2;
|
|
33
|
+
transition: left 0.2s;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
header ul.mui-list--inline {
|
|
37
|
+
margin-bottom: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
header a {
|
|
41
|
+
color: black;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
header table {
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#sidedrawer {
|
|
50
|
+
position: fixed;
|
|
51
|
+
top: 0;
|
|
52
|
+
bottom: 0;
|
|
53
|
+
width: 300px;
|
|
54
|
+
left: -300px;
|
|
55
|
+
overflow: auto;
|
|
56
|
+
z-index: 2;
|
|
57
|
+
background-color: #fff;
|
|
58
|
+
transition: transform 0.2s;
|
|
59
|
+
}
|
|
60
|
+
#sidedrawerRight {
|
|
61
|
+
position: fixed;
|
|
62
|
+
top: 0;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
width: 300px;
|
|
65
|
+
right: -300px;
|
|
66
|
+
overflow: auto;
|
|
67
|
+
z-index: 2;
|
|
68
|
+
background-color: #fff;
|
|
69
|
+
transition: transform 0.2s;
|
|
70
|
+
}
|
|
71
|
+
#sidedrawer2 {
|
|
72
|
+
position: fixed;
|
|
73
|
+
top: 0;
|
|
74
|
+
bottom: 0;
|
|
75
|
+
width: 280px;
|
|
76
|
+
right: -280px;
|
|
77
|
+
overflow: auto;
|
|
78
|
+
z-index: 2;
|
|
79
|
+
background-color: #fff;
|
|
80
|
+
transition: transform 0.2s;
|
|
81
|
+
}
|
|
82
|
+
#sidedrawer3 {
|
|
83
|
+
position: fixed;
|
|
84
|
+
top: 0;
|
|
85
|
+
bottom: 0;
|
|
86
|
+
width: 330px;
|
|
87
|
+
right: -330px;
|
|
88
|
+
overflow: auto;
|
|
89
|
+
z-index: 2;
|
|
90
|
+
background-color: #fff;
|
|
91
|
+
transition: transform 0.2s;
|
|
92
|
+
}
|
|
93
|
+
#sidedrawer4 {
|
|
94
|
+
position: fixed;
|
|
95
|
+
top: 0;
|
|
96
|
+
bottom: 0;
|
|
97
|
+
width: 330px;
|
|
98
|
+
right: -330px;
|
|
99
|
+
overflow: auto;
|
|
100
|
+
z-index: 2;
|
|
101
|
+
background-color: #fff;
|
|
102
|
+
transition: transform 0.2s;
|
|
103
|
+
}
|
|
104
|
+
#sidedrawer5 {
|
|
105
|
+
position: fixed;
|
|
106
|
+
top: 0;
|
|
107
|
+
bottom: 0;
|
|
108
|
+
width: 330px;
|
|
109
|
+
right: -330px;
|
|
110
|
+
overflow: auto;
|
|
111
|
+
z-index: 2;
|
|
112
|
+
background-color: #fff;
|
|
113
|
+
transition: transform 0.2s;
|
|
114
|
+
}
|
|
115
|
+
#sidedrawer6 {
|
|
116
|
+
position: fixed;
|
|
117
|
+
top: 0;
|
|
118
|
+
bottom: 0;
|
|
119
|
+
width: 330px;
|
|
120
|
+
right: -330px;
|
|
121
|
+
overflow: auto;
|
|
122
|
+
z-index: 2;
|
|
123
|
+
background-color: #fff;
|
|
124
|
+
transition: transform 0.2s;
|
|
125
|
+
}
|
|
126
|
+
#sidedrawer7 {
|
|
127
|
+
position: fixed;
|
|
128
|
+
top: 0;
|
|
129
|
+
bottom: 0;
|
|
130
|
+
width: 330px;
|
|
131
|
+
right: -330px;
|
|
132
|
+
overflow: auto;
|
|
133
|
+
z-index: 2;
|
|
134
|
+
background-color: #fff;
|
|
135
|
+
transition: transform 0.2s;
|
|
136
|
+
}
|
|
137
|
+
#sidedrawer8 {
|
|
138
|
+
position: fixed;
|
|
139
|
+
top: 0;
|
|
140
|
+
bottom: 0;
|
|
141
|
+
width: 430px;
|
|
142
|
+
right: -430px;
|
|
143
|
+
overflow: auto;
|
|
144
|
+
z-index: 2;
|
|
145
|
+
background-color: #fff;
|
|
146
|
+
transition: transform 0.2s;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
#content-wrapper {
|
|
153
|
+
min-height: 100%;
|
|
154
|
+
overflow-x: hidden;
|
|
155
|
+
margin-left: 0px;
|
|
156
|
+
transition: margin-left 0.2s;
|
|
157
|
+
|
|
158
|
+
/* sticky bottom */
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
margin-bottom: -160px;
|
|
161
|
+
padding-bottom: 160px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
#footer {
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
height: 160px;
|
|
167
|
+
margin-left: 0px;
|
|
168
|
+
transition: margin-left 0.2s;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Toggle Sidedrawer
|
|
175
|
+
*/
|
|
176
|
+
#sidedrawer.active {
|
|
177
|
+
transform: translate(300px);
|
|
178
|
+
}
|
|
179
|
+
#sidedrawerRight.active {
|
|
180
|
+
transform: translate(-300px);
|
|
181
|
+
}
|
|
182
|
+
#sidedrawer2.active {
|
|
183
|
+
transform: translate(-280px);
|
|
184
|
+
}
|
|
185
|
+
#sidedrawer3.active {
|
|
186
|
+
transform: translate(-330px);
|
|
187
|
+
}
|
|
188
|
+
#sidedrawer4.active {
|
|
189
|
+
transform: translate(-330px);
|
|
190
|
+
}
|
|
191
|
+
#sidedrawer5.active {
|
|
192
|
+
transform: translate(-330px);
|
|
193
|
+
}
|
|
194
|
+
#sidedrawer6.active {
|
|
195
|
+
transform: translate(-330px);
|
|
196
|
+
}
|
|
197
|
+
#sidedrawer7.active {
|
|
198
|
+
transform: translate(-330px);
|
|
199
|
+
}
|
|
200
|
+
#sidedrawer8.active {
|
|
201
|
+
transform: translate(-430px);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Header CSS
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
.sidedrawer-toggle {
|
|
210
|
+
/*color: #fff;*/
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
font-size: 20px;
|
|
213
|
+
line-height: 20px;
|
|
214
|
+
margin-right: 10px;
|
|
215
|
+
margin-left: 10px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.sidedrawer-toggle:hover {
|
|
219
|
+
/*color: #fff;*/
|
|
220
|
+
text-decoration: none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Sidedrawer CSS
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
#sidedrawer-brand {
|
|
229
|
+
padding-left: 20px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
#sidedrawer ul {
|
|
233
|
+
list-style: none;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
#sidedrawer > ul {
|
|
237
|
+
padding-left: 0px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/*#sidedrawer > ul > li:first-child {*/
|
|
241
|
+
/* padding-top: 15px;*/
|
|
242
|
+
/*}*/
|
|
243
|
+
|
|
244
|
+
#sidedrawer strong {
|
|
245
|
+
display: block;
|
|
246
|
+
padding: 15px 1rem;
|
|
247
|
+
cursor: pointer;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
#sidedrawer strong:hover {
|
|
251
|
+
background-color: #E0E0E0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
#sidedrawer strong + ul > li {
|
|
255
|
+
padding: 6px 0px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Footer CSS
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
#footer {
|
|
264
|
+
background-color: #0288D1;
|
|
265
|
+
color: #fff;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
#footer a {
|
|
269
|
+
color: #fff;
|
|
270
|
+
text-decoration: underline;
|
|
271
|
+
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--RS__definitionsUnderlineBorderColor: rgba(255, 111, 111, 1);
|
|
31
31
|
--RS__definitionsUnderlineHoverColor: rgba(255, 111, 111, 0.1);
|
|
32
32
|
|
|
33
|
-
--USER__maxMediaHeight:
|
|
33
|
+
--USER__maxMediaHeight: 95vh;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.R2_CLASS_HIGHLIGHT_AREA[data-marker="0"] {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#toast {
|
|
2
|
+
visibility: hidden;
|
|
3
|
+
max-width: 1px;
|
|
4
|
+
height: 50px;
|
|
5
|
+
margin: auto;
|
|
6
|
+
background-color: #333;
|
|
7
|
+
color: #fff;
|
|
8
|
+
text-align: center;
|
|
9
|
+
border-radius: 2px;
|
|
10
|
+
position: fixed;
|
|
11
|
+
z-index: 1;
|
|
12
|
+
left: 0;right:0;
|
|
13
|
+
bottom: 30px;
|
|
14
|
+
font-size: 17px;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
}
|
|
17
|
+
#toast #description{
|
|
18
|
+
color: #fff;
|
|
19
|
+
padding: 16px;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#toast.show {
|
|
25
|
+
visibility: visible;
|
|
26
|
+
-webkit-animation: fadein 0.5s, expand 0.5s 0.5s,stay 3s 1s, shrink 0.5s 2s, fadeout 0.5s 2.5s;
|
|
27
|
+
animation: fadein 0.5s, expand 0.5s 0.5s,stay 3s 1s, shrink 0.5s 4s, fadeout 0.5s 4.5s;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@-webkit-keyframes fadein {
|
|
31
|
+
from {bottom: 0; opacity: 0;}
|
|
32
|
+
to {bottom: 30px; opacity: 1;}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@keyframes fadein {
|
|
36
|
+
from {bottom: 0; opacity: 0;}
|
|
37
|
+
to {bottom: 30px; opacity: 1;}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@-webkit-keyframes expand {
|
|
41
|
+
from {min-width: 1px}
|
|
42
|
+
to {min-width: 350px}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@keyframes expand {
|
|
46
|
+
from {min-width: 1px}
|
|
47
|
+
to {min-width: 350px}
|
|
48
|
+
}
|
|
49
|
+
@-webkit-keyframes stay {
|
|
50
|
+
from {min-width: 350px}
|
|
51
|
+
to {min-width: 350px}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes stay {
|
|
55
|
+
from {min-width: 350px}
|
|
56
|
+
to {min-width: 350px}
|
|
57
|
+
}
|
|
58
|
+
@-webkit-keyframes shrink {
|
|
59
|
+
from {min-width: 350px;}
|
|
60
|
+
to {min-width: 1px;}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@keyframes shrink {
|
|
64
|
+
from {min-width: 350px;}
|
|
65
|
+
to {min-width: 1px;}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@-webkit-keyframes fadeout {
|
|
69
|
+
from {bottom: 30px; opacity: 1;}
|
|
70
|
+
to {bottom: 60px; opacity: 0;}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes fadeout {
|
|
74
|
+
from {bottom: 30px; opacity: 1;}
|
|
75
|
+
to {bottom: 60px; opacity: 0;}
|
|
76
|
+
}
|