@egovernments/digit-ui-health-css 0.3.1 → 0.3.3

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,426 @@
272
392
  max-width: 35rem;
273
393
 
274
394
  .digit-popup-footer {
395
+ padding-top: 0 !important;
275
396
 
276
- padding-top: 0 !important;
277
-
278
- .digit-popup-footer-buttons {
279
- width: 100% !important;
280
- display: grid;
281
- grid-template-columns: 1fr 1fr;
397
+ .digit-popup-footer-buttons {
398
+ width: 100% !important;
399
+ display: grid;
400
+ grid-template-columns: 1fr 1fr;
282
401
 
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;
419
+ width: 100% !important;
420
+ }
421
+ .rdt_Table {
300
422
  width: 100% !important;
301
423
  }
302
- .rdt_Table{
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 {
303
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
+ }
546
+ .modules-container {
547
+ display: flex;
548
+ gap: 1.5rem;
549
+ align-items: flex-start;
550
+ padding-left: 0rem;
551
+ padding: 1rem;
552
+ padding-left: 0rem;
553
+ }
554
+
555
+ .modules-feature-container {
556
+ display: flex;
557
+ gap: 1.5rem;
558
+ align-items: flex-start;
559
+ padding: 1rem;
560
+ }
561
+ .campaign-module-button {
562
+ width: auto;
563
+ }
564
+ .date-selection {
565
+ width: 100% !important;
566
+ }
567
+ .beneficiary-selection-label {
568
+ margin-bottom: 0rem;
569
+ }
570
+ .selected-card {
571
+ border: 2px solid #f47738;
572
+ background-color: #fef1e4;
573
+ position: relative;
574
+ }
575
+ .selected-header {
576
+ color: theme(digitv2.lightTheme.primary);
577
+ }
578
+
579
+ .hcm-app-features {
580
+ .digit-toggle-toolbar {
581
+ margin-top: 1rem;
582
+ margin-bottom: 0.5rem;
583
+ max-width: 90%;
584
+ > *:first-child label {
585
+ border-top-left-radius: 0.5rem;
586
+ border-bottom-left-radius: 0.5rem;
587
+ }
588
+ > *:last-child label {
589
+ border-top-right-radius: 0.5rem;
590
+ border-bottom-right-radius: 0.5rem;
591
+ }
592
+ }
593
+ }
594
+
595
+ .digit-toggle-toolbar {
596
+ &.app-config-tab {
597
+ width: 10rem;
598
+ top: 15rem;
599
+ position: fixed;
600
+ .toggle-option-container {
601
+ .digit-toggle-btn-wrap {
602
+ height: 7.5rem;
603
+ }
604
+ }
605
+ > *:first-child label {
606
+ border-top-left-radius: 0.5rem;
607
+ }
608
+ > *:last-child label {
609
+ border-top-right-radius: 0.5rem;
610
+ border-bottom-right-radius: 0.5rem;
611
+ }
612
+ }
613
+ }
614
+ .module-description {
615
+ flex-grow: 1;
616
+ margin: 0 0 1rem 0;
617
+ font-family: theme(digitv2.fontFamily.sans);
618
+ font-size: theme(digitv2.fontSize.heading-s);
619
+ color: theme(digitv2.lightTheme.text-color-secondary);
620
+ }
621
+ .name-container-popUp {
622
+ margin-top: 0.8rem;
623
+ font-weight: bold;
624
+ text-wrap: nowrap;
625
+ width: 3.125rem;
626
+ }
627
+ .date-container-popUp {
628
+ margin-top: 0.8rem;
629
+ font-weight: bold;
630
+ text-wrap: nowrap;
631
+ width: 3.125rem;
632
+ }
633
+ .pop-display {
634
+ display: flex;
635
+ margin-top: 1.5rem;
636
+ }
637
+ .popUp-header {
638
+ margin-bottom: 1.5rem;
639
+ }
640
+ .end-date-container-popUp {
641
+ margin-top: 0.8rem;
642
+ font-weight: bold;
643
+ text-wrap: nowrap;
644
+ width: 3.125rem;
645
+ }
646
+
647
+ .app-config-version-tags {
648
+ display: flex;
649
+ align-items: flex-end;
650
+ justify-content: center;
651
+ width: fit-content;
652
+ padding: 0;
653
+ margin: 0;
654
+ margin-left: 54rem;
655
+ margin-bottom: -3.5rem;
656
+ color: theme(digitv2.lightTheme.primary-2);
657
+ font-family: theme(digitv2.fontFamily.rc);
658
+ font-size: theme(digitv2.fontSize.heading-s);
659
+ font-weight: 700;
660
+
661
+ .app-config-placeholder-version-tag {
662
+ width: 30%;
663
+ }
664
+ .app-config-version-tag {
665
+ width: 40%;
666
+ }
667
+ }
668
+
669
+ .version-tag{
670
+ .digit-tag-text{
671
+ font-size: 0.75rem;
672
+ }
673
+
674
+ }
675
+
676
+ .content-group {
677
+ display: flex;
678
+ align-items: center;
679
+ gap: 1.5rem;
680
+ padding: 1rem 0;
681
+ border-bottom: 1px solid #ddd;
682
+ }
683
+
684
+ .content-group.no-border {
685
+ border-bottom: none;
686
+ padding-bottom: 0rem;
687
+ margin-bottom: 0rem;
688
+ }
689
+
690
+ .content-icon {
691
+ width: 6.5rem;
692
+ height: 6.5rem;
693
+ object-fit: contain;
694
+ margin-top: 4px;
695
+ flex-shrink: 0;
696
+ }
697
+
698
+ .content-text-block {
699
+ display: flex;
700
+ flex-direction: column;
701
+ }
702
+
703
+ .content-bold-text {
704
+ font-weight: bold;
705
+ font-size: 1.5rem;
706
+ margin-bottom: 4px;
707
+ color: theme(digitv2.lightTheme.primary-2);
708
+ }
709
+
710
+ .content-regular-text {
711
+ font-size: theme(digitv2.fontSize.heading-s);
712
+ color: theme(digitv2.lightTheme.text-color-secondary);
713
+ }
714
+
715
+ /* Fallback text group */
716
+ .text-group {
717
+ display: flex;
718
+ flex-direction: column;
719
+ gap: 4px;
720
+ margin-bottom: 12px;
721
+ }
722
+
723
+ .bold-text {
724
+ font-weight: bold;
725
+ margin: 0;
726
+ }
727
+
728
+ .regular-text {
729
+ margin: 0;
730
+ }
731
+
732
+ .paragraph-text {
733
+ margin-bottom: 12px;
734
+ }
735
+
736
+ .image-block {
737
+ margin: 10px 0;
738
+ }
739
+
740
+ .responsive-image {
741
+ max-width: 100%;
742
+ height: auto;
743
+ }
744
+
745
+ .list-block {
746
+ padding-left: 20px;
747
+ margin-bottom: 12px;
748
+ }
749
+ .campaign-requirements-heading {
750
+ .digit-popup-icon-header-container {
751
+ .digit-popup-heading-subheading-wrap {
752
+ .digit-popup-heading {
753
+ color: theme(digitv2.lightTheme.primary-2);
754
+ }
755
+ }
756
+ }
757
+ }
758
+
759
+ .cycleBold {
760
+ font-weight: 700;
761
+ }
762
+
763
+ .feature-container {
764
+ display: flex;
765
+ }
766
+ .app-config {
767
+ width: auto;
768
+ }
769
+
770
+ .QR-pop-up {
771
+ width: fit-content;
772
+ }
773
+ .app-config-flex-container {
774
+ display: flex;
775
+ flex-direction: column;
776
+ align-items: center;
777
+ margin-right: 24rem;
778
+ margin-left: unquote("min(10%, 12rem)");
779
+ gap: 2rem;
780
+ width: fit-content;
781
+ align-items: flex-end;
782
+ }
783
+ .feature-container {
784
+ display: flex;
785
+ }
786
+ .app-config {
787
+ width: auto;
788
+ margin-top: 1rem;
789
+ .toggle-option-container {
790
+ height: 7.5rem;
791
+ }
792
+ }
793
+ .progress-popup {
794
+ .digit-popup-close {
795
+ display: none !important;
796
+ }
797
+ }
798
+ .update-boundary-header {
799
+ color: theme(digitv2.lightTheme.primary-2);
800
+ font-size: theme(fontSize.heading-xl);
801
+ }
802
+ .select-boundary {
803
+ color: theme(digitv2.lightTheme.primary-2) !important;
804
+ }
805
+ .appConfigLabelField-toggleVisibility {
806
+ position: absolute;
807
+ cursor: pointer;
808
+ top: 1rem;
809
+ right: 1rem;
810
+ }
811
+ .dynamic-image-component{
812
+ max-width: 100%;
813
+ margin-bottom: -2.5rem;
814
+ }
815
+ .start-header{
816
+ color: theme(digitv2.lightTheme.primary-2) !important;
304
817
  }