@agorapulse/ui-theme 13.1.2 → 13.1.5

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.
@@ -157,6 +157,12 @@ $colors-red: (
157
157
  10: #FDE7E7
158
158
  );
159
159
 
160
+ $colors-soft-red: (
161
+ 100: #ff5353,
162
+ 85: #ff6d6d,
163
+ 10: #fff9f9
164
+ );
165
+
160
166
  $colors-yellow: (
161
167
  100: #FFE91F,
162
168
  85: #FFEC41,
@@ -71,6 +71,7 @@ $form-input-hover-border-color: map_get($colors-grey, 40);
71
71
  // Avatar
72
72
 
73
73
  $avatar-size-large: 64px;
74
+ $avatar-size-large-normal: 56px;
74
75
  $avatar-size-normal: 48px;
75
76
  $avatar-size-medium: 40px;
76
77
  $avatar-size-medium-sm: 36px;
@@ -124,6 +124,9 @@
124
124
  ap-symbol {
125
125
  color: map_get($colors-grey, 60);
126
126
  }
127
+ &.animated ap-symbol {
128
+ color: map_get($colors-electric-blue, 100);
129
+ }
127
130
  }
128
131
  }
129
132
  &.square, &.square-rounded {
@@ -143,19 +146,114 @@
143
146
  &.square-rounded {
144
147
  border-radius: 8px;
145
148
  }
149
+
150
+ //loading
151
+ &.animated {
152
+ overflow: hidden;
153
+ opacity: 1;
154
+
155
+ &.circle, &.square {
156
+ ap-symbol {
157
+ animation: fadeout 0.4s linear 1 forwards;
158
+ }
159
+
160
+ .animation {
161
+ position: absolute;
162
+ border: 2px solid transparent;
163
+ width: 16px;
164
+ height: 16px;
165
+ box-sizing: border-box;
166
+ border-radius: 50%;
167
+ border-top: 2px solid map_get($colors-electric-blue, 100);
168
+ border-right: 2px solid map_get($colors-electric-blue, 100);
169
+ animation: spin 1s linear infinite, fadein 0.4s linear 1 forwards;
170
+ }
171
+
172
+ &.animation-fade-out {
173
+ ap-symbol {
174
+ animation: fadein 0.4s linear 1 forwards;
175
+ }
176
+
177
+ .animation {
178
+ animation: spin 1s linear infinite, fadeout 0.4s linear 1 forwards;
179
+ }
180
+ }
181
+ }
182
+
183
+ &:not(.circle):not(.square) .animation {
184
+ position: absolute;
185
+ bottom: 0;
186
+ background-color: map_get($colors-orange, 100);
187
+ height: 5px;
188
+ width: 50%;
189
+ border-radius: 6px;
190
+ animation: slide 1.2s linear infinite;
191
+ }
192
+ }
193
+
194
+ @keyframes spin {
195
+ 0% {
196
+ transform: rotate(0deg);
197
+ }
198
+ 100% {
199
+ transform: rotate(360deg);
200
+ }
201
+ }
202
+
203
+ @keyframes slide {
204
+ 0% {
205
+ left: -70px;
206
+ }
207
+ 100% {
208
+ left: calc(100%);
209
+ }
210
+ }
211
+
212
+ @keyframes fadein {
213
+ 0% {
214
+ opacity: 0;
215
+ }
216
+ 100% {
217
+ opacity: 1;
218
+ }
219
+ }
220
+
221
+ @keyframes fadeout {
222
+ 0% {
223
+ opacity: 1;
224
+ }
225
+ 100% {
226
+ opacity: 0;
227
+ }
228
+ }
146
229
  }
147
230
 
