diva.js 6.0.2 → 7.2.3

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 (131) hide show
  1. package/.clang-format +7 -0
  2. package/.github/workflows/npm-publish.yml +45 -0
  3. package/LICENSE +55 -0
  4. package/Makefile +75 -0
  5. package/README.md +15 -114
  6. package/elm.json +32 -0
  7. package/package.json +12 -59
  8. package/review/elm.json +52 -0
  9. package/review/src/ReviewConfig.elm +87 -0
  10. package/scripts/elm-esm.sh +40 -0
  11. package/scripts/minify-css.mjs +31 -0
  12. package/src/Filters.elm +1044 -0
  13. package/src/Main.elm +1217 -0
  14. package/src/Model.elm +213 -0
  15. package/src/Msg.elm +59 -0
  16. package/src/Utilities.elm +46 -0
  17. package/src/View/CollectionExplorer.elm +172 -0
  18. package/src/View/Helpers.elm +86 -0
  19. package/src/View/HtmlRenderer.elm +136 -0
  20. package/src/View/Icons.elm +159 -0
  21. package/src/View/ManifestInfoModal.elm +363 -0
  22. package/src/View/PageViewModal.elm +1046 -0
  23. package/src/View/Sidebar.elm +786 -0
  24. package/src/View/Toolbar.elm +189 -0
  25. package/src/View.elm +244 -0
  26. package/src/diva.ts +802 -0
  27. package/src/filters.ts +1843 -0
  28. package/src/styles/app.css +328 -0
  29. package/src/styles/collection.css +75 -0
  30. package/src/styles/modal.css +388 -0
  31. package/src/styles/sidebar.css +215 -0
  32. package/src/styles/theme.css +39 -0
  33. package/src/styles/toolbar.css +154 -0
  34. package/src/viewer-element.ts +1307 -0
  35. package/testing/index.html +52 -0
  36. package/testing/testing.html +231 -0
  37. package/tsconfig.json +12 -0
  38. package/AUTHORS +0 -22
  39. package/build/diva.css +0 -554
  40. package/build/diva.css.map +0 -1
  41. package/build/diva.js +0 -9
  42. package/build/diva.js.map +0 -1
  43. package/build/plugins/download.js +0 -2
  44. package/build/plugins/download.js.map +0 -1
  45. package/build/plugins/manipulation.js +0 -2
  46. package/build/plugins/manipulation.js.map +0 -1
  47. package/build/plugins/metadata.js +0 -2
  48. package/build/plugins/metadata.js.map +0 -1
  49. package/index.html +0 -28
  50. package/karma.conf.js +0 -87
  51. package/source/css/_mixins.scss +0 -43
  52. package/source/css/_variables.scss +0 -50
  53. package/source/css/_viewer.scss +0 -462
  54. package/source/css/diva.scss +0 -15
  55. package/source/css/plugins/_manipulation.scss +0 -228
  56. package/source/css/plugins/_metadata.scss +0 -31
  57. package/source/img/adjust.svg +0 -11
  58. package/source/img/book-view.svg +0 -6
  59. package/source/img/close.svg +0 -6
  60. package/source/img/download.svg +0 -6
  61. package/source/img/from-fullscreen.svg +0 -8
  62. package/source/img/grid-fewer.svg +0 -6
  63. package/source/img/grid-more.svg +0 -6
  64. package/source/img/grid-view.svg +0 -6
  65. package/source/img/link.svg +0 -6
  66. package/source/img/metadata.svg +0 -9
  67. package/source/img/page-view.svg +0 -6
  68. package/source/img/to-fullscreen.svg +0 -11
  69. package/source/img/zoom-in.svg +0 -6
  70. package/source/img/zoom-out.svg +0 -7
  71. package/source/js/composite-image.js +0 -174
  72. package/source/js/diva-global.js +0 -7
  73. package/source/js/diva.js +0 -1543
  74. package/source/js/document-handler.js +0 -180
  75. package/source/js/document-layout.js +0 -286
  76. package/source/js/exceptions.js +0 -26
  77. package/source/js/gesture-events.js +0 -190
  78. package/source/js/grid-handler.js +0 -122
  79. package/source/js/iiif-source-adapter.js +0 -63
  80. package/source/js/image-cache.js +0 -113
  81. package/source/js/image-manifest.js +0 -157
  82. package/source/js/image-request-handler.js +0 -76
  83. package/source/js/interpolate-animation.js +0 -122
  84. package/source/js/page-layouts/book-layout.js +0 -161
  85. package/source/js/page-layouts/grid-layout.js +0 -97
  86. package/source/js/page-layouts/index.js +0 -38
  87. package/source/js/page-layouts/page-dimensions.js +0 -9
  88. package/source/js/page-layouts/singles-layout.js +0 -27
  89. package/source/js/page-overlay-manager.js +0 -102
  90. package/source/js/page-tools-overlay.js +0 -95
  91. package/source/js/parse-iiif-manifest.js +0 -302
  92. package/source/js/plugins/_filters.js +0 -679
  93. package/source/js/plugins/download.js +0 -83
  94. package/source/js/plugins/manipulation.js +0 -837
  95. package/source/js/plugins/metadata.js +0 -190
  96. package/source/js/renderer.js +0 -584
  97. package/source/js/settings-view.js +0 -30
  98. package/source/js/tile-coverage-map.js +0 -25
  99. package/source/js/toolbar.js +0 -573
  100. package/source/js/utils/dragscroll.js +0 -106
  101. package/source/js/utils/elt.js +0 -94
  102. package/source/js/utils/events.js +0 -190
  103. package/source/js/utils/get-scrollbar-width.js +0 -29
  104. package/source/js/utils/hash-params.js +0 -86
  105. package/source/js/utils/parse-label-value.js +0 -34
  106. package/source/js/utils/vanilla.kinetic.js +0 -527
  107. package/source/js/validation-runner.js +0 -177
  108. package/source/js/viewer-core.js +0 -1514
  109. package/source/js/viewport.js +0 -143
  110. package/test/_setup.js +0 -13
  111. package/test/composite-image_test.js +0 -94
  112. package/test/diva_test.js +0 -43
  113. package/test/hash-params_test.js +0 -221
  114. package/test/image-cache_test.js +0 -106
  115. package/test/main.js +0 -6
  116. package/test/manifests/beromunsterManifest.json +0 -15514
  117. package/test/manifests/iiifv2.json +0 -11032
  118. package/test/manifests/iiifv2pages.json +0 -30437
  119. package/test/manifests/iiifv3.json +0 -10965
  120. package/test/navigation_test.js +0 -355
  121. package/test/parse-iiif-manifest_test.js +0 -68
  122. package/test/public_test.js +0 -881
  123. package/test/settings_test.js +0 -487
  124. package/test/utils/book-layout_test.js +0 -148
  125. package/test/utils/elt_test.js +0 -102
  126. package/test/utils/events_test.js +0 -245
  127. package/test/utils/hash-params_test.js +0 -79
  128. package/test/utils/parse-label-value_test.js +0 -45
  129. package/test/z_plugins_test.js +0 -180
  130. package/webpack.config.js +0 -58
  131. package/webpack.config.test.js +0 -45
