molstar 3.0.0-dev.2 → 3.0.0-dev.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 (50) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +187 -187
  3. package/build/viewer/embedded.html +43 -43
  4. package/build/viewer/index.html +94 -94
  5. package/build/viewer/molstar.js +1 -1
  6. package/lib/apps/docking-viewer/index.html +36 -36
  7. package/lib/apps/viewer/embedded.html +43 -43
  8. package/lib/apps/viewer/index.html +94 -94
  9. package/lib/commonjs/extensions/geo-export/obj-exporter.js +1 -1
  10. package/lib/commonjs/extensions/geo-export/usdz-exporter.js +1 -1
  11. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  12. package/lib/commonjs/mol-script/language/builder.d.ts +0 -1
  13. package/lib/examples/alpha-orbitals/index.html +60 -60
  14. package/lib/examples/basic-wrapper/index.html +136 -136
  15. package/lib/examples/lighting/index.html +86 -86
  16. package/lib/examples/proteopedia-wrapper/index.html +235 -235
  17. package/lib/extensions/geo-export/obj-exporter.js +1 -1
  18. package/lib/extensions/geo-export/usdz-exporter.js +1 -1
  19. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  20. package/lib/mol-plugin/version.js +2 -2
  21. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  22. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  23. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  24. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  25. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  26. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  27. package/lib/mol-plugin-ui/skin/base/components/misc.scss +616 -616
  28. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  29. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  30. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  31. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  32. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  33. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
  34. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  35. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  36. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  37. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  38. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  39. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  40. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  41. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  42. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  43. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  44. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  45. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  46. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  47. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  48. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  49. package/lib/mol-script/language/builder.d.ts +0 -1
  50. package/package.json +160 -160