148
231
  @mixin flat-button-color($background-color, $hover-background-color, $active-background-color) {
149
- background-color: $background-color;
150
- color: #fff;
151
- ap-symbol {
152
- color: #fff!important;
153
- }
154
- &:hover, &.force-hover {
155
- background-color: $hover-background-color;
232
+ &:not([disabled]) {
233
+ background-color: $background-color;
234
+ color: #fff;
235
+
236
+ ap-symbol {
237
+ color: #fff !important;
238
+ }
239
+
240
+ &:hover, &.force-hover {
241
+ background-color: $hover-background-color;
242
+ }
243
+
244
+ &:active {
245
+ background-color: $active-background-color;
246
+ }
156
247
  }
157
- &:active {
248
+ &.animated {
158
249
  background-color: $active-background-color;
250
+ &:not(.circle):not(.square) .animation {
251
+ background-color: $background-color;
252
+ }
253
+ &.circle .animation, &.square .animation {
254
+ border-top-color: white;
255
+ border-right-color: white;
256
+ }
159
257
  }
160
258
  }
161
259
 
@@ -193,47 +291,66 @@ button.mat-flat-button {
193
291
  background-color: map_get($colors-grey, 20);
194
292
  color: #fff;
195
293
  }
196
- &.mat-accent:not([disabled]) {
294
+ &.mat-accent {
197
295
  @include flat-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 85), map_get($colors-electric-blue, 60));
198
296
  }
199
- &.mat-primary:not([disabled]) {
297
+ &.mat-primary {
200
298
  @include flat-button-color(map_get($colors-orange, 100), map_get($colors-orange, 85), map_get($colors-orange, 60));
201
299
  }
202
- &.mat-success:not([disabled]) {
300
+ &.mat-success {
203
301
  @include flat-button-color(map_get($colors-green, 100), map_get($colors-green, 85), map_get($colors-green, 60));
204
302
  }
205
- &.mat-warn:not([disabled]) {
303
+ &.mat-warn {
206
304
  @include flat-button-color(map_get($colors-red, 100), map_get($colors-red, 85), map_get($colors-red, 60));
207
305
  }
208
306
  // Social networks
209
- &.mat-facebook:not([disabled]) {
307
+ &.mat-facebook {
210
308
  @include flat-button-color($color-facebook, $color-facebook, $color-facebook);
211
309
  }
212
- &.mat-instagram:not([disabled]) {
310
+ &.mat-instagram {
213
311
  @include flat-button-color($color-instagram, $color-instagram, $color-instagram);
214
312
  }
215
- &.mat-linkedin:not([disabled]) {
313
+ &.mat-linkedin {
216
314
  @include flat-button-color($color-linkedin, $color-linkedin, $color-linkedin);
217
315
  }
218
- &.mat-twitter:not([disabled]) {
316
+ &.mat-twitter {
219
317
  @include flat-button-color($color-twitter, $color-twitter, $color-twitter);
220
318
  }
221
- &.mat-youtube:not([disabled]) {
319
+ &.mat-youtube {
222
320
  @include flat-button-color($color-youtube, $color-youtube, $color-youtube);
223
321
  }
224
- &.mat-google:not([disabled]) {
322
+ &.mat-google {
225
323
  @include flat-button-color($color-google, $color-google, $color-google);
226
324
  }
227
325
  }
228
326
 
229
327
  @mixin stroked-button-color($color, $border-color, $hover-border-color) {
230
- color: $color;
231
- border-color: $border-color;
232
- &:hover, &.force-hover {
233
- border-color: $hover-border-color;
328
+ &:not([disabled]) {
329
+ color: $color;
330
+ border-color: $border-color;
331
+
332
+ &:hover, &.force-hover {
333
+ border-color: $hover-border-color;
334
+ }
335
+
336
+ &:active {
337
+ border-color: $color;
338
+ }
234
339
  }
235
- &:active {
340
+ &.animated {
341
+ color: $color;
236
342
  border-color: $color;
343
+ &:not(.circle):not(.square) .animation {
344
+ bottom: -1px;
345
+ background-color: $color;
346
+ }
347
+ &.circle, &.square {
348
+ border: none;
349
+ .animation {
350
+ border-top-color: $color;
351
+ border-right-color: $color;
352
+ }
353
+ }
237
354
  }
238
355
  }
239
356
  @mixin ghost-button-color($color, $hover-background-color, $active-background-color) {
@@ -304,16 +421,16 @@ button.mat-stroked-button {
304
421
  color: map_get($colors-grey, 20);
305
422
  }
306
423
 
307
- &.mat-accent:not([disabled]) {
424
+ &.mat-accent {
308
425
  @include stroked-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 60), map_get($colors-electric-blue, 85));
309
426
  }
310
- &.mat-primary:not([disabled]) {
427
+ &.mat-primary {
311
428
  @include stroked-button-color(map_get($colors-orange, 100), map_get($colors-orange, 60), map_get($colors-orange, 85));
312
429
  }
313
- &.mat-success:not([disabled]) {
430
+ &.mat-success {
314
431
  @include stroked-button-color(map_get($colors-green, 100), map_get($colors-green, 60), map_get($colors-green, 85));
315
432
  }
316
- &.mat-warn:not([disabled]) {
433
+ &.mat-warn {
317
434
  @include stroked-button-color(map_get($colors-red, 100), map_get($colors-red, 60), map_get($colors-red, 85));
318
435
  }
319
436
  &.mat-warn.ghost {
@@ -356,22 +473,22 @@ button.mat-stroked-button {
356
473
  }
357
474
  }
358
475
  }
359
- &.mat-facebook:not([disabled]) {
476
+ &.mat-facebook {
360
477
  @include stroked-button-color($color-facebook, $color-facebook, 'none');
361
478
  }
362
- &.mat-instagram:not([disabled]) {
479
+ &.mat-instagram {
363
480
  @include stroked-button-color($color-instagram, $color-instagram, 'none');
364
481
  }
365
- &.mat-linkedin:not([disabled]) {
482
+ &.mat-linkedin {
366
483
  @include stroked-button-color($color-linkedin, $color-linkedin, 'none');
367
484
  }
368
- &.mat-twitter:not([disabled]) {
485
+ &.mat-twitter {
369
486
  @include stroked-button-color($color-twitter, $color-twitter, 'none');
370
487
  }
371
- &.mat-youtube:not([disabled]) {
488
+ &.mat-youtube {
372
489
  @include stroked-button-color($color-youtube, $color-youtube, 'none');
373
490
  }
374
- &.mat-google:not([disabled]) {
491
+ &.mat-google {
375
492
  @include stroked-button-color($color-google, $color-google, 'none');
376
493
  }
377
494
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agorapulse/ui-theme",
3
- "version": "13.1.2",
3
+ "version": "13.1.5",
4
4
  "description": "Agorapulse UI Theme Library",
5
5
  "repository": {
6
6
  "type": "git",