@sc-360-v2/storefront-cms-library 0.2.92 → 0.2.93
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/map.scss +148 -5
- package/package.json +1 -1
package/dist/map.scss
CHANGED
|
@@ -1,6 +1,149 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "sass:list";
|
|
3
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="map"] {
|
|
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
|
+
}
|
|
4
147
|
[data-div-type="element"] {
|
|
5
148
|
&[data-element-type="map"] {
|
|
6
149
|
// width: var(--_lt-wh);
|
|
@@ -14,7 +157,7 @@
|
|
|
14
157
|
1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))
|
|
15
158
|
)
|
|
16
159
|
);
|
|
17
|
-
margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, --_ctm-lt-mn));
|
|
160
|
+
margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
|
|
18
161
|
|
|
19
162
|
--_aspect-ratio: calc(
|
|
20
163
|
1 *
|
|
@@ -59,7 +202,7 @@
|
|
|
59
202
|
);
|
|
60
203
|
|
|
61
204
|
width: 100%;
|
|
62
|
-
height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, --_ctm-lt-ht));
|
|
205
|
+
height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
|
|
63
206
|
|
|
64
207
|
border-color: var(
|
|
65
208
|
--_ctm-mob-dn-mp-wt-br-cr,
|
|
@@ -331,15 +474,15 @@
|
|
|
331
474
|
cursor: pointer;
|
|
332
475
|
width: var(
|
|
333
476
|
--_ctm-mob-dn-pn-se-ht-se,
|
|
334
|
-
var(--_ctm-tab-dn-pn-se-ht-se, --_ctm-dn-pn-se-ht-se)
|
|
477
|
+
var(--_ctm-tab-dn-pn-se-ht-se, var(--_ctm-dn-pn-se-ht-se))
|
|
335
478
|
);
|
|
336
479
|
height: var(
|
|
337
480
|
--_ctm-mob-dn-pn-se-ht-se,
|
|
338
|
-
var(--_ctm-tab-dn-pn-se-ht-se, --_ctm-dn-pn-se-ht-se)
|
|
481
|
+
var(--_ctm-tab-dn-pn-se-ht-se, var(--_ctm-dn-pn-se-ht-se))
|
|
339
482
|
);
|
|
340
483
|
background-color: var(
|
|
341
484
|
--_ctm-mob-dn-pn-se-bd-cr,
|
|
342
|
-
var(--_ctm-tab-dn-pn-se-bd-cr, --_ctm-dn-pn-se-bd-cr)
|
|
485
|
+
var(--_ctm-tab-dn-pn-se-bd-cr, var(--_ctm-dn-pn-se-bd-cr))
|
|
343
486
|
);
|
|
344
487
|
|
|
345
488
|
display: flex;
|