@sc-360-v2/storefront-cms-library 0.2.0 → 0.2.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 +12 -12
- package/dist/builder.js +1 -1
- package/dist/bulk-variant-picker.scss +1 -1
- package/dist/filters.scss +17 -0
- package/dist/globals.scss +94 -94
- package/dist/grid.scss +6 -1
- package/dist/repeater.scss +5 -0
- package/dist/section.scss +14 -6
- package/dist/stack.scss +0 -15
- package/dist/types/builder/enums/index.d.ts +8 -0
- package/dist/types/builder/tools/element-edit/filters.d.ts +1 -0
- package/dist/variant-picker.scss +1 -1
- package/dist/widget.scss +54 -45
- package/package.json +1 -1
- package/dist/functions.scss +0 -133
- package/dist/global.scss +0 -346
- package/dist/tooltip.scss +0 -276
- package/dist/variable.scss +0 -136
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
$resizerId: "[data-cms-tool='cms-element-resizer']";
|
|
5
|
+
$resizeActive: '[data-cms-element-resizer="true"]';
|
|
6
|
+
[data-div-type="element"] {
|
|
7
|
+
&[data-element-type="filters"] {
|
|
8
|
+
width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
|
|
9
|
+
margin: var(--_ctm-lt-mn, --_tst-lt-mn);
|
|
10
|
+
|
|
11
|
+
& > div {
|
|
12
|
+
&.wrapper {
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/dist/globals.scss
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--max-width: 1100px;
|
|
3
|
-
--border-radius: 12px;
|
|
4
|
-
--font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono",
|
|
5
|
-
"Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono",
|
|
6
|
-
"Courier New", monospace;
|
|
7
|
-
|
|
8
|
-
--foreground-rgb: 0, 0, 0;
|
|
9
|
-
--background-start-rgb: 214, 219, 220;
|
|
10
|
-
--background-end-rgb: 255, 255, 255;
|
|
11
|
-
|
|
12
|
-
--primary-glow: conic-gradient(
|
|
13
|
-
from 180deg at 50% 50%,
|
|
14
|
-
#16abff33 0deg,
|
|
15
|
-
#0885ff33 55deg,
|
|
16
|
-
#54d6ff33 120deg,
|
|
17
|
-
#0071ff33 160deg,
|
|
18
|
-
transparent 360deg
|
|
19
|
-
);
|
|
20
|
-
--secondary-glow: radial-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
|
|
21
|
-
|
|
22
|
-
--tile-start-rgb: 239, 245, 249;
|
|
23
|
-
--tile-end-rgb: 228, 232, 233;
|
|
24
|
-
--tile-border: conic-gradient(
|
|
25
|
-
#00000080,
|
|
26
|
-
#00000040,
|
|
27
|
-
#00000030,
|
|
28
|
-
#00000020,
|
|
29
|
-
#00000010,
|
|
30
|
-
#00000010,
|
|
31
|
-
#00000080
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
--callout-rgb: 238, 240, 241;
|
|
35
|
-
--callout-border-rgb: 172, 175, 176;
|
|
36
|
-
--card-rgb: 180, 185, 188;
|
|
37
|
-
--card-border-rgb: 131, 134, 135;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media (prefers-color-scheme: dark) {
|
|
41
|
-
:root {
|
|
42
|
-
--foreground-rgb: 255, 255, 255;
|
|
43
|
-
--background-start-rgb: 0, 0, 0;
|
|
44
|
-
--background-end-rgb: 0, 0, 0;
|
|
45
|
-
|
|
46
|
-
--primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
|
|
47
|
-
--secondary-glow: linear-gradient(
|
|
48
|
-
to bottom right,
|
|
49
|
-
rgba(1, 65, 255, 0),
|
|
50
|
-
rgba(1, 65, 255, 0),
|
|
51
|
-
rgba(1, 65, 255, 0.3)
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
--tile-start-rgb: 2, 13, 46;
|
|
55
|
-
--tile-end-rgb: 2, 5, 19;
|
|
56
|
-
--tile-border: conic-gradient(
|
|
57
|
-
#ffffff80,
|
|
58
|
-
#ffffff40,
|
|
59
|
-
#ffffff30,
|
|
60
|
-
#ffffff20,
|
|
61
|
-
#ffffff10,
|
|
62
|
-
#ffffff10,
|
|
63
|
-
#ffffff80
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
--callout-rgb: 20, 20, 20;
|
|
67
|
-
--callout-border-rgb: 108, 108, 108;
|
|
68
|
-
--card-rgb: 100, 100, 100;
|
|
69
|
-
--card-border-rgb: 200, 200, 200;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
* {
|
|
74
|
-
box-sizing: border-box;
|
|
75
|
-
padding: 0;
|
|
76
|
-
margin: 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
html,
|
|
80
|
-
body {
|
|
81
|
-
max-width: 100vw;
|
|
82
|
-
overflow-x: hidden;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
a {
|
|
86
|
-
color: inherit;
|
|
87
|
-
text-decoration: none;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@media (prefers-color-scheme: dark) {
|
|
91
|
-
html {
|
|
92
|
-
color-scheme: dark;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--max-width: 1100px;
|
|
3
|
+
--border-radius: 12px;
|
|
4
|
+
--font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono",
|
|
5
|
+
"Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono",
|
|
6
|
+
"Courier New", monospace;
|
|
7
|
+
|
|
8
|
+
--foreground-rgb: 0, 0, 0;
|
|
9
|
+
--background-start-rgb: 214, 219, 220;
|
|
10
|
+
--background-end-rgb: 255, 255, 255;
|
|
11
|
+
|
|
12
|
+
--primary-glow: conic-gradient(
|
|
13
|
+
from 180deg at 50% 50%,
|
|
14
|
+
#16abff33 0deg,
|
|
15
|
+
#0885ff33 55deg,
|
|
16
|
+
#54d6ff33 120deg,
|
|
17
|
+
#0071ff33 160deg,
|
|
18
|
+
transparent 360deg
|
|
19
|
+
);
|
|
20
|
+
--secondary-glow: radial-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
|
|
21
|
+
|
|
22
|
+
--tile-start-rgb: 239, 245, 249;
|
|
23
|
+
--tile-end-rgb: 228, 232, 233;
|
|
24
|
+
--tile-border: conic-gradient(
|
|
25
|
+
#00000080,
|
|
26
|
+
#00000040,
|
|
27
|
+
#00000030,
|
|
28
|
+
#00000020,
|
|
29
|
+
#00000010,
|
|
30
|
+
#00000010,
|
|
31
|
+
#00000080
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
--callout-rgb: 238, 240, 241;
|
|
35
|
+
--callout-border-rgb: 172, 175, 176;
|
|
36
|
+
--card-rgb: 180, 185, 188;
|
|
37
|
+
--card-border-rgb: 131, 134, 135;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (prefers-color-scheme: dark) {
|
|
41
|
+
:root {
|
|
42
|
+
--foreground-rgb: 255, 255, 255;
|
|
43
|
+
--background-start-rgb: 0, 0, 0;
|
|
44
|
+
--background-end-rgb: 0, 0, 0;
|
|
45
|
+
|
|
46
|
+
--primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
|
|
47
|
+
--secondary-glow: linear-gradient(
|
|
48
|
+
to bottom right,
|
|
49
|
+
rgba(1, 65, 255, 0),
|
|
50
|
+
rgba(1, 65, 255, 0),
|
|
51
|
+
rgba(1, 65, 255, 0.3)
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
--tile-start-rgb: 2, 13, 46;
|
|
55
|
+
--tile-end-rgb: 2, 5, 19;
|
|
56
|
+
--tile-border: conic-gradient(
|
|
57
|
+
#ffffff80,
|
|
58
|
+
#ffffff40,
|
|
59
|
+
#ffffff30,
|
|
60
|
+
#ffffff20,
|
|
61
|
+
#ffffff10,
|
|
62
|
+
#ffffff10,
|
|
63
|
+
#ffffff80
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
--callout-rgb: 20, 20, 20;
|
|
67
|
+
--callout-border-rgb: 108, 108, 108;
|
|
68
|
+
--card-rgb: 100, 100, 100;
|
|
69
|
+
--card-border-rgb: 200, 200, 200;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
* {
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
padding: 0;
|
|
76
|
+
margin: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
html,
|
|
80
|
+
body {
|
|
81
|
+
max-width: 100vw;
|
|
82
|
+
overflow-x: hidden;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
a {
|
|
86
|
+
color: inherit;
|
|
87
|
+
text-decoration: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@media (prefers-color-scheme: dark) {
|
|
91
|
+
html {
|
|
92
|
+
color-scheme: dark;
|
|
93
|
+
}
|
|
94
|
+
}
|
package/dist/grid.scss
CHANGED
|
@@ -3,6 +3,7 @@ $elementSelector: "[data-div-type='element']";
|
|
|
3
3
|
[data-div-type="grid"] {
|
|
4
4
|
position: var(--_p-relative);
|
|
5
5
|
display: var(--_d-grid);
|
|
6
|
+
// padding: var(--_ctm-mob-gri-lt-pg), var(--_ctm-tab-gri-lt-pg, var(--_ctm-gri-lt-pg));
|
|
6
7
|
// height: 100% !important;
|
|
7
8
|
box-shadow: var(
|
|
8
9
|
--_hide-grid-shadow,
|
|
@@ -42,7 +43,11 @@ $elementSelector: "[data-div-type='element']";
|
|
|
42
43
|
border: var(--_sf-gri-wl-bw) solid var(--_accent-color-2-500);
|
|
43
44
|
}
|
|
44
45
|
&[data-div-type="cms-grid-wrapper"] {
|
|
45
|
-
padding: var(--_ctm-mob-gri-lt-pg
|
|
46
|
+
// padding: var(--_ctm-mob-gri-lt-pg, var(--_ctm-tab-gri-lt-pg, var(--_ctm-gri-lt-pg)));
|
|
47
|
+
width: 100%;
|
|
48
|
+
grid-area: 1/1/2/2 !important;
|
|
49
|
+
height: 100%;
|
|
50
|
+
// padding: var(--_ctm-mob-gri-lt-pg), var(--_ctm-tab-gri-lt-pg, var(--_ctm-gri-lt-pg));
|
|
46
51
|
display: var(--_d-grid);
|
|
47
52
|
background: var(
|
|
48
53
|
--_ctm-mob-gri-dn-bd-cr,
|
package/dist/repeater.scss
CHANGED
|
@@ -169,6 +169,11 @@ $childItemSelector: '[data-element-type="repeater-item"]';
|
|
|
169
169
|
// width: calc(var(--_embla-slide-width, 100%) / var(--_embla-col-count, 3));
|
|
170
170
|
flex: 0 0 var(--_sf-cl-vl);
|
|
171
171
|
width: var(--_sf-cl-vl);
|
|
172
|
+
grid-template-rows: minmax(
|
|
173
|
+
max(0.5px, 0.09375 * (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))),
|
|
174
|
+
auto
|
|
175
|
+
);
|
|
176
|
+
grid-template-columns: minmax(0px, 1fr);
|
|
172
177
|
// padding-left: calc(var(--_embla-slide-space, 10px) * 1);
|
|
173
178
|
// padding-left: 0px !important;
|
|
174
179
|
|
package/dist/section.scss
CHANGED
|
@@ -97,8 +97,10 @@ section {
|
|
|
97
97
|
var(
|
|
98
98
|
--_ctm-mob-sta-ele-nw-wh-vl,
|
|
99
99
|
var(--_ctm-tab-sta-ele-nw-wh-vl, var(--_ctm-sta-ele-nw-wh-vl))
|
|
100
|
-
) /
|
|
101
|
-
|
|
100
|
+
) /
|
|
101
|
+
100
|
|
102
|
+
) *
|
|
103
|
+
(var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
|
|
102
104
|
);
|
|
103
105
|
}
|
|
104
106
|
&:is([data-element-type="container"]) {
|
|
@@ -108,8 +110,10 @@ section {
|
|
|
108
110
|
var(
|
|
109
111
|
--_ctm-mob-con-ele-nw-wh-vl,
|
|
110
112
|
var(--_ctm-tab-con-ele-nw-wh-vl, var(--_ctm-con-ele-nw-wh-vl))
|
|
111
|
-
) /
|
|
112
|
-
|
|
113
|
+
) /
|
|
114
|
+
100
|
|
115
|
+
) *
|
|
116
|
+
(var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
|
|
113
117
|
);
|
|
114
118
|
}
|
|
115
119
|
|
|
@@ -117,9 +121,13 @@ section {
|
|
|
117
121
|
width: max(
|
|
118
122
|
0.5px,
|
|
119
123
|
calc(
|
|
120
|
-
var(
|
|
124
|
+
var(
|
|
125
|
+
--_ctm-mob-ele-nw-wh-vl,
|
|
126
|
+
var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl))
|
|
127
|
+
) /
|
|
121
128
|
100
|
|
122
|
-
) *
|
|
129
|
+
) *
|
|
130
|
+
(var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
|
|
123
131
|
);
|
|
124
132
|
}
|
|
125
133
|
}
|
package/dist/stack.scss
CHANGED
|
@@ -33,21 +33,6 @@
|
|
|
33
33
|
|
|
34
34
|
&.vtl {
|
|
35
35
|
// width: var(--_sf-sta-nw-wh, auto);
|
|
36
|
-
// width: calc(
|
|
37
|
-
// 1% *
|
|
38
|
-
// var(
|
|
39
|
-
// --_ctm-mob-sta-ele-nw-wh-vl,
|
|
40
|
-
// var(--_ctm-tab-sta-ele-nw-wh-vl var(--_ctm-sta-ele-nw-wh-vl, auto))
|
|
41
|
-
// )
|
|
42
|
-
// );
|
|
43
|
-
// width: calc(
|
|
44
|
-
// 1% *
|
|
45
|
-
// var(
|
|
46
|
-
// --_ctm-mob-sta-ele-nw-wh-vl,
|
|
47
|
-
// var(--_ctm-tab-sta-ele-nw-wh-vl, var(--_ctm-sta-ele-nw-wh-vl, auto))
|
|
48
|
-
// )
|
|
49
|
-
// );
|
|
50
|
-
|
|
51
36
|
width: calc(
|
|
52
37
|
1% *
|
|
53
38
|
var(
|
|
@@ -59,6 +59,7 @@ export declare enum CMSElementSelectors {
|
|
|
59
59
|
iframePreviewSelector = "iframe[data-title='cms-iframe-preview']",
|
|
60
60
|
iframePreviewMainSelector = "[data-page-id='cms-iframe-preview-main']",
|
|
61
61
|
templteEditiorSelector = "[data-page-id='cms__template__editor']",
|
|
62
|
+
pageWrapper = "[data-page-id='page-wrapper']",
|
|
62
63
|
gridSelector = "section[data-div-type='section'] > .wrapper > div[data-div-type='grid']",
|
|
63
64
|
insideGridSelector = ".wrapper > div[data-div-type='grid']",
|
|
64
65
|
elementSelector = "section[data-div-type='section'] > .wrapper > div[data-div-type='grid'] > div[data-div-type='cms-grid-wrapper'] > div[data-div-type='element']",
|
|
@@ -252,3 +253,10 @@ export declare enum CMSRepeaterSliderControlTypes {
|
|
|
252
253
|
DOTS = "Dots",
|
|
253
254
|
NONE = "None"
|
|
254
255
|
}
|
|
256
|
+
export declare enum FliterTypes {
|
|
257
|
+
BRAND_FILTER = 1,
|
|
258
|
+
CATEGORY_FILTER = 2,
|
|
259
|
+
OPTION_FILTER = 3,
|
|
260
|
+
CUSTOM_ATTRIBUTE_FILTER = 4,
|
|
261
|
+
PRICE_FILTER = 5
|
|
262
|
+
}
|
|
@@ -27,6 +27,7 @@ interface selfLayoutInterface {
|
|
|
27
27
|
openItemsIn: CMSIBCommonInterface;
|
|
28
28
|
showMoreItems: CMSIBCommonInterface;
|
|
29
29
|
verticalSpacingBetweenItems: CMSIBCommonInterface;
|
|
30
|
+
showOptionsFilter: CMSIBCommonInterface;
|
|
30
31
|
}
|
|
31
32
|
interface selfDesignInterface {
|
|
32
33
|
selectorKey: string;
|
package/dist/variant-picker.scss
CHANGED
package/dist/widget.scss
CHANGED
|
@@ -1,45 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@
|
|
32
|
-
@
|
|
33
|
-
@
|
|
34
|
-
@
|
|
35
|
-
@
|
|
36
|
-
@
|
|
37
|
-
@
|
|
38
|
-
@
|
|
39
|
-
|
|
40
|
-
@
|
|
41
|
-
@
|
|
42
|
-
@
|
|
43
|
-
@
|
|
44
|
-
@
|
|
45
|
-
@
|
|
1
|
+
// Note: please import only widget related css only in this
|
|
2
|
+
@use "./section.scss";
|
|
3
|
+
@use "./grid.scss";
|
|
4
|
+
@use "./container.scss";
|
|
5
|
+
@use "./stack.scss";
|
|
6
|
+
@use "./repeater.scss";
|
|
7
|
+
@use "./repeater-item.scss";
|
|
8
|
+
@use "./video.scss";
|
|
9
|
+
@use "./social.scss";
|
|
10
|
+
@use "./faq.scss";
|
|
11
|
+
@use "./table.scss";
|
|
12
|
+
@use "./tabs.scss";
|
|
13
|
+
@use "./button.scss";
|
|
14
|
+
@use "./code-temp.scss";
|
|
15
|
+
@use "./embed-temp.scss";
|
|
16
|
+
@use "./text-temp.scss";
|
|
17
|
+
@use "./image-temp.scss";
|
|
18
|
+
@use "./gallery-slider-temp.scss";
|
|
19
|
+
@use "./scroll.scss";
|
|
20
|
+
@use "./countdown.scss";
|
|
21
|
+
@use "./hotspot.scss";
|
|
22
|
+
@use "./map.scss";
|
|
23
|
+
@use "./product-price.scss";
|
|
24
|
+
@use "./product-actions.scss";
|
|
25
|
+
@use "./volume-pricing.scss";
|
|
26
|
+
@use "./product-inventory.scss";
|
|
27
|
+
@use "./store-locations.scss";
|
|
28
|
+
@use "./pickup-locations.scss";
|
|
29
|
+
@use "./product-highlights.scss";
|
|
30
|
+
@use "./payment-methods.scss";
|
|
31
|
+
@use "./shipping-estimator.scss";
|
|
32
|
+
@use "./amount-estimator.scss";
|
|
33
|
+
@use "./quantity-selector.scss";
|
|
34
|
+
@use "./product-promotions.scss";
|
|
35
|
+
@use "./bulk-variant-picker.scss";
|
|
36
|
+
@use "./variant-picker.scss";
|
|
37
|
+
@use "./uom-selector.scss";
|
|
38
|
+
@use "./product-image.scss";
|
|
39
|
+
@use "./product-basic-elements.scss";
|
|
40
|
+
@use "./lightbox.scss";
|
|
41
|
+
@use "./cart.scss";
|
|
42
|
+
@use "./profile.scss";
|
|
43
|
+
@use "./product.scss";
|
|
44
|
+
@use "./productDetails.scss";
|
|
45
|
+
@use "./menu.scss";
|
|
46
|
+
@use "./product-options.scss";
|
|
47
|
+
@use "./brand-basic-elements.scss";
|
|
48
|
+
@use "./brand.scss";
|
|
49
|
+
@use "./bundle-basic-elements.scss";
|
|
50
|
+
@use "./bundle.scss";
|
|
51
|
+
@use "./category.scss";
|
|
52
|
+
@use "./sub-category.scss";
|
|
53
|
+
@use "./categoryWidget.scss";
|
|
54
|
+
@use "./filters.scss";
|
package/package.json
CHANGED
package/dist/functions.scss
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
@use "sass:list";
|
|
2
|
-
@use "sass:map";
|
|
3
|
-
|
|
4
|
-
$breakPoints: (
|
|
5
|
-
desktop: (
|
|
6
|
-
min: 1024px,
|
|
7
|
-
max: 99999px,
|
|
8
|
-
),
|
|
9
|
-
mobile: (
|
|
10
|
-
min: 100px,
|
|
11
|
-
max: 1023px,
|
|
12
|
-
),
|
|
13
|
-
laptop: (
|
|
14
|
-
min: 1024px,
|
|
15
|
-
max: 1367px,
|
|
16
|
-
),
|
|
17
|
-
small: (
|
|
18
|
-
min: 50px,
|
|
19
|
-
max: 399px,
|
|
20
|
-
),
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
@mixin prepareMediaQueries($list) {
|
|
24
|
-
@each $mediaKey, $mediaValue in $breakPoints {
|
|
25
|
-
$maxWidth: map.get($mediaValue, max);
|
|
26
|
-
$minWidth: map.get($mediaValue, min);
|
|
27
|
-
@media only screen and (max-width: #{$maxWidth}) and (min-width: #{$minWidth}) {
|
|
28
|
-
@each $key, $value in $defaultValues {
|
|
29
|
-
$value1: map.get($value, $mediaKey);
|
|
30
|
-
@if ($value1 != null) {
|
|
31
|
-
#{$key}: $value1;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@mixin restrictToLinesShow($count, $type: "optional") {
|
|
39
|
-
display: -webkit-box;
|
|
40
|
-
-webkit-line-clamp: $count;
|
|
41
|
-
overflow: clip;
|
|
42
|
-
text-overflow: ellipsis;
|
|
43
|
-
@if ($type == "optional") {
|
|
44
|
-
-webkit-box-orient: vertical;
|
|
45
|
-
} @else {
|
|
46
|
-
-webkit-box-orient: $type;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@function getListOfResponsive($desktop, $mobile, $latop: "optional") {
|
|
51
|
-
$list: (
|
|
52
|
-
desktop: $desktop,
|
|
53
|
-
mobile: $mobile,
|
|
54
|
-
);
|
|
55
|
-
@if ($latop != "optional") {
|
|
56
|
-
$list: map-merge(
|
|
57
|
-
$list,
|
|
58
|
-
(
|
|
59
|
-
laptop: $latop,
|
|
60
|
-
)
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
@return $list;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@function getTranstionValue($property, $duration: "normal") {
|
|
67
|
-
$dur: var(--_anim-duration);
|
|
68
|
-
@if ($duration == "slow") {
|
|
69
|
-
$dur: var(--_anim-duration-slow);
|
|
70
|
-
}
|
|
71
|
-
@return $property #{$dur} var(--_anim-timing-function-v4);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@function getRepeatColWidth($colcount, $colgap) {
|
|
75
|
-
@return repeat(
|
|
76
|
-
var($colcount),
|
|
77
|
-
calc((100% / var($colcount)) - (((var($colcount) - 1) * (var($colgap))) / (var($colcount))))
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@function getCommonHasNavContainer() {
|
|
82
|
-
$css: ();
|
|
83
|
-
$props: (
|
|
84
|
-
display: var(--_d-flex),
|
|
85
|
-
flex-wrap: wrap,
|
|
86
|
-
justify-content: space-between,
|
|
87
|
-
gap: var(--_default-row-gap) var(--_default-col-gap),
|
|
88
|
-
);
|
|
89
|
-
$css: map-merge($css, $props);
|
|
90
|
-
@return $css;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@mixin prepareCustomClassCSSProps($props) {
|
|
94
|
-
@each $key, $value in $props {
|
|
95
|
-
@if ($key == class) {
|
|
96
|
-
@each $classKey, $classValue in $value {
|
|
97
|
-
.#{$classKey} {
|
|
98
|
-
@each $key1, $value1 in $classValue {
|
|
99
|
-
@if ($key1 == common) {
|
|
100
|
-
@each $key2, $value2 in $value1 {
|
|
101
|
-
#{$key2}: #{$value2};
|
|
102
|
-
}
|
|
103
|
-
} @else {
|
|
104
|
-
@media only screen and (max-width: #{map.get(map.get($breakPoints, $key1), max)}) and (min-width: #{map.get(map.get($breakPoints, $key1), min)}) {
|
|
105
|
-
@each $key2, $value2 in $value1 {
|
|
106
|
-
#{$key2}: #{$value2};
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
// @include getcssprops($classValue, $breakPoints);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
} @else {
|
|
115
|
-
#{$key} {
|
|
116
|
-
@each $key1, $value1 in $value {
|
|
117
|
-
@if ($key1 == common) {
|
|
118
|
-
@each $key2, $value2 in $value1 {
|
|
119
|
-
#{$key2}: #{$value2};
|
|
120
|
-
}
|
|
121
|
-
} @else {
|
|
122
|
-
@media only screen and (max-width: #{map.get(map.get($breakPoints, $key1), max)}) and (min-width: #{map.get(map.get($breakPoints, $key1), min)}) {
|
|
123
|
-
@each $key2, $value2 in $value1 {
|
|
124
|
-
#{$key2}: #{$value2};
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
// @include getcssprops($value, $breakPoints);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|