toggle-components-library 1.32.0 → 1.33.0-beta.1
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 +5437 -102
- 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 +5437 -102
- 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.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/forms/ToggleDatePicker.vue +7 -3
- package/src/components/forms/ToggleInputCurrency.vue +8 -3
- package/src/components/metrics/ToggleMetricFunnelChart.vue +27 -8
- package/src/components/metrics/ToggleMetricSingleMetric.vue +12 -4
- package/src/components/statusbar/ToggleStatusBar.vue +48 -0
- package/src/index.js +20 -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_inputs.scss +5 -0
- package/src/sass/includes/_as_metrics.scss +20 -3
- package/src/sass/includes/_as_statusbar.scss +67 -0
- package/src/sass/main.scss +3 -0
- package/package-lock.json +0 -20275
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
<div class="funnel-grid-svg"></div>
|
|
5
5
|
|
|
6
|
-
<div class="funnel-spark-line funnel-grid-1">
|
|
7
|
-
<slot name="sparkLine1"></slot>
|
|
6
|
+
<div :class="{'funnel-spark-line funnel-grid-1': true, 'increase-padding-bottom': noSparkLine}">
|
|
7
|
+
<slot :name="emailInsight ? 'metric1' : 'sparkLine1'"></slot>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="funnel-spark-line funnel-grid-2">
|
|
10
|
-
<slot name="sparkLine2"></slot>
|
|
9
|
+
<div :class="{'funnel-spark-line funnel-grid-2': true, 'increase-padding-bottom': noSparkLine}">
|
|
10
|
+
<slot :name="emailInsight ? 'metric2' : 'sparkLine2'"></slot>
|
|
11
11
|
</div>
|
|
12
|
-
<div class="funnel-spark-line funnel-grid-3">
|
|
13
|
-
<slot name="sparkLine3"></slot>
|
|
12
|
+
<div :class="{'funnel-spark-line funnel-grid-3': true, 'increase-padding-bottom': noSparkLine}">
|
|
13
|
+
<slot :name="emailInsight ? 'metric3' : 'sparkLine3'"></slot>
|
|
14
14
|
</div>
|
|
15
|
-
<div class="funnel-spark-line funnel-grid-4">
|
|
16
|
-
<slot name="sparkLine4"></slot>
|
|
15
|
+
<div :class="{'funnel-spark-line funnel-grid-4': true, 'increase-padding-bottom': noSparkLine}">
|
|
16
|
+
<slot :name="emailInsight ? 'metric4' : 'sparkLine4'"></slot>
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
19
|
<div class="funnel-single-metric funnel-grid-5">
|
|
@@ -56,6 +56,25 @@ export default {
|
|
|
56
56
|
name: {
|
|
57
57
|
type: String,
|
|
58
58
|
default: "ToggleMetricFunnelChart"
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* If no SparkLine components are used in funnel
|
|
62
|
+
* set to true to increase distance between
|
|
63
|
+
* funnel and metrics
|
|
64
|
+
*/
|
|
65
|
+
noSparkLine: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: false
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* If funnel is used without SparkLine,
|
|
71
|
+
* set prop to true
|
|
72
|
+
* and name slots metric1, metric2 etc
|
|
73
|
+
* for more generic use
|
|
74
|
+
*/
|
|
75
|
+
emailInsight: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false
|
|
59
78
|
}
|
|
60
79
|
}
|
|
61
80
|
}
|
|
@@ -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: {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="['toggle-status-bar-container', statusColours, statusSize]">
|
|
3
|
+
<label class="toggle-status-bar-label">
|
|
4
|
+
<span class="toggle-status-bar-dot" v-if="showDot">●</span>
|
|
5
|
+
{{ statusName }}
|
|
6
|
+
</label>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
export default {
|
|
12
|
+
name: 'StatusBar',
|
|
13
|
+
props: {
|
|
14
|
+
status: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
validator: function (value) {
|
|
18
|
+
return ['draft', 'processing', 'complete', 'inactive', 'active'].indexOf(value) !== -1;
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
size: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: false,
|
|
24
|
+
validator: function (value) {
|
|
25
|
+
return ['small'].indexOf(value) !== -1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
computed: {
|
|
30
|
+
// Capitalise the first letter of the status
|
|
31
|
+
statusName() {
|
|
32
|
+
return this.status.charAt(0).toUpperCase() + this.status.slice(1);
|
|
33
|
+
},
|
|
34
|
+
// Add the status to the class name
|
|
35
|
+
statusColours() {
|
|
36
|
+
return 'toggle-status-bar-' + this.status;
|
|
37
|
+
},
|
|
38
|
+
// Add the size to the class name
|
|
39
|
+
statusSize() {
|
|
40
|
+
return 'toggle-status-bar-' + this.size;
|
|
41
|
+
},
|
|
42
|
+
// Show the dot if the status is active or processing
|
|
43
|
+
showDot() {
|
|
44
|
+
return this.status === 'active' || this.status === 'processing';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
</script>
|
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,14 @@ 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 ToggleStatusBar from "./components/statusbar/ToggleStatusBar.vue";
|
|
87
|
+
|
|
88
|
+
import ToggleCarousel from "./components/carousel/ToggleCarousel.vue";
|
|
89
|
+
import ToggleCarouselSlide from "./components/carousel/ToggleCarouselSlide.vue";
|
|
90
|
+
|
|
91
|
+
import ToggleEmailCard from "./components/cards/ToggleEmailCard.vue";
|
|
92
|
+
import ToggleRewardsCard from "./components/cards/ToggleRewardsCard.vue";
|
|
93
|
+
|
|
83
94
|
|
|
84
95
|
import './sass/main.scss';
|
|
85
96
|
|
|
@@ -88,6 +99,8 @@ const Components = {
|
|
|
88
99
|
ToggleTable,
|
|
89
100
|
ToggleTableRow,
|
|
90
101
|
ToggleBadge,
|
|
102
|
+
ToggleCalculateBadge,
|
|
103
|
+
TogglePodiumBadge,
|
|
91
104
|
ToggleTableColumn,
|
|
92
105
|
ToggleInputText,
|
|
93
106
|
ToggleInputEditableText,
|
|
@@ -107,6 +120,7 @@ const Components = {
|
|
|
107
120
|
ToggleInputImage,
|
|
108
121
|
ToggleButton,
|
|
109
122
|
ToggleLoginButton,
|
|
123
|
+
ToggleMetricsButton,
|
|
110
124
|
ToggleInputGroup,
|
|
111
125
|
ToggleHeaderTextLarge,
|
|
112
126
|
ToggleInputNumber,
|
|
@@ -145,7 +159,12 @@ const Components = {
|
|
|
145
159
|
ToggleBoosterButton,
|
|
146
160
|
ToggleBoosterBasicButton,
|
|
147
161
|
ToggleBoosterModal,
|
|
148
|
-
ToggleContactSearch
|
|
162
|
+
ToggleContactSearch,
|
|
163
|
+
ToggleStatusBar,
|
|
164
|
+
ToggleCarousel,
|
|
165
|
+
ToggleCarouselSlide,
|
|
166
|
+
ToggleEmailCard,
|
|
167
|
+
ToggleRewardsCard
|
|
149
168
|
}
|
|
150
169
|
|
|
151
170
|
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
|
+
|