sempli-website-lib 7.1.0-beta.2 → 7.1.0-beta.4

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.
Files changed (224) hide show
  1. package/README.md +25 -25
  2. package/assets/fonts/Lato/Lato-Black.ttf +0 -0
  3. package/assets/fonts/Lato/Lato-BlackItalic.ttf +0 -0
  4. package/assets/fonts/Lato/Lato-Bold.ttf +0 -0
  5. package/assets/fonts/Lato/Lato-BoldItalic.ttf +0 -0
  6. package/assets/fonts/Lato/Lato-Hairline.ttf +0 -0
  7. package/assets/fonts/Lato/Lato-HairlineItalic.ttf +0 -0
  8. package/assets/fonts/Lato/Lato-Italic.ttf +0 -0
  9. package/assets/fonts/Lato/Lato-Light.ttf +0 -0
  10. package/assets/fonts/Lato/Lato-LightItalic.ttf +0 -0
  11. package/assets/fonts/Lato/Lato-Regular.ttf +0 -0
  12. package/assets/fonts/Lato/OFL.txt +0 -0
  13. package/assets/interface/documents.svg +136 -136
  14. package/assets/interface/icons/alert-success.svg +17 -17
  15. package/assets/interface/icons/arrow-left.svg +8 -8
  16. package/assets/interface/icons/arrow-right-02.svg +10 -10
  17. package/assets/interface/icons/arrow-right.svg +8 -8
  18. package/assets/interface/icons/basic-check-magenta.svg +1 -1
  19. package/assets/interface/icons/bulb-example.svg +20 -20
  20. package/assets/interface/icons/bulb-tip.svg +32 -32
  21. package/assets/interface/icons/check-green-circle-large.svg +23 -23
  22. package/assets/interface/icons/check-green.svg +16 -16
  23. package/assets/interface/icons/check-purple.svg +20 -20
  24. package/assets/interface/icons/cloud-download.svg +20 -20
  25. package/assets/interface/icons/document-pdf.svg +13 -13
  26. package/assets/interface/icons/document-review.svg +20 -20
  27. package/assets/interface/icons/document-status-approved.svg +21 -21
  28. package/assets/interface/icons/document-status-empty.svg +18 -18
  29. package/assets/interface/icons/document-status-error.svg +23 -23
  30. package/assets/interface/icons/document-status-success.svg +19 -19
  31. package/assets/interface/icons/eye-action.svg +1 -1
  32. package/assets/interface/icons/hand-stop.svg +19 -19
  33. package/assets/interface/icons/happy-01.svg +0 -0
  34. package/assets/interface/icons/happy-02.svg +0 -0
  35. package/assets/interface/icons/happy-03.svg +0 -0
  36. package/assets/interface/icons/happy-04.svg +0 -0
  37. package/assets/interface/icons/happy-05.svg +0 -0
  38. package/assets/interface/icons/heart.svg +13 -13
  39. package/assets/interface/icons/intercom-messenger-icon.svg +1 -1
  40. package/assets/interface/icons/lock-icon.svg +1 -1
  41. package/assets/interface/icons/mail-circle.svg +32 -32
  42. package/assets/interface/icons/mail-edit.svg +20 -20
  43. package/assets/interface/icons/pen-edit.svg +22 -22
  44. package/assets/interface/icons/plus-circle.svg +22 -22
  45. package/assets/interface/icons/question-sign.svg +10 -10
  46. package/assets/interface/icons/shield.svg +31 -31
  47. package/assets/interface/icons/signature-modal-approved.svg +17 -17
  48. package/assets/interface/icons/signature-modal-waiting.svg +23 -23
  49. package/assets/interface/icons/signature-pending.svg +25 -25
  50. package/assets/interface/icons/signature-step-active.svg +19 -19
  51. package/assets/interface/icons/signature-step-completed.svg +19 -19
  52. package/assets/interface/icons/signature-step-default.svg +19 -19
  53. package/assets/interface/icons/skull.svg +23 -23
  54. package/assets/interface/icons/step-incomplete.svg +18 -18
  55. package/assets/interface/icons/trash-delete.svg +20 -20
  56. package/assets/interface/icons/warning-sign.svg +22 -22
  57. package/assets/interface/icons/x-circle.svg +14 -14
  58. package/assets/interface/sempli_2.0/17-dale_superpoderes.jpeg +0 -0
  59. package/assets/interface/sempli_2.0/17-dale_superpoderes.webp +0 -0
  60. package/assets/interface/sempli_2.0/5-seguridad-y-control-min.png +0 -0
  61. package/assets/interface/sempli_2.0/5-seguridad-y-control-min.webp +0 -0
  62. package/assets/interface/sempli_2.0/7-financia-tu-capital-de-trabajo2-01.webp +0 -0
  63. package/assets/interface/sempli_2.0/7-financia-tu-capital-de-trabajo2.webp +0 -0
  64. package/assets/interface/sempli_2.0/credito-a-termino.jpg +0 -0
  65. package/assets/interface/sempli_2.0/credito-a-termino.webp +0 -0
  66. package/assets/interface/sempli_2.0/credito-flexi-sub-img.jpg +0 -0
  67. package/assets/interface/sempli_2.0/credito-flexi-sub-img.webp +0 -0
  68. package/assets/interface/sempli_2.0/dale_superpoderes.jpg +0 -0
  69. package/assets/interface/sempli_2.0/dale_superpoderes.webp +0 -0
  70. package/assets/interface/sempli_2.0/flexi-01.webp +0 -0
  71. package/assets/interface/sempli_2.0/video-hero-main.mp4 +0 -0
  72. package/assets/interface/sempli_2.0/video-main.mp4 +0 -0
  73. package/assets/interface/sempli_2.0/video-main.webm +0 -0
  74. package/esm2022/lib/sempli-website-lib.module.mjs +5 -5
  75. package/esm2022/public-api.mjs +1 -1
  76. package/fesm2022/sempli-website-lib.mjs +4 -4
  77. package/fesm2022/sempli-website-lib.mjs.map +1 -1
  78. package/package.json +1 -1
  79. package/styles/_main.scss +2 -2
  80. package/styles/master-app.scss +17839 -18114
  81. package/styles/master-landing.scss +20644 -20834
  82. package/styles/modules/_functions.scss +37 -37
  83. package/styles/modules/_mixins.scss +68 -68
  84. package/styles/modules/_variables.scss +54 -54
  85. package/styles/partials/_base.scss +277 -277
  86. package/styles/partials/_buttons.scss +446 -453
  87. package/styles/partials/_fonts.scss +83 -83
  88. package/styles/partials/_forms.scss +839 -1107
  89. package/styles/partials/_icons.scss +12 -12
  90. package/styles/partials/_layout.scss +149 -149
  91. package/styles/partials/_modals.scss +254 -254
  92. package/styles/partials/_panels.scss +51 -51
  93. package/styles/partials/_progress-bars.scss +60 -60
  94. package/styles/partials/_tooltips.scss +128 -128
  95. package/styles/partials/_videos.scss +32 -32
  96. package/styles/partials/animations.scss +155 -155
  97. package/styles/partials/app/_blocks.scss +101 -101
  98. package/styles/partials/app/_cards.scss +155 -155
  99. package/styles/partials/app/_general.scss +1193 -1193
  100. package/styles/partials/app/_header.scss +713 -713
  101. package/styles/partials/app/_layout.scss +219 -219
  102. package/styles/partials/app/_my-account.scss +203 -203
  103. package/styles/partials/app/_my-loan-applications.scss +165 -165
  104. package/styles/partials/app/_my-products.scss +1019 -1019
  105. package/styles/partials/app/_signatures.scss +16 -16
  106. package/styles/partials/landing/_footer.scss +234 -234
  107. package/styles/partials/landing/_general.scss +2612 -2527
  108. package/styles/partials/landing/_header.scss +968 -968
  109. package/styles/partials/landing/_hero-wrappers.scss +650 -650
  110. package/styles/vendor/_animate.scss +3 -3
  111. package/styles/vendor/_compass.scss +4 -4
  112. package/styles/vendor/_lemonade.scss +37 -37
  113. package/styles/vendor/_modules_export.scss +11212 -11212
  114. package/styles/vendor/_normalize.scss +341 -341
  115. package/styles/vendor/animation/_animate.scss +31 -31
  116. package/styles/vendor/animation/_core.scss +127 -127
  117. package/styles/vendor/animation/_shared.scss +21 -21
  118. package/styles/vendor/animation/animate/_attention-seekers.scss +151 -151
  119. package/styles/vendor/animation/animate/_bouncing.scss +2 -2
  120. package/styles/vendor/animation/animate/_classes.scss +21 -21
  121. package/styles/vendor/animation/animate/_fading.scss +2 -2
  122. package/styles/vendor/animation/animate/_flippers.scss +87 -87
  123. package/styles/vendor/animation/animate/_lightspeed.scss +23 -23
  124. package/styles/vendor/animation/animate/_rotating.scss +3 -3
  125. package/styles/vendor/animation/animate/_specials.scss +42 -42
  126. package/styles/vendor/animation/animate/bouncing/_bouncing-entrances.scss +68 -68
  127. package/styles/vendor/animation/animate/bouncing/_bouncing-exits.scss +60 -60
  128. package/styles/vendor/animation/animate/fading/_fading-entrances.scss +86 -86
  129. package/styles/vendor/animation/animate/fading/_fading-exits.scss +86 -86
  130. package/styles/vendor/animation/animate/rotating/_rotating-entrances.scss +58 -58
  131. package/styles/vendor/animation/animate/rotating/_rotating-exits.scss +58 -58
  132. package/styles/vendor/compass/_css3.scss +21 -21
  133. package/styles/vendor/compass/_functions.scss +7 -7
  134. package/styles/vendor/compass/_layout.scss +3 -3
  135. package/styles/vendor/compass/_reset-legacy.scss +3 -3
  136. package/styles/vendor/compass/_reset.scss +3 -3
  137. package/styles/vendor/compass/_support.scss +40 -40
  138. package/styles/vendor/compass/_typography.scss +4 -4
  139. package/styles/vendor/compass/_utilities.scss +9 -9
  140. package/styles/vendor/compass/css3/_animation.scss +2 -2
  141. package/styles/vendor/compass/css3/_appearance.scss +16 -16
  142. package/styles/vendor/compass/css3/_background-clip.scss +43 -43
  143. package/styles/vendor/compass/css3/_background-origin.scss +42 -42
  144. package/styles/vendor/compass/css3/_background-size.scss +26 -26
  145. package/styles/vendor/compass/css3/_border-radius.scss +130 -130
  146. package/styles/vendor/compass/css3/_box-shadow.scss +76 -76
  147. package/styles/vendor/compass/css3/_box-sizing.scss +18 -18
  148. package/styles/vendor/compass/css3/_box.scss +110 -110
  149. package/styles/vendor/compass/css3/_columns.scss +157 -157
  150. package/styles/vendor/compass/css3/_filter.scss +24 -24
  151. package/styles/vendor/compass/css3/_flexbox.scss +86 -86
  152. package/styles/vendor/compass/css3/_font-face.scss +48 -48
  153. package/styles/vendor/compass/css3/_hyphenation.scss +77 -77
  154. package/styles/vendor/compass/css3/_images.scss +133 -133
  155. package/styles/vendor/compass/css3/_inline-block.scss +22 -22
  156. package/styles/vendor/compass/css3/_opacity.scss +19 -19
  157. package/styles/vendor/compass/css3/_pie.scss +73 -73
  158. package/styles/vendor/compass/css3/_regions.scss +21 -21
  159. package/styles/vendor/compass/css3/_shared.scss +38 -38
  160. package/styles/vendor/compass/css3/_text-shadow.scss +88 -88
  161. package/styles/vendor/compass/css3/_transform-legacy.scss +87 -87
  162. package/styles/vendor/compass/css3/_transform.scss +598 -598
  163. package/styles/vendor/compass/css3/_transition.scss +222 -222
  164. package/styles/vendor/compass/css3/_user-interface.scss +47 -47
  165. package/styles/vendor/compass/functions/_colors.scss +37 -37
  166. package/styles/vendor/compass/functions/_constants.scss +18 -18
  167. package/styles/vendor/compass/functions/_cross_browser_support.scss +72 -72
  168. package/styles/vendor/compass/functions/_display.scss +36 -36
  169. package/styles/vendor/compass/functions/_font_files.scss +95 -95
  170. package/styles/vendor/compass/functions/_gradient_support.scss +14 -14
  171. package/styles/vendor/compass/functions/_lists.scss +90 -90
  172. package/styles/vendor/compass/layout/_grid-background.scss +178 -178
  173. package/styles/vendor/compass/layout/_sticky-footer.scss +23 -23
  174. package/styles/vendor/compass/layout/_stretching.scss +23 -23
  175. package/styles/vendor/compass/reset/_utilities-legacy.scss +135 -135
  176. package/styles/vendor/compass/reset/_utilities.scss +142 -142
  177. package/styles/vendor/compass/typography/_links.scss +3 -3
  178. package/styles/vendor/compass/typography/_lists.scss +4 -4
  179. package/styles/vendor/compass/typography/_text.scss +4 -4
  180. package/styles/vendor/compass/typography/_vertical_rhythm.scss +229 -229
  181. package/styles/vendor/compass/typography/links/_hover-link.scss +5 -5
  182. package/styles/vendor/compass/typography/links/_link-colors.scss +28 -28
  183. package/styles/vendor/compass/typography/links/_unstyled-link.scss +7 -7
  184. package/styles/vendor/compass/typography/lists/_bullets.scss +34 -34
  185. package/styles/vendor/compass/typography/lists/_horizontal-list.scss +61 -61
  186. package/styles/vendor/compass/typography/lists/_inline-block-list.scss +50 -50
  187. package/styles/vendor/compass/typography/lists/_inline-list.scss +44 -44
  188. package/styles/vendor/compass/typography/text/_ellipsis.scss +25 -25
  189. package/styles/vendor/compass/typography/text/_force-wrap.scss +12 -12
  190. package/styles/vendor/compass/typography/text/_nowrap.scss +2 -2
  191. package/styles/vendor/compass/typography/text/_replacement.scss +68 -68
  192. package/styles/vendor/compass/utilities/_general.scss +6 -6
  193. package/styles/vendor/compass/utilities/_links.scss +5 -5
  194. package/styles/vendor/compass/utilities/_lists.scss +6 -6
  195. package/styles/vendor/compass/utilities/_print.scss +17 -17
  196. package/styles/vendor/compass/utilities/_sprites.scss +2 -2
  197. package/styles/vendor/compass/utilities/_tables.scss +3 -3
  198. package/styles/vendor/compass/utilities/_text.scss +5 -5
  199. package/styles/vendor/compass/utilities/color/_contrast.scss +27 -27
  200. package/styles/vendor/compass/utilities/general/_clearfix.scss +44 -44
  201. package/styles/vendor/compass/utilities/general/_float.scss +29 -29
  202. package/styles/vendor/compass/utilities/general/_hacks.scss +47 -47
  203. package/styles/vendor/compass/utilities/general/_min.scss +16 -16
  204. package/styles/vendor/compass/utilities/general/_reset.scss +2 -2
  205. package/styles/vendor/compass/utilities/general/_tabs.scss +1 -1
  206. package/styles/vendor/compass/utilities/general/_tag-cloud.scss +18 -18
  207. package/styles/vendor/compass/utilities/links/_hover-link.scss +3 -3
  208. package/styles/vendor/compass/utilities/links/_link-colors.scss +3 -3
  209. package/styles/vendor/compass/utilities/links/_unstyled-link.scss +3 -3
  210. package/styles/vendor/compass/utilities/lists/_bullets.scss +3 -3
  211. package/styles/vendor/compass/utilities/lists/_horizontal-list.scss +3 -3
  212. package/styles/vendor/compass/utilities/lists/_inline-block-list.scss +3 -3
  213. package/styles/vendor/compass/utilities/lists/_inline-list.scss +3 -3
  214. package/styles/vendor/compass/utilities/sprites/_base.scss +65 -65
  215. package/styles/vendor/compass/utilities/sprites/_sprite-img.scss +78 -78
  216. package/styles/vendor/compass/utilities/tables/_alternating-rows-and-columns.scss +22 -22
  217. package/styles/vendor/compass/utilities/tables/_borders.scss +33 -33
  218. package/styles/vendor/compass/utilities/tables/_scaffolding.scss +9 -9
  219. package/styles/vendor/compass/utilities/text/_ellipsis.scss +3 -3
  220. package/styles/vendor/compass/utilities/text/_nowrap.scss +3 -3
  221. package/styles/vendor/compass/utilities/text/_replacement.scss +3 -3
  222. package/assets/interface/icons/check-circle.svg +0 -1
  223. package/assets/interface/icons/x-circle-alert.svg +0 -1
  224. package/core/intelli-styles.js +0 -55
