@ldmjs/ui 1.0.61 → 1.0.63

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.
@@ -0,0 +1,409 @@
1
+ @charset "UTF-8";
2
+
3
+ $vt-namespace: "Vue-Toastification" !default;
4
+ $vt-toast-min-width: 326px !default;
5
+ $vt-toast-max-width: 600px !default;
6
+ $vt-toast-background: #ffffff !default;
7
+
8
+ $vt-toast-min-height: 64px !default;
9
+ $vt-toast-max-height: 800px !default;
10
+
11
+ $vt-color-default: #1976d2 !default;
12
+ $vt-text-color-default: #fff !default;
13
+ // $vt-color-info: #2196f3 !default;
14
+ $vt-color-info: var(--primary-l-4);
15
+ $vt-text-color-info: #fff !default;
16
+ // $vt-color-success: #4caf50 !default;
17
+ $vt-color-success: var(--success);
18
+ $vt-text-color-success: #fff !default;
19
+ // $vt-color-warning: #ffc107 !default;
20
+ $vt-color-warning: var(--warning-l-2);
21
+ $vt-text-color-warning: #fff !default;
22
+ // $vt-color-error: #ff5252 !default;
23
+ $vt-color-error: var(--error-l-2);
24
+ $vt-text-color-error: #fff !default;
25
+
26
+ $vt-color-progress-default: linear-gradient(
27
+ to right,
28
+ #4cd964,
29
+ #5ac8fa,
30
+ #007aff,
31
+ #34aadc,
32
+ #5856d6,
33
+ #ff2d55
34
+ ) !default;
35
+
36
+ $vt-mobile: "only screen and (max-width : 600px)" !default;
37
+ $vt-not-mobile: "only screen and (min-width : 600px)" !default;
38
+ $vt-font-family: "Lato", Helvetica, "Roboto", Arial, sans-serif !default;
39
+ $vt-z-index: 9999 !default;
40
+
41
+ .#{$vt-namespace}__container {
42
+ z-index: $vt-z-index;
43
+ position: fixed;
44
+ padding: 4px;
45
+ width: $vt-toast-max-width;
46
+ box-sizing: border-box;
47
+ display: flex;
48
+ min-height: 100%;
49
+ color: #fff;
50
+ flex-direction: column;
51
+ pointer-events: none;
52
+
53
+ @media #{$vt-not-mobile} {
54
+ &.top-left,
55
+ &.top-right,
56
+ &.top-center {
57
+ top: 1em;
58
+ }
59
+
60
+ &.bottom-left,
61
+ &.bottom-right,
62
+ &.bottom-center {
63
+ bottom: 1em;
64
+ flex-direction: column-reverse;
65
+ }
66
+
67
+ &.top-left,
68
+ &.bottom-left {
69
+ left: 1em;
70
+ .#{$vt-namespace}__toast {
71
+ margin-right: auto;
72
+ }
73
+ // Firefox does not apply rtl rules to containers and margins, it appears.
74
+ // See https://github.com/Maronato/vue-toastification/issues/179
75
+ @supports not (-moz-appearance:none) {
76
+ .#{$vt-namespace}__toast--rtl {
77
+ margin-right: unset;
78
+ margin-left: auto;
79
+ }
80
+ }
81
+ }
82
+
83
+ &.top-right,
84
+ &.bottom-right {
85
+ right: 1em;
86
+ .#{$vt-namespace}__toast {
87
+ margin-left: auto;
88
+ }
89
+ // Firefox does not apply rtl rules to containers and margins, it appears.
90
+ // See https://github.com/Maronato/vue-toastification/issues/179
91
+ @supports not (-moz-appearance:none) {
92
+ .#{$vt-namespace}__toast--rtl {
93
+ margin-left: unset;
94
+ margin-right: auto;
95
+ }
96
+ }
97
+ }
98
+
99
+ &.top-center,
100
+ &.bottom-center {
101
+ left: 50%;
102
+ margin-left: calc(calc($vt-toast-max-width / 2 * (-1)));
103
+ .#{$vt-namespace}__toast {
104
+ margin-left: auto;
105
+ margin-right: auto;
106
+ }
107
+ }
108
+ }
109
+
110
+ @media #{$vt-mobile} {
111
+ width: 100vw;
112
+ padding: 0;
113
+ left: 0;
114
+ margin: 0;
115
+ .#{$vt-namespace}__toast {
116
+ width: 100%;
117
+ }
118
+ &.top-left,
119
+ &.top-right,
120
+ &.top-center {
121
+ top: 0;
122
+ }
123
+ &.bottom-left,
124
+ &.bottom-right,
125
+ &.bottom-center {
126
+ bottom: 0;
127
+ flex-direction: column-reverse;
128
+ }
129
+ }
130
+ }
131
+
132
+ .#{$vt-namespace}__toast {
133
+ display: inline-flex;
134
+ position: relative;
135
+ max-height: $vt-toast-max-height;
136
+ min-height: $vt-toast-min-height;
137
+ box-sizing: border-box;
138
+ margin-bottom: 1rem;
139
+ padding: 22px 24px;
140
+ border-radius: 8px;
141
+ box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);
142
+ justify-content: space-between;
143
+ font-family: $vt-font-family;
144
+ max-width: $vt-toast-max-width;
145
+ min-width: $vt-toast-min-width;
146
+ pointer-events: auto;
147
+ overflow: hidden;
148
+ // overflow: hidden + border-radius does not work properly on Safari
149
+ // The following magic line fixes it
150
+ // https://stackoverflow.com/a/58283449
151
+ transform: translateZ(0);
152
+ direction: ltr;
153
+ &--rtl {
154
+ direction: rtl;
155
+ }
156
+
157
+ &--default {
158
+ background-color: $vt-color-default;
159
+ color: $vt-text-color-default;
160
+ }
161
+ &--info {
162
+ background-color: $vt-color-info;
163
+ color: $vt-text-color-info;
164
+ }
165
+ &--success {
166
+ background-color: $vt-color-success;
167
+ color: $vt-text-color-success;
168
+ }
169
+ &--error {
170
+ background-color: $vt-color-error;
171
+ color: $vt-text-color-error;
172
+ }
173
+ &--warning {
174
+ background-color: $vt-color-warning;
175
+ color: $vt-text-color-warning;
176
+ }
177
+
178
+ @media #{$vt-mobile} {
179
+ border-radius: 0px;
180
+ margin-bottom: 0.5rem;
181
+ }
182
+
183
+ &-body {
184
+ flex: 1;
185
+ line-height: 24px;
186
+ font-size: 16px;
187
+ word-break: break-word;
188
+ white-space: pre-wrap;
189
+ }
190
+
191
+ &-component-body {
192
+ flex: 1;
193
+ }
194
+
195
+ &.disable-transition {
196
+ animation: none !important;
197
+ }
198
+ }
199
+
200
+ .#{$vt-namespace}__close-button {
201
+ font-weight: bold;
202
+ font-size: 24px;
203
+ line-height: 24px;
204
+ background: transparent;
205
+ outline: none;
206
+ border: none;
207
+ padding: 0;
208
+ padding-left: 10px;
209
+ cursor: pointer;
210
+ transition: 0.3s ease;
211
+ align-items: center;
212
+ color: #fff;
213
+ opacity: 0.3;
214
+ transition: visibility 0s, opacity 0.2s linear;
215
+ &:hover,
216
+ &:focus {
217
+ opacity: 1;
218
+ }
219
+ .#{$vt-namespace}__toast:not(:hover) &.show-on-hover {
220
+ opacity: 0;
221
+ }
222
+ .#{$vt-namespace}__toast--rtl & {
223
+ padding-left: unset;
224
+ padding-right: 10px;
225
+ }
226
+ }
227
+
228
+ @keyframes scale-x-frames {
229
+ 0% {
230
+ transform: scaleX(1);
231
+ }
232
+ 100% {
233
+ transform: scaleX(0);
234
+ }
235
+ }
236
+
237
+ .#{$vt-namespace}__progress-bar {
238
+ position: absolute;
239
+ bottom: 0;
240
+ left: 0;
241
+ width: 100%;
242
+ height: 5px;
243
+ z-index: ($vt-z-index + 1);
244
+ background-color: rgba(255, 255, 255, 0.7);
245
+ transform-origin: left;
246
+ animation: scale-x-frames linear 1 forwards;
247
+ .#{$vt-namespace}__toast--rtl & {
248
+ right: 0;
249
+ left: unset;
250
+ transform-origin: right;
251
+ }
252
+ }
253
+
254
+ .#{$vt-namespace}__icon {
255
+ margin: auto 18px auto 0px;
256
+ background: transparent;
257
+ outline: none;
258
+ border: none;
259
+ padding: 0;
260
+ transition: 0.3s ease;
261
+ align-items: center;
262
+ width: 20px;
263
+ height: 100%;
264
+ .#{$vt-namespace}__toast--rtl & {
265
+ margin: auto 0px auto 18px;
266
+ }
267
+ }
268
+
269
+ /* ----------------------------------------------
270
+ /* Animations
271
+ /* ---------------------------------------------- */
272
+
273
+ .#{$vt-namespace}__bounce-enter-active {
274
+ &.top-left,
275
+ &.bottom-left {
276
+ animation-name: bounceInLeft;
277
+ }
278
+ &.top-right,
279
+ &.bottom-right {
280
+ animation-name: bounceInRight;
281
+ }
282
+ &.top-center {
283
+ animation-name: bounceInDown;
284
+ }
285
+ &.bottom-center {
286
+ animation-name: bounceInUp;
287
+ }
288
+ }
289
+
290
+ .#{$vt-namespace}__bounce-leave-active:not(.disable-transition) {
291
+ &.top-left,
292
+ &.bottom-left {
293
+ animation-name: bounceOutLeft;
294
+ }
295
+ &.top-right,
296
+ &.bottom-right {
297
+ animation-name: bounceOutRight;
298
+ }
299
+ &.top-center {
300
+ animation-name: bounceOutUp;
301
+ }
302
+ &.bottom-center {
303
+ animation-name: bounceOutDown;
304
+ }
305
+ }
306
+
307
+ .#{$vt-namespace}__bounce-leave-active,
308
+ .#{$vt-namespace}__bounce-enter-active {
309
+ animation-duration: 750ms;
310
+ animation-fill-mode: both;
311
+ }
312
+
313
+ .#{$vt-namespace}__bounce-move {
314
+ transition-timing-function: ease-in-out;
315
+ transition-property: all;
316
+ transition-duration: 400ms;
317
+ }
318
+
319
+ .#{$vt-namespace}__fade-enter-active {
320
+ &.top-left,
321
+ &.bottom-left {
322
+ animation-name: fadeInLeft;
323
+ }
324
+ &.top-right,
325
+ &.bottom-right {
326
+ animation-name: fadeInRight;
327
+ }
328
+ &.top-center {
329
+ animation-name: fadeInTop;
330
+ }
331
+ &.bottom-center {
332
+ animation-name: fadeInBottom;
333
+ }
334
+ }
335
+
336
+ .#{$vt-namespace}__fade-leave-active:not(.disable-transition) {
337
+ &.top-left,
338
+ &.bottom-left {
339
+ animation-name: fadeOutLeft;
340
+ }
341
+ &.top-right,
342
+ &.bottom-right {
343
+ animation-name: fadeOutRight;
344
+ }
345
+ &.top-center {
346
+ animation-name: fadeOutTop;
347
+ }
348
+ &.bottom-center {
349
+ animation-name: fadeOutBottom;
350
+ }
351
+ }
352
+
353
+ .#{$vt-namespace}__fade-leave-active,
354
+ .#{$vt-namespace}__fade-enter-active {
355
+ animation-duration: 750ms;
356
+ animation-fill-mode: both;
357
+ }
358
+
359
+ .#{$vt-namespace}__fade-move {
360
+ transition-timing-function: ease-in-out;
361
+ transition-property: all;
362
+ transition-duration: 400ms;
363
+ }
364
+
365
+ .#{$vt-namespace}__slideBlurred-enter-active {
366
+ &.top-left,
367
+ &.bottom-left {
368
+ animation-name: slideInBlurredLeft;
369
+ }
370
+ &.top-right,
371
+ &.bottom-right {
372
+ animation-name: slideInBlurredRight;
373
+ }
374
+ &.top-center {
375
+ animation-name: slideInBlurredTop;
376
+ }
377
+ &.bottom-center {
378
+ animation-name: slideInBlurredBottom;
379
+ }
380
+ }
381
+
382
+ .#{$vt-namespace}__slideBlurred-leave-active:not(.disable-transition) {
383
+ &.top-left,
384
+ &.bottom-left {
385
+ animation-name: slideOutBlurredLeft;
386
+ }
387
+ &.top-right,
388
+ &.bottom-right {
389
+ animation-name: slideOutBlurredRight;
390
+ }
391
+ &.top-center {
392
+ animation-name: slideOutBlurredTop;
393
+ }
394
+ &.bottom-center {
395
+ animation-name: slideOutBlurredBottom;
396
+ }
397
+ }
398
+
399
+ .#{$vt-namespace}__slideBlurred-leave-active,
400
+ .#{$vt-namespace}__slideBlurred-enter-active {
401
+ animation-duration: 750ms;
402
+ animation-fill-mode: both;
403
+ }
404
+
405
+ .#{$vt-namespace}__slideBlurred-move {
406
+ transition-timing-function: ease-in-out;
407
+ transition-property: all;
408
+ transition-duration: 400ms;
409
+ }