@egovernments/digit-ui-components-css 0.0.2-beta.1 → 0.0.2-beta.11

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.
Files changed (197) hide show
  1. package/CHANGELOG.md +88 -54
  2. package/README.md +80 -80
  3. package/dist/index.css +5782 -14109
  4. package/dist/index.min.css +2 -2
  5. package/package.json +69 -67
  6. package/src/digitv2/components/FormComposerV2.scss +118 -118
  7. package/src/digitv2/components/actionbarV2.scss +207 -110
  8. package/src/digitv2/components/backLinkV2.scss +37 -0
  9. package/src/digitv2/components/bodyContainerV2.scss +39 -39
  10. package/src/digitv2/components/breadcrumbV2.scss +57 -0
  11. package/src/digitv2/components/buttonsV2.scss +451 -407
  12. package/src/digitv2/components/cardV2.scss +498 -383
  13. package/src/digitv2/components/cardbasedoptionsV2.scss +47 -0
  14. package/src/digitv2/components/{cardLabelV2.scss → cardlabelV2.scss} +7 -7
  15. package/src/digitv2/components/checkboxV2.scss +83 -79
  16. package/src/digitv2/components/{tagV2.scss → chipV2.scss} +129 -120
  17. package/src/digitv2/components/dividerV2.scss +11 -0
  18. package/src/digitv2/components/{ErrorMessage.scss → errorMessageV2.scss} +20 -18
  19. package/src/digitv2/components/fieldV1.scss +96 -96
  20. package/src/digitv2/components/headerdropdownV2.scss +152 -0
  21. package/src/digitv2/components/infoCardV2.scss +139 -142
  22. package/src/digitv2/components/{infobuttons.scss → infobuttonV2.scss} +75 -75
  23. package/src/digitv2/components/labelFieldPairV2.scss +66 -57
  24. package/src/digitv2/components/mobileNumberV2.scss +65 -65
  25. package/src/digitv2/components/multiSelectDropdownV2.scss +315 -315
  26. package/src/digitv2/components/{panelcard.scss → panelCardV2.scss} +160 -160
  27. package/src/digitv2/components/{panels.scss → panelV2.scss} +114 -114
  28. package/src/digitv2/components/popUpV2.scss +330 -308
  29. package/src/digitv2/components/radiobtnV2.scss +115 -113
  30. package/src/digitv2/components/{selectdropdownV2.scss → selectDropdownV2.scss} +364 -360
  31. package/src/digitv2/components/{stepper.scss → stepperV2.scss} +147 -126
  32. package/src/digitv2/components/textInputV2.scss +462 -462
  33. package/src/digitv2/components/textareaV2.scss +99 -99
  34. package/src/digitv2/components/{textblock.scss → textblockV2.scss} +46 -46
  35. package/src/digitv2/components/{timeline.scss → timelineV2.scss} +170 -126
  36. package/src/digitv2/components/toastV2.scss +80 -80
  37. package/src/digitv2/components/{toggle.scss → toggleV2.scss} +72 -72
  38. package/src/digitv2/components/topbarV2.scss +388 -187
  39. package/src/digitv2/components/treeSelectV2.scss +132 -132
  40. package/src/digitv2/components/{uploader.scss → uploaderV2.scss} +556 -468
  41. package/src/digitv2/components/viewCardFieldPairV2.scss +45 -0
  42. package/src/digitv2/index.scss +169 -197
  43. package/src/digitv2/pages/employee/index.scss +1 -1
  44. package/src/digitv2/pages/employee/workbench.scss +615 -615
  45. package/src/digitv2/typography.scss +638 -657
  46. package/src/index.scss +681 -774
  47. package/src/pages/employee/index.scss +625 -625
  48. package/src/pages/employee/login.scss +220 -220
  49. package/img/browser-icon.png +0 -0
  50. package/img/m_seva_white_logo.png +0 -0
  51. package/img/mseva-demo.png +0 -0
  52. package/src/components/CardBasedOptions.scss +0 -46
  53. package/src/components/CitizenHomeCard.scss +0 -56
  54. package/src/components/EllipsisMenu.scss +0 -17
  55. package/src/components/EventCalendarView.scss +0 -10
  56. package/src/components/FAQ.scss +0 -64
  57. package/src/components/OnGroundEventCard.scss +0 -72
  58. package/src/components/PageBasedInput.scss +0 -29
  59. package/src/components/PopupHeadingLabel.scss +0 -15
  60. package/src/components/PropertySearchForm.scss +0 -58
  61. package/src/components/SearchForm.scss +0 -56
  62. package/src/components/SearchOnRadioButton.scss +0 -10
  63. package/src/components/StandaloneSearchBar.scss +0 -10
  64. package/src/components/TimeLine.scss +0 -68
  65. package/src/components/WhatsNewCard.scss +0 -13
  66. package/src/components/actionLink.scss +0 -3
  67. package/src/components/actionbar.scss +0 -97
  68. package/src/components/bannercomponents.scss +0 -136
  69. package/src/components/body.scss +0 -144
  70. package/src/components/buttons.scss +0 -101
  71. package/src/components/card.scss +0 -391
  72. package/src/components/cardHeaderWithOptions.scss +0 -14
  73. package/src/components/changeLanguage.scss +0 -3
  74. package/src/components/charts.scss +0 -186
  75. package/src/components/checkbox.scss +0 -53
  76. package/src/components/checkpoint.scss +0 -63
  77. package/src/components/citizenInfoLabel.scss +0 -14
  78. package/src/components/custombtn.scss +0 -11
  79. package/src/components/datatable.scss +0 -134
  80. package/src/components/datewrap.scss +0 -21
  81. package/src/components/detailscard.scss +0 -6
  82. package/src/components/detailscontainer.scss +0 -13
  83. package/src/components/filters.scss +0 -98
  84. package/src/components/grey.scss +0 -3
  85. package/src/components/hoc/InboxComposer.scss +0 -115
  86. package/src/components/hoc/index.scss +0 -1
  87. package/src/components/howItWorks.scss +0 -71
  88. package/src/components/imageviewer.scss +0 -33
  89. package/src/components/inboxv2/InboxLinks.scss +0 -59
  90. package/src/components/inboxv2/horizontalNav.scss +0 -224
  91. package/src/components/inboxv2/inboxSearch.scss +0 -116
  92. package/src/components/inboxv2/inboxSearchComposer.scss +0 -134
  93. package/src/components/inboxv2/index.scss +0 -5
  94. package/src/components/inboxv2/searchComponentTable.scss +0 -44
  95. package/src/components/info-banner.scss +0 -35
  96. package/src/components/inputotp.scss +0 -15
  97. package/src/components/keynote.scss +0 -27
  98. package/src/components/languageSelector.scss +0 -24
  99. package/src/components/loader.scss +0 -96
  100. package/src/components/map.scss +0 -30
  101. package/src/components/menu.scss +0 -0
  102. package/src/components/metricsTable.scss +0 -28
  103. package/src/components/multiLink.scss +0 -88
  104. package/src/components/multiSelectDropdown.scss +0 -77
  105. package/src/components/navbar.scss +0 -312
  106. package/src/components/plusMinus.scss +0 -15
  107. package/src/components/popup.scss +0 -16
  108. package/src/components/radiobtn.scss +0 -45
  109. package/src/components/ratingstar.scss +0 -33
  110. package/src/components/roundedLabel.scss +0 -10
  111. package/src/components/searchAction.scss +0 -20
  112. package/src/components/sectionalDropdown.scss +0 -43
  113. package/src/components/selectdropdown.scss +0 -174
  114. package/src/components/sidebar.scss +0 -141
  115. package/src/components/staticDynamicMessages.scss +0 -107
  116. package/src/components/staticSideBar.scss +0 -27
  117. package/src/components/statushighlight.scss +0 -17
  118. package/src/components/submiterrors.scss +0 -11
  119. package/src/components/summary.scss +0 -29
  120. package/src/components/table.scss +0 -201
  121. package/src/components/tag.scss +0 -27
  122. package/src/components/telephone.scss +0 -17
  123. package/src/components/textfields.scss +0 -96
  124. package/src/components/toast.scss +0 -31
  125. package/src/components/toggleSwitch.scss +0 -41
  126. package/src/components/topbar.scss +0 -153
  127. package/src/components/uploadcomponents.scss +0 -100
  128. package/src/digitv2/components/CitizenHomeCardV2.scss +0 -56
  129. package/src/digitv2/components/PageBasedInputV2.scss +0 -33
  130. package/src/digitv2/components/WhatsNewCardV2.scss +0 -13
  131. package/src/digitv2/components/actionLinkV2.scss +0 -9
  132. package/src/digitv2/components/appContainerV2.scss +0 -49
  133. package/src/digitv2/components/backButtonV2.scss +0 -26
  134. package/src/digitv2/components/bannerV2.scss +0 -120
  135. package/src/digitv2/components/breadCrumbV2.scss +0 -34
  136. package/src/digitv2/components/breakLineV2.scss +0 -6
  137. package/src/digitv2/components/cardBasedOptionsV2.scss +0 -46
  138. package/src/digitv2/components/checkpointV2.scss +0 -71
  139. package/src/digitv2/components/collapseAndExpandGroups.scss +0 -60
  140. package/src/digitv2/components/dateWrapV2.scss +0 -17
  141. package/src/digitv2/components/detailsCardV2.scss +0 -17
  142. package/src/digitv2/components/displayPhotosV2.scss +0 -33
  143. package/src/digitv2/components/footerV2.scss +0 -55
  144. package/src/digitv2/components/headerBarV2.scss +0 -34
  145. package/src/digitv2/components/headerV2.scss +0 -12
  146. package/src/digitv2/components/keynoteV2.scss +0 -35
  147. package/src/digitv2/components/loaderV2.scss +0 -85
  148. package/src/digitv2/components/modalV2.scss +0 -46
  149. package/src/digitv2/components/multiUploadWrapperV2.scss +0 -6
  150. package/src/digitv2/components/navbarV2.scss +0 -9
  151. package/src/digitv2/components/noresultsfoundV2.scss +0 -11
  152. package/src/digitv2/components/numeric.scss +0 -47
  153. package/src/digitv2/components/otpInputV2.scss +0 -15
  154. package/src/digitv2/components/paragraphV2.scss +0 -5
  155. package/src/digitv2/components/ratingV2.scss +0 -33
  156. package/src/digitv2/components/searchActionV2.scss +0 -11
  157. package/src/digitv2/components/searchFormV2.scss +0 -76
  158. package/src/digitv2/components/searchcomponent.scss +0 -7
  159. package/src/digitv2/components/sidebarV2.scss +0 -11
  160. package/src/digitv2/components/telephoneV2.scss +0 -18
  161. package/src/digitv2/components/toggleswitchV2.scss +0 -42
  162. package/src/digitv2/components/uploadFileV2.scss +0 -146
  163. package/src/pages/citizen/CitizenEngagementNotificationWrapper.scss +0 -8
  164. package/src/pages/citizen/DocumentList.scss +0 -305
  165. package/src/pages/citizen/Events.scss +0 -47
  166. package/src/pages/citizen/HomePageWrapper.scss +0 -158
  167. package/src/pages/citizen/SurveyList.scss +0 -22
  168. package/src/pages/citizen/citizenDocument.scss +0 -22
  169. package/src/pages/citizen/container.scss +0 -19
  170. package/src/pages/citizen/payment/payment-type.scss +0 -3
  171. package/src/pages/citizen/updatePropertyNumber.scss +0 -46
  172. package/src/pages/employee/EmployeeLogin.scss +0 -7
  173. package/src/pages/employee/cardfix.scss +0 -13
  174. package/src/pages/employee/container.scss +0 -72
  175. package/src/pages/employee/dss.scss +0 -266
  176. package/src/pages/employee/form-fields.scss +0 -13
  177. package/src/pages/employee/iframe.scss +0 -66
  178. package/src/pages/employee/inbox.scss +0 -585
  179. package/src/pages/employee/oldMobileInbox.scss +0 -5
  180. package/src/pages/employee/popupmodule.scss +0 -34
  181. package/src/pages/employee/response.scss +0 -3
  182. package/src/pages/employee/scroll-table.scss +0 -119
  183. package/src/pages/employee/surveys.scss +0 -273
  184. package/src/pages/employee/tooltip.scss +0 -36
  185. package/src/pages/employee/updateNumber.scss +0 -13
  186. package/svg/arrowdown.svg +0 -1
  187. package/svg/arrowleft.svg +0 -1
  188. package/svg/calendar.svg +0 -1
  189. package/svg/camera.svg +0 -4
  190. package/svg/check.svg +0 -4
  191. package/svg/close.svg +0 -4
  192. package/svg/error.svg +0 -4
  193. package/svg/error2.svg +0 -5
  194. package/svg/searchicon.svg +0 -4
  195. package/svg/starempty.svg +0 -4
  196. package/svg/starfilled.svg +0 -5
  197. package/svg/success.svg +0 -4
