@d-i-t-a/reader 2.1.0-alpha.2 → 2.1.0-beta.2
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/README.md +52 -3
- package/dist/esm/index.js +48628 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/injectables/click/click.js +1774 -2
- package/dist/injectables/click/click.js.map +7 -1
- package/dist/injectables/mui/script.js +205 -0
- package/dist/injectables/mui/style.css +271 -0
- package/dist/injectables/style/linefocus.css +55 -0
- package/dist/injectables/style/popover.css +125 -0
- package/dist/injectables/style/popup.css +121 -0
- package/dist/injectables/style/style.css +255 -0
- package/dist/injectables/style/toast.css +76 -0
- package/dist/reader.css +178 -87
- package/dist/reader.js +128 -3
- package/dist/reader.js.map +7 -1
- package/dist/reader.map.css +21 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/{model → types/model}/Link.d.ts +2 -1
- package/dist/{model → types/model}/Locator.d.ts +3 -18
- package/dist/types/model/Publication.d.ts +51 -0
- package/dist/{model → types/model}/user-settings/ReadiumCSS.d.ts +0 -0
- package/dist/{model → types/model}/user-settings/UserProperties.d.ts +10 -4
- package/dist/{model → types/model}/user-settings/UserSettings.d.ts +23 -23
- package/dist/{modules → types/modules}/AnnotationModule.d.ts +31 -19
- package/dist/types/modules/BookmarkModule.d.ts +57 -0
- package/dist/types/modules/ReaderModule.d.ts +2 -0
- package/dist/types/modules/TTS/TTSModule2.d.ts +74 -0
- package/dist/{modules → types/modules}/TTS/TTSSettings.d.ts +44 -20
- package/dist/types/modules/citation/CitationModule.d.ts +40 -0
- package/dist/{modules → types/modules}/highlight/HtmlElementSelector.d.ts +0 -0
- package/dist/types/modules/highlight/LayerSettings.d.ts +19 -0
- package/dist/{modules → types/modules}/highlight/TextHighlighter.d.ts +68 -61
- package/dist/{modules → types/modules}/highlight/common/document.d.ts +0 -0
- package/dist/{modules → types/modules}/highlight/common/events.d.ts +0 -0
- package/dist/types/modules/highlight/common/highlight.d.ts +71 -0
- package/dist/{modules → types/modules}/highlight/common/rect-utils.d.ts +2 -2
- package/dist/{modules → types/modules}/highlight/common/selection.d.ts +8 -3
- package/dist/{modules → types/modules}/highlight/renderer/common/cssselector.d.ts +0 -0
- package/dist/{modules → types/modules}/highlight/renderer/common/cssselector2.d.ts +0 -0
- package/dist/{modules → types/modules}/highlight/renderer/iframe/selection.d.ts +2 -2
- package/dist/{modules → types/modules}/highlight/renderer/iframe/state.d.ts +0 -3
- package/dist/types/modules/history/HistoryModule.d.ts +34 -0
- package/dist/types/modules/linefocus/LineFocusModule.d.ts +51 -0
- package/dist/{modules → types/modules}/mediaoverlays/MediaOverlayModule.d.ts +19 -14
- package/dist/{modules → types/modules}/mediaoverlays/MediaOverlaySettings.d.ts +21 -16
- package/dist/types/modules/pagebreak/PageBreakModule.d.ts +30 -0
- package/dist/{modules → types/modules}/positions/TimelineModule.d.ts +3 -3
- package/dist/{modules → types/modules}/protection/ContentProtectionModule.d.ts +14 -10
- package/dist/types/modules/sampleread/SampleReadEventHandler.d.ts +8 -0
- package/dist/types/modules/search/DefinitionsModule.d.ts +52 -0
- package/dist/types/modules/search/Popup.d.ts +10 -0
- package/dist/{modules → types/modules}/search/SearchModule.d.ts +22 -18
- package/dist/{modules → types/modules}/search/searchWithDomSeek.d.ts +1 -1
- package/dist/{navigator → types/navigator}/IFrameNavigator.d.ts +99 -74
- package/dist/{navigator → types/navigator}/Navigator.d.ts +0 -0
- package/dist/types/reader.d.ts +202 -0
- package/dist/types/store/Annotator.d.ts +25 -0
- package/dist/types/store/LocalAnnotator.d.ts +31 -0
- package/dist/{store → types/store}/LocalStorageStore.d.ts +3 -3
- package/dist/{store → types/store}/MemoryStore.d.ts +3 -3
- package/dist/types/store/Store.d.ts +6 -0
- package/dist/{utils → types/utils}/BrowserUtilities.d.ts +0 -0
- package/dist/types/utils/EventHandler.d.ts +23 -0
- package/dist/{utils → types/utils}/HTMLTemplates.d.ts +0 -0
- package/dist/{utils → types/utils}/HTMLUtilities.d.ts +3 -3
- package/dist/{utils → types/utils}/IconLib.d.ts +1 -0
- package/dist/{utils → types/utils}/JsonUtil.d.ts +0 -0
- package/dist/types/utils/KeyboardEventHandler.d.ts +10 -0
- package/dist/{utils → types/utils}/TouchEventHandler.d.ts +4 -1
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/{views → types/views}/BookView.d.ts +10 -7
- package/dist/{views → types/views}/FixedBookView.d.ts +8 -4
- package/dist/{views → types/views}/ReflowableBookView.d.ts +7 -5
- package/package.json +54 -25
- package/NOTICE +0 -20
- package/dist/index.d.ts +0 -61
- package/dist/injectables/click/click.d.ts +0 -1
- package/dist/injectables/footnotes/footnotes.d.ts +0 -1
- package/dist/injectables/footnotes/footnotes.js +0 -2
- package/dist/injectables/footnotes/footnotes.js.map +0 -1
- package/dist/injectables/glossary/glossary.d.ts +0 -5
- package/dist/injectables/glossary/glossary.js +0 -3
- package/dist/injectables/glossary/glossary.js.LICENSE.txt +0 -6
- package/dist/injectables/glossary/glossary.js.map +0 -1
- package/dist/material.css +0 -4637
- package/dist/material.css.map +0 -30
- package/dist/model/MediaOverlayNode.d.ts +0 -3
- package/dist/model/Publication.d.ts +0 -26
- package/dist/modules/BookmarkModule.d.ts +0 -46
- package/dist/modules/ReaderModule.d.ts +0 -3
- package/dist/modules/TTS/TTSModule.d.ts +0 -58
- package/dist/modules/highlight/common/highlight.d.ts +0 -19
- package/dist/modules/highlight/common/styles.d.ts +0 -35
- package/dist/modules/syncnarration/SyncSettings.d.ts +0 -67
- package/dist/modules/syncnarration/SynchronizedNarrationModule.d.ts +0 -81
- package/dist/modules/syncnarration/renderer/media-overlays.d.ts +0 -0
- package/dist/reader.css.map +0 -21
- package/dist/reader.js.LICENSE.txt +0 -66
- package/dist/store/Annotator.d.ts +0 -25
- package/dist/store/LocalAnnotator.d.ts +0 -31
- package/dist/store/Store.d.ts +0 -6
- package/dist/utils/EventHandler.d.ts +0 -9
- package/dist/utils/KeyboardEventHandler.d.ts +0 -7
- package/dist/utils/decodeURI.d.ts +0 -1
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2018-2021 DITA (AM Consulting LLC)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
* Developed on behalf of: DITA
|
|
17
|
+
* Licensed to: CAST under one or more contributor license agreements.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
.d2-line-focus-container {
|
|
21
|
+
position: sticky;
|
|
22
|
+
height: 100vh;
|
|
23
|
+
width: 100%;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
z-index: 100;
|
|
26
|
+
top:0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.d2-line-focus-bottom, .d2-line-focus-top {
|
|
30
|
+
position: absolute;
|
|
31
|
+
height: 0;
|
|
32
|
+
min-height: 0;
|
|
33
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMxOTlCOUNGQTU2QzExRTc5QUZBQTQ3NkYwNjBCNUJBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMxOTlCOUQwQTU2QzExRTc5QUZBQTQ3NkYwNjBCNUJBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzE5OUI5Q0RBNTZDMTFFNzlBRkFBNDc2RjA2MEI1QkEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzE5OUI5Q0VBNTZDMTFFNzlBRkFBNDc2RjA2MEI1QkEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7FS0eIAAAAD0lEQVR42mJgYGC4CRBgAADeANokcoX4AAAAAElFTkSuQmCC");
|
|
34
|
+
background-repeat: repeat;
|
|
35
|
+
transition-property: height;
|
|
36
|
+
z-index: 25;
|
|
37
|
+
pointer-events: all;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.d2-line-focus-top {
|
|
41
|
+
left: 0;
|
|
42
|
+
top: 0;
|
|
43
|
+
right: 0;
|
|
44
|
+
height: 0;
|
|
45
|
+
box-shadow: 0 2px 7px 0 rgba(0, 0, 0, .4)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.d2-line-focus-bottom {
|
|
49
|
+
left: 0;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
right: 0;
|
|
52
|
+
height: 0;
|
|
53
|
+
box-shadow: 2px 0 7px 0 rgba(0, 0, 0, .4)
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2018-2020 DITA (AM Consulting LLC)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
* Developed on behalf of: DITA
|
|
17
|
+
* Licensed to: CAST under one or more contributor license agreements.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
.d2-popover {
|
|
21
|
+
position: fixed;
|
|
22
|
+
z-index: 10;
|
|
23
|
+
top: 0;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
width: 80%;
|
|
27
|
+
background: #fafafa;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
border-radius: 0.5em;
|
|
30
|
+
border: 1px solid #c3c3c3;
|
|
31
|
+
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
|
|
32
|
+
line-height: 0;
|
|
33
|
+
-webkit-transition-property: opacity, -webkit-transform;
|
|
34
|
+
transition-property: opacity, transform;
|
|
35
|
+
-webkit-transition-duration: 0.25s;
|
|
36
|
+
transition-duration: 0.25s;
|
|
37
|
+
-webkit-transition-timing-function: ease;
|
|
38
|
+
transition-timing-function: ease;
|
|
39
|
+
left: 50%;
|
|
40
|
+
transform: translateX(-50%) !important;
|
|
41
|
+
}
|
|
42
|
+
.d2-popover.is-active {
|
|
43
|
+
-webkit-transform: scale(1) translateZ(0);
|
|
44
|
+
transform: scale(1) translateZ(0);
|
|
45
|
+
opacity: 0.97;
|
|
46
|
+
}
|
|
47
|
+
.d2-popover.is-scrollable:after {
|
|
48
|
+
content: '';
|
|
49
|
+
position: absolute;
|
|
50
|
+
bottom: 0.3375em;
|
|
51
|
+
left: 0.3375em;
|
|
52
|
+
z-index: 14;
|
|
53
|
+
display: block;
|
|
54
|
+
height: 0.78125em;
|
|
55
|
+
width: 0.625em;
|
|
56
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxNXB4IiB2aWV3Qm94PSIwIDAgMTIgMTUiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pbllNaW4iPgogICAgPGcgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkFycm93IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjAwMDAwMCwgMS4wMDAwMDApIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiPgogICAgICAgICAgICA8cGF0aCBkPSJNNSwwIEw1LDExLjUiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjUsNy41IEw1LjAyNzY5Mjc5LDEyLjAyNzY5MjgiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik00LjUsNy41IEw5LjAyNzY5Mjc5LDEyLjAyNzY5MjgiIGlkPSJMaW5lLTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDcuMDAwMDAwLCAxMC4wMDAwMDApIHNjYWxlKC0xLCAxKSB0cmFuc2xhdGUoLTcuMDAwMDAwLCAtMTAuMDAwMDAwKSAiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo=");
|
|
57
|
+
background-size: cover;
|
|
58
|
+
opacity: 0.1;
|
|
59
|
+
transition-properties: opacity;
|
|
60
|
+
-webkit-transition-duration: 0.25s;
|
|
61
|
+
transition-duration: 0.25s;
|
|
62
|
+
-webkit-transition-timing-function: ease;
|
|
63
|
+
transition-timing-function: ease;
|
|
64
|
+
}
|
|
65
|
+
.d2-popover.is-scrollable .d2-d2-popover__wrapper:before, .d2-d2-popover.is-scrollable .d2-d2-popover__wrapper:after {
|
|
66
|
+
content: '';
|
|
67
|
+
position: absolute;
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
z-index: 12;
|
|
71
|
+
left: 0;
|
|
72
|
+
}
|
|
73
|
+
.d2-d2-popover.is-scrollable .d2-d2-popover__wrapper:before {
|
|
74
|
+
top: -1px;
|
|
75
|
+
height: 1.1em;
|
|
76
|
+
border-radius: 0.5em 0.5em 0 0;
|
|
77
|
+
background-image: -webkit-linear-gradient(top, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
78
|
+
background-image: linear-gradient(to bottom, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
79
|
+
}
|
|
80
|
+
.d2-popover.is-scrollable .d2-d2-popover__wrapper:after {
|
|
81
|
+
bottom: -1px;
|
|
82
|
+
height: 1.2em;
|
|
83
|
+
border-radius: 0 0 0.5em 0.5em;
|
|
84
|
+
background-image: -webkit-linear-gradient(bottom, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
85
|
+
background-image: linear-gradient(to top, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
86
|
+
}
|
|
87
|
+
.d2-popover.is-scrollable ::-webkit-scrollbar {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
.d2-popover.is-fully-scrolled:after, .d2-popover.is-fully-scrolled:before {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
-webkit-transition-delay: 0;
|
|
93
|
+
transition-delay: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.d2-popover-wrapper {
|
|
97
|
+
position: relative;
|
|
98
|
+
z-index: 14;
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 100%;
|
|
101
|
+
display: inline-block;
|
|
102
|
+
box-sizing: inherit;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
margin: 0;
|
|
105
|
+
background-color: #fafafa;
|
|
106
|
+
border-radius: 0.5em;
|
|
107
|
+
line-height: 0;
|
|
108
|
+
/*max-width: 353px;*/
|
|
109
|
+
}
|
|
110
|
+
.d2-popover-content {
|
|
111
|
+
position: relative;
|
|
112
|
+
width: 100%;
|
|
113
|
+
height: 100%;
|
|
114
|
+
z-index: 8;
|
|
115
|
+
display: inline-block;
|
|
116
|
+
max-height: 90vh;
|
|
117
|
+
padding: 1.1em 1.3em 1.2em;
|
|
118
|
+
box-sizing: inherit;
|
|
119
|
+
overflow: auto;
|
|
120
|
+
-webkit-overflow-scrolling: touch;
|
|
121
|
+
background: #fafafa;
|
|
122
|
+
border-radius: 0.5em;
|
|
123
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
|
124
|
+
line-height: normal;
|
|
125
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2018-2020 DITA (AM Consulting LLC)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
* Developed on behalf of: DITA
|
|
17
|
+
* Licensed to: CAST under one or more contributor license agreements.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
.d2-popup {
|
|
21
|
+
position: fixed;
|
|
22
|
+
z-index: 10;
|
|
23
|
+
top: 0;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
max-width: 90%;
|
|
27
|
+
background: #fafafa;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
border-radius: 0.5em;
|
|
30
|
+
border: 1px solid #c3c3c3;
|
|
31
|
+
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
|
|
32
|
+
line-height: 0;
|
|
33
|
+
-webkit-transition-property: opacity, -webkit-transform;
|
|
34
|
+
transition-property: opacity, transform;
|
|
35
|
+
-webkit-transition-duration: 0.25s;
|
|
36
|
+
transition-duration: 0.25s;
|
|
37
|
+
-webkit-transition-timing-function: ease;
|
|
38
|
+
transition-timing-function: ease;
|
|
39
|
+
left: 50%;
|
|
40
|
+
transform: translateX(-50%) !important;
|
|
41
|
+
}
|
|
42
|
+
.d2-popup.is-active {
|
|
43
|
+
-webkit-transform: scale(1) translateZ(0);
|
|
44
|
+
transform: scale(1) translateZ(0);
|
|
45
|
+
opacity: 0.97;
|
|
46
|
+
}
|
|
47
|
+
.d2-popup.is-scrollable:after {
|
|
48
|
+
content: '';
|
|
49
|
+
position: absolute;
|
|
50
|
+
bottom: 0.3375em;
|
|
51
|
+
left: 0.3375em;
|
|
52
|
+
z-index: 14;
|
|
53
|
+
display: block;
|
|
54
|
+
height: 0.78125em;
|
|
55
|
+
width: 0.625em;
|
|
56
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxNXB4IiB2aWV3Qm94PSIwIDAgMTIgMTUiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pbllNaW4iPgogICAgPGcgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkFycm93IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjAwMDAwMCwgMS4wMDAwMDApIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiPgogICAgICAgICAgICA8cGF0aCBkPSJNNSwwIEw1LDExLjUiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjUsNy41IEw1LjAyNzY5Mjc5LDEyLjAyNzY5MjgiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik00LjUsNy41IEw5LjAyNzY5Mjc5LDEyLjAyNzY5MjgiIGlkPSJMaW5lLTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDcuMDAwMDAwLCAxMC4wMDAwMDApIHNjYWxlKC0xLCAxKSB0cmFuc2xhdGUoLTcuMDAwMDAwLCAtMTAuMDAwMDAwKSAiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo=");
|
|
57
|
+
background-size: cover;
|
|
58
|
+
opacity: 0.1;
|
|
59
|
+
transition-properties: opacity;
|
|
60
|
+
-webkit-transition-duration: 0.25s;
|
|
61
|
+
transition-duration: 0.25s;
|
|
62
|
+
-webkit-transition-timing-function: ease;
|
|
63
|
+
transition-timing-function: ease;
|
|
64
|
+
}
|
|
65
|
+
.d2-popup.is-scrollable .d2-popup__wrapper:before, .d2-popup.is-scrollable .d2-popup__wrapper:after {
|
|
66
|
+
content: '';
|
|
67
|
+
position: absolute;
|
|
68
|
+
width: 100%;
|
|
69
|
+
z-index: 12;
|
|
70
|
+
left: 0;
|
|
71
|
+
}
|
|
72
|
+
.d2-popup.is-scrollable .d2-popup__wrapper:before {
|
|
73
|
+
top: -1px;
|
|
74
|
+
height: 1.1em;
|
|
75
|
+
border-radius: 0.5em 0.5em 0 0;
|
|
76
|
+
background-image: -webkit-linear-gradient(top, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
77
|
+
background-image: linear-gradient(to bottom, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
78
|
+
}
|
|
79
|
+
.d2-popup.is-scrollable .d2-popup__wrapper:after {
|
|
80
|
+
bottom: -1px;
|
|
81
|
+
height: 1.2em;
|
|
82
|
+
border-radius: 0 0 0.5em 0.5em;
|
|
83
|
+
background-image: -webkit-linear-gradient(bottom, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
84
|
+
background-image: linear-gradient(to top, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
85
|
+
}
|
|
86
|
+
.d2-popup.is-scrollable ::-webkit-scrollbar {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
.d2-popup.is-fully-scrolled:after, .d2-popup.is-fully-scrolled:before {
|
|
90
|
+
opacity: 0;
|
|
91
|
+
-webkit-transition-delay: 0;
|
|
92
|
+
transition-delay: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.d2-popup-wrapper {
|
|
96
|
+
position: relative;
|
|
97
|
+
z-index: 14;
|
|
98
|
+
width: 22em;
|
|
99
|
+
display: inline-block;
|
|
100
|
+
box-sizing: inherit;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
margin: 0;
|
|
103
|
+
background-color: #fafafa;
|
|
104
|
+
border-radius: 0.5em;
|
|
105
|
+
line-height: 0;
|
|
106
|
+
max-width: 353px;
|
|
107
|
+
}
|
|
108
|
+
.d2-popup-content {
|
|
109
|
+
position: relative;
|
|
110
|
+
z-index: 8;
|
|
111
|
+
display: inline-block;
|
|
112
|
+
max-height: 15em;
|
|
113
|
+
padding: 1.1em 1.3em 1.2em;
|
|
114
|
+
box-sizing: inherit;
|
|
115
|
+
overflow: auto;
|
|
116
|
+
-webkit-overflow-scrolling: touch;
|
|
117
|
+
background: #fafafa;
|
|
118
|
+
border-radius: 0.5em;
|
|
119
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
|
120
|
+
line-height: normal;
|
|
121
|
+
}
|