@egovernments/digit-ui-health-css 0.3.2 → 0.3.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.
@@ -1,10 +1,12 @@
1
1
  @import url("../../index.scss");
2
2
  @import "../../typography.scss";
3
+ @import "./campaignCommon.scss";
3
4
 
4
5
  .summary-header {
5
6
  @extend .typography.text-heading-l;
6
7
  font-size: 2.25rem;
7
8
  margin-bottom: 1.5rem !important;
9
+ color: theme(digitv2.lightTheme.primary-2);
8
10
  }
9
11
  .date-field-container {
10
12
  display: grid;
@@ -40,9 +42,7 @@
40
42
  font-weight: bold;
41
43
  }
42
44
  .mandatory-date {
43
- margin-top: 0.8rem;
44
- margin-left: 0.5rem;
45
- color: red !important;
45
+ color: theme(digitv2.lightTheme.error-v2) !important;
46
46
  font-size: 1rem;
47
47
  font-weight: 700;
48
48
  }
@@ -52,9 +52,11 @@
52
52
  }
53
53
  .name-description {
54
54
  margin: 0rem;
55
+ color: theme(digitv2.lightTheme.text-color-secondary);
55
56
  }
56
57
  .dates-description {
57
58
  margin: 0rem;
59
+ color: theme(digitv2.lightTheme.text-color-secondary);
58
60
  }