@@ -1,453 +1,446 @@
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
- &.rounded {
15
- border-radius: 30px;
16
- padding: 6px 20px;
17
- margin: 0;
18
- text-align: center;
19
- }
20
-
21
- &:hover {
22
- background-color: $color-primary-dark;
23
- color: white;
24
- text-decoration: none;
25
- }
26
-
27
- // State Variables
28
- $transparentizeAmount: 0.9;
29
- $buttonStates: (
30
- secondary: (
31
- color: $color-secondary,
32
- colorDark: $color-secondary-dark,
33
- colorTransparent: transparentize($color-secondary, $transparentizeAmount),
34
- textColor: #ffffff
35
- ),
36
- success: (
37
- color: $color-success,
38
- colorDark: $color-success-dark,
39
- colorTransparent: transparentize($color-success, $transparentizeAmount),
40
- textColor: #ffffff
41
- ),
42
- alert: (
43
- color: $color-alert,
44
- colorDark: $color-alert-dark,
45
- colorTransparent: transparentize($color-alert, $transparentizeAmount),
46
- textColor: #ffffff
47
- ),
48
- warning: (
49
- color: $color-warning,
50
- colorDark: $color-warning-dark,
51
- colorTransparent: transparentize($color-warning, $transparentizeAmount),
52
- textColor: $color-text
53
- )
54
- );
55
-
56
- // STATES
57
- @each $state, $stateProp in $buttonStates {
58
- &.#{$state} {
59
- background-color: #{map-get($stateProp, "color")};
60
- color: #{map-get($stateProp, "textColor")};
61
-
62
- &:hover {
63
- background-color: #{map-get($stateProp, "colorDark")};
64
- color: #fff;
65
- text-decoration: none;
66
- }
67
- }
68
- }
69
-
70
- // OUTLINE BUTTONS
71
- &.outline {
72
- background: transparent;
73
- color: $color-primary;
74
- @include box-shadow(0 0 0 2px $color-primary inset);
75
-
76
- &:hover {
77
- background: transparentize($color-primary, $transparentizeAmount);
78
- color: $color-primary-dark;
79
- @include box-shadow(0 0 0 2px $color-primary-dark inset);
80
- }
81
-
82
- // PRIMARY STATES
83
- @each $state, $stateProp in $buttonStates {
84
- &.#{$state} {
85
- background: transparent;
86
- color: #{map-get($stateProp, "color")};
87
- @include box-shadow(0 0 0 2px #{map-get($stateProp, "color")} inset);
88
-
89
- &:hover {
90
- background: #{map-get($stateProp, "colorTransparent")};
91
- color: #{map-get($stateProp, "colorDark")};
92
- @include box-shadow(0 0 0 2px #{map-get($stateProp, "colorDark")} inset);
93
- }
94
- }
95
- }
96
- }
97
-
98
- // Small Size
99
- &.small {
100
- font-size: rem-calc(14px);
101
- padding: 5px 10px
102
- }
103
-
104
- // Disabled State
105
- &.is-disabled {
106
- cursor: not-allowed;
107
- pointer-events: none;
108
- opacity: 0.3;
109
- }
110
- }
111
-
112
- a.cursor-pointer,
113
- button.cursor-pointer {
114
- cursor: pointer;
115
- }
116
-
117
-
118
- .accordion-button-container {
119
- .accordion-label {
120
- cursor:pointer;
121
- display:block;
122
- }
123
-
124
- &:first-of-type{
125
- border-top-left-radius:20px;
126
- border-top-right-radius:20px;
127
- }
128
- &:last-of-type{
129
- border-bottom-left-radius:20px;
130
- border-bottom-right-radius:20px;
131
- border-bottom: none;
132
- }
133
-
134
- .accordion-content{
135
- /* Height animation:
136
- 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
137
- For widely variable height content, best not to animate. Switch display attribute instead */
138
- max-height:0;
139
- overflow: hidden;
140
- transition : max-height 0.2s;
141
- background-size: 260px;
142
- background-repeat: no-repeat;
143
- background-position: center;
144
- }
145
- .accordion-control {
146
- display:none;
147
- + label{
148
- position: relative;
149
- height: 40px;
150
- display: block;
151
- font-family: Arial, Helvetica, sans-serif;
152
- font-size: 1em;
153
- line-height: 1em;
154
- z-index: 0;
155
- display: flex;
156
- align-items: center;
157
-
158
- &:before,
159
- &:after {
160
- content : '';
161
- position : absolute;
162
- }
163
- &:before {
164
- content: attr(data-label-closed);
165
- display: contents;
166
- }
167
- &::after {
168
- right: 0;
169
- content: "❯";
170
- margin-right: 8px;
171
- height: 1em;
172
- text-align: center;
173
- transition: all 0.35s;
174
- }
175
- }
176
-
177
- &:checked {
178
- + label{
179
- cursor:pointer;
180
- &:before{
181
- content: attr(data-label-open);
182
- }
183
- &:after{
184
- transform: rotate(90deg);
185
- }
186
- + .accordion-content{
187
- max-height: fit-content;
188
- padding-right: 30px;
189
- }
190
- }
191
- }
192
- &[type="radio"]{
193
- + label{
194
- &:before,
195
- &:after{
196
- content:'';
197
- }
198
- }
199
- &:checked{
200
- + label{
201
- cursor:default;
202
- &:before{
203
- border-left-color:#999;
204
- }
205
- }
206
- }
207
- }
208
- }
209
- }
210
-
211
- .whatsapp-button-float {
212
- position: fixed;
213
- width: 60px;
214
- height: 60px;
215
- bottom: 30px;
216
- right: 20px;
217
- background-color: #25d366;
218
- color: #FFF;
219
- border-radius: 50px;
220
- text-align: center;
221
- z-index: 1000;
222
- display: flex;
223
- justify-content: center;
224
- align-items: center;
225
- cursor: pointer;
226
-
227
- .icon {
228
- display: flex;
229
- max-width: 30px;
230
- }
231
- }
232
-
233
- .container-floating {
234
- display: none;
235
- }
236
- @include responsive-max($breakpoint-small) {
237
- .whatsapp-button-float {
238
- display: none;
239
- }
240
-
241
- .container-floating {
242
- display: block;
243
- position: fixed;
244
- width: 70px;
245
- height: 70px;
246
- bottom: 30px;
247
- right: 30px;
248
- z-index: 2000;
249
-
250
- a {
251
- line-height: 0;
252
- }
253
-
254
- .action-button {
255
- width: 40px;
256
- height: 40px;
257
- border-radius: 50%;
258
- position: fixed;
259
- z-index: 300;
260
- transform: scale(0);
261
- cursor: pointer;
262
- display: flex;
263
- justify-content: center;
264
- align-items: center;
265
-
266
-
267
- &.whatsapp-button {
268
- right: 40px;
269
- bottom: 180px;
270
- animation-name: float-button-out;
271
- animation-delay: 0.15s;
272
- animation-duration: 0.15s;
273
- animation-timing-function: linear;
274
- animation-fill-mode: forwards;
275
- background-color: #25d366;
276
- background-repeat: no-repeat;
277
- background-image: url("/assets/swl/interface/icons/whatsapp-icon.png");
278
- background-size: 20px;
279
- background-position: center;
280
- }
281
-
282
- &.intercom-button {
283
- right: 40px;
284
- bottom: 120px;
285
- animation-name: float-button-out;
286
- animation-duration: 0.3s;
287
- animation-timing-function: linear;
288
- animation-delay: 0.2s;
289
- animation-fill-mode: forwards;
290
- background-color: rgb(48, 71, 236);
291
- background-repeat: no-repeat;
292
- background-image: url("/assets/swl/interface/icons/intercom-messenger-icon.svg");
293
- background-size: 20px;
294
- background-position: center;
295
- }
296
- }
297
-
298
- .floating-button {
299
- width: 55px;
300
- height: 55px;
301
- border-radius: 50%;
302
- background: $color-primary;
303
- position: fixed;
304
- bottom: 30px;
305
- right: 30px;
306
- cursor: pointer;
307
- box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
308
-
309
- .active-action-button {
310
- color: white;
311
- position: absolute;
312
- top: 0;
313
- display: block;
314
- bottom: 0;
315
- left: 0;
316
- right: 0;
317
- opacity: 0;
318
- text-align: center;
319
- padding: 0;
320
- margin: 0;
321
- line-height: 55px;
322
- font-size: 38px;
323
- font-weight: 300;
324
- animation: float-action-button-out 0.1s;
325
- transition: all 0.1s;
326
- background-repeat: no-repeat;
327
- background-image: url("/assets/swl/interface/icons/chevron-up-icon.svg");
328
- width: 100%;
329
- height: 100%;
330
- background-position: center;
331
- }
332
-
333
- .closed-action-button {
334
- position: absolute;
335
- top: 0;
336
- display: block;
337
- bottom: 0;
338
- left: 0;
339
- right: 0;
340
- padding: 0;
341
- margin: auto;
342
- line-height: 65px;
343
- animation: float-action-disable 0.2s;
344
- transition: all 0.2s;
345
- background-repeat: no-repeat;
346
- background-image: url("/assets/swl/interface/icons/message-square-icon.svg");
347
- width: 100%;
348
- height: 100%;
349
- background-position: center;
350
- }
351
- }
352
-
353
- &:hover {
354
- height: 400px;
355
- width: 90px;
356
- padding: 30px;
357
-
358
- .floating-button {
359
- .active-action-button {
360
- animation: float-action-active 0.2s;
361
- animation-delay: 0.1s;
362
- animation-fill-mode: forwards;
363
- }
364
-
365
- .closed-action-button {
366
- animation: float-action-button-in 0.15s linear;
367
- animation-delay: 0.1s;
368
- animation-fill-mode: forwards;
369
- }
370
- }
371
-
372
- .action-button {
373
- animation: float-button-in 0.1s linear;
374
- animation-fill-mode: forwards;
375
-
376
- &.whatsapp-button {
377
- animation-delay: 0.08s;
378
- }
379
- }
380
- }
381
-
382
- &.header {
383
- width: 50px;
384
- padding: 5px 15px;
385
- right: 12px;
386
- bottom: unset;
387
-
388
- .action-button {
389
- &.whatsapp-button {
390
- right: 15px;
391
- top: 130px;
392
- }
393
-
394
- &.intercom-button {
395
- right: 15px;
396
- top: 70px;
397
- }
398
- }
399
-
400
- .floating-button {
401
- width: 40px;
402
- height: 40px;
403
- right: 15px;
404
- bottom: unset;
405
- animation: intercom-button-shadow-pulse 1s 10 ;
406
- .active-action-button {
407
- background-image: url("/assets/swl/interface/icons/chevron-down-icon.svg");
408
- }
409
- }
410
- }
411
- }
412
- }
413
-
414
- .btn-arrow-up {
415
- position: relative;
416
- text-decoration: none;
417
- color: #434448;
418
- padding: 7px 0px 8px 20px;
419
- border-radius: 50px;
420
- transition: color 0.5s ease;
421
- z-index: 1;
422
-
423
- i {
424
- margin-left: 5px;
425
- background: #4335F9;
426
- border-radius: 50%;
427
- padding: 8px 8px;
428
- color: white;
429
- transition: color 0.5s ease;
430
- }
431
-
432
- &::before {
433
- content: '';
434
- position: absolute;
435
- top: 0;
436
- right: 0;
437
- width: 18%;
438
- height: 100%;
439
- border-radius: 100px;
440
- transition: width 0.5s ease, background 0.5s ease;
441
- z-index: -1;
442
- }
443
-
444
- &:hover {
445
- color: white;
446
-
447
- &::before {
448
- width: 100%;
449
- background: #4335F9;
450
- color: white;
451
- }
452
- }
453
- }
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, Helvetica, sans-serif;
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: 30px;
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-name: float-button-out;
264
+ animation-delay: 0.15s;
265
+ animation-duration: 0.15s;
266
+ animation-timing-function: linear;
267
+ animation-fill-mode: forwards;
268
+ background-color: #25d366;
269
+ background-repeat: no-repeat;
270
+ background-image: url("/assets/swl/interface/icons/whatsapp-icon.png");
271
+ background-size: 20px;
272
+ background-position: center;
273
+ }
274
+
275
+ &.intercom-button {
276
+ right: 40px;
277
+ bottom: 120px;
278
+ animation-name: float-button-out;
279
+ animation-duration: 0.3s;
280
+ animation-timing-function: linear;
281
+ animation-delay: 0.2s;
282
+ animation-fill-mode: forwards;
283
+ background-color: rgb(48, 71, 236);
284
+ background-repeat: no-repeat;
285
+ background-image: url("/assets/swl/interface/icons/intercom-messenger-icon.svg");
286
+ background-size: 20px;
287
+ background-position: center;
288
+ }
289
+ }
290
+
291
+ .floating-button {
292
+ width: 55px;
293
+ height: 55px;
294
+ border-radius: 50%;
295
+ background: $color-primary;
296
+ position: fixed;
297
+ bottom: 30px;
298
+ right: 30px;
299
+ cursor: pointer;
300
+ box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
301
+
302
+ .active-action-button {
303
+ color: white;
304
+ position: absolute;
305
+ top: 0;
306
+ display: block;
307
+ bottom: 0;
308
+ left: 0;
309
+ right: 0;
310
+ opacity: 0;
311
+ text-align: center;
312
+ padding: 0;
313
+ margin: 0;
314
+ line-height: 55px;
315
+ font-size: 38px;
316
+ font-weight: 300;
317
+ animation: float-action-button-out 0.1s;
318
+ transition: all 0.1s;
319
+ background-repeat: no-repeat;
320
+ background-image: url("/assets/swl/interface/icons/chevron-up-icon.svg");
321
+ width: 100%;
322
+ height: 100%;
323
+ background-position: center;
324
+ }
325
+
326
+ .closed-action-button {
327
+ position: absolute;
328
+ top: 0;
329
+ display: block;
330
+ bottom: 0;
331
+ left: 0;
332
+ right: 0;
333
+ padding: 0;
334
+ margin: auto;
335
+ line-height: 65px;
336
+ animation: float-action-disable 0.2s;
337
+ transition: all 0.2s;
338
+ background-repeat: no-repeat;
339
+ background-image: url("/assets/swl/interface/icons/message-square-icon.svg");
340
+ width: 100%;
341
+ height: 100%;
342
+ background-position: center;
343
+ }
344
+ }
345
+
346
+ &:hover {
347
+ height: 400px;
348
+ width: 90px;
349
+ padding: 30px;
350
+
351
+ .floating-button {
352
+ .active-action-button {
353
+ animation: float-action-active 0.2s;
354
+ animation-delay: 0.1s;
355
+ animation-fill-mode: forwards;
356
+ }
357
+
358
+ .closed-action-button {
359
+ animation: float-action-button-in 0.15s linear;
360
+ animation-delay: 0.1s;
361
+ animation-fill-mode: forwards;
362
+ }
363
+ }
364
+
365
+ .action-button {
366
+ animation: float-button-in 0.1s linear;
367
+ animation-fill-mode: forwards;
368
+
369
+ &.whatsapp-button {
370
+ animation-delay: 0.08s;
371
+ }
372
+ }
373
+ }
374
+
375
+ &.header {
376
+ width: 50px;
377
+ padding: 5px 15px;
378
+ right: 12px;
379
+ bottom: unset;
380
+
381
+ .action-button {
382
+ &.whatsapp-button {
383
+ right: 15px;
384
+ top: 130px;
385
+ }
386
+
387
+ &.intercom-button {
388
+ right: 15px;
389
+ top: 70px;
390
+ }
391
+ }
392
+
393
+ .floating-button {
394
+ width: 40px;
395
+ height: 40px;
396
+ right: 15px;
397
+ bottom: unset;
398
+ animation: intercom-button-shadow-pulse 1s 10 ;
399
+ .active-action-button {
400
+ background-image: url("/assets/swl/interface/icons/chevron-down-icon.svg");
401
+ }
402
+ }
403
+ }
404
+ }
405
+ }
406
+
407
+ .btn-arrow-up {
408
+ position: relative;
409
+ text-decoration: none;
410
+ color: #434448;
411
+ padding: 7px 0px 8px 20px;
412
+ border-radius: 50px;
413
+ transition: color 0.5s ease;
414
+ z-index: 1;
415
+
416
+ i {
417
+ margin-left: 5px;
418
+ background: #4335F9;
419
+ border-radius: 50%;
420
+ padding: 8px 8px;
421
+ color: white;
422
+ transition: color 0.5s ease;
423
+ }
424
+
425
+ &::before {
426
+ content: '';
427
+ position: absolute;
428
+ top: 0;
429
+ right: 0;
430
+ width: 18%;
431
+ height: 100%;
432
+ border-radius: 100px;
433
+ transition: width 0.5s ease, background 0.5s ease;
434
+ z-index: -1;
435
+ }
436
+
437
+ &:hover {
438
+ color: white;
439
+
440
+ &::before {
441
+ width: 100%;
442
+ background: #4335F9;
443
+ color: white;
444
+ }
445
+ }
446
+ }