@@ -1,419 +1,419 @@
1
- @use "sass:math";
2
-
3
- .msp-control-row {
4
- position: relative;
5
- height: $row-height;
6
- background: $default-background;
7
- margin-top: 1px;
8
-
9
- select, button, input[type=text] {
10
- @extend .msp-form-control;
11
- }
12
-
13
- button {
14
- @extend .msp-btn;
15
- @extend .msp-btn-block;
16
- }
17
-
18
- > span.msp-control-row-label, > button.msp-control-button-label {
19
- line-height: $row-height;
20
- display: block;
21
- width: $control-label-width + $control-spacing;
22
- text-align: right;
23
- padding: 0 $control-spacing;
24
- color: color-lower-contrast($font-color, 15%);
25
- overflow: hidden;
26
- text-overflow: ellipsis;
27
- white-space: nowrap;
28
- position: relative;
29
-
30
- @include non-selectable;
31
- }
32
-
33
- > button.msp-control-button-label {
34
- background: $default-background;
35
- cursor: pointer;
36
- }
37
-
38
- .msp-control-current {
39
- background: $default-background;
40
- }
41
-
42
- > div.msp-control-row-ctrl {
43
- position: absolute;
44
- left: $control-label-width + $control-spacing;
45
- top: 0;
46
- right: 0;
47
- bottom: 0;
48
- }
49
-
50
- > div {
51
- background: $msp-form-control-background;
52
- }
53
-
54
- > .msp-flex-row {
55
- background: $default-background;
56
- }
57
- }
58
-
59
- .msp-control-label-short {
60
- > span {
61
- width: $control-label-short-width + $control-spacing !important;
62
- }
63
-
64
- > div:nth-child(2) {
65
- left: $control-label-short-width + $control-spacing !important;
66
- }
67
- }
68
-
69
- .msp-control-col-2 {
70
- float: left;
71
- width: 50%;
72
- }
73
-
74
- .msp-control-group {
75
- position: relative;
76
- }
77
-
78
- .msp-toggle-button {
79
- .msp-icon {
80
- display: inline-block;
81
- margin-right: 6px;
82
- }
83
-
84
- > div > button:hover {
85
- border-color: color-increase-contrast($msp-form-control-background, 5%) !important;
86
- border: none;
87
- outline-offset: -1px !important;
88
- outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
89
- }
90
- }
91
-
92
- .msp-slider {
93
- > div:first-child {
94
- position: absolute;
95
- top: 0;
96
- left: 18px;
97
- bottom: 0;
98
- right: 62px;
99
- display: flex;
100
- }
101
- > div:last-child {
102
- position: absolute;
103
- height: $row-height;
104
- line-height: $row-height;
105
- text-align: center;
106
- right: 0;
107
- width: 50px;
108
- top: 0;
109
- bottom: 0;
110
- }
111
-
112
- input[type=text] {
113
- padding-right: 6px;
114
- padding-left: 4px;
115
- font-size: 80%;
116
- text-align: right;
117
- }
118
-
119
- // input[type=range] {
120
- // width: 100%;
121
- // }
122
- }
123
-
124
- .msp-slider2 {
125
- > div:first-child {
126
- position: absolute;
127
- height: $row-height;
128
- line-height: $row-height;
129
- text-align: center;
130
- left: 0;
131
- width: 25px;
132
- top: 0;
133
- bottom: 0;
134
- font-size: 80%;
135
- }
136
- > div:nth-child(2) {
137
- position: absolute;
138
- top: 0;
139
- left: 35px;
140
- bottom: 0;
141
- right: 37px;
142
- display: flex;
143
- }
144
- > div:last-child {
145
- position: absolute;
146
- height: $row-height;
147
- line-height: $row-height;
148
- text-align: center;
149
- right: 0;
150
- width: 25px;
151
- top: 0;
152
- bottom: 0;
153
- font-size: 80%;
154
- }
155
-
156
- input[type=text] {
157
- padding-right: 4px;
158
- padding-left: 4px;
159
- font-size: 80%;
160
- text-align: center;
161
- }
162
-
163
- // input[type=range] {
164
- // width: 100%;
165
- // }
166
- }
167
-
168
- .msp-toggle-color-picker {
169
- button {
170
- border: $control-spacing solid $msp-form-control-background !important;
171
- margin: 0;
172
- text-align: center;
173
- padding-right: $control-spacing;
174
- padding-left: $control-spacing;
175
-
176
- &:hover {
177
- border-color: color-increase-contrast($msp-form-control-background, 5%) !important;
178
- border: none;
179
- outline-offset: -1px !important;
180
- outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
181
- }
182
- }
183
-
184
- .msp-color-picker {
185
- position: absolute;
186
- z-index: 100000;
187
- background: $default-background;
188
- border-top: 1px solid $default-background;
189
- padding-bottom: math.div($control-spacing, 2);
190
- width: 100%;
191
-
192
- // input[type=text] {
193
- // background: $msp-form-control-background !important;
194
- // }
195
- }
196
- }
197
-
198
- .msp-toggle-color-picker-above {
199
- .msp-color-picker {
200
- top: -2 * 32px - 16px - math.div($control-spacing, 2);
201
- height: 2 * 32px + 16px + math.div($control-spacing, 2);
202
- }
203
- }
204
-
205
- .msp-toggle-color-picker-below {
206
- .msp-color-picker {
207
- top: $row-height;
208
- height: 2 * 32px + 16px;
209
- }
210
- }
211
-
212
- .msp-control-offset {
213
- padding-left: $control-spacing;
214
- }
215
-
216
- .msp-accent-offset {
217
- padding-left: 1px;
218
- margin-left: $control-spacing - 2;
219
- border-left: 2px solid $color-accent-orange;
220
- }
221
-
222
- // .msp-accent-offset-right {
223
- // margin-left: $control-spacing;
224
- // padding-right: 1px;
225
- // border-right: 2px solid $color-accent-orange;
226
- // }
227
-
228
- .msp-control-group-wrapper {
229
- //border-left-width: math.div($control-spacing, 2);
230
- //border-left-style: solid;
231
- //border-left-color: color-increase-contrast($default-background, 10%);
232
-
233
- margin-bottom: 0px;
234
- margin-top: 1px;
235
- }
236
-
237
- // TODO : get rid of the important
238
- .msp-control-group-header {
239
- background: $default-background;
240
- > button, div {
241
- padding-left: 4px; // math.div($control-spacing, 2) !important;
242
- text-align: left;
243
- height: 24px !important;
244
- line-height: 24px !important;
245
- font-size: 85% !important;
246
- background: $default-background !important;
247
- color: color-lower-contrast($font-color, 15%);
248
- }
249
- .msp-icon {
250
- height: 24px !important;
251
- line-height: 24px !important;
252
- }
253
- > span {
254
- padding-left: math.div($control-spacing, 2);
255
- line-height: math.div(2 * $row-height, 3);
256
- font-size: 70%;
257
- background: $default-background;
258
- color: color-lower-contrast($font-color, 15%);
259
- }
260
- }
261
-
262
- .msp-control-current {
263
- background: $default-background;
264
- }
265
-
266
- .msp-control-group-footer {
267
- background: color-increase-contrast($default-background, 5%);
268
- height: math.div($control-spacing, 2);
269
- font-size: 1px;
270
- margin-top: 1px;
271
- }
272
-
273
- .msp-control-group-expander {
274
- display: block;
275
- position: absolute;
276
- line-height: $row-height;
277
- padding: 0;
278
- left: 0;
279
- top: 0;
280
- width: $control-label-width + $control-spacing;
281
- text-align: left;
282
- background: transparent;
283
-
284
- .msp-icon {
285
- line-height: $row-height - 3;
286
- width: $row-height - 1;
287
- text-align: center;
288
- // display: inline-block;
289
- font-size: 100%;
290
- }
291
- }
292
-
293
- .msp-plugin-layout_controls {
294
- position: absolute;
295
- left: $control-spacing;
296
- top: $control-spacing;
297
- }
298
-
299
- .msp-plugin-layout_controls > button:first-child {
300
- margin-right: 6px;
301
- }
302
-
303
- .msp-empty-control {
304
- display: none;
305
- }
306
-
307
- .msp-control .msp-btn-block {
308
- margin-bottom: 0px;
309
- margin-top: 0px;
310
- }
311
-
312
- .msp-row-text {
313
- height: $row-height;
314
- position: relative;
315
- background: $default-background;
316
- margin-top: 1px;
317
-
318
- > div {
319
- line-height: $row-height;
320
- text-align: center;
321
- color: color-lower-contrast($font-color, 15%);
322
- }
323
- }
324
-
325
- .msp-help span {
326
- display: none;
327
- }
328
-
329
- .msp-help:hover span {
330
- display: inline-block;
331
- background: linear-gradient($default-background, change-color($default-background, $alpha: 0.8));
332
- }
333
-
334
- .msp-help-text {
335
- position: relative;
336
- background: $default-background;
337
- margin-top: 1px;
338
-
339
- > div {
340
- padding: (math.div($control-spacing, 2)) $control-spacing;
341
- text-align: left;
342
- color: color-lower-contrast($font-color, 15%);
343
- }
344
- }
345
-
346
- .msp-help-description {
347
- font-style: italic;
348
- }
349
-
350
- .msp-help-legend {
351
- padding-top: $control-spacing;
352
- }
353
-
354
- .msp-scale-legend {
355
- > div {
356
- width: 100%;
357
- height: $control-spacing * 3;
358
-
359
- > span {
360
- padding: math.div($control-spacing, 2);
361
- color: white;
362
- font-weight: bold;
363
- background-color: rgba(0, 0, 0, 0.2);
364
- }
365
- }
366
- }
367
-
368
- .msp-table-legend {
369
- > div {
370
- // min-width: 60px;
371
- margin-right: math.div($control-spacing, 2);
372
- display: inline-flex;
373
-
374
- .msp-table-legend-color {
375
- width: $control-spacing * 3;
376
- height: $control-spacing * 2;
377
- }
378
-
379
- .msp-table-legend-text {
380
- margin: 0 (math.div($control-spacing, 2));
381
- }
382
- }
383
- }
384
-
385
- .msp-image-preview {
386
- position: relative;
387
- background: $default-background;
388
- margin-top: 1px;
389
- padding: $control-spacing;
390
-
391
- canvas {
392
- @include user-select(none);
393
- }
394
-
395
- > span {
396
- margin-top: 6px;
397
- display: block;
398
- text-align: center;
399
- font-size: 80%;
400
- line-height: 15px;
401
- }
402
- }
403
-
404
- .msp-copy-image-wrapper {
405
- position: relative;
406
-
407
- div {
408
- font-weight: bold;
409
- padding: 3px;
410
- margin: 1px 0;
411
- width: 100%;
412
- background: $msp-form-control-background;
413
- text-align: center;
414
- }
415
-
416
- img {
417
- margin-top: 1px;
418
- }
1
+ @use "sass:math";
2
+
3
+ .msp-control-row {
4
+ position: relative;
5
+ height: $row-height;
6
+ background: $default-background;
7
+ margin-top: 1px;
8
+
9
+ select, button, input[type=text] {
10
+ @extend .msp-form-control;
11
+ }
12
+
13
+ button {
14
+ @extend .msp-btn;
15
+ @extend .msp-btn-block;
16
+ }
17
+
18
+ > span.msp-control-row-label, > button.msp-control-button-label {
19
+ line-height: $row-height;
20
+ display: block;
21
+ width: $control-label-width + $control-spacing;
22
+ text-align: right;
23
+ padding: 0 $control-spacing;
24
+ color: color-lower-contrast($font-color, 15%);
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ position: relative;
29
+
30
+ @include non-selectable;
31
+ }
32
+
33
+ > button.msp-control-button-label {
34
+ background: $default-background;
35
+ cursor: pointer;
36
+ }
37
+
38
+ .msp-control-current {
39
+ background: $default-background;
40
+ }
41
+
42
+ > div.msp-control-row-ctrl {
43
+ position: absolute;
44
+ left: $control-label-width + $control-spacing;
45
+ top: 0;
46
+ right: 0;
47
+ bottom: 0;
48
+ }
49
+
50
+ > div {
51
+ background: $msp-form-control-background;
52
+ }
53
+
54
+ > .msp-flex-row {
55
+ background: $default-background;
56
+ }
57
+ }
58
+
59
+ .msp-control-label-short {
60
+ > span {
61
+ width: $control-label-short-width + $control-spacing !important;
62
+ }
63
+
64
+ > div:nth-child(2) {
65
+ left: $control-label-short-width + $control-spacing !important;
66
+ }
67
+ }
68
+
69
+ .msp-control-col-2 {
70
+ float: left;
71
+ width: 50%;
72
+ }
73
+
74
+ .msp-control-group {
75
+ position: relative;
76
+ }
77
+
78
+ .msp-toggle-button {
79
+ .msp-icon {
80
+ display: inline-block;
81
+ margin-right: 6px;
82
+ }
83
+
84
+ > div > button:hover {
85
+ border-color: color-increase-contrast($msp-form-control-background, 5%) !important;
86
+ border: none;
87
+ outline-offset: -1px !important;
88
+ outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
89
+ }
90
+ }
91
+
92
+ .msp-slider {
93
+ > div:first-child {
94
+ position: absolute;
95
+ top: 0;
96
+ left: 18px;
97
+ bottom: 0;
98
+ right: 62px;
99
+ display: flex;
100
+ }
101
+ > div:last-child {
102
+ position: absolute;
103
+ height: $row-height;
104
+ line-height: $row-height;
105
+ text-align: center;
106
+ right: 0;
107
+ width: 50px;
108
+ top: 0;
109
+ bottom: 0;
110
+ }
111
+
112
+ input[type=text] {
113
+ padding-right: 6px;
114
+ padding-left: 4px;
115
+ font-size: 80%;
116
+ text-align: right;
117
+ }
118
+
119
+ // input[type=range] {
120
+ // width: 100%;
121
+ // }
122
+ }
123
+
124
+ .msp-slider2 {
125
+ > div:first-child {
126
+ position: absolute;
127
+ height: $row-height;
128
+ line-height: $row-height;
129
+ text-align: center;
130
+ left: 0;
131
+ width: 25px;
132
+ top: 0;
133
+ bottom: 0;
134
+ font-size: 80%;
135
+ }
136
+ > div:nth-child(2) {
137
+ position: absolute;
138
+ top: 0;
139
+ left: 35px;
140
+ bottom: 0;
141
+ right: 37px;
142
+ display: flex;
143
+ }
144
+ > div:last-child {
145
+ position: absolute;
146
+ height: $row-height;
147
+ line-height: $row-height;
148
+ text-align: center;
149
+ right: 0;
150
+ width: 25px;
151
+ top: 0;
152
+ bottom: 0;
153
+ font-size: 80%;
154
+ }
155
+
156
+ input[type=text] {
157
+ padding-right: 4px;
158
+ padding-left: 4px;
159
+ font-size: 80%;
160
+ text-align: center;
161
+ }
162
+
163
+ // input[type=range] {
164
+ // width: 100%;
165
+ // }
166
+ }
167
+
168
+ .msp-toggle-color-picker {
169
+ button {
170
+ border: $control-spacing solid $msp-form-control-background !important;
171
+ margin: 0;
172
+ text-align: center;
173
+ padding-right: $control-spacing;
174
+ padding-left: $control-spacing;
175
+
176
+ &:hover {
177
+ border-color: color-increase-contrast($msp-form-control-background, 5%) !important;
178
+ border: none;
179
+ outline-offset: -1px !important;
180
+ outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
181
+ }
182
+ }
183
+
184
+ .msp-color-picker {
185
+ position: absolute;
186
+ z-index: 100000;
187
+ background: $default-background;
188
+ border-top: 1px solid $default-background;
189
+ padding-bottom: math.div($control-spacing, 2);
190
+ width: 100%;
191
+
192
+ // input[type=text] {
193
+ // background: $msp-form-control-background !important;
194
+ // }
195
+ }
196
+ }
197
+
198
+ .msp-toggle-color-picker-above {
199
+ .msp-color-picker {
200
+ top: -2 * 32px - 16px - math.div($control-spacing, 2);
201
+ height: 2 * 32px + 16px + math.div($control-spacing, 2);
202
+ }
203
+ }
204
+
205
+ .msp-toggle-color-picker-below {
206
+ .msp-color-picker {
207
+ top: $row-height;
208
+ height: 2 * 32px + 16px;
209
+ }
210
+ }
211
+
212
+ .msp-control-offset {
213
+ padding-left: $control-spacing;
214
+ }
215
+
216
+ .msp-accent-offset {
217
+ padding-left: 1px;
218
+ margin-left: $control-spacing - 2;
219
+ border-left: 2px solid $color-accent-orange;
220
+ }
221
+
222
+ // .msp-accent-offset-right {
223
+ // margin-left: $control-spacing;
224
+ // padding-right: 1px;
225
+ // border-right: 2px solid $color-accent-orange;
226
+ // }
227
+
228
+ .msp-control-group-wrapper {
229
+ //border-left-width: math.div($control-spacing, 2);
230
+ //border-left-style: solid;
231
+ //border-left-color: color-increase-contrast($default-background, 10%);
232
+
233
+ margin-bottom: 0px;
234
+ margin-top: 1px;
235
+ }
236
+
237
+ // TODO : get rid of the important
238
+ .msp-control-group-header {
239
+ background: $default-background;
240
+ > button, div {
241
+ padding-left: 4px; // math.div($control-spacing, 2) !important;
242
+ text-align: left;
243
+ height: 24px !important;
244
+ line-height: 24px !important;
245
+ font-size: 85% !important;
246
+ background: $default-background !important;
247
+ color: color-lower-contrast($font-color, 15%);
248
+ }
249
+ .msp-icon {
250
+ height: 24px !important;
251
+ line-height: 24px !important;
252
+ }
253
+ > span {
254
+ padding-left: math.div($control-spacing, 2);
255
+ line-height: math.div(2 * $row-height, 3);
256
+ font-size: 70%;
257
+ background: $default-background;
258
+ color: color-lower-contrast($font-color, 15%);
259
+ }
260
+ }
261
+
262
+ .msp-control-current {
263
+ background: $default-background;
264
+ }
265
+
266
+ .msp-control-group-footer {
267
+ background: color-increase-contrast($default-background, 5%);
268
+ height: math.div($control-spacing, 2);
269
+ font-size: 1px;
270
+ margin-top: 1px;
271
+ }
272
+
273
+ .msp-control-group-expander {
274
+ display: block;
275
+ position: absolute;
276
+ line-height: $row-height;
277
+ padding: 0;
278
+ left: 0;
279
+ top: 0;
280
+ width: $control-label-width + $control-spacing;
281
+ text-align: left;
282
+ background: transparent;
283
+
284
+ .msp-icon {
285
+ line-height: $row-height - 3;
286
+ width: $row-height - 1;
287
+ text-align: center;
288
+ // display: inline-block;
289
+ font-size: 100%;
290
+ }
291
+ }
292
+
293
+ .msp-plugin-layout_controls {
294
+ position: absolute;
295
+ left: $control-spacing;
296
+ top: $control-spacing;
297
+ }
298
+
299
+ .msp-plugin-layout_controls > button:first-child {
300
+ margin-right: 6px;
301
+ }
302
+
303
+ .msp-empty-control {
304
+ display: none;
305
+ }
306
+
307
+ .msp-control .msp-btn-block {
308
+ margin-bottom: 0px;
309
+ margin-top: 0px;
310
+ }
311
+
312
+ .msp-row-text {
313
+ height: $row-height;
314
+ position: relative;
315
+ background: $default-background;
316
+ margin-top: 1px;
317
+
318
+ > div {
319
+ line-height: $row-height;
320
+ text-align: center;
321
+ color: color-lower-contrast($font-color, 15%);
322
+ }
323
+ }
324
+
325
+ .msp-help span {
326
+ display: none;
327
+ }
328
+
329
+ .msp-help:hover span {
330
+ display: inline-block;
331
+ background: linear-gradient($default-background, change-color($default-background, $alpha: 0.8));
332
+ }
333
+
334
+ .msp-help-text {
335
+ position: relative;
336
+ background: $default-background;
337
+ margin-top: 1px;
338
+
339
+ > div {
340
+ padding: (math.div($control-spacing, 2)) $control-spacing;
341
+ text-align: left;
342
+ color: color-lower-contrast($font-color, 15%);
343
+ }
344
+ }
345
+
346
+ .msp-help-description {
347
+ font-style: italic;
348
+ }
349
+
350
+ .msp-help-legend {
351
+ padding-top: $control-spacing;
352
+ }
353
+
354
+ .msp-scale-legend {
355
+ > div {
356
+ width: 100%;
357
+ height: $control-spacing * 3;
358
+
359
+ > span {
360
+ padding: math.div($control-spacing, 2);
361
+ color: white;
362
+ font-weight: bold;
363
+ background-color: rgba(0, 0, 0, 0.2);
364
+ }
365
+ }
366
+ }
367
+
368
+ .msp-table-legend {
369
+ > div {
370
+ // min-width: 60px;
371
+ margin-right: math.div($control-spacing, 2);
372
+ display: inline-flex;
373
+
374
+ .msp-table-legend-color {
375
+ width: $control-spacing * 3;
376
+ height: $control-spacing * 2;
377
+ }
378
+
379
+ .msp-table-legend-text {
380
+ margin: 0 (math.div($control-spacing, 2));
381
+ }
382
+ }
383
+ }
384
+
385
+ .msp-image-preview {
386
+ position: relative;
387
+ background: $default-background;
388
+ margin-top: 1px;
389
+ padding: $control-spacing;
390
+
391
+ canvas {
392
+ @include user-select(none);
393
+ }
394
+
395
+ > span {
396
+ margin-top: 6px;
397
+ display: block;
398
+ text-align: center;
399
+ font-size: 80%;
400
+ line-height: 15px;
401
+ }
402
+ }
403
+
404
+ .msp-copy-image-wrapper {
405
+ position: relative;
406
+
407
+ div {
408
+ font-weight: bold;
409
+ padding: 3px;
410
+ margin: 1px 0;
411
+ width: 100%;
412
+ background: $msp-form-control-background;
413
+ text-align: center;
414
+ }
415
+
416
+ img {
417
+ margin-top: 1px;
418
+ }
419
419
  }