sempli-website-lib 5.0.1 → 5.0.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 +25 -25
- package/assets/fonts/Lato/Lato-Black.ttf +0 -0
- package/assets/fonts/Lato/Lato-BlackItalic.ttf +0 -0
- package/assets/fonts/Lato/Lato-Bold.ttf +0 -0
- package/assets/fonts/Lato/Lato-BoldItalic.ttf +0 -0
- package/assets/fonts/Lato/Lato-Hairline.ttf +0 -0
- package/assets/fonts/Lato/Lato-HairlineItalic.ttf +0 -0
- package/assets/fonts/Lato/Lato-Italic.ttf +0 -0
- package/assets/fonts/Lato/Lato-Light.ttf +0 -0
- package/assets/fonts/Lato/Lato-LightItalic.ttf +0 -0
- package/assets/fonts/Lato/Lato-Regular.ttf +0 -0
- package/assets/fonts/Lato/OFL.txt +0 -0
- package/assets/interface/documents.svg +136 -136
- package/assets/interface/icons/alert-success.svg +17 -17
- package/assets/interface/icons/arrow-left.svg +8 -8
- package/assets/interface/icons/arrow-right-02.svg +10 -10
- package/assets/interface/icons/arrow-right.svg +8 -8
- package/assets/interface/icons/basic-check-magenta.svg +1 -1
- package/assets/interface/icons/bulb-example.svg +20 -20
- package/assets/interface/icons/bulb-tip.svg +32 -32
- package/assets/interface/icons/check-green-circle-large.svg +23 -23
- package/assets/interface/icons/check-green.svg +16 -16
- package/assets/interface/icons/check-purple.svg +20 -20
- package/assets/interface/icons/cloud-download.svg +20 -20
- package/assets/interface/icons/document-pdf.svg +13 -13
- package/assets/interface/icons/document-review.svg +20 -20
- package/assets/interface/icons/document-status-approved.svg +21 -21
- package/assets/interface/icons/document-status-empty.svg +18 -18
- package/assets/interface/icons/document-status-error.svg +23 -23
- package/assets/interface/icons/document-status-success.svg +19 -19
- package/assets/interface/icons/eye-action.svg +1 -1
- package/assets/interface/icons/hand-stop.svg +19 -19
- package/assets/interface/icons/happy-01.svg +0 -0
- package/assets/interface/icons/happy-02.svg +0 -0
- package/assets/interface/icons/happy-03.svg +0 -0
- package/assets/interface/icons/happy-04.svg +0 -0
- package/assets/interface/icons/happy-05.svg +0 -0
- package/assets/interface/icons/heart.svg +13 -13
- package/assets/interface/icons/intercom-messenger-icon.svg +1 -1
- package/assets/interface/icons/lock-icon.svg +1 -1
- package/assets/interface/icons/mail-circle.svg +32 -32
- package/assets/interface/icons/mail-edit.svg +20 -20
- package/assets/interface/icons/pen-edit.svg +22 -22
- package/assets/interface/icons/plus-circle.svg +22 -22
- package/assets/interface/icons/question-sign.svg +10 -10
- package/assets/interface/icons/shield.svg +31 -31
- package/assets/interface/icons/signature-modal-approved.svg +17 -17
- package/assets/interface/icons/signature-modal-waiting.svg +23 -23
- package/assets/interface/icons/signature-pending.svg +25 -25
- package/assets/interface/icons/signature-step-active.svg +19 -19
- package/assets/interface/icons/signature-step-completed.svg +19 -19
- package/assets/interface/icons/signature-step-default.svg +19 -19
- package/assets/interface/icons/skull.svg +23 -23
- package/assets/interface/icons/step-incomplete.svg +18 -18
- package/assets/interface/icons/trash-delete.svg +20 -20
- package/assets/interface/icons/warning-sign.svg +22 -22
- package/assets/interface/icons/x-circle.svg +14 -14
- package/esm2020/lib/sempli-website-lib.module.mjs +16 -16
- package/esm2020/public-api.mjs +5 -5
- package/esm2020/sempli-website-lib.mjs +4 -4
- package/fesm2015/sempli-website-lib.mjs +16 -16
- package/fesm2015/sempli-website-lib.mjs.map +1 -1
- package/fesm2020/sempli-website-lib.mjs +16 -16
- package/fesm2020/sempli-website-lib.mjs.map +1 -1
- package/lib/sempli-website-lib.module.d.ts +6 -6
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/sempli-website-lib.d.ts +5 -5
- package/styles/_main.scss +2 -2
- package/styles/master-app.scss +6759 -6760
- package/styles/master-landing.scss +7619 -7620
- package/styles/modules/_functions.scss +37 -37
- package/styles/modules/_mixins.scss +66 -66
- package/styles/modules/_variables.scss +54 -54
- package/styles/partials/_base.scss +281 -281
- package/styles/partials/_buttons.scss +401 -402
- package/styles/partials/_fonts.scss +83 -83
- package/styles/partials/_forms.scss +837 -837
- package/styles/partials/_icons.scss +12 -12
- package/styles/partials/_layout.scss +148 -148
- package/styles/partials/_modals.scss +256 -256
- package/styles/partials/_panels.scss +51 -51
- package/styles/partials/_progress-bars.scss +60 -60
- package/styles/partials/_tooltips.scss +128 -128
- package/styles/partials/_videos.scss +32 -32
- package/styles/partials/animations.scss +122 -122
- package/styles/partials/app/_blocks.scss +101 -101
- package/styles/partials/app/_cards.scss +155 -155
- package/styles/partials/app/_general.scss +1199 -1199
- package/styles/partials/app/_header.scss +723 -723
- package/styles/partials/app/_layout.scss +227 -227
- package/styles/partials/app/_my-account.scss +203 -203
- package/styles/partials/app/_my-loan-applications.scss +165 -165
- package/styles/partials/app/_my-products.scss +1039 -1039
- package/styles/partials/app/_signatures.scss +16 -16
- package/styles/partials/landing/_footer.scss +70 -70
- package/styles/partials/landing/_general.scss +1375 -1375
- package/styles/partials/landing/_header.scss +478 -478
- package/styles/partials/landing/_hero-wrappers.scss +616 -616
- package/styles/vendor/_modules_export.scss +163 -163
- package/styles/vendor/_normalize.scss +341 -341
|
@@ -1,402 +1,401 @@
|
|
|
1
|
-
/*#############################################################################
|
|
2
|
-
# BUTTONS
|
|
3
|
-
#############################################################################*/
|
|
4
|
-
|
|
5
|
-
.button {
|
|
6
|
-
display: inline-block;
|
|
7
|
-
background-color: $color-primary;
|
|
8
|
-
color: #fff;
|
|
9
|
-
font-weight: 900;
|
|
10
|
-
padding: 10px 20px;
|
|
11
|
-
margin: 0 10px 10px 0;
|
|
12
|
-
@include border-radius(4px);
|
|
13
|
-
|
|
14
|
-
&:hover {
|
|
15
|
-
background-color: $color-primary-dark;
|
|
16
|
-
color: white;
|
|
17
|
-
text-decoration: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// State Variables
|
|
21
|
-
$transparentizeAmount: 0.9;
|
|
22
|
-
$buttonStates: (
|
|
23
|
-
secondary: (
|
|
24
|
-
color: $color-secondary,
|
|
25
|
-
colorDark: $color-secondary-dark,
|
|
26
|
-
colorTransparent: transparentize($color-secondary, $transparentizeAmount),
|
|
27
|
-
textColor: #ffffff
|
|
28
|
-
),
|
|
29
|
-
success: (
|
|
30
|
-
color: $color-success,
|
|
31
|
-
colorDark: $color-success-dark,
|
|
32
|
-
colorTransparent: transparentize($color-success, $transparentizeAmount),
|
|
33
|
-
textColor: #ffffff
|
|
34
|
-
),
|
|
35
|
-
alert: (
|
|
36
|
-
color: $color-alert,
|
|
37
|
-
colorDark: $color-alert-dark,
|
|
38
|
-
colorTransparent: transparentize($color-alert, $transparentizeAmount),
|
|
39
|
-
textColor: #ffffff
|
|
40
|
-
),
|
|
41
|
-
warning: (
|
|
42
|
-
color: $color-warning,
|
|
43
|
-
colorDark: $color-warning-dark,
|
|
44
|
-
colorTransparent: transparentize($color-warning, $transparentizeAmount),
|
|
45
|
-
textColor: $color-text
|
|
46
|
-
)
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
// STATES
|
|
50
|
-
@each $state, $stateProp in $buttonStates {
|
|
51
|
-
&.#{$state} {
|
|
52
|
-
background-color: #{map-get($stateProp, "color")};
|
|
53
|
-
color: #{map-get($stateProp, "textColor")};
|
|
54
|
-
|
|
55
|
-
&:hover {
|
|
56
|
-
background-color: #{map-get($stateProp, "colorDark")};
|
|
57
|
-
color: #fff;
|
|
58
|
-
text-decoration: none;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// OUTLINE BUTTONS
|
|
64
|
-
&.outline {
|
|
65
|
-
background: transparent;
|
|
66
|
-
color: $color-primary;
|
|
67
|
-
@include box-shadow(0 0 0 2px $color-primary inset);
|
|
68
|
-
|
|
69
|
-
&:hover {
|
|
70
|
-
background: transparentize($color-primary, $transparentizeAmount);
|
|
71
|
-
color: $color-primary-dark;
|
|
72
|
-
@include box-shadow(0 0 0 2px $color-primary-dark inset);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// PRIMARY STATES
|
|
76
|
-
@each $state, $stateProp in $buttonStates {
|
|
77
|
-
&.#{$state} {
|
|
78
|
-
background: transparent;
|
|
79
|
-
color: #{map-get($stateProp, "color")};
|
|
80
|
-
@include box-shadow(0 0 0 2px #{map-get($stateProp, "color")} inset);
|
|
81
|
-
|
|
82
|
-
&:hover {
|
|
83
|
-
background: #{map-get($stateProp, "colorTransparent")};
|
|
84
|
-
color: #{map-get($stateProp, "colorDark")};
|
|
85
|
-
@include box-shadow(0 0 0 2px #{map-get($stateProp, "colorDark")} inset);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// Small Size
|
|
92
|
-
&.small {
|
|
93
|
-
font-size: rem-calc(14px);
|
|
94
|
-
padding: 5px 10px
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Disabled State
|
|
98
|
-
&.is-disabled {
|
|
99
|
-
cursor: not-allowed;
|
|
100
|
-
pointer-events: none;
|
|
101
|
-
opacity: 0.3;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
a.cursor-pointer,
|
|
106
|
-
button.cursor-pointer {
|
|
107
|
-
cursor: pointer;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
.accordion-button-container {
|
|
112
|
-
.accordion-label {
|
|
113
|
-
cursor:pointer;
|
|
114
|
-
display:block;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&:first-of-type{
|
|
118
|
-
border-top-left-radius:20px;
|
|
119
|
-
border-top-right-radius:20px;
|
|
120
|
-
}
|
|
121
|
-
&:last-of-type{
|
|
122
|
-
border-bottom-left-radius:20px;
|
|
123
|
-
border-bottom-right-radius:20px;
|
|
124
|
-
border-bottom: none;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.accordion-content{
|
|
128
|
-
/* Height animation:
|
|
129
|
-
only really works well if the height is close to content - too high and the animation still goes to the max-height number, messing up the timing
|
|
130
|
-
For widely variable height content, best not to animate. Switch display attribute instead */
|
|
131
|
-
max-height:0;
|
|
132
|
-
overflow: hidden;
|
|
133
|
-
transition : max-height 0.2s;
|
|
134
|
-
background-size: 260px;
|
|
135
|
-
background-repeat: no-repeat;
|
|
136
|
-
background-position: center;
|
|
137
|
-
}
|
|
138
|
-
.accordion-control {
|
|
139
|
-
display:none;
|
|
140
|
-
+ label{
|
|
141
|
-
position: relative;
|
|
142
|
-
height: 40px;
|
|
143
|
-
display: block;
|
|
144
|
-
font-family: arial;
|
|
145
|
-
font-size: 1em;
|
|
146
|
-
line-height: 1em;
|
|
147
|
-
z-index: 0;
|
|
148
|
-
display: flex;
|
|
149
|
-
align-items: center;
|
|
150
|
-
|
|
151
|
-
&:before,
|
|
152
|
-
&:after {
|
|
153
|
-
content : '';
|
|
154
|
-
position : absolute;
|
|
155
|
-
}
|
|
156
|
-
&:before {
|
|
157
|
-
content: attr(data-label-closed);
|
|
158
|
-
display: contents;
|
|
159
|
-
}
|
|
160
|
-
&::after {
|
|
161
|
-
right: 0;
|
|
162
|
-
content: "❯";
|
|
163
|
-
margin-right: 8px;
|
|
164
|
-
height: 1em;
|
|
165
|
-
text-align: center;
|
|
166
|
-
transition: all 0.35s;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&:checked {
|
|
171
|
-
+ label{
|
|
172
|
-
cursor:pointer;
|
|
173
|
-
&:before{
|
|
174
|
-
content: attr(data-label-open);
|
|
175
|
-
}
|
|
176
|
-
&:after{
|
|
177
|
-
transform: rotate(90deg);
|
|
178
|
-
}
|
|
179
|
-
+ .accordion-content{
|
|
180
|
-
max-height: fit-content;
|
|
181
|
-
padding-right: 30px;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
&[type="radio"]{
|
|
186
|
-
+ label{
|
|
187
|
-
&:before,
|
|
188
|
-
&:after{
|
|
189
|
-
content:'';
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
&:checked{
|
|
193
|
-
+ label{
|
|
194
|
-
cursor:default;
|
|
195
|
-
&:before{
|
|
196
|
-
border-left-color:#999;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.whatsapp-button-float {
|
|
205
|
-
position: fixed;
|
|
206
|
-
width: 60px;
|
|
207
|
-
height: 60px;
|
|
208
|
-
bottom: 120px;
|
|
209
|
-
right: 20px;
|
|
210
|
-
background-color: #25d366;
|
|
211
|
-
color: #FFF;
|
|
212
|
-
border-radius: 50px;
|
|
213
|
-
text-align: center;
|
|
214
|
-
z-index: 1000;
|
|
215
|
-
display: flex;
|
|
216
|
-
justify-content: center;
|
|
217
|
-
align-items: center;
|
|
218
|
-
cursor: pointer;
|
|
219
|
-
|
|
220
|
-
.icon {
|
|
221
|
-
display: flex;
|
|
222
|
-
max-width: 30px;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.container-floating {
|
|
227
|
-
display: none;
|
|
228
|
-
}
|
|
229
|
-
@include responsive-max($breakpoint-small) {
|
|
230
|
-
.whatsapp-button-float {
|
|
231
|
-
display: none;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.container-floating {
|
|
235
|
-
display: block;
|
|
236
|
-
position: fixed;
|
|
237
|
-
width: 70px;
|
|
238
|
-
height: 70px;
|
|
239
|
-
bottom: 30px;
|
|
240
|
-
right: 30px;
|
|
241
|
-
z-index: 2000;
|
|
242
|
-
|
|
243
|
-
a {
|
|
244
|
-
line-height: 0;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.action-button {
|
|
248
|
-
width: 40px;
|
|
249
|
-
height: 40px;
|
|
250
|
-
border-radius: 50%;
|
|
251
|
-
position: fixed;
|
|
252
|
-
z-index: 300;
|
|
253
|
-
transform: scale(0);
|
|
254
|
-
cursor: pointer;
|
|
255
|
-
display: flex;
|
|
256
|
-
justify-content: center;
|
|
257
|
-
align-items: center;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
&.whatsapp-button {
|
|
261
|
-
right: 40px;
|
|
262
|
-
bottom: 180px;
|
|
263
|
-
animation-delay: 0.15s;
|
|
264
|
-
animation: float-button-out 0.15s linear;
|
|
265
|
-
animation-fill-mode: forwards;
|
|
266
|
-
background-color: #25d366;
|
|
267
|
-
background-repeat: no-repeat;
|
|
268
|
-
background-image: url("/assets/swl/interface/icons/whatsapp-icon.png");
|
|
269
|
-
background-size: 20px;
|
|
270
|
-
background-position: center;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
&.intercom-button {
|
|
274
|
-
right: 40px;
|
|
275
|
-
bottom: 120px;
|
|
276
|
-
animation-delay: 0.2s;
|
|
277
|
-
animation: float-button-out 0.3s linear;
|
|
278
|
-
animation-fill-mode: forwards;
|
|
279
|
-
background-color: rgb(48, 71, 236);
|
|
280
|
-
background-repeat: no-repeat;
|
|
281
|
-
background-image: url("/assets/swl/interface/icons/intercom-messenger-icon.svg");
|
|
282
|
-
background-size: 20px;
|
|
283
|
-
background-position: center;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.floating-button {
|
|
288
|
-
width: 55px;
|
|
289
|
-
height: 55px;
|
|
290
|
-
border-radius: 50%;
|
|
291
|
-
background: $color-primary;
|
|
292
|
-
position: fixed;
|
|
293
|
-
bottom: 30px;
|
|
294
|
-
right: 30px;
|
|
295
|
-
cursor: pointer;
|
|
296
|
-
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
|
|
297
|
-
|
|
298
|
-
.active-action-button {
|
|
299
|
-
color: white;
|
|
300
|
-
position: absolute;
|
|
301
|
-
top: 0;
|
|
302
|
-
display: block;
|
|
303
|
-
bottom: 0;
|
|
304
|
-
left: 0;
|
|
305
|
-
right: 0;
|
|
306
|
-
opacity: 0;
|
|
307
|
-
text-align: center;
|
|
308
|
-
padding: 0;
|
|
309
|
-
margin: 0;
|
|
310
|
-
line-height: 55px;
|
|
311
|
-
font-size: 38px;
|
|
312
|
-
font-weight: 300;
|
|
313
|
-
animation: float-action-button-out 0.1s;
|
|
314
|
-
transition: all 0.1s;
|
|
315
|
-
background-repeat: no-repeat;
|
|
316
|
-
background-image: url("/assets/swl/interface/icons/chevron-up-icon.svg");
|
|
317
|
-
width: 100%;
|
|
318
|
-
height: 100%;
|
|
319
|
-
background-position: center;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.closed-action-button {
|
|
323
|
-
position: absolute;
|
|
324
|
-
top: 0;
|
|
325
|
-
display: block;
|
|
326
|
-
bottom: 0;
|
|
327
|
-
left: 0;
|
|
328
|
-
right: 0;
|
|
329
|
-
padding: 0;
|
|
330
|
-
margin: auto;
|
|
331
|
-
line-height: 65px;
|
|
332
|
-
animation: float-action-disable 0.2s;
|
|
333
|
-
transition: all 0.2s;
|
|
334
|
-
background-repeat: no-repeat;
|
|
335
|
-
background-image: url("/assets/swl/interface/icons/message-square-icon.svg");
|
|
336
|
-
width: 100%;
|
|
337
|
-
height: 100%;
|
|
338
|
-
background-position: center;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
&:hover {
|
|
343
|
-
height: 400px;
|
|
344
|
-
width: 90px;
|
|
345
|
-
padding: 30px;
|
|
346
|
-
|
|
347
|
-
.floating-button {
|
|
348
|
-
.active-action-button {
|
|
349
|
-
animation: float-action-active 0.2s;
|
|
350
|
-
animation-delay: 0.1s;
|
|
351
|
-
animation-fill-mode: forwards;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.closed-action-button {
|
|
355
|
-
animation: float-action-button-in 0.15s linear;
|
|
356
|
-
animation-delay: 0.1s;
|
|
357
|
-
animation-fill-mode: forwards;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.action-button {
|
|
362
|
-
animation: float-button-in 0.1s linear;
|
|
363
|
-
animation-fill-mode: forwards;
|
|
364
|
-
|
|
365
|
-
&.whatsapp-button {
|
|
366
|
-
animation-delay: 0.08s;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
&.header {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
}
|
|
1
|
+
/*#############################################################################
|
|
2
|
+
# BUTTONS
|
|
3
|
+
#############################################################################*/
|
|
4
|
+
|
|
5
|
+
.button {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
background-color: $color-primary;
|
|
8
|
+
color: #fff;
|
|
9
|
+
font-weight: 900;
|
|
10
|
+
padding: 10px 20px;
|
|
11
|
+
margin: 0 10px 10px 0;
|
|
12
|
+
@include border-radius(4px);
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
background-color: $color-primary-dark;
|
|
16
|
+
color: white;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// State Variables
|
|
21
|
+
$transparentizeAmount: 0.9;
|
|
22
|
+
$buttonStates: (
|
|
23
|
+
secondary: (
|
|
24
|
+
color: $color-secondary,
|
|
25
|
+
colorDark: $color-secondary-dark,
|
|
26
|
+
colorTransparent: transparentize($color-secondary, $transparentizeAmount),
|
|
27
|
+
textColor: #ffffff
|
|
28
|
+
),
|
|
29
|
+
success: (
|
|
30
|
+
color: $color-success,
|
|
31
|
+
colorDark: $color-success-dark,
|
|
32
|
+
colorTransparent: transparentize($color-success, $transparentizeAmount),
|
|
33
|
+
textColor: #ffffff
|
|
34
|
+
),
|
|
35
|
+
alert: (
|
|
36
|
+
color: $color-alert,
|
|
37
|
+
colorDark: $color-alert-dark,
|
|
38
|
+
colorTransparent: transparentize($color-alert, $transparentizeAmount),
|
|
39
|
+
textColor: #ffffff
|
|
40
|
+
),
|
|
41
|
+
warning: (
|
|
42
|
+
color: $color-warning,
|
|
43
|
+
colorDark: $color-warning-dark,
|
|
44
|
+
colorTransparent: transparentize($color-warning, $transparentizeAmount),
|
|
45
|
+
textColor: $color-text
|
|
46
|
+
)
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
// STATES
|
|
50
|
+
@each $state, $stateProp in $buttonStates {
|
|
51
|
+
&.#{$state} {
|
|
52
|
+
background-color: #{map-get($stateProp, "color")};
|
|
53
|
+
color: #{map-get($stateProp, "textColor")};
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: #{map-get($stateProp, "colorDark")};
|
|
57
|
+
color: #fff;
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// OUTLINE BUTTONS
|
|
64
|
+
&.outline {
|
|
65
|
+
background: transparent;
|
|
66
|
+
color: $color-primary;
|
|
67
|
+
@include box-shadow(0 0 0 2px $color-primary inset);
|
|
68
|
+
|
|
69
|
+
&:hover {
|
|
70
|
+
background: transparentize($color-primary, $transparentizeAmount);
|
|
71
|
+
color: $color-primary-dark;
|
|
72
|
+
@include box-shadow(0 0 0 2px $color-primary-dark inset);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// PRIMARY STATES
|
|
76
|
+
@each $state, $stateProp in $buttonStates {
|
|
77
|
+
&.#{$state} {
|
|
78
|
+
background: transparent;
|
|
79
|
+
color: #{map-get($stateProp, "color")};
|
|
80
|
+
@include box-shadow(0 0 0 2px #{map-get($stateProp, "color")} inset);
|
|
81
|
+
|
|
82
|
+
&:hover {
|
|
83
|
+
background: #{map-get($stateProp, "colorTransparent")};
|
|
84
|
+
color: #{map-get($stateProp, "colorDark")};
|
|
85
|
+
@include box-shadow(0 0 0 2px #{map-get($stateProp, "colorDark")} inset);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Small Size
|
|
92
|
+
&.small {
|
|
93
|
+
font-size: rem-calc(14px);
|
|
94
|
+
padding: 5px 10px
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Disabled State
|
|
98
|
+
&.is-disabled {
|
|
99
|
+
cursor: not-allowed;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
opacity: 0.3;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
a.cursor-pointer,
|
|
106
|
+
button.cursor-pointer {
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
.accordion-button-container {
|
|
112
|
+
.accordion-label {
|
|
113
|
+
cursor:pointer;
|
|
114
|
+
display:block;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:first-of-type{
|
|
118
|
+
border-top-left-radius:20px;
|
|
119
|
+
border-top-right-radius:20px;
|
|
120
|
+
}
|
|
121
|
+
&:last-of-type{
|
|
122
|
+
border-bottom-left-radius:20px;
|
|
123
|
+
border-bottom-right-radius:20px;
|
|
124
|
+
border-bottom: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.accordion-content{
|
|
128
|
+
/* Height animation:
|
|
129
|
+
only really works well if the height is close to content - too high and the animation still goes to the max-height number, messing up the timing
|
|
130
|
+
For widely variable height content, best not to animate. Switch display attribute instead */
|
|
131
|
+
max-height:0;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
transition : max-height 0.2s;
|
|
134
|
+
background-size: 260px;
|
|
135
|
+
background-repeat: no-repeat;
|
|
136
|
+
background-position: center;
|
|
137
|
+
}
|
|
138
|
+
.accordion-control {
|
|
139
|
+
display:none;
|
|
140
|
+
+ label{
|
|
141
|
+
position: relative;
|
|
142
|
+
height: 40px;
|
|
143
|
+
display: block;
|
|
144
|
+
font-family: arial;
|
|
145
|
+
font-size: 1em;
|
|
146
|
+
line-height: 1em;
|
|
147
|
+
z-index: 0;
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
|
|
151
|
+
&:before,
|
|
152
|
+
&:after {
|
|
153
|
+
content : '';
|
|
154
|
+
position : absolute;
|
|
155
|
+
}
|
|
156
|
+
&:before {
|
|
157
|
+
content: attr(data-label-closed);
|
|
158
|
+
display: contents;
|
|
159
|
+
}
|
|
160
|
+
&::after {
|
|
161
|
+
right: 0;
|
|
162
|
+
content: "❯";
|
|
163
|
+
margin-right: 8px;
|
|
164
|
+
height: 1em;
|
|
165
|
+
text-align: center;
|
|
166
|
+
transition: all 0.35s;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&:checked {
|
|
171
|
+
+ label{
|
|
172
|
+
cursor:pointer;
|
|
173
|
+
&:before{
|
|
174
|
+
content: attr(data-label-open);
|
|
175
|
+
}
|
|
176
|
+
&:after{
|
|
177
|
+
transform: rotate(90deg);
|
|
178
|
+
}
|
|
179
|
+
+ .accordion-content{
|
|
180
|
+
max-height: fit-content;
|
|
181
|
+
padding-right: 30px;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
&[type="radio"]{
|
|
186
|
+
+ label{
|
|
187
|
+
&:before,
|
|
188
|
+
&:after{
|
|
189
|
+
content:'';
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
&:checked{
|
|
193
|
+
+ label{
|
|
194
|
+
cursor:default;
|
|
195
|
+
&:before{
|
|
196
|
+
border-left-color:#999;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.whatsapp-button-float {
|
|
205
|
+
position: fixed;
|
|
206
|
+
width: 60px;
|
|
207
|
+
height: 60px;
|
|
208
|
+
bottom: 120px;
|
|
209
|
+
right: 20px;
|
|
210
|
+
background-color: #25d366;
|
|
211
|
+
color: #FFF;
|
|
212
|
+
border-radius: 50px;
|
|
213
|
+
text-align: center;
|
|
214
|
+
z-index: 1000;
|
|
215
|
+
display: flex;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
align-items: center;
|
|
218
|
+
cursor: pointer;
|
|
219
|
+
|
|
220
|
+
.icon {
|
|
221
|
+
display: flex;
|
|
222
|
+
max-width: 30px;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.container-floating {
|
|
227
|
+
display: none;
|
|
228
|
+
}
|
|
229
|
+
@include responsive-max($breakpoint-small) {
|
|
230
|
+
.whatsapp-button-float {
|
|
231
|
+
display: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.container-floating {
|
|
235
|
+
display: block;
|
|
236
|
+
position: fixed;
|
|
237
|
+
width: 70px;
|
|
238
|
+
height: 70px;
|
|
239
|
+
bottom: 30px;
|
|
240
|
+
right: 30px;
|
|
241
|
+
z-index: 2000;
|
|
242
|
+
|
|
243
|
+
a {
|
|
244
|
+
line-height: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.action-button {
|
|
248
|
+
width: 40px;
|
|
249
|
+
height: 40px;
|
|
250
|
+
border-radius: 50%;
|
|
251
|
+
position: fixed;
|
|
252
|
+
z-index: 300;
|
|
253
|
+
transform: scale(0);
|
|
254
|
+
cursor: pointer;
|
|
255
|
+
display: flex;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
align-items: center;
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
&.whatsapp-button {
|
|
261
|
+
right: 40px;
|
|
262
|
+
bottom: 180px;
|
|
263
|
+
animation-delay: 0.15s;
|
|
264
|
+
animation: float-button-out 0.15s linear;
|
|
265
|
+
animation-fill-mode: forwards;
|
|
266
|
+
background-color: #25d366;
|
|
267
|
+
background-repeat: no-repeat;
|
|
268
|
+
background-image: url("/assets/swl/interface/icons/whatsapp-icon.png");
|
|
269
|
+
background-size: 20px;
|
|
270
|
+
background-position: center;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&.intercom-button {
|
|
274
|
+
right: 40px;
|
|
275
|
+
bottom: 120px;
|
|
276
|
+
animation-delay: 0.2s;
|
|
277
|
+
animation: float-button-out 0.3s linear;
|
|
278
|
+
animation-fill-mode: forwards;
|
|
279
|
+
background-color: rgb(48, 71, 236);
|
|
280
|
+
background-repeat: no-repeat;
|
|
281
|
+
background-image: url("/assets/swl/interface/icons/intercom-messenger-icon.svg");
|
|
282
|
+
background-size: 20px;
|
|
283
|
+
background-position: center;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.floating-button {
|
|
288
|
+
width: 55px;
|
|
289
|
+
height: 55px;
|
|
290
|
+
border-radius: 50%;
|
|
291
|
+
background: $color-primary;
|
|
292
|
+
position: fixed;
|
|
293
|
+
bottom: 30px;
|
|
294
|
+
right: 30px;
|
|
295
|
+
cursor: pointer;
|
|
296
|
+
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
|
|
297
|
+
|
|
298
|
+
.active-action-button {
|
|
299
|
+
color: white;
|
|
300
|
+
position: absolute;
|
|
301
|
+
top: 0;
|
|
302
|
+
display: block;
|
|
303
|
+
bottom: 0;
|
|
304
|
+
left: 0;
|
|
305
|
+
right: 0;
|
|
306
|
+
opacity: 0;
|
|
307
|
+
text-align: center;
|
|
308
|
+
padding: 0;
|
|
309
|
+
margin: 0;
|
|
310
|
+
line-height: 55px;
|
|
311
|
+
font-size: 38px;
|
|
312
|
+
font-weight: 300;
|
|
313
|
+
animation: float-action-button-out 0.1s;
|
|
314
|
+
transition: all 0.1s;
|
|
315
|
+
background-repeat: no-repeat;
|
|
316
|
+
background-image: url("/assets/swl/interface/icons/chevron-up-icon.svg");
|
|
317
|
+
width: 100%;
|
|
318
|
+
height: 100%;
|
|
319
|
+
background-position: center;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.closed-action-button {
|
|
323
|
+
position: absolute;
|
|
324
|
+
top: 0;
|
|
325
|
+
display: block;
|
|
326
|
+
bottom: 0;
|
|
327
|
+
left: 0;
|
|
328
|
+
right: 0;
|
|
329
|
+
padding: 0;
|
|
330
|
+
margin: auto;
|
|
331
|
+
line-height: 65px;
|
|
332
|
+
animation: float-action-disable 0.2s;
|
|
333
|
+
transition: all 0.2s;
|
|
334
|
+
background-repeat: no-repeat;
|
|
335
|
+
background-image: url("/assets/swl/interface/icons/message-square-icon.svg");
|
|
336
|
+
width: 100%;
|
|
337
|
+
height: 100%;
|
|
338
|
+
background-position: center;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&:hover {
|
|
343
|
+
height: 400px;
|
|
344
|
+
width: 90px;
|
|
345
|
+
padding: 30px;
|
|
346
|
+
|
|
347
|
+
.floating-button {
|
|
348
|
+
.active-action-button {
|
|
349
|
+
animation: float-action-active 0.2s;
|
|
350
|
+
animation-delay: 0.1s;
|
|
351
|
+
animation-fill-mode: forwards;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.closed-action-button {
|
|
355
|
+
animation: float-action-button-in 0.15s linear;
|
|
356
|
+
animation-delay: 0.1s;
|
|
357
|
+
animation-fill-mode: forwards;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.action-button {
|
|
362
|
+
animation: float-button-in 0.1s linear;
|
|
363
|
+
animation-fill-mode: forwards;
|
|
364
|
+
|
|
365
|
+
&.whatsapp-button {
|
|
366
|
+
animation-delay: 0.08s;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
&.header {
|
|
372
|
+
width: 50px;
|
|
373
|
+
padding: 5px 15px;
|
|
374
|
+
right: 12px;
|
|
375
|
+
bottom: unset;
|
|
376
|
+
|
|
377
|
+
.action-button {
|
|
378
|
+
&.whatsapp-button {
|
|
379
|
+
right: 15px;
|
|
380
|
+
top: 130px;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
&.intercom-button {
|
|
384
|
+
right: 15px;
|
|
385
|
+
top: 70px;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.floating-button {
|
|
390
|
+
width: 40px;
|
|
391
|
+
height: 40px;
|
|
392
|
+
right: 15px;
|
|
393
|
+
bottom: unset;
|
|
394
|
+
animation: intercom-button-shadow-pulse 1s 10 ;
|
|
395
|
+
.active-action-button {
|
|
396
|
+
background-image: url("/assets/swl/interface/icons/chevron-down-icon.svg");
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|