59
61
  .selecting-boundary-div {
60
62
  padding-top: 0.5rem;
@@ -169,7 +171,7 @@
169
171
 
170
172
  p {
171
173
  margin: 0;
172
- margin-bottom: 0.25rem;
174
+ margin-bottom: 1rem;
173
175
  }
174
176
 
175
177
  .mandatory-date {
@@ -210,13 +212,11 @@
210
212
  width: 100%;
211
213
  }
212
214
  .campaign-tag {
213
- border: 0.5px solid #0b4b66;
214
- margin-bottom: 1rem;
215
- height: 3.3rem;
216
215
  .digit-tag-text {
217
- font-size: 1.5rem;
218
- font-weight: 700;
216
+ color: #0057bd !important;
219
217
  }
218
+ background-color: #eff8ff !important;
219
+ border-color: #0057bd !important;
220
220
  }
221
221
  .digit-popup-wrapper.dataMapping {
222
222
  .digit-popup-children-wrap {
@@ -225,13 +225,14 @@
225
225
  }
226
226
  .dataMappingCard {
227
227
  overflow-y: scroll;
228
+ margin-top: 1.5rem;
228
229
  }
229
230
  .dataMappingDropdown {
230
231
  min-width: 13rem !important;
231
232
  }
232
233
  .data-mapping-filter-switch {
233
234
  float: right;
234
- margin-right: 5rem;
235
+ margin-right: 0rem;
235
236
  margin-bottom: 0rem;
236
237
  }
237
238
  .digit-label-field-pair.multiselect-label-field {
@@ -240,15 +241,133 @@
240
241
  }
241
242
  }
242
243
 
244
+ .date-style {
245
+ max-width: 37.5rem;
246
+ display: flex;
247
+ gap: 1rem;
248
+ }
249
+
250
+ .app-preview {
251
+ display: flex;
252
+ width: 29rem;
253
+ height: calc(100vh - 22rem);
254
+
255
+ overflow-y: auto;
256
+ border: 1px solid theme(digitv2.lightTheme.primary);
257
+ border-radius: 1rem;
258
+ background-color: white;
259
+ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
260
+ margin: 5px auto; /* updated margin since we added page no */
261
+ font-family: Arial, sans-serif;
262
+ scrollbar-width: thin; /* Firefox */
263
+ scrollbar-color: #d6d5d4 #fafafa; /* Firefox */
264
+
265
+ &::-webkit-scrollbar {
266
+ width: 5px;
267
+ background: #fafafa;
268
+ }
269
+
270
+ &::-webkit-scrollbar-thumb {
271
+ background: #d6d5d4;
272
+ border-radius: 8px;
273
+ min-height: 40px;
274
+ }
275
+
276
+ &::-webkit-scrollbar-track {
277
+ background: #fafafa;
278
+ border-radius: 8px;
279
+ }
280
+
281
+ &::-webkit-scrollbar-button {
282
+ display: none !important;
283
+ height: 0 !important;
284
+ width: 0 !important;
285
+ }
286
+
287
+ .digit-card-component {
288
+ height: max-content;
289
+
290
+ .digit-description {
291
+ .digit-card-text {
292
+ margin-bottom: 0rem;
293
+ }
294
+ }
295
+ }
296
+
297
+ .digit-card-header {
298
+ color: #0b4b66;
299
+ font-size: 2rem;
300
+ font-weight: 700;
301
+ }
302
+
303
+ .digit-card-text {
304
+ color: #787878;
305
+ font-weight: 400;
306
+ font-size: 0.875rem;
307
+ line-height: 137%;
308
+ }
309
+
310
+ .app-card {
311
+ min-height: 100%;
312
+ gap: 0.5rem;
313
+ box-shadow: none;
314
+ border-style: none;
315
+ padding: 1rem;
316
+ &::-webkit-scrollbar-button {
317
+ display: none !important;
318
+ height: 0 !important;
319
+ width: 0 !important;
320
+ }
321
+ }
322
+ }
323
+ .app-card {
324
+ flex-direction: column;
325
+ display: flex;
326
+ min-height: 100%;
327
+ gap: 0.5rem;
328
+ box-shadow: none;
329
+ border-style: none;
330
+ padding: 1rem;
331
+ }
332
+ .mobile-bezel-outerWrapper {
333
+ transform: scale(0.8);
334
+ margin-top: -5rem;
335
+ }
336
+
337
+ .app-config-tag-page-fixed {
338
+ position: fixed;
339
+ top: 15rem;
340
+ left: 67rem;
341
+ color: theme(digitv2.lightTheme.primary-2);
342
+ font-family: theme(digitv2.fontFamily.rc);
343
+ font-weight: 700;
344
+ }
345
+ .mobile-top {
346
+ background-color: theme(digitv2.lightTheme.header-sidenav);
347
+ height: 4rem;
348
+ display: flex;
349
+ align-items: center;
350
+ padding: 0 1rem;
351
+ color: theme(digitv2.lightTheme.paper);
352
+ font-size: 1.5rem;
353
+ font-weight: theme(digitv2.fontWeight.bold);
354
+ width: 100%;
355
+ /* Full width */
356
+ box-sizing: border-box;
357
+ border-top-left-radius: 1rem;
358
+ border-top-right-radius: 1rem;
359
+ }
360
+
243
361
  .appConfiglabelField {
244
- padding: 3rem 1rem;
362
+ position: relative;
363
+ padding: 1rem;
245
364
  background-color: #eee;
246
365
  border: 1px solid #d6d5d4;
247
366
  border-radius: 0.5rem;
248
367
  }
249
368
  .appConfiglabelField.selected {
250
369
  background-color: #f477381a;
251
- border: 1px solid #c84c0e;
370
+ border: 1px solid theme(digitv2.lightTheme.primary);
252
371
  }
253
372
  .appConfig-flow-stepper {
254
373
  margin-top: 2rem;
@@ -263,6 +382,7 @@
263
382
  }
264
383
  .appConfiglabelField-label {
265
384
  width: 25rem;
385
+ margin-bottom: 0.5rem;
266
386
  }
267
387
  .app-config-actionBar {
268
388
  z-index: 9999;
@@ -272,33 +392,439 @@
272
392
  max-width: 35rem;
273
393
 
274
394
  .digit-popup-footer {
395
+ padding-top: 0 !important;
275
396
 
276
- padding-top: 0 !important;
397
+ .digit-popup-footer-buttons {
398
+ width: 100% !important;
399
+ display: grid;
400
+ grid-template-columns: 1fr 1fr;
277
401
 
278
- .digit-popup-footer-buttons {
279
- width: 100% !important;
280
- display: grid;
281
- grid-template-columns: 1fr 1fr;
282
-
283
- .digit-button-secondary {
284
- width: 100%;
285
- }
402
+ .digit-button-secondary {
403
+ width: 100%;
404
+ }
286
405
 
287
- .digit-button-primary {
288
- width: 100%;
289
- }
406
+ .digit-button-primary {
407
+ width: 100%;
290
408
  }
409
+ }
291
410
  }
292
411
 
293
412
  .digit-popup-children-wrap {
294
- padding-top: 0 !important;
295
- overflow: visible;
413
+ padding-top: 0 !important;
414
+ overflow: visible;
296
415
  }
297
416
  }
298
417
  .rdt_TableBody {
299
- border: 1px solid #ccc !important;
418
+ border: 1px solid #ccc !important;
300
419
  width: 100% !important;
301
420
  }
302
- .rdt_Table{
421
+ .rdt_Table {
303
422
  width: 100% !important;
304
- }
423
+ }
424
+ .campaign-header-style {
425
+ color: theme(digitv2.lightTheme.primary-2);
426
+ font-size: 2.5rem;
427
+ }
428
+ .campaign-header-module-style {
429
+ color: theme(digitv2.lightTheme.primary-2);
430
+ font-size: 2.5rem;
431
+ margin-bottom: 1rem !important;
432
+ }
433
+ .SubHeadingClass {
434
+ color: theme(digitv2.lightTheme.text-color-secondary);
435
+ font-weight: 400;
436
+ font-size: 1rem;
437
+ }
438
+ .date-header {
439
+ width: 100% !important;
440
+ color: theme(digitv2.lightTheme.primary-2);
441
+ font-weight: 700;
442
+ font-size: 40px;
443
+ padding-bottom: 0.5rem;
444
+ }
445
+ .descStyle {
446
+ font-family: "Roboto";
447
+ font-weight: 500;
448
+ font-size: 24px;
449
+ color: theme(digitv2.lightTheme.primary);
450
+ text-align: center;
451
+ margin-top: 1.5rem;
452
+ .disabledText {
453
+ color: #c5c5c5;
454
+ }
455
+ }
456
+ .containerStyle {
457
+ display: flex;
458
+ justify-content: center;
459
+ flex-wrap: wrap;
460
+ margin-top: 2rem;
461
+ gap: 2rem;
462
+ }
463
+ .cardStyle {
464
+ display: flex;
465
+ justify-content: center;
466
+ align-items: center;
467
+ width: 400px;
468
+ height: 139px;
469
+ border: 1.5px solid theme(digitv2.lightTheme.primary);
470
+ border-radius: 4px;
471
+ margin: 1rem;
472
+ cursor: pointer;
473
+ flex-direction: column;
474
+ text-align: center;
475
+ transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
476
+ background-color: #fff;
477
+ }
478
+ .cardStyle:hover {
479
+ transform: translateY(-5px);
480
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
481
+ }
482
+ .disabledCard {
483
+ cursor: not-allowed;
484
+ border: 1.5px solid #c5c5c5;
485
+ .descStyle {
486
+ color: #c5c5c5;
487
+ }
488
+ svg {
489
+ fill: theme(digitv2.lightTheme.text-color-secondary);
490
+ }
491
+ }
492
+
493
+ .app-config-radio {
494
+ display: flex;
495
+ margin-top: 1rem;
496
+ flex-direction: column;
497
+ }
498
+ .create-campaign-card {
499
+ gap: 0;
500
+ grid-gap: 0;
501
+ }
502
+ .details-heading {
503
+ display: flex;
504
+ justify-content: space-between;
505
+ }
506
+ .icon-heading {
507
+ gap: 1rem;
508
+ display: flex;
509
+ }
510
+ .detail-desc {
511
+ margin-top: 1.5rem;
512
+ margin-bottom: 1.5rem;
513
+ color: theme(digitv2.lightTheme.text-color-secondary);
514
+ }
515
+ .dates {
516
+ margin-top: 0.5rem;
517
+ color: theme(digitv2.lightTheme.text-color-secondary);
518
+ font-family: theme(digitv2.fontFamily.sans);
519
+ font-size: theme(digitv2.fontSize.heading-s);
520
+ }
521
+ .detail-header {
522
+ font-size: theme(digitv2.fontSize.heading-m);
523
+ color: theme(digitv2.lightTheme.primary-2);
524
+ font-family: "roboto";
525
+ }
526
+ .details-desc {
527
+ color: theme(digitv2.lightTheme.text-color-secondary);
528
+ font-family: theme(digitv2.fontFamily.sans);
529
+ font-size: theme(digitv2.fontSize.heading-s);
530
+ }
531
+ .campaign-details-header {
532
+ display: flex;
533
+ justify-content: space-between;
534
+ }
535
+ .campaign-view-tag {
536
+ margin-left: 1rem;
537
+ height: fit-content;
538
+ }
539
+
540
+ .module-card {
541
+ width: 21rem;
542
+ height: 20rem;
543
+ border: 1px;
544
+ border-radius: 0.75rem;
545
+ display: flex;
546
+ flex-direction: column;
547
+ justify-content: space-between;
548
+
549
+ }
550
+ .modules-container {
551
+ display: flex;
552
+ gap: 1.5rem;
553
+ flex-wrap: wrap;
554
+ align-items: stretch;
555
+ padding-left: 0rem;
556
+ padding: 1rem;
557
+ padding-left: 0rem;
558
+ grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
559
+
560
+ }
561
+
562
+ .modules-feature-container {
563
+ display: flex;
564
+ gap: 1.5rem;
565
+ align-items: flex-start;
566
+ padding: 1rem;
567
+ }
568
+ .campaign-module-button {
569
+ width: auto;
570
+ }
571
+ .date-selection {
572
+ width: 100% !important;
573
+ }
574
+ .beneficiary-selection-label {
575
+ margin-bottom: 0rem;
576
+ }
577
+ .selected-card {
578
+ border: 2px solid #f47738;
579
+ background-color: #fef1e4;
580
+ position: relative;
581
+ }
582
+ .selected-header {
583
+ color: theme(digitv2.lightTheme.primary);
584
+ }
585
+
586
+ .hcm-app-features {
587
+ .digit-toggle-toolbar {
588
+ margin-top: 1rem;
589
+ margin-bottom: 0.5rem;
590
+ max-width: 90%;
591
+ > *:first-child label {
592
+ border-top-left-radius: 0.5rem;
593
+ border-bottom-left-radius: 0.5rem;
594
+ }
595
+ > *:last-child label {
596
+ border-top-right-radius: 0.5rem;
597
+ border-bottom-right-radius: 0.5rem;
598
+ }
599
+ }
600
+ }
601
+
602
+ .digit-toggle-toolbar {
603
+ &.app-config-tab {
604
+ width: 10rem;
605
+ top: 15rem;
606
+ position: fixed;
607
+ .toggle-option-container {
608
+ .digit-toggle-btn-wrap {
609
+ height: 7.5rem;
610
+ }
611
+ }
612
+ > *:first-child label {
613
+ border-top-left-radius: 0.5rem;
614
+ }
615
+ > *:last-child label {
616
+ border-top-right-radius: 0.5rem;
617
+ border-bottom-right-radius: 0.5rem;
618
+ }
619
+ }
620
+ }
621
+ .module-description {
622
+ flex-grow: 1;
623
+ margin: 0 0 1rem 0;
624
+ font-family: theme(digitv2.fontFamily.sans);
625
+ font-size: theme(digitv2.fontSize.heading-s);
626
+ color: theme(digitv2.lightTheme.text-color-secondary);
627
+ overflow-wrap: break-word;
628
+ }
629
+ .name-container-popUp {
630
+ margin-top: 0.8rem;
631
+ font-weight: bold;
632
+ text-wrap: nowrap;
633
+ width: 3.125rem;
634
+ }
635
+ .date-container-popUp {
636
+ margin-top: 0.8rem;
637
+ font-weight: bold;
638
+ text-wrap: nowrap;
639
+ width: 3.125rem;
640
+ }
641
+ .pop-display {
642
+ display: flex;
643
+ margin-top: 1.5rem;
644
+ }
645
+ .popUp-header {
646
+ margin-bottom: 1.5rem;
647
+ }
648
+ .end-date-container-popUp {
649
+ margin-top: 0.8rem;
650
+ font-weight: bold;
651
+ text-wrap: nowrap;
652
+ width: 3.125rem;
653
+ }
654
+
655
+ .app-config-version-tags {
656
+ display: flex;
657
+ align-items: flex-end;
658
+ justify-content: center;
659
+ width: fit-content;
660
+ padding: 0;
661
+ margin: 0;
662
+ margin-left: 54rem;
663
+ margin-bottom: -3.5rem;
664
+ color: theme(digitv2.lightTheme.primary-2);
665
+ font-family: theme(digitv2.fontFamily.rc);
666
+ font-size: theme(digitv2.fontSize.heading-s);
667
+ font-weight: 700;
668
+
669
+ .app-config-placeholder-version-tag {
670
+ width: 30%;
671
+ }
672
+ .app-config-version-tag {
673
+ width: 40%;
674
+ }
675
+ }
676
+
677
+ .version-tag {
678
+ .digit-tag-text {
679
+ font-size: 0.75rem;
680
+ }
681
+ }
682
+
683
+ .content-group {
684
+ display: flex;
685
+ align-items: center;
686
+ gap: 1.5rem;
687
+ padding: 1rem 0;
688
+ border-bottom: 1px solid #ddd;
689
+ }
690
+
691
+ .content-group.no-border {
692
+ border-bottom: none;
693
+ padding-bottom: 0rem;
694
+ margin-bottom: 0rem;
695
+ }
696
+
697
+ .content-icon {
698
+ width: 6.5rem;
699
+ height: 6.5rem;
700
+ object-fit: contain;
701
+ margin-top: 4px;
702
+ flex-shrink: 0;
703
+ }
704
+
705
+ .content-text-block {
706
+ display: flex;
707
+ flex-direction: column;
708
+ }
709
+
710
+ .content-bold-text {
711
+ font-weight: bold;
712
+ font-size: 1.5rem;
713
+ margin-bottom: 4px;
714
+ color: theme(digitv2.lightTheme.primary-2);
715
+ }
716
+
717
+ .content-regular-text {
718
+ font-size: theme(digitv2.fontSize.heading-s);
719
+ color: theme(digitv2.lightTheme.text-color-secondary);
720
+ }
721
+
722
+ /* Fallback text group */
723
+ .text-group {
724
+ display: flex;
725
+ flex-direction: column;
726
+ gap: 4px;
727
+ margin-bottom: 12px;
728
+ }
729
+
730
+ .bold-text {
731
+ font-weight: bold;
732
+ margin: 0;
733
+ }
734
+
735
+ .regular-text {
736
+ margin: 0;
737
+ }
738
+
739
+ .paragraph-text {
740
+ margin-bottom: 12px;
741
+ }
742
+
743
+ .image-block {
744
+ margin: 10px 0;
745
+ }
746
+
747
+ .responsive-image {
748
+ max-width: 100%;
749
+ height: auto;
750
+ }
751
+
752
+ .list-block {
753
+ padding-left: 20px;
754
+ margin-bottom: 12px;
755
+ }
756
+ .campaign-requirements-heading {
757
+ .digit-popup-icon-header-container {
758
+ .digit-popup-heading-subheading-wrap {
759
+ .digit-popup-heading {
760
+ color: theme(digitv2.lightTheme.primary-2);
761
+ }
762
+ }
763
+ }
764
+ }
765
+
766
+ .cycleBold {
767
+ font-weight: 700;
768
+ }
769
+
770
+ .feature-container {
771
+ display: flex;
772
+ }
773
+ .app-config {
774
+ width: auto;
775
+ }
776
+
777
+ .QR-pop-up {
778
+ width: fit-content;
779
+ }
780
+ .app-config-flex-container {
781
+ display: flex;
782
+ flex-direction: column;
783
+ align-items: center;
784
+ margin-right: 24rem;
785
+ margin-left: unquote("min(10%, 12rem)");
786
+ gap: 2rem;
787
+ width: fit-content;
788
+ align-items: flex-end;
789
+ }
790
+ .feature-container {
791
+ display: flex;
792
+ }
793
+ .app-config {
794
+ width: auto;
795
+ margin-top: 1rem;
796
+ .toggle-option-container {
797
+ height: 7.5rem;
798
+ }
799
+ }
800
+ .progress-popup {
801
+ .digit-popup-close {
802
+ display: none !important;
803
+ }
804
+ }
805
+ .update-boundary-header {
806
+ color: theme(digitv2.lightTheme.primary-2);
807
+ font-size: theme(fontSize.heading-xl);
808
+ }
809
+ .select-boundary {
810
+ color: theme(digitv2.lightTheme.primary-2) !important;
811
+ }
812
+ .appConfigLabelField-toggleVisibility {
813
+ position: absolute;
814
+ cursor: pointer;
815
+ top: 1rem;
816
+ right: 1rem;
817
+ }
818
+ .dynamic-image-component {
819
+ max-width: 100%;
820
+ margin-bottom: -2.5rem;
821
+ }
822
+ .start-header {
823
+ color: theme(digitv2.lightTheme.primary-2) !important;
824
+ }
825
+ .digit-loader-new.Overlayloader.loader-center {
826
+ position: fixed;
827
+ top: 50%;
828
+ left: 50%;
829
+ transform: translate(-50%, -50%);
830
+ }