toggle-components-library 1.32.0 → 1.33.0
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/img/clock-solid.fdaf024d.svg +1 -0
- package/dist/img/contacts-greyblue.ef6f8a9a.svg +1 -0
- package/dist/img/contacts-white.95d07c7a.svg +1 -0
- package/dist/img/view_email.508021c9.svg +7 -0
- package/dist/img/view_heatmap.f9058fdb.svg +1 -0
- package/dist/toggle-components-library.common.js +5349 -106
- package/dist/toggle-components-library.common.js.map +1 -1
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +5349 -106
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +27 -6
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package-lock.json +11 -1
- package/package.json +78 -76
- package/src/assets/icons/clock-solid.svg +1 -0
- package/src/assets/icons/contacts-greyblue.svg +1 -0
- package/src/assets/icons/contacts-white.svg +1 -0
- package/src/assets/icons/contacts.svg +1 -0
- package/src/assets/icons/view_email.svg +7 -0
- package/src/assets/icons/view_heatmap.svg +1 -0
- package/src/components/badges/ToggleBadge.vue +5 -1
- package/src/components/badges/ToggleCalculateBadge.vue +22 -0
- package/src/components/badges/TogglePodiumBadge.vue +32 -0
- package/src/components/buttons/ToggleMetricsButton.vue +36 -0
- package/src/components/cards/ToggleEmailCard.vue +48 -0
- package/src/components/cards/ToggleRewardsCard.vue +79 -0
- package/src/components/carousel/ToggleCarousel.vue +126 -0
- package/src/components/carousel/ToggleCarouselSlide.vue +26 -0
- package/src/components/metrics/ToggleMetricFunnelChart.vue +27 -8
- package/src/components/metrics/ToggleMetricSingleMetric.vue +12 -4
- package/src/index.js +17 -1
- package/src/sass/includes/_as_badges.scss +162 -0
- package/src/sass/includes/_as_buttons.scss +99 -1
- package/src/sass/includes/_as_cards.scss +166 -0
- package/src/sass/includes/_as_carousels.scss +131 -0
- package/src/sass/includes/_as_metrics.scss +20 -3
- package/src/sass/main.scss +2 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
|
|
4
|
-
<
|
|
3
|
+
<h3 class="toggle-metric metric-label">{{label}}</h3>
|
|
4
|
+
<div class="single-metric-icon" v-if="metricPending && label.length == 0"></div>
|
|
5
|
+
<h1 class="toggle-metric metric-value" v-else>{{metricValue}}</h1>
|
|
5
6
|
</div>
|
|
6
7
|
</template>
|
|
7
8
|
|
|
8
9
|
<script>
|
|
9
10
|
|
|
10
|
-
import { mixins } from '../mixins/mixins'
|
|
11
|
+
import { mixins } from '../mixins/mixins';
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
export default {
|
|
@@ -20,7 +21,7 @@ export default {
|
|
|
20
21
|
type: String,
|
|
21
22
|
default: "ToggleMetricSingleMetric"
|
|
22
23
|
},
|
|
23
|
-
|
|
24
|
+
/**
|
|
24
25
|
* Type of the value, this will affect on the format shown
|
|
25
26
|
*/
|
|
26
27
|
type : {
|
|
@@ -63,6 +64,13 @@ export default {
|
|
|
63
64
|
currencyDenomination: {
|
|
64
65
|
type: Number,
|
|
65
66
|
default: 1
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* Displays badge or clock if metrics are still pending
|
|
70
|
+
*/
|
|
71
|
+
metricPending: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: false
|
|
66
74
|
}
|
|
67
75
|
},
|
|
68
76
|
computed: {
|
package/src/index.js
CHANGED
|
@@ -32,6 +32,7 @@ import ToggleInputSearch from "./components/forms/ToggleInputSearch.vue";
|
|
|
32
32
|
import ToggleInputRadioButtonGroup from "./components/forms/ToggleInputRadioButtonGroup.vue";
|
|
33
33
|
import ToggleButton from "./components/buttons/ToggleButton.vue";
|
|
34
34
|
import ToggleLoginButton from "./components/buttons/ToggleLoginButton.vue";
|
|
35
|
+
import ToggleMetricsButton from "./components/buttons/ToggleMetricsButton.vue";
|
|
35
36
|
|
|
36
37
|
import ToggleFillLoader from "./components/loaders/ToggleFillLoader.vue";
|
|
37
38
|
import ToggleProgressLoader from "./components/loaders/ToggleProgressLoader.vue";
|
|
@@ -41,6 +42,8 @@ import ToggleTable from './components/tables/ToggleTable.vue';
|
|
|
41
42
|
import ToggleTableRow from './components/tables/ToggleTableRow.vue';
|
|
42
43
|
import ToggleTableColumn from './components/tables/ToggleTableColumn.vue';
|
|
43
44
|
import ToggleBadge from './components/badges/ToggleBadge.vue';
|
|
45
|
+
import ToggleCalculateBadge from './components/badges/ToggleCalculateBadge.vue';
|
|
46
|
+
import TogglePodiumBadge from './components/badges/TogglePodiumBadge.vue';
|
|
44
47
|
|
|
45
48
|
import ToggleBreadCrumb from './components/breadcrumb/ToggleBreadCrumb.vue';
|
|
46
49
|
import ToggleSideNavItem from './components/navs/sidenav/ToggleSideNavItem.vue';
|
|
@@ -80,6 +83,12 @@ import ToggleMetricFunnelChart from "./components/metrics/ToggleMetricFunnelChar
|
|
|
80
83
|
import ToggleThreeDots from "./components/threedots/ToggleThreeDots.vue";
|
|
81
84
|
import ToggleThreeDotsButton from "./components/threedots/ToggleThreeDotsButton.vue";
|
|
82
85
|
|
|
86
|
+
import ToggleCarousel from "./components/carousel/ToggleCarousel.vue";
|
|
87
|
+
import ToggleCarouselSlide from "./components/carousel/ToggleCarouselSlide.vue";
|
|
88
|
+
|
|
89
|
+
import ToggleEmailCard from "./components/cards/ToggleEmailCard.vue";
|
|
90
|
+
import ToggleRewardsCard from "./components/cards/ToggleRewardsCard.vue";
|
|
91
|
+
|
|
83
92
|
|
|
84
93
|
import './sass/main.scss';
|
|
85
94
|
|
|
@@ -88,6 +97,8 @@ const Components = {
|
|
|
88
97
|
ToggleTable,
|
|
89
98
|
ToggleTableRow,
|
|
90
99
|
ToggleBadge,
|
|
100
|
+
ToggleCalculateBadge,
|
|
101
|
+
TogglePodiumBadge,
|
|
91
102
|
ToggleTableColumn,
|
|
92
103
|
ToggleInputText,
|
|
93
104
|
ToggleInputEditableText,
|
|
@@ -107,6 +118,7 @@ const Components = {
|
|
|
107
118
|
ToggleInputImage,
|
|
108
119
|
ToggleButton,
|
|
109
120
|
ToggleLoginButton,
|
|
121
|
+
ToggleMetricsButton,
|
|
110
122
|
ToggleInputGroup,
|
|
111
123
|
ToggleHeaderTextLarge,
|
|
112
124
|
ToggleInputNumber,
|
|
@@ -145,7 +157,11 @@ const Components = {
|
|
|
145
157
|
ToggleBoosterButton,
|
|
146
158
|
ToggleBoosterBasicButton,
|
|
147
159
|
ToggleBoosterModal,
|
|
148
|
-
ToggleContactSearch
|
|
160
|
+
ToggleContactSearch,
|
|
161
|
+
ToggleCarousel,
|
|
162
|
+
ToggleCarouselSlide,
|
|
163
|
+
ToggleEmailCard,
|
|
164
|
+
ToggleRewardsCard
|
|
149
165
|
}
|
|
150
166
|
|
|
151
167
|
Object.keys(Components).forEach(name => {
|
|
@@ -32,4 +32,166 @@
|
|
|
32
32
|
&.empty {
|
|
33
33
|
background-color: $toggle-placeholder-grey;
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
&.toggle-badge-rounded {
|
|
37
|
+
border-radius: 50px;
|
|
38
|
+
padding: 5px 11px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.toggle-podium-badge {
|
|
43
|
+
@include toggle-global-font-config;
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
align-items: center;
|
|
47
|
+
width: fit-content;
|
|
48
|
+
border-radius: 20px;
|
|
49
|
+
color: white;
|
|
50
|
+
font-size: $toggle-font-size-regular;
|
|
51
|
+
font-weight: 900;
|
|
52
|
+
padding: 5px 18px 5px 10px;
|
|
53
|
+
|
|
54
|
+
&.first {
|
|
55
|
+
background-color: #efd028;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.second{
|
|
59
|
+
background-color: #adb4c9;
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.third {
|
|
64
|
+
background-color: #d99a0c;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.podium-number {
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
opacity: 1;
|
|
74
|
+
width: 26px;
|
|
75
|
+
height: 26px;
|
|
76
|
+
border-radius: 50%;
|
|
77
|
+
text-align: center;
|
|
78
|
+
margin-right: 20px;
|
|
79
|
+
margin-left: -4px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.first .podium-number{
|
|
83
|
+
background: transparent linear-gradient(132deg, #FFD700 0%, #F0E4A2 100%) 0% 0% no-repeat padding-box;
|
|
84
|
+
color: #CBAF15;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.second .podium-number{
|
|
88
|
+
background: transparent linear-gradient(132deg, #C6C9D5 0%, #DEE2EF 100%) 0% 0% no-repeat padding-box;
|
|
89
|
+
color: #8C92A3;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.third .podium-number{
|
|
93
|
+
background: transparent linear-gradient(132deg, #E8B33C 0%, #F8CE6E 100%) 0% 0% no-repeat padding-box;
|
|
94
|
+
color: #C18A0E;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.toggle-calculate-badge{
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
align-items: center;
|
|
101
|
+
width: fit-content;
|
|
102
|
+
background-color: #E4EBED;
|
|
103
|
+
color: #6D90B4;
|
|
104
|
+
border-radius: 50px;
|
|
105
|
+
padding: 10px 20px 10px 15px;
|
|
106
|
+
font-family: $toggle-font-family;
|
|
107
|
+
font-size: 0.8rem;
|
|
108
|
+
font-weight:lighter;
|
|
109
|
+
|
|
110
|
+
.clock-icon {
|
|
111
|
+
background-image: url('../assets/icons/clock-solid.svg');
|
|
112
|
+
background-repeat:no-repeat;
|
|
113
|
+
background-size:contain;
|
|
114
|
+
height: 22px;
|
|
115
|
+
width: 22px;
|
|
116
|
+
margin-right: 15px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.toggle-podium-badge {
|
|
121
|
+
@include toggle-global-font-config;
|
|
122
|
+
display: inline-flex;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
align-items: center;
|
|
125
|
+
width: fit-content;
|
|
126
|
+
border-radius: 20px;
|
|
127
|
+
color: white;
|
|
128
|
+
font-size: $toggle-font-size-regular;
|
|
129
|
+
font-weight: 900;
|
|
130
|
+
padding: 5px 18px 5px 10px;
|
|
131
|
+
|
|
132
|
+
&.first {
|
|
133
|
+
background-color: #efd028;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.second{
|
|
137
|
+
background-color: #adb4c9;
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&.third {
|
|
142
|
+
background-color: #d99a0c;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.podium-number {
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
align-items: center;
|
|
151
|
+
opacity: 1;
|
|
152
|
+
width: 26px;
|
|
153
|
+
height: 26px;
|
|
154
|
+
border-radius: 50%;
|
|
155
|
+
text-align: center;
|
|
156
|
+
margin-right: 20px;
|
|
157
|
+
margin-left: -4px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.first .podium-number{
|
|
161
|
+
background: transparent linear-gradient(132deg, #FFD700 0%, #F0E4A2 100%) 0% 0% no-repeat padding-box;
|
|
162
|
+
color: #CBAF15;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.second .podium-number{
|
|
166
|
+
background: transparent linear-gradient(132deg, #C6C9D5 0%, #DEE2EF 100%) 0% 0% no-repeat padding-box;
|
|
167
|
+
color: #8C92A3;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.third .podium-number{
|
|
171
|
+
background: transparent linear-gradient(132deg, #E8B33C 0%, #F8CE6E 100%) 0% 0% no-repeat padding-box;
|
|
172
|
+
color: #C18A0E;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.toggle-calculate-badge{
|
|
176
|
+
display: inline-flex;
|
|
177
|
+
justify-content: space-between;
|
|
178
|
+
align-items: center;
|
|
179
|
+
width: fit-content;
|
|
180
|
+
background-color: #E4EBED;
|
|
181
|
+
color: #6D90B4;
|
|
182
|
+
border-radius: 50px;
|
|
183
|
+
padding: 10px 20px 10px 15px;
|
|
184
|
+
font-family: $toggle-font-family;
|
|
185
|
+
font-size: 0.8rem;
|
|
186
|
+
font-weight:lighter;
|
|
187
|
+
margin-top: 11px;
|
|
188
|
+
|
|
189
|
+
.clock-icon {
|
|
190
|
+
background-image: url('../assets/icons/clock-solid.svg');
|
|
191
|
+
background-repeat:no-repeat;
|
|
192
|
+
background-size:contain;
|
|
193
|
+
height: 22px;
|
|
194
|
+
width: 22px;
|
|
195
|
+
margin-right: 15px;
|
|
196
|
+
}
|
|
35
197
|
}
|
|
@@ -328,4 +328,102 @@
|
|
|
328
328
|
top: 50%;
|
|
329
329
|
margin-top: -0.5rem;
|
|
330
330
|
box-sizing: content-box;
|
|
331
|
-
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.toggle-metrics-button {
|
|
334
|
+
display: inline-flex;
|
|
335
|
+
border-radius: 50px;
|
|
336
|
+
padding: 5px 20px;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
align-items: center;
|
|
339
|
+
cursor: pointer;
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
&.heatmap{
|
|
343
|
+
background-image: linear-gradient(to right, #fbb415 0%, #f75d05 51%, #d01d2c 100%);
|
|
344
|
+
border: none;
|
|
345
|
+
color: #ffeab2;
|
|
346
|
+
height: 40px;
|
|
347
|
+
width: fit-content;
|
|
348
|
+
font-weight: 600;
|
|
349
|
+
transition: all .2s ease-in-out;
|
|
350
|
+
|
|
351
|
+
&:hover {
|
|
352
|
+
background-image: linear-gradient(to right, #ffc341 0%, #ff7b2e 51%, #d23e4a 100%);
|
|
353
|
+
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
|
354
|
+
|
|
355
|
+
.heatmap-icon {
|
|
356
|
+
transform: scale(1.1);
|
|
357
|
+
transition: transform 0.2s ease-in-out;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
&.email {
|
|
363
|
+
background-color: #257de5;
|
|
364
|
+
color: white;
|
|
365
|
+
border: none;
|
|
366
|
+
height: 40px;
|
|
367
|
+
width: fit-content;
|
|
368
|
+
font-weight: 600;
|
|
369
|
+
transition: all 0.2s ease-in-out;
|
|
370
|
+
|
|
371
|
+
&:hover {
|
|
372
|
+
background-color: #4196ff;
|
|
373
|
+
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
|
374
|
+
|
|
375
|
+
.email-icon {
|
|
376
|
+
transform: scale(1.1);
|
|
377
|
+
transition: transform 0.2s ease-in-out;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&.mini-contacts {
|
|
383
|
+
border: 2px solid #6d90b4;
|
|
384
|
+
color: #6d90b4;
|
|
385
|
+
background-color: white;
|
|
386
|
+
padding: 7px 14px;
|
|
387
|
+
width: fit-content;
|
|
388
|
+
transition: all 0.2s ease-in-out;
|
|
389
|
+
font-weight: 600;
|
|
390
|
+
font-size: 0.7rem;
|
|
391
|
+
|
|
392
|
+
&:hover {
|
|
393
|
+
background-color: #6d90b4;
|
|
394
|
+
color: white;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
&:hover .contacts-icon {
|
|
398
|
+
background-image: url("../assets/icons/contacts-white.svg");
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
//icons
|
|
402
|
+
.heatmap-icon {
|
|
403
|
+
background-image: url("../assets/icons/view_heatmap.svg");
|
|
404
|
+
background-repeat:no-repeat;
|
|
405
|
+
background-size:contain;
|
|
406
|
+
margin-right: 15px;
|
|
407
|
+
width: 25px;
|
|
408
|
+
height: 25px;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.email-icon {
|
|
412
|
+
background-image: url("../assets/icons/view_email.svg");
|
|
413
|
+
background-repeat:no-repeat;
|
|
414
|
+
background-size:contain;
|
|
415
|
+
margin-right: 15px;
|
|
416
|
+
width: 30px;
|
|
417
|
+
height: 30px;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.contacts-icon {
|
|
421
|
+
background-image: url("../assets/icons/contacts-greyblue.svg");
|
|
422
|
+
background-repeat:no-repeat;
|
|
423
|
+
background-size:contain;
|
|
424
|
+
margin-right: 6px;
|
|
425
|
+
width: 14px;
|
|
426
|
+
height: 14px;
|
|
427
|
+
transition: all 0.2s ease-in-out;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
.toggle-rewards-card-reward-card {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
max-width: 800px;
|
|
5
|
+
height: 300px;
|
|
6
|
+
border-radius: 18px;
|
|
7
|
+
margin: 16px;
|
|
8
|
+
font-family: $toggle-font-family;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.toggle-rewards-card-reward-info {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
width:65%;
|
|
16
|
+
padding: 10px 40px;
|
|
17
|
+
// background-color: #ABC9C0;
|
|
18
|
+
color: white;
|
|
19
|
+
border-top-left-radius: 18px;
|
|
20
|
+
border-bottom-left-radius: 18px;
|
|
21
|
+
|
|
22
|
+
.toggle-rewards-card-card-header {
|
|
23
|
+
font-size: 2.2rem;
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
margin-top: 20px;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
-webkit-line-clamp: 2;
|
|
30
|
+
-webkit-box-orient: vertical;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.toggle-rewards-card-card-body {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
|
|
38
|
+
.toggle-rewards-card-body-header {
|
|
39
|
+
font-size: 1.5rem;
|
|
40
|
+
font-weight: 800;
|
|
41
|
+
color:#000000;
|
|
42
|
+
opacity: 0.4;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.toggle-rewards-card-body-stats {
|
|
47
|
+
display: inline-block;
|
|
48
|
+
align-items: flex-start;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
margin-bottom: 20px;
|
|
51
|
+
|
|
52
|
+
p {
|
|
53
|
+
margin: 3px 20px 3px 0px;
|
|
54
|
+
color:#000000;
|
|
55
|
+
opacity: 0.4;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.toggle-rewards-card-metrics {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: row;
|
|
61
|
+
align-items: center;
|
|
62
|
+
font-weight: 800;
|
|
63
|
+
font-size: 1.1rem;
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.toggle-rewards-card-metrics:last-child {
|
|
68
|
+
margin-top: 8px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
.toggle-rewards-card-reward-redemption {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: flex-end;
|
|
80
|
+
padding-bottom: 40px;
|
|
81
|
+
width: 35%;
|
|
82
|
+
// background-color: #89A79E;
|
|
83
|
+
border-top-right-radius: 18px;
|
|
84
|
+
border-bottom-right-radius: 18px;
|
|
85
|
+
|
|
86
|
+
p {
|
|
87
|
+
color:#000000;
|
|
88
|
+
opacity: 0.4;
|
|
89
|
+
font-size: $toggle-font-size-large;
|
|
90
|
+
font-weight: 800;
|
|
91
|
+
margin-top: 20px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.toggle-rewards-card-percentage {
|
|
95
|
+
background-color:hsla(0, 0%, 0%, 0.4) ;
|
|
96
|
+
border-radius: 50%;
|
|
97
|
+
width: 100px;
|
|
98
|
+
height: 100px;
|
|
99
|
+
color: white;
|
|
100
|
+
font-size: 27px;
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
display: flex;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
align-items: center;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
.toggle-email-card {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
max-width: 370px;
|
|
113
|
+
border: 1px solid #E5E5E5;
|
|
114
|
+
border-radius: 18px;
|
|
115
|
+
font-family: $toggle-font-family;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.toggle-email-card-body {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
border-radius: 18px;
|
|
122
|
+
padding-bottom: 20px;
|
|
123
|
+
background: white;
|
|
124
|
+
z-index: 1;
|
|
125
|
+
|
|
126
|
+
.toggle-email-card-htmlContent {
|
|
127
|
+
-webkit-mask-image: linear-gradient( to top, rgba(255,0,0,0) 35%, 50%, rgba(255,0,0,1) 55%);
|
|
128
|
+
mask-image: linear-gradient(black, transparent);
|
|
129
|
+
height: 800px;
|
|
130
|
+
zoom: 0.62;
|
|
131
|
+
border-radius: 25px;
|
|
132
|
+
z-index:-1;
|
|
133
|
+
|
|
134
|
+
}
|
|
135
|
+
.toggle-email-card-buttons {
|
|
136
|
+
margin-top: -220px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.toggle-email-card-button {
|
|
140
|
+
display: flex;
|
|
141
|
+
border:none;
|
|
142
|
+
margin: 10px 25px;
|
|
143
|
+
background:transparent;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.toggle-email-card-info {
|
|
148
|
+
margin: 20px 35px 5px 35px;
|
|
149
|
+
p {
|
|
150
|
+
color:$toggle-blue;
|
|
151
|
+
font-family: $toggle-font-family;
|
|
152
|
+
font-size: $toggle-font-size-regular;
|
|
153
|
+
font-weight: bold;
|
|
154
|
+
margin: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.toggle-email-card-slot {
|
|
158
|
+
color:#324866;
|
|
159
|
+
font-family: $toggle-font-family;
|
|
160
|
+
font-size: $toggle-font-size-large;
|
|
161
|
+
font-weight: bold;
|
|
162
|
+
word-wrap: break-word;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
}
|
|
166
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.toggle-carousel{
|
|
2
|
+
cursor: grab;
|
|
3
|
+
font-size: 0;
|
|
4
|
+
&:active {
|
|
5
|
+
cursor: grabbing;
|
|
6
|
+
}
|
|
7
|
+
&--voucher{
|
|
8
|
+
&:after{
|
|
9
|
+
content: '';
|
|
10
|
+
position: absolute;
|
|
11
|
+
width: 15%;
|
|
12
|
+
background: linear-gradient(90deg, rgba(241, 245, 246, 0) 0%, rgba(241, 245, 246, 0.7) 50%, rgba(241, 245, 246, 1) 100%);
|
|
13
|
+
right: 0;
|
|
14
|
+
top: 0;
|
|
15
|
+
height: 100%;
|
|
16
|
+
z-index: 25;
|
|
17
|
+
}
|
|
18
|
+
&-end{
|
|
19
|
+
&:after{
|
|
20
|
+
right: auto;
|
|
21
|
+
left: 0;
|
|
22
|
+
background: linear-gradient(-90deg, rgba(241, 245, 246, 0) 0%, rgba(241, 245, 246, 0.7) 50%, rgba(241, 245, 246, 1) 100%);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.toggle-carousel-slide{
|
|
27
|
+
img{
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.toggle-carousel-button{
|
|
32
|
+
width: 50px;
|
|
33
|
+
height: 50px;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
color: #FFF;
|
|
38
|
+
background-color: #2680EB;
|
|
39
|
+
border-radius: 100%;
|
|
40
|
+
position: absolute;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
z-index: 50;
|
|
43
|
+
@media only screen and (max-width:768px){
|
|
44
|
+
width: 24px;
|
|
45
|
+
height: 24px;
|
|
46
|
+
}
|
|
47
|
+
&:hover{
|
|
48
|
+
background-color: #3487ec;
|
|
49
|
+
}
|
|
50
|
+
&--top{
|
|
51
|
+
top: 20px;
|
|
52
|
+
@media only screen and (max-width:768px){
|
|
53
|
+
top: 12px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&--middle{
|
|
57
|
+
top: 50%;
|
|
58
|
+
transform: translate(0,-50%);
|
|
59
|
+
}
|
|
60
|
+
&--bottom{
|
|
61
|
+
bottom: 20px;
|
|
62
|
+
@media only screen and (max-width:768px){
|
|
63
|
+
bottom: 12px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
&:before, &:after{
|
|
67
|
+
content: '';
|
|
68
|
+
width: 4px;
|
|
69
|
+
height: 15px;
|
|
70
|
+
background-color: #FFF;
|
|
71
|
+
position: relative;
|
|
72
|
+
@media only screen and (max-width:768px){
|
|
73
|
+
width: 2px;
|
|
74
|
+
height: 8px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
&:before{
|
|
78
|
+
border-radius: 0 0 5px 5px;
|
|
79
|
+
}
|
|
80
|
+
&:after{
|
|
81
|
+
border-radius: 5px 5px 0 ;
|
|
82
|
+
}
|
|
83
|
+
&--prev{
|
|
84
|
+
left: 20px;
|
|
85
|
+
@media only screen and (max-width:768px){
|
|
86
|
+
left: 12px;
|
|
87
|
+
}
|
|
88
|
+
&:before{
|
|
89
|
+
transform: rotate(-45deg);
|
|
90
|
+
top: 4px;
|
|
91
|
+
@media only screen and (max-width:768px){
|
|
92
|
+
top: 2px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
&:after{
|
|
96
|
+
transform: rotate(45deg);
|
|
97
|
+
top: -4px;
|
|
98
|
+
left: -4px;
|
|
99
|
+
@media only screen and (max-width:768px){
|
|
100
|
+
top: -2px;
|
|
101
|
+
left: -2px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
&--next{
|
|
106
|
+
right: 20px;
|
|
107
|
+
@media only screen and (max-width:768px){
|
|
108
|
+
right: 12px;
|
|
109
|
+
}
|
|
110
|
+
&:before{
|
|
111
|
+
transform: rotate(45deg);
|
|
112
|
+
top: 4px;
|
|
113
|
+
left: 4px;
|
|
114
|
+
@media only screen and (max-width:768px){
|
|
115
|
+
top: 2px;
|
|
116
|
+
left: 2px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
&:after{
|
|
120
|
+
transform: rotate(-45deg);
|
|
121
|
+
top: -4px;
|
|
122
|
+
@media only screen and (max-width:768px){
|
|
123
|
+
top: -2px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
&--disabled{
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
font-size: 275%;
|
|
17
17
|
color: $toggle-metric-label-black;
|
|
18
18
|
}
|
|
19
|
+
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
26
27
|
display: grid;
|
|
27
28
|
grid-auto-flow: column;
|
|
28
|
-
|
|
29
|
+
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.funnel-grid-svg {
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
grid-column-start: 2;
|
|
80
81
|
grid-row-end: 3;
|
|
81
82
|
grid-column-end: 3;
|
|
82
|
-
|
|
83
|
+
display: flex;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
.funnel-grid-7 {
|
|
@@ -101,7 +102,7 @@
|
|
|
101
102
|
.funnel-spark-line, .funnel-single-metric {
|
|
102
103
|
margin-right: 1rem;
|
|
103
104
|
border-right: 1px solid #BCDBEE;
|
|
104
|
-
|
|
105
|
+
|
|
105
106
|
&:nth-child(5), &:last-child {
|
|
106
107
|
border: 0;
|
|
107
108
|
}
|
|
@@ -117,4 +118,20 @@
|
|
|
117
118
|
align-items: center;
|
|
118
119
|
justify-content: center;
|
|
119
120
|
width: 100%;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.single-metric-badge {
|
|
124
|
+
margin-top: 0.6rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.single-metric-icon {
|
|
128
|
+
background-image: url('../assets/icons/clock-solid.svg');
|
|
129
|
+
background-repeat:no-repeat;
|
|
130
|
+
background-size:contain;
|
|
131
|
+
height: 25px;
|
|
132
|
+
width: 25px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.increase-padding-bottom {
|
|
136
|
+
padding-bottom: 3rem !important;
|
|
120
137
|
}
|