@textback/notification-widget 2.0.0 → 2.0.1-102913
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.js +291 -291
- package/build/index.js +12 -0
- package/build/sdk.js +9 -0
- package/package.json +70 -68
- package/promote_tag.sh +1 -1
- package/readme.md +569 -490
- package/server.js +8 -4
- package/src/libraries/ai.1.0.11.js +4088 -4088
- package/src/libraries/localization/locales/cs.js +14 -12
- package/src/libraries/localization/locales/en.js +14 -12
- package/src/libraries/localization/locales/index.js +8 -8
- package/src/libraries/localization/locales/pl.js +14 -12
- package/src/libraries/localization/locales/ro.js +14 -12
- package/src/libraries/localization/locales/ru.js +13 -12
- package/src/libraries/localization/locales/uk.js +14 -12
- package/src/libraries/localization/text.js +9 -9
- package/src/libraries/t.js +82 -82
- package/src/sdk/channels/channel.js +30 -30
- package/src/sdk/channels/facebook.js +13 -13
- package/src/sdk/channels/factory.js +3 -3
- package/src/sdk/channels/skype.js +12 -12
- package/src/sdk/channels/telegram.js +18 -18
- package/src/sdk/channels/viber.js +12 -12
- package/src/sdk/channels/vk-modal/vk-modal.html +17 -17
- package/src/sdk/channels/vk-modal/vk-modal.js +25 -25
- package/src/sdk/channels/vk-modal/vk-modal.scss +116 -116
- package/src/sdk/channels/vk.js +195 -184
- package/src/sdk/channels/whatsapp.js +16 -10
- package/src/sdk/channels/whatsappb.js +27 -0
- package/src/sdk/events/observer.js +46 -46
- package/src/sdk/index.js +5 -5
- package/src/sdk/sdk.js +67 -30
- package/src/sdk/utils/apiErrorHandler.js +11 -11
- package/src/sdk/utils/appInsights.js +88 -88
- package/src/sdk/utils/browserInfo.js +8 -8
- package/src/sdk/utils/constants.js +17 -17
- package/src/sdk/utils/cookies.js +67 -50
- package/src/sdk/utils/find.js +7 -7
- package/src/sdk/utils/loadConfig.js +20 -20
- package/src/sdk/utils/loadDeepLink.js +48 -21
- package/src/sdk/utils/loadScript.js +25 -25
- package/src/sdk/utils/loadSubscriptions.js +6 -6
- package/src/sdk/utils/parseQueryString.js +33 -33
- package/src/sdk/utils/windowHelper.js +25 -25
- package/src/sdk/widget/widget.js +192 -140
- package/src/widget/components/index.js +6 -2
- package/src/widget/components/tb-notification-button/facebook.js +9 -2
- package/src/widget/components/tb-notification-button/index.js +34 -34
- package/src/widget/components/tb-notification-button/styles.scss +657 -433
- package/src/widget/components/tb-notification-button/telegram.js +9 -2
- package/src/widget/components/tb-notification-button/viber.js +9 -2
- package/src/widget/components/tb-notification-button/vk.js +59 -50
- package/src/widget/components/tb-notification-button/whatsapp.js +15 -8
- package/src/widget/components/tb-notification-button/whatsappb.js +58 -0
- package/src/widget/components/tb-notification-widget/index.js +589 -384
- package/src/widget/components/tb-notification-widget/normalize.scss +395 -394
- package/src/widget/components/tb-notification-widget/styles.scss +502 -139
- package/src/widget/components/tb-nw-wahunter/index.js +259 -0
- package/src/widget/components/tb-nw-wahunter/styles.scss +471 -0
- package/src/widget/config.js +5 -5
- package/src/widget/icons/icon_chat_window.svg +1 -0
- package/src/widget/icons/icon_close.svg +1 -0
- package/src/widget/icons/icon_facebook.svg +7 -7
- package/src/widget/icons/icon_facebook_circle.svg +7 -9
- package/src/widget/icons/icon_instagram_circle.svg +95 -95
- package/src/widget/icons/icon_skype.svg +44 -44
- package/src/widget/icons/icon_skype_circle.svg +46 -46
- package/src/widget/icons/icon_skype_new.svg +113 -113
- package/src/widget/icons/icon_tg.svg +25 -25
- package/src/widget/icons/icon_tg_circle.svg +17 -27
- package/src/widget/icons/icon_viber.svg +75 -75
- package/src/widget/icons/icon_viber_circle.svg +67 -77
- package/src/widget/icons/icon_viber_new.svg +102 -102
- package/src/widget/icons/icon_vk.svg +14 -14
- package/src/widget/icons/icon_vk_circle.svg +16 -16
- package/src/widget/icons/icon_whatsapp.svg +147 -147
- package/src/widget/icons/icon_whatsapp_circle.svg +3 -3
- package/src/widget/icons/icon_whatsapp_hollow.svg +128 -0
- package/src/widget/icons/icon_whatsapp_new.svg +127 -127
- package/src/widget/icons/icon_whatsappb.svg +147 -0
- package/src/widget/icons/icon_whatsappb_circle.svg +4 -0
- package/src/widget/icons/icon_whatsappb_new.svg +127 -0
- package/src/widget/icons/paper-plane-arrow.svg +3 -0
- package/src/widget/icons/tb-logo.svg +21 -0
- package/src/widget/index.js +28 -28
- package/src/widget/locales/cs.js +42 -0
- package/src/widget/locales/en.js +42 -20
- package/src/widget/locales/index.js +2 -2
- package/src/widget/locales/pl.js +41 -19
- package/src/widget/locales/ro.js +41 -20
- package/src/widget/locales/ru.js +40 -19
- package/src/widget/locales/uk.js +40 -19
- package/src/widget/utils/cookiesEx.js +41 -41
- package/src/widget/utils/getLocale.js +4 -2
- package/src/widget/utils/stringifyAttributes.js +19 -19
- package/src/widget/utils/text.js +2 -1
- package/src/widget/utils/widgetsStorage.js +28 -28
- package/src/widget/widget.entry.js +3 -4
- package/tests/gf.html +35 -35
- package/tests/gf.js +21 -21
- package/tests/index.js +61 -61
- package/views/examples.ejs +7 -3
- package/views/sdk.html +274 -256
- package/webpack.common.js +72 -72
- package/webpack.dev.js +15 -15
- package/webpack.prod.js +10 -10
- package/src/widget/components/tb-notification-button/skype.js +0 -47
- package/src/widget/icons/text-back-badge.png +0 -0
- package/src/widget/locales/cz.js +0 -20
@@ -1,180 +1,543 @@
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');
|
2
|
+
|
3
|
+
@mixin hidden {
|
4
|
+
visibility: hidden;
|
5
|
+
opacity: 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
@mixin visible {
|
9
|
+
visibility: visible;
|
10
|
+
opacity: 1;
|
11
|
+
}
|
12
|
+
|
1
13
|
tb-notification-widget {
|
2
|
-
|
3
|
-
|
14
|
+
color: #333;
|
15
|
+
|
16
|
+
&.tb-no-api-call {
|
17
|
+
display: block;
|
18
|
+
}
|
19
|
+
|
20
|
+
all: initial;
|
21
|
+
display: inline-block;
|
22
|
+
font-family: 'Open Sans',
|
23
|
+
'Droid Sans',
|
24
|
+
Arial,
|
25
|
+
sans-serif;
|
26
|
+
line-height: 1.42857;
|
27
|
+
|
28
|
+
#tb-notification-widget-inner.tb-notification-widget-inner {
|
29
|
+
.hidden {
|
30
|
+
display: none;
|
4
31
|
}
|
5
32
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
line-height: 1.42857;
|
10
|
-
position: relative;
|
11
|
-
|
12
|
-
#tb-notification-widget-inner.tb-notification-widget-inner {
|
13
|
-
.hidden {
|
14
|
-
display: none;
|
15
|
-
}
|
33
|
+
.tb-pallet-dark {
|
34
|
+
background-color: #2e2e2e;
|
35
|
+
color: #fff;
|
16
36
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
37
|
+
#tb-notification-brand-badge {
|
38
|
+
color: #fff;
|
39
|
+
fill: #fff;
|
40
|
+
}
|
41
|
+
}
|
22
42
|
|
23
|
-
|
24
|
-
|
25
|
-
|
43
|
+
.tb-pallet-light {
|
44
|
+
$color-tb-badge-dark-text: #777777;
|
45
|
+
|
46
|
+
#tb-notification-brand-badge {
|
47
|
+
color: $color-tb-badge-dark-text;
|
48
|
+
fill: $color-tb-badge-dark-text;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
@keyframes spin {
|
54
|
+
from {
|
55
|
+
transform: rotate(0deg);
|
56
|
+
}
|
57
|
+
|
58
|
+
to {
|
59
|
+
transform: rotate(360deg);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
tb-notification-widget-overlay {
|
64
|
+
display: block;
|
65
|
+
text-align: center;
|
66
|
+
position: fixed;
|
67
|
+
z-index: 11000;
|
68
|
+
left: 0;
|
69
|
+
top: 0;
|
70
|
+
width: 100%;
|
71
|
+
height: 100%;
|
72
|
+
overflow-x: hidden;
|
73
|
+
overflow-y: auto;
|
74
|
+
background-color: rgba(0, 0, 0, 0.4);
|
75
|
+
|
76
|
+
&.hidden {
|
77
|
+
display: none;
|
78
|
+
}
|
79
|
+
|
80
|
+
&:before {
|
81
|
+
display: inline-block;
|
82
|
+
vertical-align: middle;
|
83
|
+
content: " ";
|
84
|
+
height: 100%;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
tb-notification-widget-popup {
|
89
|
+
box-sizing: content-box;
|
90
|
+
display: inline-block;
|
91
|
+
position: relative;
|
92
|
+
background-color: #fefefe;
|
93
|
+
margin: 0px auto;
|
94
|
+
width: 240px;
|
95
|
+
padding: 20px 35px 24px 35px;
|
96
|
+
box-shadow: 0px 0px 2px 1px rgb(126, 126, 126);
|
97
|
+
border-radius: 5px;
|
98
|
+
vertical-align: middle;
|
99
|
+
|
100
|
+
span.tb-notification-widget-close-icon {
|
101
|
+
line-height: 1;
|
102
|
+
opacity: 1;
|
103
|
+
text-shadow: none;
|
104
|
+
position: absolute;
|
105
|
+
right: 10px;
|
106
|
+
top: 5px;
|
107
|
+
color: #aaa;
|
108
|
+
float: right;
|
109
|
+
font-weight: bold;
|
110
|
+
font-size: 28px;
|
111
|
+
}
|
112
|
+
|
113
|
+
span.tb-notification-widget-close-icon {
|
114
|
+
|
115
|
+
&:hover,
|
116
|
+
&:active {
|
117
|
+
opacity: 1;
|
118
|
+
color: black;
|
119
|
+
text-decoration: none;
|
120
|
+
cursor: pointer;
|
26
121
|
}
|
122
|
+
}
|
123
|
+
}
|
27
124
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
left: 0;
|
34
|
-
top: 0;
|
35
|
-
width: 100%;
|
36
|
-
height: 100%;
|
37
|
-
overflow-x: hidden;
|
38
|
-
overflow-y: auto;
|
39
|
-
background-color: rgba(0, 0, 0, 0.4);
|
40
|
-
&.hidden {
|
41
|
-
display: none;
|
42
|
-
}
|
125
|
+
tb-notification-widget-popup-body,
|
126
|
+
tb-notification-widget-popup-main,
|
127
|
+
tb-notification-widget-image {
|
128
|
+
display: block;
|
129
|
+
}
|
43
130
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
131
|
+
.tb-popup-with-image {
|
132
|
+
min-width: 300px;
|
133
|
+
width: 95%;
|
134
|
+
box-sizing: border-box;
|
135
|
+
font-size: 13px;
|
136
|
+
padding: 0;
|
137
|
+
|
138
|
+
tb-widget-header-container {
|
139
|
+
font-size: 1.5em;
|
140
|
+
line-height: 1.3;
|
141
|
+
margin-bottom: 0.4em;
|
142
|
+
}
|
143
|
+
|
144
|
+
tb-widget-description-container {
|
145
|
+
font-size: 1.1em;
|
146
|
+
margin-bottom: 1.3em;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
.tb-popup-vertical {
|
151
|
+
max-width: 680px;
|
152
|
+
}
|
153
|
+
|
154
|
+
.tb-popup-horizontal {
|
155
|
+
max-width: 780px;
|
156
|
+
}
|
157
|
+
|
158
|
+
|
159
|
+
.tb-notification-widget-popup-body {
|
160
|
+
&_image-align_top,
|
161
|
+
&_image-align_left,
|
162
|
+
&_image-align_right {
|
163
|
+
display: flex;
|
164
|
+
flex-direction: column;
|
165
|
+
|
166
|
+
tb-notification-widget-popup-main {
|
167
|
+
padding: 1em 10% 3em;
|
50
168
|
}
|
51
169
|
|
52
|
-
tb-notification-widget-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
vertical-align: middle;
|
63
|
-
&.pallet-dark {
|
64
|
-
background-color: #282828;
|
65
|
-
}
|
66
|
-
span.tb-notification-widget-close-icon {
|
67
|
-
line-height: 1;
|
68
|
-
opacity: 1;
|
69
|
-
text-shadow: none;
|
70
|
-
position: absolute;
|
71
|
-
top: 2px;
|
72
|
-
right: 5px;
|
73
|
-
color: #aaa;
|
74
|
-
float: right;
|
75
|
-
font-size: 16px;
|
76
|
-
font-weight: bold;
|
77
|
-
}
|
78
|
-
#tb-notification-brand-badge {
|
79
|
-
position: absolute;
|
80
|
-
bottom: 10px;
|
81
|
-
right: 10px;
|
82
|
-
width: 80px;
|
83
|
-
}
|
84
|
-
span.tb-notification-widget-close-icon {
|
85
|
-
&:hover, &:active {
|
86
|
-
opacity: 1;
|
87
|
-
color: black;
|
88
|
-
text-decoration: none;
|
89
|
-
cursor: pointer;
|
90
|
-
}
|
91
|
-
}
|
170
|
+
tb-notification-widget-image {
|
171
|
+
padding: 20% 0;
|
172
|
+
background-size: cover;
|
173
|
+
background-position: center;
|
174
|
+
background-repeat: no-repeat;
|
175
|
+
border-radius: 4px 4px 0px 0px;
|
176
|
+
|
177
|
+
img {
|
178
|
+
display: none;
|
179
|
+
}
|
92
180
|
}
|
181
|
+
}
|
93
182
|
|
94
|
-
|
95
|
-
|
96
|
-
|
183
|
+
&_image-align_none {
|
184
|
+
tb-notification-widget-popup-main {
|
185
|
+
padding: 3em 10% 4em;
|
97
186
|
}
|
98
187
|
|
99
|
-
tb-widget-
|
100
|
-
|
101
|
-
font-size: 14px;
|
102
|
-
font-weight: 600;
|
103
|
-
margin-bottom: 11px;
|
188
|
+
tb-notification-widget-image {
|
189
|
+
display: none;
|
104
190
|
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
tb-notification-widget-icon_body img {
|
197
|
+
width: 24px;
|
198
|
+
margin-bottom: 14px;
|
199
|
+
}
|
200
|
+
|
201
|
+
tb-widget-header-container {
|
202
|
+
display: block;
|
203
|
+
font-size: 14px;
|
204
|
+
font-weight: 600;
|
205
|
+
margin-bottom: 11px;
|
206
|
+
}
|
207
|
+
|
208
|
+
tb-widget-header-line {
|
209
|
+
display: block;
|
210
|
+
margin: 0;
|
211
|
+
padding: 0;
|
212
|
+
}
|
213
|
+
|
214
|
+
tb-widget-description-container {
|
215
|
+
display: block;
|
216
|
+
font-size: 11px;
|
217
|
+
margin-bottom: 23px;
|
218
|
+
}
|
219
|
+
|
220
|
+
tb-widget-description-line {
|
221
|
+
display: block;
|
222
|
+
margin: 5px 0;
|
223
|
+
padding: 0;
|
224
|
+
}
|
225
|
+
|
226
|
+
#tb-notification-brand-badge {
|
227
|
+
font-size: 9px;
|
228
|
+
height: 2.5em;
|
229
|
+
display: inline-flex;
|
230
|
+
align-items: center;
|
231
|
+
font-family: Montserrat, 'Open Sans', 'Droid Sans', Arial, sans-serif;
|
232
|
+
text-decoration: none;
|
233
|
+
|
234
|
+
svg {
|
235
|
+
position: relative;
|
236
|
+
height: 100%;
|
237
|
+
top: 0.24em;
|
238
|
+
margin-left: 0.3em;
|
239
|
+
}
|
240
|
+
|
241
|
+
.st2 {
|
242
|
+
fill: inherit;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
tb-notification-widget-popup,
|
247
|
+
tb-notification-widget-corner-popup {
|
248
|
+
#tb-notification-brand-badge {
|
249
|
+
width: 14em;
|
250
|
+
position: absolute;
|
251
|
+
bottom: 1.2em;
|
252
|
+
right: 1em;
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
/*** Styles for corner-popup ***/
|
257
|
+
.tb-icon-close {
|
258
|
+
fill: #000;
|
259
|
+
}
|
260
|
+
|
261
|
+
tb-notification-widget-corner-popup {
|
262
|
+
text-align: center;
|
263
|
+
position: fixed;
|
264
|
+
font-size: 12px;
|
265
|
+
bottom: 1.7em;
|
266
|
+
right: 1.7em;
|
267
|
+
left: 1.4em;
|
268
|
+
z-index: 999999;
|
269
|
+
}
|
270
|
+
|
271
|
+
tb-widget-corner-popup-button {
|
272
|
+
display: block;
|
273
|
+
position: absolute;
|
274
|
+
right: 0;
|
275
|
+
bottom: 0;
|
276
|
+
border-radius: 50%;
|
277
|
+
width: 4.6em;
|
278
|
+
height: 4.6em;
|
279
|
+
cursor: pointer;
|
280
|
+
box-shadow: 0 0 10px 0 rgba(0, 0, 0, .3);
|
281
|
+
cursor: pointer;
|
282
|
+
|
283
|
+
svg {
|
284
|
+
position: absolute;
|
285
|
+
top: 8%;
|
286
|
+
bottom: 0;
|
287
|
+
right: 0;
|
288
|
+
left: 0;
|
289
|
+
margin: auto;
|
290
|
+
transition: all 0.2s linear;
|
291
|
+
}
|
292
|
+
|
293
|
+
.tb-icon-close {
|
294
|
+
width: 30%;
|
295
|
+
@include hidden;
|
296
|
+
transform: scale(.1);
|
297
|
+
}
|
298
|
+
|
299
|
+
.tb-icon-whatsapp-hollow {
|
300
|
+
width: 80%;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
|
304
|
+
tb-widget-corner-popup-window {
|
305
|
+
display: block;
|
306
|
+
position: fixed;
|
307
|
+
top: 0;
|
308
|
+
left: 0;
|
309
|
+
box-sizing: border-box;
|
310
|
+
width: 100%;
|
311
|
+
height: 100%;
|
312
|
+
padding: 100px 35px 40px;
|
313
|
+
@include hidden;
|
314
|
+
background: #fff;
|
315
|
+
overflow: hidden;
|
316
|
+
}
|
317
|
+
|
318
|
+
tb-widget-corner-popup-tooltip-container {
|
319
|
+
$color-tooltip-bg: rgba(0, 0, 0, 0.685);
|
320
|
+
|
321
|
+
display: none;
|
322
|
+
position: absolute;
|
323
|
+
min-height: 4.6em;
|
324
|
+
bottom: 0px;
|
325
|
+
right: 5em;
|
326
|
+
align-items: center;
|
327
|
+
|
328
|
+
tb-widget-corner-popup-tooltip {
|
329
|
+
display: inline-block;
|
330
|
+
white-space: pre-line;;
|
331
|
+
line-height: 1.5;
|
332
|
+
font-family: Montserrat, 'Open Sans', 'Droid Sans', Arial, sans-serif;
|
333
|
+
border-radius: 5px;
|
334
|
+
background: $color-tooltip-bg;
|
335
|
+
color: white;
|
336
|
+
padding: 0.8em;
|
337
|
+
}
|
338
|
+
|
339
|
+
tb-widget-corner-popup-tooltip-arrow {
|
340
|
+
$border-width: 0.77em;
|
341
|
+
display: block;
|
342
|
+
border-top: $border-width solid transparent;
|
343
|
+
border-bottom: $border-width solid transparent;
|
344
|
+
border-left: $border-width solid $color-tooltip-bg;
|
345
|
+
align-self: flex-end;
|
346
|
+
margin-bottom: 1.538em;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
.tb-widget-corner-popup-tooltip-container_show-on-mobile {
|
351
|
+
display: flex;
|
352
|
+
}
|
353
|
+
|
354
|
+
tb-widget-corner-popup-window,
|
355
|
+
tb-widget-corner-popup-tooltip-container,
|
356
|
+
tb-widget-corner-popup-button {
|
357
|
+
transition: visibility 0.2s linear, opacity 0.2s linear;
|
358
|
+
}
|
359
|
+
|
360
|
+
.tb-fullscreen-close-rectangle {
|
361
|
+
position: fixed;
|
362
|
+
display: flex;
|
363
|
+
justify-content: flex-end;
|
364
|
+
top: 0;
|
365
|
+
left: 0;
|
366
|
+
width: 100%;
|
367
|
+
background: #000000;
|
368
|
+
height: 50px;
|
369
|
+
|
370
|
+
.tb-icon-close {
|
371
|
+
box-sizing: border-box;
|
372
|
+
height: 100%;
|
373
|
+
padding: 17px 15px;
|
374
|
+
fill: #fff;
|
375
|
+
}
|
376
|
+
}
|
377
|
+
|
378
|
+
tb-notification-widget-corner-popup.tb-opened-corner-popup {
|
379
|
+
tb-widget-corner-popup-window {
|
380
|
+
@include visible;
|
381
|
+
}
|
382
|
+
|
383
|
+
tb-widget-corner-popup-button {
|
384
|
+
@include hidden;
|
385
|
+
}
|
386
|
+
|
387
|
+
tb-widget-corner-popup-tooltip-container {
|
388
|
+
@include hidden;
|
389
|
+
}
|
390
|
+
}
|
391
|
+
|
392
|
+
|
393
|
+
/**** Small devices (portrait tablets and large phones, 600px and up) ****/
|
394
|
+
@media only screen and (min-width: 600px) {
|
395
|
+
.tb-popup-with-image {
|
396
|
+
font-size: 15px;
|
397
|
+
}
|
105
398
|
|
106
|
-
|
107
|
-
|
108
|
-
|
399
|
+
.tb-notification-widget-popup-body {
|
400
|
+
|
401
|
+
&_image-align_left,
|
402
|
+
&_image-align_right {
|
403
|
+
padding: 2.5em 2em 4em;
|
404
|
+
align-items: center;
|
405
|
+
|
406
|
+
tb-notification-widget-popup-main {
|
407
|
+
padding: 0;
|
408
|
+
}
|
409
|
+
|
410
|
+
tb-notification-widget-image {
|
411
|
+
background: none !important;
|
412
|
+
max-width: 280px;
|
413
|
+
width: 100%;
|
414
|
+
display: flex;
|
415
|
+
flex-shrink: 1;
|
109
416
|
padding: 0;
|
417
|
+
|
418
|
+
img {
|
419
|
+
width: 100%;
|
420
|
+
display: block;
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
|
+
|
425
|
+
&_image-align_left {
|
426
|
+
flex-direction: row;
|
427
|
+
|
428
|
+
tb-notification-widget-image {
|
429
|
+
margin-right: 2em;
|
430
|
+
}
|
110
431
|
}
|
111
432
|
|
112
|
-
|
113
|
-
|
433
|
+
&_image-align_right {
|
434
|
+
flex-direction: row-reverse;
|
435
|
+
|
436
|
+
tb-notification-widget-image {
|
437
|
+
margin-left: 3em;
|
438
|
+
}
|
114
439
|
}
|
440
|
+
}
|
441
|
+
}
|
115
442
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
443
|
+
|
444
|
+
|
445
|
+
/**** styles for non-mobile ****/
|
446
|
+
@media only screen and (min-device-width: 736px) {
|
447
|
+
tb-notification-widget-popup {
|
448
|
+
width: 525px;
|
449
|
+
padding: 42px 80px 72px 80px;
|
450
|
+
|
451
|
+
&.wahunter-popup {
|
452
|
+
width: 95%;
|
453
|
+
padding: 0;
|
120
454
|
}
|
455
|
+
}
|
121
456
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
457
|
+
.tb-popup-with-image {
|
458
|
+
font-size: 16px;
|
459
|
+
}
|
460
|
+
|
461
|
+
tb-widget-header-container {
|
462
|
+
font-size: 28px;
|
463
|
+
margin-bottom: 24px;
|
464
|
+
}
|
465
|
+
|
466
|
+
tb-notification-widget-icon_body img {
|
467
|
+
width: 48px;
|
468
|
+
margin-bottom: 30px;
|
469
|
+
}
|
470
|
+
|
471
|
+
tb-widget-description-container {
|
472
|
+
font-size: 22px;
|
473
|
+
margin-bottom: 40px;
|
474
|
+
}
|
475
|
+
|
476
|
+
tb-notification-widget-popup {
|
477
|
+
#tb-notification-brand-badge {
|
478
|
+
font-size: 12px;
|
126
479
|
}
|
480
|
+
}
|
127
481
|
|
128
|
-
|
129
|
-
|
482
|
+
tb-widget-corner-popup-window {
|
483
|
+
position: absolute;
|
484
|
+
right: 0px;
|
485
|
+
bottom: 6em;
|
486
|
+
top: initial;
|
487
|
+
left: initial;
|
488
|
+
width: 360px;
|
489
|
+
width: 360px;
|
490
|
+
height: auto;
|
491
|
+
box-shadow: 0 0 20px 0 rgba(0,0,0,0.4);
|
492
|
+
padding: 30px 35px 50px;
|
493
|
+
border-radius: 5px;
|
494
|
+
}
|
495
|
+
|
496
|
+
.tb-fullscreen-close-rectangle {
|
497
|
+
display: none;
|
498
|
+
}
|
499
|
+
|
500
|
+
tb-notification-widget-corner-popup {
|
501
|
+
font-size: 13px;
|
502
|
+
}
|
503
|
+
|
504
|
+
tb-notification-widget-corner-popup.tb-opened-corner-popup {
|
505
|
+
tb-widget-corner-popup-window {
|
506
|
+
@include visible;
|
130
507
|
}
|
131
508
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
margin-bottom: 30px;
|
146
|
-
}
|
147
|
-
tb-widget-description-container {
|
148
|
-
font-size: 22px;
|
149
|
-
margin-bottom: 40px;
|
150
|
-
}
|
151
|
-
tb-notification-widget-popup {
|
152
|
-
#tb-notification-brand-badge {
|
153
|
-
bottom: 20px;
|
154
|
-
right: 20px;
|
155
|
-
width: 160px;
|
156
|
-
}
|
157
|
-
span.tb-notification-widget-close-icon {
|
158
|
-
font-size: 28px;
|
159
|
-
right: 10px;
|
160
|
-
top: 5px;
|
161
|
-
}
|
162
|
-
}
|
509
|
+
tb-widget-corner-popup-button {
|
510
|
+
background: #fff !important;
|
511
|
+
@include visible;
|
512
|
+
|
513
|
+
.tb-icon-close {
|
514
|
+
@include visible;
|
515
|
+
transform: rotate(0deg) scale(1);
|
516
|
+
}
|
517
|
+
|
518
|
+
.tb-icon-whatsapp-hollow {
|
519
|
+
@include hidden;
|
520
|
+
transform: scale(.1);
|
521
|
+
}
|
163
522
|
}
|
523
|
+
}
|
524
|
+
|
525
|
+
tb-widget-corner-popup-tooltip-container {
|
526
|
+
display: flex;
|
527
|
+
}
|
164
528
|
}
|
529
|
+
}
|
165
530
|
}
|
166
531
|
|
532
|
+
|
167
533
|
.vk-app-link {
|
168
534
|
align-items: center;
|
169
535
|
display: grid;
|
170
536
|
grid-column-gap: 0.25em;
|
171
537
|
grid-template-columns: 3em 184px;
|
172
|
-
justify-content: center;
|
173
538
|
}
|
174
539
|
|
175
|
-
.vk-app-link
|
176
|
-
background: #5181b8;
|
540
|
+
.vk-app-link>tb-notification-button__text {
|
177
541
|
border-radius: 0.15em;
|
178
|
-
color: white;
|
179
542
|
padding: 0.25em;
|
180
543
|
}
|