benivo-ui-library 1.7.26 → 1.7.28

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/button.less CHANGED
@@ -3,14 +3,14 @@
3
3
  //
4
4
  .client-hub {
5
5
  .btn {
6
- font-family: @btn-font-family;
7
- font-weight: @btn-font-weight;
8
- font-size: @btn-font-size;
9
- line-height: @btn-line-height;
10
- font-style: @btn-text-style;
11
- text-decoration: @btn-text-decoration;
12
- text-transform: @btn-text-transform;
13
- letter-spacing: @btn-letter-spaceing;
6
+ font-family: proxima-nova, sans-serif;
7
+ font-weight: 400;
8
+ font-size: 0.875rem;
9
+ line-height: 1;
10
+ font-style: normal;
11
+ text-decoration: none;
12
+ text-transform: none;
13
+ letter-spacing: normal;
14
14
  .border-radius(.25rem) !important;
15
15
  }
16
16
 
@@ -0,0 +1,575 @@
1
+ @white: #fff;
2
+ @home-grey: @gray-bg;
3
+ @hover-color: #f4f5f7;
4
+ @table-row-radius: 4px;
5
+ @th-border-color: #ced0da;
6
+ @green: #04bf6a;
7
+
8
+ .spinner-wrapper {
9
+ position: relative;
10
+
11
+ .table-spinner-overlay {
12
+ position: absolute;
13
+ top: 0;
14
+ z-index: 1;
15
+ left: 5px;
16
+ width: auto;
17
+ right: 15px;
18
+ height: ~"calc(100% - 85px)";
19
+ }
20
+ }
21
+
22
+ .data-table {
23
+ overflow-x: auto;
24
+ overflow-y: hidden;
25
+ position: relative;
26
+ min-height: ~"calc(100vh - 220px)";
27
+
28
+ &.on-loading {
29
+ overflow-x: hidden;
30
+ overflow-y: hidden;
31
+ }
32
+
33
+ table {
34
+ border-collapse: separate;
35
+ border-spacing: 0 12px;
36
+ table-layout: unset;
37
+ margin-bottom: 0;
38
+
39
+ thead th,
40
+ tbody td {
41
+ border-bottom: none;
42
+ padding: 10px 24px;
43
+ }
44
+
45
+ thead {
46
+ padding: 0;
47
+
48
+ tr {
49
+ th {
50
+ border: none;
51
+ //background-color: @home-grey;
52
+ text-transform: unset;
53
+ font-size: @font-size;
54
+ text-align: left;
55
+ padding: 1px 24px;
56
+
57
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
58
+ vertical-align: top;
59
+ }
60
+
61
+ &:not(:first-child) {
62
+ min-width: 190px;
63
+
64
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
65
+ width: 210px;
66
+ vertical-align: top;
67
+ }
68
+ }
69
+
70
+ &.empty-col {
71
+ min-width: unset;
72
+ }
73
+
74
+ &:first-child {
75
+ width: 60px;
76
+ border-right: none !important;
77
+
78
+ &:not(.visible-xs) {
79
+ @media @md-max {
80
+ display: none;
81
+ }
82
+ }
83
+ }
84
+
85
+ &:not(:last-child) {
86
+ border-right: 1px solid @th-border-color;
87
+ }
88
+
89
+ &.left-space {
90
+ padding-left: 44px;
91
+ }
92
+
93
+ .required-point {
94
+ color: @error-color;
95
+ }
96
+
97
+ &.long-cell {
98
+ min-width: 270px;
99
+ }
100
+
101
+ .checkbox-cell-wrapper {
102
+ display: flex;
103
+ justify-content: space-between;
104
+ align-items: baseline;
105
+
106
+ .form-check {
107
+ margin-bottom: 0;
108
+ padding-left: 0;
109
+ min-height: 1rem;
110
+
111
+ &:before {
112
+ top: 0;
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ tbody {
121
+ tr {
122
+ cursor: pointer;
123
+ padding: 10px;
124
+ .border-radius(4px);
125
+ .box-shadow(0 1px 0 0 rgba(0, 0, 0, 0.06));
126
+ background-color: #ffffff;
127
+ position: relative;
128
+
129
+ @media (hover: hover) {
130
+ &:hover {
131
+ .sticky {
132
+ position: sticky;
133
+ right: 20px;
134
+ top: 0;
135
+ min-width: 0;
136
+ display: table-cell;
137
+ vertical-align: middle;
138
+
139
+
140
+ .icon-wraper {
141
+ display: flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ height: 30px;
145
+ width: 30px;
146
+ background: #ffffff;
147
+ border: 1px solid #CED0DA;
148
+ .border-radius(4px);
149
+ .box-shadow(0 1px 0 0 rgba(0,0,0,0.06));
150
+
151
+ .icon-Delete {
152
+ &:before {
153
+ color: @primary-color;
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+
161
+ &.is-new {
162
+ @media @lg-max {
163
+ z-index: 1;
164
+ overflow: hidden;
165
+
166
+ .sticky {
167
+ position: sticky;
168
+ right: 0;
169
+ top: 0;
170
+ min-width: 0;
171
+ display: table-cell;
172
+ vertical-align: middle;
173
+ background-color: transparent;
174
+
175
+ .icon-wraper {
176
+ display: flex;
177
+ align-items: center;
178
+ justify-content: center;
179
+ height: 30px;
180
+ width: 30px;
181
+ background: #ffffff;
182
+ border: 1px solid #CED0DA;
183
+ .border-radius(4px);
184
+ .box-shadow(0 1px 0 0 rgba(0,0,0,0.06));
185
+
186
+ .icon-Delete {
187
+ &:before {
188
+ color: @primary-color;
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
194
+ }
195
+
196
+
197
+ &:hover {
198
+ background-color: @hover-color;
199
+
200
+ td {
201
+ background-color: @hover-color;
202
+ }
203
+
204
+ .status-cell {
205
+ a:not(.nav-link) {
206
+ visibility: visible;
207
+ }
208
+ }
209
+ }
210
+
211
+ .sticky {
212
+ display: none;
213
+ }
214
+
215
+ td {
216
+ border-right: none;
217
+ border-left: none;
218
+ background-color: @white;
219
+ text-overflow: ellipsis;
220
+ white-space: nowrap;
221
+ font-size: @font-size;
222
+
223
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
224
+ width: 210px;
225
+ vertical-align: top;
226
+ white-space: normal;
227
+ word-break: break-all;
228
+ }
229
+
230
+ &.has-preview {
231
+ display: flex;
232
+ justify-content: space-between;
233
+ align-items: baseline;
234
+ }
235
+
236
+ &.select-cell {
237
+ max-width: 210px;
238
+ }
239
+
240
+ &.checkbox-cell {
241
+ display: flex;
242
+ justify-content: space-between;
243
+ align-items: baseline;
244
+
245
+ .form-check {
246
+ margin-bottom: 0;
247
+ padding-left: 0;
248
+ min-height: 1rem;
249
+
250
+ &:before {
251
+ top: 0;
252
+ }
253
+ }
254
+ }
255
+
256
+ &.employee-cell {
257
+ color: @gray-text;
258
+
259
+ &.cell-top {
260
+ vertical-align: top;
261
+ padding-top: 5px;
262
+ padding-bottom: 5px;
263
+ }
264
+
265
+ small {
266
+ display: block;
267
+ font-size: 80%;
268
+ }
269
+ }
270
+
271
+ &.status-cell {
272
+
273
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
274
+ white-space: normal;
275
+ word-break: normal;
276
+ }
277
+
278
+ > span {
279
+ display: flex;
280
+ justify-content: space-between;
281
+ align-items: baseline;
282
+ padding-right: 22px;
283
+
284
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
285
+ position: relative;
286
+ }
287
+
288
+ a:not(.nav-link) {
289
+ visibility: hidden;
290
+ display: inline-block;
291
+ margin-left: 150px;
292
+ text-decoration: none;
293
+
294
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
295
+ position: absolute;
296
+ height: 100%;
297
+ display: flex;
298
+ align-items: center;
299
+ width: 100%;
300
+ left: 0px;
301
+ }
302
+ }
303
+ }
304
+
305
+ &.cell-top {
306
+ vertical-align: top;
307
+ padding-top: 5px;
308
+ padding-bottom: 5px;
309
+ }
310
+
311
+ small {
312
+ display: block;
313
+ font-size: 80%;
314
+ }
315
+ }
316
+
317
+ &:first-child {
318
+ border-top-left-radius: @table-row-radius;
319
+ border-bottom-left-radius: @table-row-radius;
320
+ color: @gray-text;
321
+ padding-left: 10px;
322
+ padding-right: 2px;
323
+
324
+ &:not(.checkbox-cell) {
325
+ @media @md-max {
326
+ display: none;
327
+ }
328
+ }
329
+ }
330
+
331
+ &:last-child {
332
+ border-top-right-radius: @table-row-radius;
333
+ border-bottom-right-radius: @table-row-radius;
334
+ }
335
+
336
+ .form-group {
337
+ margin-bottom: 0;
338
+ }
339
+
340
+ .field-invalid-msg {
341
+ display: none;
342
+ }
343
+
344
+ &.row-menu {
345
+ border: 1px solid @gray-divider;
346
+ position: relative;
347
+ cursor: pointer;
348
+ padding: 0;
349
+ width: 50px;
350
+ text-align: center;
351
+
352
+ &.disable {
353
+ opacity: .5;
354
+ pointer-events: none;
355
+ }
356
+
357
+ .icon-dot-menu {
358
+ font-size: 21px;
359
+ width: 50px;
360
+ display: inline-block;
361
+ }
362
+
363
+
364
+ .menu-box {
365
+ z-index: 10;
366
+ position: absolute;
367
+ top: 10px;
368
+ right: 30px;
369
+ background-color: #fff;
370
+ .border-radius(4px);
371
+ .box-shadow(@box-shadow);
372
+ padding: 12px 0 12px 0;
373
+
374
+ &.top {
375
+ top: unset;
376
+ bottom: 6px;
377
+ }
378
+
379
+ .icon {
380
+ &:before {
381
+ color: #94979B;
382
+ width: 15px;
383
+ }
384
+ }
385
+ }
386
+ }
387
+ }
388
+
389
+ .vip-label {
390
+ font-size: 12px;
391
+ color: @green;
392
+ font-weight: @font-weight-semibold;
393
+ margin-left: 5px;
394
+ letter-spacing: 2px;
395
+
396
+ .icon-task-star-rating-default {
397
+ font-weight: @font-weight-semibold;
398
+
399
+ &:before {
400
+ color: @green
401
+ }
402
+ }
403
+ }
404
+
405
+ .assignment-cell {
406
+ display: flex;
407
+ align-items: center;
408
+
409
+ .count {
410
+ display: inline-flex;
411
+ justify-content: center;
412
+ align-items: center;
413
+ width: 18px;
414
+ height: 18px;
415
+ .border-radius(50%);
416
+ background-color: @primary-color;
417
+ color: #fff;
418
+ font-size: @extra-small-font-size;
419
+ line-height: 1;
420
+ margin-left: 12px;
421
+ padding-right: 1px;
422
+ }
423
+ }
424
+
425
+ .avatar-icon {
426
+ display: inline-block;
427
+ height: 30px;
428
+ width: 30px;
429
+ .border-radius(50%);
430
+ border: 1px solid;
431
+ text-align: center;
432
+ line-height: 2.3;
433
+ font-size: 12px;
434
+ font-weight: @font-weight-semibold;
435
+ position: relative;
436
+ text-transform: uppercase;
437
+
438
+ .icon {
439
+ line-height: 2.4;
440
+ }
441
+
442
+ .tooltip-inner {
443
+ white-space: initial;
444
+ text-align: left;
445
+ line-height: 1.3;
446
+ }
447
+
448
+ .icon-initiation {
449
+ position: absolute;
450
+ bottom: -6px;
451
+ right: -6px;
452
+ display: flex;
453
+ justify-content: center;
454
+ align-items: center;
455
+ width: 20px;
456
+ height: 20px;
457
+ background: #ffffff;
458
+ padding: 4px;
459
+ .border-radius(6px);
460
+
461
+ & > span {
462
+ background-position: center;
463
+ background-size: contain;
464
+ background-repeat: no-repeat;
465
+ display: inline-block;
466
+ width: 100%;
467
+ height: 100%;
468
+ }
469
+
470
+ .tooltip {
471
+ color: @text-color;
472
+
473
+ p {
474
+ margin-bottom: 0;
475
+
476
+ &:last-child {
477
+ color: #94979B;
478
+ margin-top: 3px;
479
+ }
480
+
481
+ .capitalize {
482
+ text-transform: capitalize;
483
+ }
484
+ }
485
+ }
486
+ }
487
+ }
488
+
489
+ &.is-new {
490
+ background-color: @hover-color;
491
+ color: #94979B;
492
+
493
+ td {
494
+ background-color: @hover-color;
495
+ color: #94979B;
496
+
497
+ &.id-cell {
498
+ min-height: 52px;
499
+
500
+ &.has-preview {
501
+ align-items: center;
502
+ }
503
+ }
504
+
505
+ .draft-badge {
506
+ display: inline-block;
507
+ padding: 3px 5px;
508
+ margin-left: 5px;
509
+ border-radius: @border-radius;
510
+ background-color: @gray-bg;
511
+ border: 1px solid @light-gray-border;
512
+ }
513
+
514
+ &:nth-last-child(2) {
515
+ border-top-right-radius: @table-row-radius;
516
+ border-bottom-right-radius: @table-row-radius;
517
+ }
518
+ }
519
+
520
+ &:hover {
521
+ .id-cell.has-preview {
522
+ .draft-badge {
523
+ display: none;
524
+ }
525
+ }
526
+ }
527
+ }
528
+ }
529
+ }
530
+ }
531
+
532
+ &::-webkit-scrollbar {
533
+ width: 17px;
534
+ height: 4px;
535
+ }
536
+
537
+ &::-webkit-scrollbar-track,
538
+ &::-webkit-scrollbar-thumb {
539
+ opacity: 0.5;
540
+ .border-radius(8px);
541
+ background-clip: padding-box;
542
+ }
543
+
544
+ &::-webkit-scrollbar-track {
545
+ background-color: @custom-scrollbar-track-color;
546
+ }
547
+
548
+ &::-webkit-scrollbar-thumb {
549
+ background-color: @custom-scrollbar-thumb-color;
550
+ }
551
+
552
+ &::-webkit-scrollbar-corner {
553
+ background-color: transparent;
554
+ }
555
+
556
+ &.increase-scroll-height::-webkit-scrollbar {
557
+ height: 8px;
558
+ }
559
+ }
560
+
561
+ .data-table-skeleton {
562
+ padding-top: 56px;
563
+
564
+ .react-loading-skeleton {
565
+ margin-top: 14px;
566
+ }
567
+ }
568
+
569
+ .table-cell-ellipsis {
570
+ &:extend(.ellipsis-text);
571
+ max-width: 200px;
572
+ display: inline-block;
573
+ vertical-align: middle;
574
+ margin-right: 6px;
575
+ }