package/karma.conf.js DELETED
@@ -1,87 +0,0 @@
1
- // Karma configuration
2
- // Generated on Tue Jul 31 2018 14:40:42 GMT-0400 (Eastern Daylight Time)
3
-
4
- module.exports = function(config) {
5
-
6
- var webpackConfig = require('./webpack.config.test');
7
- process.env.CHROME_BIN = require('puppeteer').executablePath()
8
-
9
- config.set({
10
-
11
- // base path that will be used to resolve all patterns (eg. files, exclude)
12
- basePath: '',
13
-
14
-
15
- // frameworks to use
16
- // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
17
- frameworks: ['mocha'],
18
-
19
-
20
- // list of files / patterns to load in the browser
21
- files: [
22
- 'test/main.js',
23
- 'build/diva.css'
24
- ],
25
-
26
-
27
- // list of files / patterns to exclude
28
- exclude: [
29
- ],
30
-
31
-
32
- // preprocess matching files before serving them to the browser
33
- // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
34
- preprocessors: {
35
- 'test/main.js': ['webpack', 'babel']
36
- },
37
-
38
- webpack: webpackConfig,
39
-
40
- babelPreprocessor: {
41
- options: {
42
- presets: ['env']
43
- },
44
- },
45
-
46
- // test results reporter to use
47
- // possible values: 'dots', 'progress'
48
- // available reporters: https://npmjs.org/browse/keyword/karma-reporter
49
- reporters: ['mocha', 'coverage-istanbul'],
50
-
51
- coverageIstanbulReporter: {
52
- reports: [ 'html', 'text-summary' ],
53
- fixWebpackSourcePaths: true
54
- },
55
-
56
-
57
- // web server port
58
- port: 9876,
59
-
60
-
61
- // enable / disable colors in the output (reporters and logs)
62
- colors: true,
63
-
64
-
65
- // level of logging
66
- // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
67
- logLevel: config.LOG_INFO,
68
-
69
-
70
- // enable / disable watching file and executing tests whenever any file changes
71
- autoWatch: false,
72
-
73
-
74
- // start these browsers
75
- // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
76
- browsers: ['ChromeHeadless'],
77
-
78
-
79
- // Continuous Integration mode
80
- // if true, Karma captures browsers, runs the tests and exits
81
- singleRun: true,
82
-
83
- // Concurrency level
84
- // how many browser should be started simultaneous
85
- concurrency: Infinity
86
- })
87
- }
@@ -1,43 +0,0 @@
1
- @import "variables";
2
-
3
- @mixin hidden()
4
- {
5
- display: none;
6
- }
7
-
8
- // Shortcut for a 1px solid border
9
- @mixin frame($colour)
10
- {
11
- border: $borderSize solid $colour;
12
- }
13
-
14
- @mixin plugin-icon($plugin-name)
15
- {
16
- background: data-uri('${iconPath}plugins/${plugin-name}.png') no-repeat;
17
-
18
- &:hover {
19
- background: data-uri('${iconPath}plugins/${plugin-name}-hover.png') no-repeat;
20
- }
21
- }
22
-
23
- @mixin loading()
24
- {
25
- background: data-uri("${iconPath}loading.gif") no-repeat center;
26
- }
27
-
28
- @mixin pretty-shadow($distance: 4px)
29
- {
30
- box-shadow: 2px 2px $distance 0 rgba(0, 0, 0, 0.5);
31
- }
32
-
33
- @mixin full-width()
34
- {
35
- width: 100% !important;
36
- max-width: 100% !important;
37
- }
38
-
39
- @mixin full-height()
40
- {
41
- height: 100% !important;
42
- max-height: 100% !important;
43
- }
@@ -1,50 +0,0 @@
1
- // Colours
2
- $white: #FFF;
3
- $mediumGrey: #CCC;
4
- $grey: #DDD;
5
- $lightGrey: #F1F1F1;
6
- $lighterGrey: #FDFDFD;
7
- $primaryBorder: #AAA;
8
- $highlightBlue: #dfefff;
9
- $regularBlue: rgb(0, 110, 188);
10
-
11
- // Customising the colour scheme
12
- $viewerBg: $lightGrey;
13
- $pageBg: $lighterGrey;
14
- $viewerFrame: $primaryBorder;
15
-
16
- $toolsBg: $white;
17
- $toolsFrame: $grey;
18
-
19
- // TODO: Could probably unify button, input variables
20
- $buttonBg: $lightGrey;
21
- $buttonFrame: $primaryBorder;
22
- $buttonHover: $lighterGrey;
23
-
24
- $inputFrame: $primaryBorder;
25
- $inputHoverFrame: darken($primaryBorder, 10%);
26
-
27
- $linkBg: $white;
28
- $linkFrame: $grey;
29
-
30
- // z-index information
31
- $fullscreenZIndex: 100;
32
-
33
- // Dimensions
34
- $pluginIconSize: 20px;
35
- $fullscreenIconSize: 26px;
36
- $throbberWidth: 50px;
37
- $throbberHeight: 50px;
38
- $toolbarGroupMargin: 1em;
39
-
40
- $borderSize: 1px;
41
-
42
- $buttonSize: 34px;
43
- $buttonPadding: 0.5em;
44
-
45
- $inputSize: 34px;
46
- $inputPadding: 0.5em;
47
-
48
- $spinkit-spinner-margin: auto auto !default;
49
- $spinkit-size: 40px !default;
50
- $spinkit-spinner-color: #333 !default;
@@ -1,462 +0,0 @@
1
- @import "variables";
2
- @import "mixins";
3
-
4
- .diva-wrapper {
5
- min-height: 95vh;
6
- width: 100%;
7
- flex-grow: 1;
8
-
9
- &.diva-wrapper-flexbox {
10
- display: flex;
11
- flex-direction: column;
12
- }
13
-
14
- >*:not(.diva-outer) {
15
- flex-shrink: 0;
16
- }
17
- }
18
-
19
- .diva-title {
20
- text-align: center;
21
- font-weight: bold;
22
- font-size: 1.3em;
23
- max-width: 50em;
24
- margin: 0 auto;
25
- }
26
-
27
- .diva-button, .diva-input {
28
- box-sizing: border-box;
29
- outline: none;
30
- border-radius: 0;
31
- font: inherit;
32
- vertical-align: middle;
33
-
34
- &::-moz-focus-inner {
35
- padding: 0;
36
- }
37
- }
38
-
39
- .diva-button {
40
- display: inline-block;
41
- cursor: pointer;
42
- height: $buttonSize;
43
- width: $buttonSize;
44
-
45
- line-height: $buttonSize;
46
- -webkit-appearance: none;
47
- padding: 3px;
48
-
49
- background-color: $buttonBg;
50
- background-repeat: no-repeat;
51
- background-position: center;
52
- @include frame($buttonFrame);
53
-
54
- &:hover, &:focus {
55
- background-color: $buttonHover;
56
- }
57
-
58
- &.diva-button-text {
59
- width: auto;
60
- padding: 0 $buttonPadding;
61
- }
62
- }
63
-
64
- .diva-input {
65
- height: $inputSize;
66
- @include frame($inputFrame);
67
-
68
- padding: 0 $inputPadding;
69
-
70
- &:focus {
71
- border-color: $inputHoverFrame;
72
- }
73
- }
74
-
75
- .diva-label {
76
- margin: 0 $toolbarGroupMargin;
77
- line-height: $buttonSize;
78
- vertical-align: top;
79
- white-space: nowrap;
80
- text-overflow: ellipsis;
81
- }
82
-
83
- .diva-tools-left, .diva-tools-right {
84
- margin-bottom: $toolbarGroupMargin;
85
- }
86
-
87
- .diva-tools-left {
88
- float: left;
89
- user-select: none;
90
- }
91
-
92
- .diva-zoom-in-button, .diva-grid-in-button {
93
- margin-left: -1px;
94
- }
95
-
96
- .diva-tools-right {
97
- float: right;
98
-
99
- .diva-button {
100
- margin-left: -1px;
101
- user-select: none;
102
- }
103
- }
104
-
105
- .diva-page-nav {
106
- white-space: nowrap;
107
- margin-right: $toolbarGroupMargin;
108
- }
109
-
110
- .diva-goto-form {
111
- display: inline-block;
112
- position: relative;
113
- }
114
-
115
- .diva-goto-page-input {
116
- width: 5em;
117
- }
118
-
119
- .diva-input-suggestions {
120
- display: none;
121
- box-sizing: border-box;
122
- position: absolute;
123
- width: 100%;
124
- background-color: white;
125
- border: solid 1px #aaa;
126
- border-top: none;
127
- z-index: 1;
128
- }
129
-
130
- .diva-input-suggestion {
131
- box-sizing: border-box;
132
- width: 100%;
133
- margin-top: 3px;
134
- padding: 2px;
135
- padding-left: 5px;
136
- white-space: nowrap;
137
- overflow: hidden;
138
- text-overflow: ellipsis;
139
- cursor: pointer;
140
- }
141
-
142
- .diva-input-suggestion.active, .diva-input-suggestion:hover {
143
- background-color: $highlightBlue;
144
- }
145
-
146
- .diva-fullscreen-icon {
147
- }
148
-
149
- .diva-toggle-nonpaged-icon {
150
- }
151
-
152
- .diva-toggle-nonpaged-icon-active {
153
- }
154
-
155
- .diva-view-menu {
156
- display: inline-block;
157
- position: relative;
158
- }
159
-
160
- .diva-view-options {
161
- position: absolute;
162
- top: $buttonSize;
163
- z-index: 1;
164
- display: none;
165
- box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.1);
166
- }
167
-
168
- .diva-view-options .diva-button {
169
- margin-top: -1px;
170
- display: block;
171
- }
172
-
173
- .diva-document-icon {
174
- }
175
-
176
- .diva-grid-icon {
177
- }
178
-
179
- .diva-book-icon {
180
- }
181
-
182
- .diva-link-icon {
183
- }
184
-
185
- .diva-zoom-label, .diva-grid-label, .diva-page-label {
186
- display: inline-block;
187
- }
188
-
189
- .diva-fullscreen-tools {
190
- position: fixed;
191
- top: 15px;
192
- right: 30px;
193
- z-index: $fullscreenZIndex + 1;
194
- padding: 15px;
195
- @include frame($toolsFrame);
196
- background: $toolsBg;
197
- transition: opacity 0.5s;
198
-
199
- @include pretty-shadow();
200
-
201
- .diva-tools-left, .diva-tools-right {
202
- margin-bottom: 0;
203
- }
204
-
205
- .diva-tools-right {
206
- margin-left: 2em;
207
- }
208
-
209
- .diva-label, .diva-page-label {
210
- margin: 0;
211
- }
212
-
213
- /* prevent variable number of digits in labels from resizing .diva-fullscreen-tools */
214
- .diva-zoom-label, .diva-grid-label, .diva-page-label {
215
- width: 8em;
216
- display: block;
217
- }
218
-
219
- .diva-page-nav {
220
- margin-right: 0;
221
- }
222
- }
223
-
224
- .diva-outer {
225
- display: flex;
226
- clear: both;
227
- background: $viewerBg;
228
- @include frame($viewerFrame);
229
- position: relative;
230
- overflow: hidden;
231
- min-height: 100px;
232
- min-width: 200px;
233
- flex-grow: 1;
234
- }
235
-
236
- .diva-viewer-canvas {
237
- position: absolute;
238
- top: 0;
239
- left: 0;
240
- }
241
-
242
- .diva-viewport {
243
- position: absolute;
244
- top: 0;
245
- bottom: 0;
246
- left: 0;
247
- right: 0;
248
- overflow: auto;
249
- }
250
-
251
- .diva-inner {
252
- cursor: move; /* fallback if grab cursor is unsupported */
253
- cursor: grab;
254
- cursor: -moz-grab;
255
- cursor: -webkit-grab;
256
- position: relative;
257
- overflow: hidden;
258
- margin: 0 auto;
259
-
260
- &.diva-grabbing {
261
- cursor: grabbing;
262
- cursor: -moz-grabbing;
263
- cursor: -webkit-grabbing;
264
- }
265
- }
266
-
267
- .diva-page {
268
- box-shadow: 7px 7px 6px -6px rgba(0,0,0,0.3);
269
- position: absolute;
270
- background-color: $pageBg;
271
- }
272
-
273
- .diva-page-tools-wrapper {
274
- position: absolute;
275
- z-index: 3;
276
- }
277
-
278
- .diva-page-tools {
279
- position: relative;
280
- top: -$pluginIconSize - 7;
281
- height: $pluginIconSize;
282
-
283
- div {
284
- display: inline-block;
285
- height: $pluginIconSize;
286
- width: $pluginIconSize;
287
- cursor: pointer;
288
- padding: 3px;
289
-
290
- svg:hover .diva-pagetool-icon {
291
- fill: $regularBlue;
292
- }
293
- }
294
- }
295
-
296
- .diva-page-labels-wrapper {
297
- position: absolute;
298
- z-index: 3;
299
- }
300
-
301
- .diva-page-labels {
302
- position: relative;
303
- top: -$pluginIconSize;
304
- height: $pluginIconSize;
305
- font-size: 0.8em;
306
- }
307
-
308
- .diva-fullscreen {
309
- @include full-width();
310
- @include full-height();
311
- z-index: $fullscreenZIndex;
312
- position: fixed !important;
313
- top: 0;
314
- left: 0;
315
- margin: 0;
316
- border: 0;
317
- }
318
-
319
- .diva-popup {
320
- background: $linkBg;
321
- @include frame($buttonFrame);
322
- padding: .6em;
323
- z-index: $fullscreenZIndex + 1;
324
- position: absolute;
325
- @include pretty-shadow();
326
- }
327
-
328
- .diva-link-popup {
329
- font-size: 10pt;
330
-
331
- input {
332
- width: 18em;
333
- &:focus {
334
- outline: none;
335
- }
336
- }
337
-
338
- &.in-fullscreen {
339
- top: 150px;
340
- right: 30px;
341
- }
342
- }
343
-
344
- // Used for body in fullscreen mode
345
- .diva-hide-scrollbar {
346
- overflow: hidden !important;
347
- }
348
-
349
- .diva-slider {
350
- position: relative;
351
- top: 0.6em;
352
- float: left;
353
- @media (max-width: 480px) {
354
- width: 100px;
355
- }
356
- }
357
-
358
- // The loading indicator, shown if the AJAX request is slow
359
- //.diva-throbber {
360
- // .hidden;
361
- // position: absolute;
362
- // width: $throbberWidth;
363
- // height: $throbberHeight;
364
- // .loading;
365
- // background-color: $white;
366
- // border: 1px solid $grey;
367
- // .pretty-shadow;
368
- // top: 50%;
369
- // left: 50%;
370
- // margin-left: -$throbberWidth / 2;
371
- // margin-top: -$throbberHeight / 2;
372
- //}
373
-
374
- // https://github.com/tobiasahlin/SpinKit/blob/master/scss/spinners/9-cube-grid.scss
375
- .diva-throbber {
376
- @include pretty-shadow();
377
-
378
- $delayRange: 0.4s;
379
-
380
- width: $spinkit-size;
381
- height: $spinkit-size;
382
- margin: $spinkit-spinner-margin;
383
- padding: 20px;
384
- background-color: #fff;
385
-
386
- .cube {
387
- width: 33.33%;
388
- height: 33.33%;
389
- background-color: $spinkit-spinner-color;
390
- float: left;
391
- animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
392
- }
393
-
394
- /*
395
- * Spinner positions
396
- * 1 2 3
397
- * 4 5 6
398
- * 7 8 9
399
- */
400
-
401
- .cube1 { animation-delay: $delayRange * 0.50 }
402
- .cube2 { animation-delay: $delayRange * 0.75 }
403
- .cube3 { animation-delay: $delayRange }
404
- .cube4 { animation-delay: $delayRange * 0.25 }
405
- .cube5 { animation-delay: $delayRange * 0.50 }
406
- .cube6 { animation-delay: $delayRange * 0.75 }
407
- .cube7 { animation-delay: 0.0s }
408
- .cube8 { animation-delay: $delayRange * 0.25 }
409
- .cube9 { animation-delay: $delayRange * 0.50 }
410
- }
411
-
412
- @keyframes sk-cubeGridScaleDelay {
413
- 0%, 70%, 100% { transform:scale3D(1.0, 1.0, 1.0) }
414
- 35% { transform:scale3D(0.0, 0.0, 1.0) }
415
- }
416
-
417
-
418
-
419
- // Error message box, only shown if there is an error
420
- .diva-error {
421
- position: absolute;
422
- width: 400px;
423
- height: 200px;
424
- background-color: #fff;
425
- border: 1px solid #ddd;
426
- box-shadow: 2px 2px 4px 0 rgba(0,0,0,0.5);
427
- top: 50%;
428
- left: 50%;
429
- margin-left: -220px;
430
- margin-top: -120px;
431
- z-index: 120;
432
- padding: 0 1em;
433
- }
434
-
435
- .diva-error-close {
436
- width: 18px;
437
- height: 18px;
438
- border: none;
439
- //background: #fff data-uri("${iconPath}close.png");
440
- position: absolute;
441
- top: 1em;
442
- right: 1em;
443
-
444
- &:hover {
445
- //background-image: data-uri("${iconPath}close-hover.png");
446
- cursor: hand;
447
- }
448
- }
449
-
450
- .diva-modal {
451
- position: absolute;
452
- width: 32em;
453
- max-height: 26em;
454
- background-color: #fff;
455
- border: 1px solid #ddd;
456
- box-shadow: 2px 2px 4px 0 rgba(0,0,0,0.5);
457
- top: 50%;
458
- left: 50%;
459
- transform: translate(-50%, -50%);
460
- z-index: 120;
461
- word-wrap: break-word;
462
- }
@@ -1,15 +0,0 @@
1
- // Preboot stuff
2
- @import "variables";
3
- @import "mixins";
4
-
5
- // Stuff for the document viewer
6
- @import "viewer";
7
-
8
- // Plugins
9
- @import "plugins/manipulation";
10
- @import "plugins/metadata";
11
- //@import "plugins/canvas.less";
12
- //@import "plugins/download.less";
13
- //@import "plugins/autoscroll.less";
14
- //@import "plugins/iiif-highlight.less";
15
- //@import "plugins/iiif-metadata.less";