@sc-360-v2/storefront-cms-library 0.5.12 → 0.5.14

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/hotspot.scss CHANGED
@@ -1,397 +1,431 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
-
4
- $tpgp: 20px;
5
- $bm: 30px;
6
- $ics: 2px;
7
-
8
- $data: (
9
- leftTop: (
10
- transform: translate(calc(-100% - #{$tpgp}), calc(-100% + #{$bm})),
11
- icon: (
12
- bottom: #{$bm},
13
- right: 0px,
14
- transform: translate(calc(100% + #{$ics}), calc(50% + (#{$ics} * 1.25))),
15
- border-color: transparent transparent transparent var(--_ctm-dn-tp-dn-bd-cr),
16
- ),
17
- ),
18
- leftCenter: (
19
- transform: translate(calc(-100% - #{$tpgp}), calc(-50% + 0px)),
20
- icon: (
21
- top: 50%,
22
- right: 0px,
23
- transform: translate(calc(100% + #{$ics}), calc(-50% + (0px * 1.75))),
24
- border-color: transparent transparent transparent var(--_ctm-dn-tp-dn-bd-cr),
25
- ),
26
- ),
27
- leftBottom: (
28
- transform: translate(calc(-100% - #{$tpgp}), calc(0% - #{$bm})),
29
- icon: (
30
- top: #{$bm},
31
- right: 0px,
32
- transform: translate(calc(100% + #{$ics}), calc(-100% + (#{$ics} * 1.75))),
33
- border-color: transparent transparent transparent var(--_ctm-dn-tp-dn-bd-cr),
34
- ),
35
- ),
36
- topLeft: (
37
- transform: translate(calc(-100% + #{$bm}), calc(-100% - #{$tpgp})),
38
- icon: (
39
- bottom: 0px,
40
- right: #{$bm},
41
- transform: translate(calc(50% + (#{$ics} * 1.75)), calc(100% + #{$ics})),
42
- border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
43
- ),
44
- ),
45
- topCenter: (
46
- transform: translate(calc(-50% - #{$ics}), calc(-100% - #{$tpgp})),
47
- icon: (
48
- bottom: 0px,
49
- right: 50%,
50
- transform: translate(calc(50% + (#{$ics} * 1.75)), calc(100% + #{$ics})),
51
- border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
52
- ),
53
- ),
54
- topRight: (
55
- transform: translate(calc(-1 * #{$bm}), calc(-100% - #{$tpgp})),
56
- icon: (
57
- bottom: 0px,
58
- left: #{$bm},
59
- transform: translate(calc(-100% + (#{$ics} * 1.25)), calc(100% + #{$ics})),
60
- border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
61
- ),
62
- ),
63
- rightTop: (
64
- transform: translate(calc(0% + #{$tpgp}), calc(-100% + #{$bm})),
65
- icon: (
66
- top: 100%,
67
- left: 0px,
68
- transform: translate(calc(-100% - #{$ics}), calc(50% - (#{$bm} * 1.25))),
69
- border-color: transparent var(--_ctm-dn-tp-dn-bd-cr) transparent transparent,
70
- ),
71
- ),
72
- rightCenter: (
73
- transform: translate(calc(0% + #{$tpgp}), calc(-50% + #{$ics})),
74
- border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
75
- icon: (
76
- bottom: 50%,
77
- left: 0px,
78
- transform: translate(calc(-100% - #{$ics}), calc(50% + (0px * 1.75))),
79
- border-color: transparent var(--_ctm-dn-tp-dn-bd-cr) transparent transparent,
80
- ),
81
- ),
82
- rightBottom: (
83
- transform: translate(calc(0% + #{$tpgp}), calc(0% - #{$bm})),
84
- border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
85
- icon: (
86
- top: 100%,
87
- left: 0,
88
- transform: translate(calc(-100% - #{$ics}), calc(-100% - (#{$bm} * 2.05))),
89
- border-color: transparent var(--_ctm-dn-tp-dn-bd-cr) transparent transparent,
90
- ),
91
- ),
92
- bottomLeft: (
93
- transform: translate(calc(-100% + #{$bm}), calc(-50% + (#{$bm} * 2.25))),
94
- border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
95
- icon: (
96
- right: #{$bm},
97
- top: 0%,
98
- transform: translate(calc(50% + (#{$ics} * 0.75)), calc(-100% - #{$ics})),
99
- border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
100
- ),
101
- ),
102
- bottomCenter: (
103
- transform: translate(calc(-50% - #{$ics}), calc(-50% + (#{$bm} * 2.25))),
104
- border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
105
- icon: (
106
- right: 50%,
107
- top: 0,
108
- transform: translate(calc(0% + (#{$ics} * 2.75)), calc(-100% - #{$ics})),
109
- border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
110
- ),
111
- ),
112
- bottomRight: (
113
- transform: translate(calc(0% - #{$bm}), calc(-50% + (#{$bm} * 2.25))),
114
- border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
115
- icon: (
116
- left: 30px,
117
- top: 0,
118
- transform: translate(calc(-50% - (#{$ics} * 1.25)), calc(-100% - #{$ics})),
119
- border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
120
- ),
121
- ),
122
- );
123
-
124
- [data-div-type="element"] {
125
- &[data-element-type="imageHotspot"] {
126
- &[data-hotspot-position] {
127
- @each $key, $value in $data {
128
- &[data-hotspot-position="#{$key}"] {
129
- .hotspot__tooltip {
130
- @each $prop, $val in $value {
131
- @if ($prop != icon) {
132
- #{$prop}: #{$val};
133
- } @else {
134
- @each $key2, $value2 in $val {
135
- &:after {
136
- #{$key2}: #{$value2};
137
- }
138
- }
139
- }
140
- }
141
- }
142
- }
143
- }
144
- }
145
- }
146
- }
147
-
148
- [data-div-type="element"] {
149
- &[data-element-type="imageHotspot"] {
150
- // width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
151
- width: var(
152
- --_sf-el-wh-st-mx,
153
- calc(
154
- 1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))
155
- )
156
- );
157
- margin: var(--_ctm-lt-mn, --_tst-lt-mn);
158
- height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
159
- // aspect-ratio: 1 / var(--_sf-aspect-ratio);
160
- // --_aspect-ratio: calc(
161
- // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
162
- // );
163
-
164
- & > .wrapper {
165
- width: 100%;
166
- position: relative;
167
-
168
- & > div {
169
- &.hotspot__tooltip {
170
- --_sf-br-vl: var(--_ctm-dn-tp-dn-br-rs, 0px);
171
- position: absolute;
172
- background: var(--_ctm-dn-tp-dn-bd-cr);
173
- z-index: 1000;
174
- min-width: 100px;
175
- width: var(--_ctm-dn-tp-dn-tp-wh);
176
- min-height: 100px;
177
- height: var(--_ctm-dn-tp-dn-tp-ht);
178
- top: var(--_sf-im-psn-tp, 0);
179
- left: var(--_sf-im-psn-lt, 0);
180
-
181
- padding: 4px 8px;
182
- display: flex;
183
- justify-content: var(--_ctm-dn-tp-dn-hl-at);
184
- align-items: var(--_ctm-dn-tp-dn-vl-at);
185
-
186
- &::after {
187
- content: "";
188
- position: absolute;
189
-
190
- border-width: 5px;
191
- border-style: solid;
192
- }
193
- .text_box {
194
- overflow-y: auto;
195
- h6 {
196
- font-size: var(--_ctm-dn-tp-tt-dn-ft-se);
197
- font-family: var(--_ctm-dn-tp-tt-dn-ft-fy);
198
- color: var(--_ctm-dn-tp-tt-dn-cr);
199
-
200
- font-weight: var(--_ctm-dn-tp-tt-dn-ft-wt);
201
- font-style: var(--_ctm-dn-tp-tt-dn-ft-se-ic);
202
- text-align: var(--_ctm-dn-tp-tt-dn-tt-an);
203
- letter-spacing: var(--_ctm-dn-tp-tt-dn-lr-sg);
204
- line-height: var(--_ctm-dn-tp-tt-dn-le-ht);
205
- text-decoration: var(--_ctm-dn-tp-tt-dn-ue);
206
- }
207
- p {
208
- font-size: var(--_ctm-dn-tp-tt-dn-ft-se-dc);
209
- color: var(--_ctm-dn-tp-tt-dn-cr-dc);
210
- font-family: var(--_ctm-dn-tp-tt-dn-ft-fy-dc);
211
- font-weight: var(--_ctm-dn-tp-tt-dn-ft-wt-dc);
212
- font-style: var(--_ctm-dn-tp-tt-dn-ft-se-ic-dc);
213
- text-align: var(--_ctm-dn-tp-tt-dn-tt-an-dc);
214
- letter-spacing: var(--_ctm-dn-tp-tt-dn-lr-sg-dc);
215
- line-height: var(--_ctm-dn-tp-tt-dn-le-ht-dc);
216
- text-decoration: var(--_ctm-dn-tp-tt-dn-lh-dc, var(--_ctm-dn-tp-tt-dn-ue-dc));
217
- }
218
- }
219
- .tooltip__image {
220
- width: 100%;
221
- background-color: var(--_ctm-dn-tp-ie-dn-bd-cr);
222
- transition: transform 0.3s ease-in-out;
223
- display: flex;
224
- justify-content: var(--_ctm-dn-tp-ie-dn-hl-at);
225
- align-items: var(--_ctm-dn-tp-ie-dn-vl-at);
226
- img {
227
- object-fit: var(--_ctm-dn-tp-ie-dn-ft-os);
228
- height: -webkit-fill-available;
229
- max-width: 100%;
230
- rotate: calc(var(--_ctm-dn-tp-ie-dn-ud) * 1deg);
231
- scale: var(--_ctm-dn-tp-ie-dn-zm-ie);
232
-
233
- &:hover {
234
- &[data-on-img-hover="Zoom In"] {
235
- transform: scale(1.08);
236
- }
237
- &[data-on-img-hover="Zoom Out"] {
238
- transform: scale(0.92);
239
- }
240
- }
241
- }
242
- }
243
- }
244
- }
245
- }
246
- &[data-show-shadow="false"] {
247
- --_show-shadow: none;
248
- }
249
-
250
- &[data-hotspot-position="topLeft"] {
251
- --_show-shadow: none;
252
- .hotspot__tooltip {
253
- border-style: var(--_ctm-dn-tp-dn-br-se);
254
- border-color: var(--_ctm-dn-tp-dn-br-cr);
255
- border-width: var(--_ctm-dn-tp-dn-br-wh);
256
- border-radius: var(--_ctm-dn-tp-dn-br-rs);
257
- }
258
- }
259
-
260
- &[data-hotspot-image-style-show-border="true"] {
261
- .imageHotspot-element {
262
- border-style: var(--_ctm-dn-ie-se-br-se);
263
- border-color: var(--_ctm-dn-ie-se-br-cr);
264
- border-width: var(--_ctm-dn-ie-se-br-wh);
265
- border-radius: var(--_ctm-dn-ie-se-br-rs);
266
- }
267
- }
268
- &[data-hotspot-tooltip-style-show-border="true"] {
269
- .hotspot__tooltip {
270
- border-style: var(--_ctm-dn-tp-dn-br-se);
271
- border-color: var(--_ctm-dn-tp-dn-br-cr);
272
- border-width: var(--_ctm-dn-tp-dn-br-wh);
273
- border-radius: var(--_ctm-dn-tp-dn-br-rs);
274
- }
275
- }
276
- &[data-hotspot-tooltip-style-show-shadow="true"] {
277
- .hotspot__tooltip {
278
- box-shadow: var(--_ctm-dn-tp-dn-sw-ae) var(--_ctm-dn-tp-dn-sw-br) var(--_ctm-dn-tp-dn-sw-sd)
279
- var(--_ctm-dn-tp-dn-sw-cr);
280
- }
281
- }
282
- &[data-hotspot-tooltip-image-style-show-border="true"] {
283
- .tooltip__image {
284
- border-style: var(--_ctm-dn-tp-ie-dn-br-se);
285
- border-color: var(--_ctm-dn-tp-ie-dn-br-cr);
286
- border-width: var(--_ctm-dn-tp-ie-dn-br-wh);
287
- border-radius: var(--_ctm-dn-tp-ie-dn-br-rs);
288
- }
289
- }
290
- &[data-hotspot-tooltip-image-style-show-shadow="true"] {
291
- .tooltip__image {
292
- box-shadow: var(
293
- --_show-shadow,
294
- var(--_ctm-dn-tp-ie-dn-sw-ae) var(--_ctm-dn-tp-ie-dn-sw-br) var(--_ctm-dn-tp-ie-dn-sw-sd)
295
- var(--_ctm-dn-tp-ie-dn-sw-cr)
296
- );
297
- }
298
- }
299
- &[data-hotspot-style-show-shadow="true"] {
300
- .hotspot {
301
- box-shadow: var(--_ctm-dn-ht-se-sw-ae) var(--_ctm-dn-ht-se-sw-br) var(--_ctm-dn-ht-se-sw-sd)
302
- var(--_ctm-dn-ht-se-sw-cr);
303
- }
304
- }
305
- &[data-hotspot-style-show-border="true"] {
306
- .hotspot {
307
- border-style: var(--_ctm-dn-ht-se-br-se);
308
- border-color: var(--_ctm-dn-ht-se-br-cr);
309
- border-width: var(--_ctm-dn-ht-se-br-wh);
310
- border-radius: var(--_ctm-dn-ht-se-br-rs);
311
- }
312
- }
313
-
314
- .imageHotspot-element {
315
- background-color: var(--_ctm-dn-ie-se-bd-cr);
316
- padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
317
- display: flex;
318
- flex-direction: column;
319
- --_sf-gp: 16px;
320
- --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
321
- row-gap: var(--_sf-gp);
322
- width: 100%;
323
- height: 100%;
324
- scale: var(--_ctm-dn-ie-se-zm-ie);
325
- transition: transform 0.3s ease-in-out;
326
- rotate: calc(var(--_ctm-dn-ie-se-ud) * 1deg);
327
- box-shadow: var(--_ctm-dn-ie-se-sw-ae) var(--_ctm-dn-ie-se-sw-br) var(--_ctm-dn-ie-se-sw-sd)
328
- var(--_ctm-dn-ie-se-sw-cr);
329
- &:hover {
330
- &[data-on-hover="Zoom Out"] {
331
- transform: scale(0.9998);
332
- }
333
- &[data-on-hover="Zoom In"] {
334
- transform: scale(1.08);
335
- }
336
- }
337
- }
338
-
339
- .img__overlay {
340
- background: var(--_ctm-dn-ie-se-oy-cr);
341
- height: 100%;
342
- width: 100%;
343
- position: absolute;
344
- top: 0;
345
- }
346
- @keyframes scaleInOut {
347
- 0% {
348
- transform: scale(1);
349
- }
350
- 50% {
351
- transform: scale(1.5);
352
- }
353
- 100% {
354
- transform: scale(1);
355
- }
356
- }
357
- .hotspot__container {
358
- position: absolute;
359
- .hotspot__main {
360
- position: relative;
361
- span {
362
- svg {
363
- width: var(--_ctm-dn-ht-se-in-se);
364
- height: var(--_ctm-dn-ht-se-in-se);
365
- path {
366
- stroke: var(--_ctm-dn-ht-se-in-c1);
367
- }
368
- }
369
- }
370
- .hotspot {
371
- background: var(--_ctm-dn-ht-se-bd-cr);
372
- // height: var(--_ctm-dn-tp-tt-dn-ft-se);
373
- // width: var(--_ctm-dn-tp-tt-dn-ft-se);
374
- position: absolute;
375
- cursor: pointer;
376
- width: var(--_ctm-dn-ht-se-ht-se);
377
- height: var(--_ctm-dn-ht-se-ht-se);
378
- background-color: var(--_ctm-dn-ht-se-bd-cr);
379
- display: flex;
380
- align-items: center;
381
- top: 50%;
382
- left: 50%;
383
- transform: translate(-50%, -50%);
384
- box-sizing: border-box;
385
- justify-content: center;
386
- animation: scaleInOut var(--_ctm-dn-ht-se-an-fy) infinite;
387
- &[data-hotspot-shape="circle"] {
388
- border-radius: 50%;
389
- }
390
- &[data-hotspot-shape="any"] {
391
- border-radius: var(--_ctm-dn-ht-se-br-rs);
392
- }
393
- }
394
- }
395
- }
396
- }
397
- }
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ @use "./functions.scss" as *;
4
+
5
+ $tpgp: 20px;
6
+ $bm: 30px;
7
+ $ics: 2px;
8
+
9
+ $resizerOn: "[data-cms-element-resizer='true']";
10
+ $dndOn: "[data-cms-new-element-dragging-v2='true']";
11
+ $fullViewOn: '[data-view-state="full"]';
12
+
13
+ $data: (
14
+ leftTop: (transform: translate(calc(-100% - #{$tpgp}), calc(-100% + #{$bm})),
15
+ icon: (bottom: #{$bm},
16
+ right: 0px,
17
+ transform: translate(calc(100% + #{$ics}), calc(50% + (#{$ics} * 1.25))),
18
+ border-color: transparent transparent transparent var(--_ctm-dn-tp-dn-bd-cr),
19
+ ),
20
+ ),
21
+ leftCenter: (transform: translate(calc(-100% - #{$tpgp}), calc(-50% + 0px)),
22
+ icon: (top: 50%,
23
+ right: 0px,
24
+ transform: translate(calc(100% + #{$ics}), calc(-50% + (0px * 1.75))),
25
+ border-color: transparent transparent transparent var(--_ctm-dn-tp-dn-bd-cr),
26
+ ),
27
+ ),
28
+ leftBottom: (transform: translate(calc(-100% - #{$tpgp}), calc(0% - #{$bm})),
29
+ icon: (top: #{$bm},
30
+ right: 0px,
31
+ transform: translate(calc(100% + #{$ics}), calc(-100% + (#{$ics} * 1.75))),
32
+ border-color: transparent transparent transparent var(--_ctm-dn-tp-dn-bd-cr),
33
+ ),
34
+ ),
35
+ topLeft: (transform: translate(calc(-100% + #{$bm}), calc(-100% - #{$tpgp})),
36
+ icon: (bottom: 0px,
37
+ right: #{$bm},
38
+ transform: translate(calc(50% + (#{$ics} * 1.75)), calc(100% + #{$ics})),
39
+ border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
40
+ ),
41
+ ),
42
+ topCenter: (transform: translate(calc(-50% - #{$ics}), calc(-100% - #{$tpgp})),
43
+ icon: (bottom: 0px,
44
+ right: 50%,
45
+ transform: translate(calc(50% + (#{$ics} * 1.75)), calc(100% + #{$ics})),
46
+ border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
47
+ ),
48
+ ),
49
+ topRight: (transform: translate(calc(-1 * #{$bm}), calc(-100% - #{$tpgp})),
50
+ icon: (bottom: 0px,
51
+ left: #{$bm},
52
+ transform: translate(calc(-100% + (#{$ics} * 1.25)), calc(100% + #{$ics})),
53
+ border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
54
+ ),
55
+ ),
56
+ rightTop: (transform: translate(calc(0% + #{$tpgp}), calc(-100% + #{$bm})),
57
+ icon: (top: 100%,
58
+ left: 0px,
59
+ transform: translate(calc(-100% - #{$ics}), calc(50% - (#{$bm} * 1.25))),
60
+ border-color: transparent var(--_ctm-dn-tp-dn-bd-cr) transparent transparent,
61
+ ),
62
+ ),
63
+ rightCenter: (transform: translate(calc(0% + #{$tpgp}), calc(-50% + #{$ics})),
64
+ border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
65
+ icon: (bottom: 50%,
66
+ left: 0px,
67
+ transform: translate(calc(-100% - #{$ics}), calc(50% + (0px * 1.75))),
68
+ border-color: transparent var(--_ctm-dn-tp-dn-bd-cr) transparent transparent,
69
+ ),
70
+ ),
71
+ rightBottom: (transform: translate(calc(0% + #{$tpgp}), calc(0% - #{$bm})),
72
+ border-color: var(--_ctm-dn-tp-dn-bd-cr) transparent transparent transparent,
73
+ icon: (top: 100%,
74
+ left: 0,
75
+ transform: translate(calc(-100% - #{$ics}), calc(-100% - (#{$bm} * 2.05))),
76
+ border-color: transparent var(--_ctm-dn-tp-dn-bd-cr) transparent transparent,
77
+ ),
78
+ ),
79
+ bottomLeft: (transform: translate(calc(-100% + #{$bm}), calc(-50% + (#{$bm} * 2.25))),
80
+ border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
81
+ icon: (right: #{$bm},
82
+ top: 0%,
83
+ transform: translate(calc(50% + (#{$ics} * 0.75)), calc(-100% - #{$ics})),
84
+ border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
85
+ ),
86
+ ),
87
+ bottomCenter: (transform: translate(calc(-50% - #{$ics}), calc(-50% + (#{$bm} * 2.25))),
88
+ border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
89
+ icon: (right: 50%,
90
+ top: 0,
91
+ transform: translate(calc(0% + (#{$ics} * 2.75)), calc(-100% - #{$ics})),
92
+ border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
93
+ ),
94
+ ),
95
+ bottomRight: (transform: translate(calc(0% - #{$bm}), calc(-50% + (#{$bm} * 2.25))),
96
+ border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
97
+ icon: (left: 30px,
98
+ top: 0,
99
+ transform: translate(calc(-50% - (#{$ics} * 1.25)), calc(-100% - #{$ics})),
100
+ border-color: transparent transparent var(--_ctm-dn-tp-dn-bd-cr) transparent,
101
+ ),
102
+ ),
103
+ );
104
+
105
+ [data-div-type="element"] {
106
+ &[data-element-type="imageHotspot"] {
107
+ &[data-hotspot-position] {
108
+ @each $key, $value in $data {
109
+ &[data-hotspot-position="#{$key}"] {
110
+ .hotspot__tooltip {
111
+ @each $prop, $val in $value {
112
+ @if ($prop !=icon) {
113
+ #{$prop}: #{$val};
114
+ }
115
+
116
+ @else {
117
+ @each $key2, $value2 in $val {
118
+ &:after {
119
+ #{$key2}: #{$value2};
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ [data-div-type="element"] {
132
+ &[data-element-type="imageHotspot"] {
133
+ // width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
134
+ width: var(--_sf-el-wh-st-mx,
135
+ calc(1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))));
136
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
137
+ // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
138
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
139
+ // --_aspect-ratio: calc(
140
+ // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
141
+ // );
142
+
143
+ &:not(#{$resizerOn}, #{$dndOn}, #{$fullViewOn}) {
144
+ height: prepareMediaVariable(--_ctm-lt-ht) !important;
145
+ }
146
+
147
+ &[data-cms-element-resizer="true"] {
148
+ // height: var(--_ctm-lt-ht);
149
+ width: auto;
150
+
151
+ img {
152
+ // width: 100%;
153
+ height: 100%;
154
+ }
155
+ }
156
+
157
+ &>.wrapper {
158
+ width: 100%;
159
+ position: relative;
160
+
161
+ background-color: prepareMediaVariable(--_ctm-dn-ie-se-bd-cr);
162
+ padding: prepareMediaVariable(--_ctm-lt-pg, var(--_tst-lt-pg));
163
+ box-shadow: prepareMediaVariable(--_ctm-dn-ie-se-sw-ae) prepareMediaVariable(--_ctm-dn-ie-se-sw-br) prepareMediaVariable(--_ctm-dn-ie-se-sw-sd) prepareMediaVariable(--_ctm-dn-ie-se-sw-cr);
164
+
165
+ &>div {
166
+ &.hotspot__tooltip {
167
+ --_sf-br-vl: {
168
+ #prepareMediaVariable(--_ctm-dn-tp-dn-br-rs, 0px)
169
+ }
170
+
171
+ ;
172
+ position: absolute;
173
+ background: prepareMediaVariable(--_ctm-dn-tp-dn-bd-cr);
174
+ z-index: 1000;
175
+ min-width: 100px;
176
+ width: prepareMediaVariable(--_ctm-dn-tp-dn-tp-wh);
177
+ min-height: 100px;
178
+ height: prepareMediaVariable(--_ctm-dn-tp-dn-tp-ht);
179
+ top: var(--_sf-im-psn-tp, 0);
180
+ left: var(--_sf-im-psn-lt, 0);
181
+
182
+ padding: 4px 8px;
183
+ display: flex;
184
+ justify-content: prepareMediaVariable(--_ctm-dn-tp-dn-hl-at);
185
+ align-items: prepareMediaVariable(--_ctm-dn-tp-dn-vl-at);
186
+
187
+ &::after {
188
+ content: "";
189
+ position: absolute;
190
+
191
+ border-width: 5px;
192
+ border-style: solid;
193
+ }
194
+
195
+ .text_box {
196
+ overflow-y: auto;
197
+
198
+ h6 {
199
+ font-size: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-se);
200
+ font-family: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-fy);
201
+ color: prepareMediaVariable(--_ctm-dn-tp-tt-dn-cr);
202
+
203
+ font-weight: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-wt);
204
+ font-style: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-se-ic);
205
+ text-align: prepareMediaVariable(--_ctm-dn-tp-tt-dn-tt-an);
206
+ letter-spacing: prepareMediaVariable(--_ctm-dn-tp-tt-dn-lr-sg);
207
+ line-height: prepareMediaVariable(--_ctm-dn-tp-tt-dn-le-ht);
208
+ text-decoration: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ue);
209
+ }
210
+
211
+ p {
212
+ font-size: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-se-dc);
213
+ color: prepareMediaVariable(--_ctm-dn-tp-tt-dn-cr-dc);
214
+ font-family: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-fy-dc);
215
+ font-weight: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-wt-dc);
216
+ font-style: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-se-ic-dc);
217
+ text-align: prepareMediaVariable(--_ctm-dn-tp-tt-dn-tt-an-dc);
218
+ letter-spacing: prepareMediaVariable(--_ctm-dn-tp-tt-dn-lr-sg-dc);
219
+ line-height: prepareMediaVariable(--_ctm-dn-tp-tt-dn-le-ht-dc);
220
+ text-decoration: prepareMediaVariable(--_ctm-dn-tp-tt-dn-lh-dc);
221
+ }
222
+ }
223
+
224
+ .tooltip__image {
225
+ height: 100%;
226
+ width: 100%;
227
+ background-color: prepareMediaVariable(--_ctm-dn-tp-ie-dn-bd-cr);
228
+ transition: transform 0.3s ease-in-out;
229
+ display: flex;
230
+ justify-content: prepareMediaVariable(--_ctm-dn-tp-ie-dn-hl-at);
231
+ align-items: prepareMediaVariable(--_ctm-dn-tp-ie-dn-vl-at);
232
+
233
+ img {
234
+ object-fit: prepareMediaVariable(--_ctm-dn-tp-ie-dn-ft-os);
235
+ height: -webkit-fill-available;
236
+ max-width: 100%;
237
+ rotate: calc(#{prepareMediaVariable(--_ctm-dn-tp-ie-dn-re)} * 1deg);
238
+ scale: prepareMediaVariable(--_ctm-dn-tp-ie-dn-zm-ie);
239
+
240
+ &:hover {
241
+ &[data-on-img-hover="Zoom In"] {
242
+ transform: scale(1.08);
243
+ }
244
+
245
+ &[data-on-img-hover="Zoom Out"] {
246
+ transform: scale(0.92);
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
254
+
255
+ &[data-show-shadow="false"] {
256
+ --_show-shadow: none;
257
+ }
258
+
259
+ &[data-hotspot-position="topLeft"] {
260
+ --_show-shadow: none;
261
+
262
+ .hotspot__tooltip {
263
+ border-style: prepareMediaVariable(--_ctm-dn-tp-dn-br-se);
264
+ border-color: prepareMediaVariable(--_ctm-dn-tp-dn-br-cr);
265
+ border-width: prepareMediaVariable(--_ctm-dn-tp-dn-br-wh);
266
+ border-radius: prepareMediaVariable(--_ctm-dn-tp-dn-br-rs);
267
+ }
268
+ }
269
+
270
+ &[data-hotspot-image-style-show-border="true"] {
271
+ .imageHotspot-element {
272
+ border-style: prepareMediaVariable(--_ctm-dn-ie-se-br-se);
273
+ border-color: prepareMediaVariable(--_ctm-dn-ie-se-br-cr);
274
+ border-width: prepareMediaVariable(--_ctm-dn-ie-se-br-wh);
275
+ border-radius: prepareMediaVariable(--_ctm-dn-ie-se-br-rs);
276
+ }
277
+ }
278
+
279
+ &[data-hotspot-tooltip-style-show-border="true"] {
280
+ .hotspot__tooltip {
281
+ border-style: prepareMediaVariable(--_ctm-dn-tp-dn-br-se);
282
+ border-color: prepareMediaVariable(--_ctm-dn-tp-dn-br-cr);
283
+ border-width: prepareMediaVariable(--_ctm-dn-tp-dn-br-wh);
284
+ border-radius: prepareMediaVariable(--_ctm-dn-tp-dn-br-rs);
285
+ }
286
+ }
287
+
288
+ &[data-hotspot-tooltip-style-show-shadow="true"] {
289
+ .hotspot__tooltip {
290
+ box-shadow: prepareMediaVariable(--_ctm-dn-tp-dn-sw-ae) prepareMediaVariable(--_ctm-dn-tp-dn-sw-br) prepareMediaVariable(--_ctm-dn-tp-dn-sw-sd) prepareMediaVariable(--_ctm-dn-tp-dn-sw-cr);
291
+ }
292
+ }
293
+
294
+ &[data-hotspot-tooltip-image-style-show-border="true"] {
295
+ .tooltip__image {
296
+ border-style: prepareMediaVariable(--_ctm-dn-tp-ie-dn-br-se);
297
+ border-color: prepareMediaVariable(--_ctm-dn-tp-ie-dn-br-cr);
298
+ border-width: prepareMediaVariable(--_ctm-dn-tp-ie-dn-br-wh);
299
+ border-radius: prepareMediaVariable(--_ctm-dn-tp-ie-dn-br-rs);
300
+ }
301
+ }
302
+
303
+ &[data-hotspot-tooltip-image-style-show-shadow="true"] {
304
+ .tooltip__image {
305
+ box-shadow: var(--_show-shadow,
306
+ prepareMediaVariable(--_ctm-dn-tp-ie-dn-sw-ae) prepareMediaVariable(--_ctm-dn-tp-ie-dn-sw-br) prepareMediaVariable(--_ctm-dn-tp-ie-dn-sw-sd) prepareMediaVariable(--_ctm-dn-tp-ie-dn-sw-cr));
307
+ }
308
+ }
309
+
310
+ &[data-hotspot-style-show-shadow="true"] {
311
+
312
+ .hotspot,
313
+ .hotspot__icon {
314
+ box-shadow: prepareMediaVariable(--_ctm-dn-ht-se-sw-ae) prepareMediaVariable(--_ctm-dn-ht-se-sw-br) prepareMediaVariable(--_ctm-dn-ht-se-sw-sd) prepareMediaVariable(--_ctm-dn-ht-se-sw-cr);
315
+ }
316
+ }
317
+
318
+ &[data-hotspot-style-show-border="true"] {
319
+
320
+ .hotspot,
321
+ .hotspot__icon {
322
+ border-style: prepareMediaVariable(--_ctm-dn-ht-se-br-se);
323
+ border-color: prepareMediaVariable(--_ctm-dn-ht-se-br-cr);
324
+ border-width: prepareMediaVariable(--_ctm-dn-ht-se-br-wh);
325
+ border-radius: prepareMediaVariable(--_ctm-dn-ht-se-br-rs);
326
+ }
327
+ }
328
+
329
+ .imageHotspot-element {
330
+ // background-color: var(--_ctm-dn-ie-se-bd-cr);
331
+ // padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
332
+ // box-shadow: var(--_ctm-dn-ie-se-sw-ae) var(--_ctm-dn-ie-se-sw-br) var(--_ctm-dn-ie-se-sw-sd)
333
+ // var(--_ctm-dn-ie-se-sw-cr);
334
+ display: flex;
335
+ flex-direction: column;
336
+ --_sf-gp: 16px;
337
+ --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
338
+ row-gap: prepareMediaVariable(--_sf-gp);
339
+ width: 100%;
340
+ height: prepareMediaVariable(--_ctm-lt-ht, inherit);
341
+ scale: prepareMediaVariable(--_ctm-dn-ie-se-zm-ie);
342
+ transition: transform 0.3s ease-in-out;
343
+ rotate: calc(#{prepareMediaVariable(--_ctm-dn-ie-se-re)} * 1deg);
344
+
345
+ &:hover {
346
+ &[data-on-hover="Zoom Out"] {
347
+ transform: scale(0.9998);
348
+ }
349
+
350
+ &[data-on-hover="Zoom In"] {
351
+ transform: scale(1.08);
352
+ }
353
+ }
354
+ }
355
+
356
+ .img__overlay {
357
+ background: prepareMediaVariable(--_ctm-dn-ie-se-oy-cr);
358
+ height: 100%;
359
+ width: 100%;
360
+ position: absolute;
361
+ top: 0;
362
+ }
363
+
364
+ @keyframes scaleInOut {
365
+ 0% {
366
+ transform: scale(1);
367
+ }
368
+
369
+ 50% {
370
+ transform: scale(1.5);
371
+ }
372
+
373
+ 100% {
374
+ transform: scale(1);
375
+ }
376
+ }
377
+
378
+ .hotspot__container {
379
+ position: absolute;
380
+
381
+ .hotspot__main {
382
+ position: relative;
383
+ cursor: pointer;
384
+
385
+ .hotspot__icon {
386
+ background: prepareMediaVariable(--_ctm-dn-ht-se-bd-cr);
387
+ border-radius: prepareMediaVariable(--_ctm-dn-ht-se-br-rs);
388
+ padding: 4px;
389
+
390
+ span {
391
+ svg {
392
+ width: prepareMediaVariable(--_ctm-dn-ht-se-in-se);
393
+ height: prepareMediaVariable(--_ctm-dn-ht-se-in-se);
394
+
395
+ path {
396
+ stroke: prepareMediaVariable(--_ctm-dn-ht-se-in-c1);
397
+ }
398
+ }
399
+ }
400
+ }
401
+
402
+ .hotspot {
403
+ background: prepareMediaVariable(--_ctm-dn-ht-se-bd-cr);
404
+ // height: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-se);
405
+ // width: prepareMediaVariable(--_ctm-dn-tp-tt-dn-ft-se);
406
+ position: absolute;
407
+ cursor: pointer;
408
+ width: prepareMediaVariable(--_ctm-dn-ht-se-ht-se);
409
+ height: prepareMediaVariable(--_ctm-dn-ht-se-ht-se);
410
+ background-color: prepareMediaVariable(--_ctm-dn-ht-se-bd-cr);
411
+ display: flex;
412
+ align-items: center;
413
+ top: 50%;
414
+ left: 50%;
415
+ transform: translate(-50%, -50%);
416
+ box-sizing: border-box;
417
+ justify-content: center;
418
+ animation: scaleInOut prepareMediaVariable(--_ctm-dn-ht-se-an-fy) infinite;
419
+
420
+ &[data-hotspot-shape="circle"] {
421
+ border-radius: 50%;
422
+ }
423
+
424
+ &[data-hotspot-shape="any"] {
425
+ border-radius: prepareMediaVariable(--_ctm-dn-ht-se-br-rs);
426
+ }
427
+ }
428
+ }
429
+ }
430
+ }
431
+ }