@@ -1,97 +1,97 @@
1
- @import url("../index.scss");
2
-
3
- .digit-header-content {
4
-
5
- &.label {
6
- @extend .typography.body-l;
7
- @apply flex ;
8
- color: theme(digitv2.lightTheme.text-primary);
9
- gap: theme(digitv2.spacers.spacer1);
10
-
11
- &.wraplabel {
12
- @media (min-aspect-ratio: 9/16){
13
- height: fit-content;
14
- word-break: break-word;
15
- }
16
- }
17
-
18
- .label-container {
19
- @apply flex items-center w-full;
20
- gap: theme(digitv2.spacers.spacer1);
21
-
22
- &.wraplabel{
23
- @media (min-aspect-ratio: 9/16) {
24
- @apply items-end;
25
- }
26
- }
27
- }
28
-
29
- .info-icon {
30
- @apply relative cursor-pointer;
31
- width: 1.188rem;
32
- height: 1.188rem;
33
- }
34
-
35
- .info-icon .infotext {
36
- @extend .typography.body-s;
37
- @apply absolute text-center;
38
- visibility: hidden;
39
- width: 7.5rem;
40
- background-color: #555555;
41
- color: theme(digitv2.lightTheme.paper-primary);
42
- padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
43
- z-index: 1;
44
- bottom: 100%;
45
- left: 50%;
46
- margin-left: -3.75rem;
47
- border-radius: 0.375rem;
48
- }
49
-
50
- .info-icon:hover .infotext {
51
- @apply visible;
52
- }
53
-
54
- .label-styles {
55
- @apply overflow-hidden whitespace-no-wrap;
56
- text-overflow: ellipsis;
57
-
58
- &.wraplabel {
59
- @media (min-aspect-ratio: 9/16){
60
- @apply whitespace-normal;
61
- }
62
- }
63
- }
64
- }
65
- }
66
-
67
- .digit-field {
68
-
69
- @apply flex flex-col w-full;
70
- gap: theme(digitv2.spacers.spacer1);
71
-
72
- .digit-description,
73
- .digit-charcount {
74
- @extend .typography.body-s;
75
- @apply flex justify-between items-baseline;
76
- color: theme(digitv2.lightTheme.text-secondary);
77
- gap: theme(digitv2.spacers.spacer2);
78
-
79
-
80
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
81
- max-width: 27.5rem;
82
- }
83
-
84
- @media (max-aspect-ratio: 9/16) {
85
- max-width: 20.5rem;
86
- width: 100%;
87
- }
88
-
89
- @media (min-aspect-ratio: 3/4){
90
- max-width: 37.5rem;
91
- }
92
- }
93
-
94
- .digit-charcount {
95
- @apply justify-end;
96
- }
1
+ @import url("../index.scss");
2
+
3
+ .digit-header-content {
4
+
5
+ &.label {
6
+ @extend .typography.body-l;
7
+ @apply flex ;
8
+ color: theme(digitv2.lightTheme.text-primary);
9
+ gap: theme(digitv2.spacers.spacer1);
10
+
11
+ &.wraplabel {
12
+ @media (min-aspect-ratio: 9/16){
13
+ height: fit-content;
14
+ word-break: break-word;
15
+ }
16
+ }
17
+
18
+ .label-container {
19
+ @apply flex items-center w-full;
20
+ gap: theme(digitv2.spacers.spacer1);
21
+
22
+ &.wraplabel{
23
+ @media (min-aspect-ratio: 9/16) {
24
+ @apply items-end;
25
+ }
26
+ }
27
+ }
28
+
29
+ .info-icon {
30
+ @apply relative cursor-pointer;
31
+ width: 1.188rem;
32
+ height: 1.188rem;
33
+ }
34
+
35
+ .info-icon .infotext {
36
+ @extend .typography.body-s;
37
+ @apply absolute text-center;
38
+ visibility: hidden;
39
+ width: 7.5rem;
40
+ background-color: #555555;
41
+ color: theme(digitv2.lightTheme.paper-primary);
42
+ padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
43
+ z-index: 1;
44
+ bottom: 100%;
45
+ left: 50%;
46
+ margin-left: -3.75rem;
47
+ border-radius: 0.375rem;
48
+ }
49
+
50
+ .info-icon:hover .infotext {
51
+ @apply visible;
52
+ }
53
+
54
+ .label-styles {
55
+ @apply overflow-hidden whitespace-no-wrap;
56
+ text-overflow: ellipsis;
57
+
58
+ &.wraplabel {
59
+ @media (min-aspect-ratio: 9/16){
60
+ @apply whitespace-normal;
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+ .digit-field {
68
+
69
+ @apply flex flex-col w-full;
70
+ gap: theme(digitv2.spacers.spacer1);
71
+
72
+ .digit-description,
73
+ .digit-charcount {
74
+ @extend .typography.body-s;
75
+ @apply flex justify-between items-baseline;
76
+ color: theme(digitv2.lightTheme.text-secondary);
77
+ gap: theme(digitv2.spacers.spacer2);
78
+
79
+
80
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
81
+ max-width: 27.5rem;
82
+ }
83
+
84
+ @media (max-aspect-ratio: 9/16) {
85
+ max-width: 100%;
86
+ width: 100%;
87
+ }
88
+
89
+ @media (min-aspect-ratio: 3/4){
90
+ max-width: 37.5rem;
91
+ }
92
+ }
93
+
94
+ .digit-charcount {
95
+ @apply justify-end;
96
+ }
97
97
  }
@@ -0,0 +1,152 @@
1
+ .header-dropdown-profile {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: theme(digitv2.spacers.spacer8);
6
+ height: theme(digitv2.spacers.spacer8);
7
+ overflow: hidden;
8
+ border-radius: 50%;
9
+
10
+ &.text {
11
+ color: theme(digitv2.lightTheme.paper-primary);
12
+ font-weight: 700;
13
+ background: theme(digitv2.lightTheme.primary-2);
14
+ }
15
+
16
+ &.dark {
17
+ &.text {
18
+ background: theme(digitv2.lightTheme.paper-primary);
19
+ font-weight: 700;
20
+ color: theme(digitv2.lightTheme.primary-2);
21
+ }
22
+ }
23
+
24
+ img {
25
+ width: 100%;
26
+ height: auto;
27
+ display: block;
28
+ }
29
+ }
30
+
31
+ .header-dropdown-label {
32
+ @extend .typography.body-s;
33
+ cursor: pointer;
34
+ display: flex;
35
+ align-items: center;
36
+ color: theme(digitv2.lightTheme.text-primary);
37
+ position: relative;
38
+
39
+ &.dark {
40
+ color: theme(digitv2.lightTheme.paper-primary);
41
+ }
42
+ }
43
+
44
+ .header-dropdown-arrow {
45
+ margin-left: theme(digitv2.spacers.spacer2);
46
+ width: theme(digitv2.spacers.spacer6);
47
+ height: theme(digitv2.spacers.spacer6);
48
+ }
49
+
50
+ .header-dropdown-menu {
51
+ width: fit-content !important;
52
+ box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.275rem theme(digitv2.spacers.spacer0) #00000026;
53
+ max-height: 80%;
54
+ background-color: theme(digitv2.lightTheme.paper-primary);
55
+ margin-top: theme(digitv2.spacers.spacer5);
56
+ position: fixed;
57
+ min-width: 14rem;
58
+ max-width: 25rem;
59
+ @apply z-30 overflow-y-auto overflow-x-hidden;
60
+ }
61
+
62
+ .header-dropdown-search-container {
63
+ height: 3.5rem;
64
+ min-width: 14rem;
65
+ max-width: 25rem;
66
+ width: auto;
67
+ padding: theme(digitv2.spacers.spacer3) !important;
68
+ }
69
+
70
+ .header-dropdown-search {
71
+ height: theme(digitv2.spacers.spacer8) !important;
72
+ min-width: 12.5rem;
73
+ max-width: 23.5rem;
74
+
75
+ .digit-text-input-customIcon {
76
+ height: theme(digitv2.spacers.spacer5);
77
+ width: theme(digitv2.spacers.spacer5);
78
+ top: 0.4rem;
79
+ right: theme(digitv2.spacers.spacer4);
80
+ }
81
+
82
+ .input-container {
83
+ max-height: 100%;
84
+ }
85
+
86
+ input {
87
+ max-height: 100%;
88
+ }
89
+ }
90
+
91
+ .header-dropdown-options {
92
+ max-height: 12.5rem;
93
+ overflow-y: auto;
94
+ }
95
+
96
+ .header-dropdown-option {
97
+ @extend .typography.body-s;
98
+ @apply whitespace-no-wrap w-full max-w-full overflow-hidden;
99
+ padding: theme(digitv2.spacers.spacer4) 0.625rem;
100
+ color: theme(digitv2.lightTheme.text-primary);
101
+ gap: theme(digitv2.spacers.spacer2);
102
+ height: theme(digitv2.spacers.spacer10);
103
+ display: flex;
104
+ align-items: center;
105
+ word-break: break-word;
106
+ text-overflow: ellipsis;
107
+ cursor: pointer;
108
+
109
+ svg {
110
+ flex-shrink: 0;
111
+ }
112
+ }
113
+
114
+ .header-dropdown-option:not(:hover):not(:active):nth-of-type(2n +1) {
115
+ background-color: theme(digitv2.lightTheme.paper-secondary);
116
+ }
117
+
118
+ .header-dropdown-nooption {
119
+ @extend .typography.body-s;
120
+ padding: theme(digitv2.spacers.spacer2);
121
+ pointer-events: none;
122
+ color: theme(digitv2.lightTheme.text-disabled);
123
+ background-color: theme(digitv2.lightTheme.paper-secondary);
124
+ }
125
+
126
+ .header-dropdown-option:hover,
127
+ .header-dropdown-option.keyChange {
128
+ background: theme(digitv2.lightTheme.primary-bg) !important;
129
+ border: 0.031rem solid theme(digitv2.lightTheme.primary-1);
130
+ }
131
+
132
+ .header-dropdown-option:active,
133
+ .header-dropdown-option.activeIndex {
134
+ @extend .typography.heading-s;
135
+ background: theme(digitv2.lightTheme.primary-1) !important;
136
+ color: theme(digitv2.lightTheme.paper-primary);
137
+ }
138
+
139
+ .header-dropdown-options::-webkit-scrollbar {
140
+ width: theme(digitv2.spacers.spacer2);
141
+ background-color: theme(digitv2.lightTheme.generic-background);
142
+ }
143
+
144
+ .header-dropdown-options::-webkit-scrollbar-track {
145
+ background-color: theme(digitv2.lightTheme.generic-background);
146
+ border-radius: 0.563rem;
147
+ }
148
+
149
+ .header-dropdown-options::-webkit-scrollbar-thumb {
150
+ background-color: theme(digitv2.lightTheme.generic-divider);
151
+ border-radius: 0.563rem;
152
+ }
@@ -1,143 +1,140 @@
1
- @import url("../index.scss");
2
- @import url("../typography.scss");
3
-
4
- .digit-infobanner-wrap {
5
- @apply m-sm p-md flex flex-col;
6
- top: theme(digitv2.spacers.spacer5);
7
- left: theme(digitv2.spacers.spacer5);
8
- gap: theme(digitv2.spacers.spacer2);
9
- background-color: theme(digitv2.lightTheme.alert-infobg);
10
-
11
- border: 0.063rem solid theme(digitv2.lightTheme.alert-info);
12
- border-left-width: theme(digitv2.spacers.spacer1);
13
-
14
- div {
15
- @apply flex;
16
- gap: theme(digitv2.spacers.spacer2);
17
- min-height: theme(digitv2.spacers.spacer6);
18
-
19
- svg {
20
- flex-shrink: 0;
21
- }
22
- }
23
-
24
- .digit-infobanner-header {
25
- @apply w-full max-w-full overflow-hidden text-left;
26
- font-family: theme(digitv2.fontFamily.sans);
27
- font-weight: theme(digitv2.fontWeight.bold);
28
- color: theme(digitv2.lightTheme.alert-info);
29
- font-size: theme(digitv2.spacers.spacer4);
30
- line-height: 1.172rem;
31
- letter-spacing: theme(digitv2.spacers.spacer0);
32
- margin: 0.164rem theme(digitv2.spacers.spacer0);
33
- white-space: normal;
34
- word-break: break-word;
35
- }
36
-
37
- p {
38
- @apply whitespace-pre-line text-left;
39
- font-weight: theme(digitv2.fontWeight.regular);
40
- color: theme(digitv2.lightTheme.text-secondary);
41
- font-style: theme(digitv2.fontStyle.normal);
42
- font-family: theme(digitv2.fontFamily.sans);
43
- font-size: 0.875rem;
44
- line-height: theme(digitv2.spacers.spacer5);
45
- letter-spacing: theme(digitv2.spacers.spacer0);
46
- margin: theme(digitv2.spacers.spacer0);
47
- }
48
-
49
- &.digit-core-variant {
50
- margin: theme(digitv2.spacers.spacer8) theme(digitv2.spacers.spacer0);
51
- padding: 0.625rem;
52
- background-color: #ffe2b5;
53
- border-radius: theme(digitv2.spacers.spacer1);
54
- }
55
-
56
- &.success {
57
- background-color: theme(digitv2.lightTheme.alert-successbg);
58
- border: 0.063rem solid theme(digitv2.lightTheme.alert-success);
59
- border-left-width: theme(digitv2.spacers.spacer1);
60
-
61
- .digit-infobanner-header{
62
- color: theme(digitv2.lightTheme.alert-success);
63
- }
64
- }
65
-
66
- &.warning {
67
- background-color: theme(digitv2.lightTheme.alert-warning-bg);
68
- border: 0.063rem solid theme(digitv2.lightTheme.alert-warning);
69
- border-left-width: theme(digitv2.spacers.spacer1);
70
-
71
- .digit-infobanner-header{
72
- color: theme(digitv2.lightTheme.alert-warning);
73
- }
74
- }
75
-
76
- &.error {
77
- background-color: theme(digitv2.lightTheme.alert-errorbg);
78
- border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
79
- border-left-width: theme(digitv2.spacers.spacer1);
80
-
81
- .digit-infobanner-header{
82
- color: theme(digitv2.lightTheme.alert-error);
83
- }
84
- }
85
-
86
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
87
- /* Media query for tablets */
88
- max-width: 44.5rem;
89
- min-width: 22.5rem;
90
- }
91
-
92
- @media (max-aspect-ratio: 9/16) {
93
- /* Media query for mobile */
94
- max-width: 21.5rem;
95
- min-width: 15rem;
96
- }
97
-
98
- @media (min-aspect-ratio: 3/4) {
99
- /* Media query for desktop */
100
- max-width: 87rem;
101
- min-width: 25rem;
102
- }
103
-
104
- &.inline {
105
- @apply flex-row items-start;
106
- }
107
-
108
- &.column {
109
- @apply flex-col;
110
- }
111
-
112
- .additional-elements-inline {
113
- @apply flex flex-wrap items-start;
114
- gap: theme(digitv2.spacers.spacer2);
115
-
116
- .individualElement{
117
- h2{
118
- margin: theme(digitv2.spacers.spacer0);
119
- color: theme(digitv2.lightTheme.text-primary);
120
- }
121
- }
122
- }
123
-
124
- .additional-elements-column {
125
- @apply flex flex-col items-start;
126
- gap: theme(digitv2.spacers.spacer2);
127
-
128
- .individualElement {
129
- @apply w-full max-w-full;
130
-
131
- h2{
132
- margin: theme(digitv2.spacers.spacer0);
133
- color: theme(digitv2.lightTheme.text-primary);
134
- }
135
-
136
- }
137
- }
138
-
139
- img {
140
- @apply max-w-full;
141
- }
142
-
1
+ @import url("../index.scss");
2
+ @import url("../typography.scss");
3
+
4
+ .digit-infobanner-wrap {
5
+ @apply p-md flex flex-col;
6
+ top: theme(digitv2.spacers.spacer5);
7
+ left: theme(digitv2.spacers.spacer5);
8
+ gap: theme(digitv2.spacers.spacer2);
9
+ background-color: theme(digitv2.lightTheme.alert-infobg);
10
+
11
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-info);
12
+ border-left-width: theme(digitv2.spacers.spacer1);
13
+
14
+ div {
15
+ @apply flex;
16
+ gap: theme(digitv2.spacers.spacer2);
17
+ min-height: theme(digitv2.spacers.spacer6);
18
+
19
+ svg {
20
+ flex-shrink: 0;
21
+ }
22
+ }
23
+
24
+ .digit-infobanner-header {
25
+ @apply w-full max-w-full overflow-hidden text-left;
26
+ font-family: theme(digitv2.fontFamily.sans);
27
+ font-weight: theme(digitv2.fontWeight.bold);
28
+ color: theme(digitv2.lightTheme.alert-info);
29
+ font-size: theme(digitv2.spacers.spacer4);
30
+ line-height: 1.172rem;
31
+ letter-spacing: theme(digitv2.spacers.spacer0);
32
+ margin: 0.164rem theme(digitv2.spacers.spacer0);
33
+ white-space: normal;
34
+ word-break: break-word;
35
+ }
36
+
37
+ p {
38
+ @apply whitespace-pre-line text-left;
39
+ font-weight: theme(digitv2.fontWeight.regular);
40
+ color: theme(digitv2.lightTheme.text-secondary);
41
+ font-style: theme(digitv2.fontStyle.normal);
42
+ font-family: theme(digitv2.fontFamily.sans);
43
+ font-size: 0.875rem;
44
+ line-height: theme(digitv2.spacers.spacer5);
45
+ letter-spacing: theme(digitv2.spacers.spacer0);
46
+ margin: theme(digitv2.spacers.spacer0);
47
+ }
48
+
49
+ &.digit-core-variant {
50
+ margin: theme(digitv2.spacers.spacer8) theme(digitv2.spacers.spacer0);
51
+ padding: 0.625rem;
52
+ background-color: #ffe2b5;
53
+ border-radius: theme(digitv2.spacers.spacer1);
54
+ }
55
+
56
+ &.success {
57
+ background-color: theme(digitv2.lightTheme.alert-successbg);
58
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-success);
59
+ border-left-width: theme(digitv2.spacers.spacer1);
60
+
61
+ .digit-infobanner-header{
62
+ color: theme(digitv2.lightTheme.alert-success);
63
+ }
64
+ }
65
+
66
+ &.warning {
67
+ background-color: theme(digitv2.lightTheme.alert-warning-bg);
68
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-warning);
69
+ border-left-width: theme(digitv2.spacers.spacer1);
70
+
71
+ .digit-infobanner-header{
72
+ color: theme(digitv2.lightTheme.alert-warning);
73
+ }
74
+ }
75
+
76
+ &.error {
77
+ background-color: theme(digitv2.lightTheme.alert-errorbg);
78
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
79
+ border-left-width: theme(digitv2.spacers.spacer1);
80
+
81
+ .digit-infobanner-header{
82
+ color: theme(digitv2.lightTheme.alert-error);
83
+ }
84
+ }
85
+
86
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
87
+ /* Media query for tablets */
88
+ max-width: 44.5rem;
89
+ }
90
+
91
+ @media (max-aspect-ratio: 9/16) {
92
+ /* Media query for mobile */
93
+ max-width: 21.5rem;
94
+ }
95
+
96
+ @media (min-aspect-ratio: 3/4) {
97
+ /* Media query for desktop */
98
+ max-width: 87rem;
99
+ }
100
+
101
+ &.inline {
102
+ @apply flex-row items-start;
103
+ }
104
+
105
+ &.column {
106
+ @apply flex-col;
107
+ }
108
+
109
+ .additional-elements-inline {
110
+ @apply flex flex-wrap items-start;
111
+ gap: theme(digitv2.spacers.spacer2);
112
+
113
+ .individualElement{
114
+ h2{
115
+ margin: theme(digitv2.spacers.spacer0);
116
+ color: theme(digitv2.lightTheme.text-primary);
117
+ }
118
+ }
119
+ }
120
+
121
+ .additional-elements-column {
122
+ @apply flex flex-col items-start;
123
+ gap: theme(digitv2.spacers.spacer2);
124
+
125
+ .individualElement {
126
+ @apply w-full max-w-full;
127
+
128
+ h2{
129
+ margin: theme(digitv2.spacers.spacer0);
130
+ color: theme(digitv2.lightTheme.text-primary);
131
+ }
132
+
133
+ }
134
+ }
135
+
136
+ img {
137
+ @apply max-w-full;
138
+ }
139
+
143
140
  }