@egovernments/digit-ui-components-css 0.0.2-beta.24 → 0.0.2-beta.25

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.
@@ -73,6 +73,25 @@
73
73
 
74
74
  .timeline-date {
75
75
  @extend .typography.body-s;
76
+ font-family: theme(digitv2.fontFamily.sans);
77
+ font-style: theme(digitv2.fontStyle.normal);
78
+ font-weight: theme(digitv2.fontWeight.regular);
79
+ line-height: theme(digitv2.lineHeight.lineheight2);
80
+
81
+ @media (max-aspect-ratio: 9/16) {
82
+ /* Media query for mobile */
83
+ font-size: theme(digitv2.fontSize.body-s.mobile);
84
+ }
85
+
86
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
87
+ /* Media query for tablets */
88
+ font-size: theme(digitv2.fontSize.body-s.tablet);
89
+ }
90
+
91
+ @media (min-aspect-ratio: 3/4) {
92
+ /* Media query for desktop */
93
+ font-size: theme(digitv2.fontSize.body-s.desktop);
94
+ }
76
95
  @apply text-left;
77
96
  color: theme(digitv2.lightTheme.text-secondary);
78
97
  }
@@ -1,4 +1,4 @@
1
- .digit-toast-success {
1
+ /*.digit-toast-success {
2
2
  @apply fixed flex z-20 w-full max-w-full left-0 items-center;
3
3
  bottom: -(theme(digitv2.spacers.spacer12));
4
4
  gap: theme(digitv2.spacers.spacer2);
@@ -76,6 +76,84 @@
76
76
  }
77
77
  }
78
78
 
79
+ .digit-toast-success.animate {
80
+ animation: slideInFromBottom 0.5s ease forwards;
81
+ }*/
82
+
83
+ .digit-toast-success {
84
+ max-width: 100%;
85
+ width: auto;
86
+ gap: theme(digitv2.spacers.spacer2);
87
+ height: theme(digitv2.spacers.spacer12);
88
+ padding: theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer3) !important;
89
+ @apply fixed flex z-20 items-center;
90
+ background-color: theme(digitv2.lightTheme.alert-success);
91
+ transition: bottom 0.5s ease;
92
+ left: 0;
93
+
94
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
95
+ min-width: 30rem;
96
+ }
97
+
98
+ @media (max-aspect-ratio: 9/16) {
99
+ @apply w-full min-w-full;
100
+ }
101
+
102
+ @media (min-aspect-ratio: 3/4){
103
+ min-width: 50rem;
104
+ }
105
+
106
+ &.digit-info {
107
+ background-color: theme(digitv2.lightTheme.alert-info);
108
+ }
109
+
110
+ &.digit-error {
111
+ background-color: theme(digitv2.lightTheme.alert-error);
112
+ }
113
+
114
+ &.digit-warning {
115
+ background-color: theme(digitv2.lightTheme.alert-warning);
116
+
117
+ &.digit-warning-buttons {
118
+ @apply block;
119
+ }
120
+ }
121
+
122
+ .digit-warning-button-container {
123
+ @apply w-full flex justify-end;
124
+
125
+ button {
126
+ margin-left: 0.625rem;
127
+ }
128
+ }
129
+
130
+ .digit-toast-sub-container {
131
+ @apply flex;
132
+ }
133
+
134
+ svg {
135
+ @apply flex-shrink-0;
136
+ }
137
+
138
+ .toast-label {
139
+ @extend .typography.caption-s;
140
+ @apply text-left overflow-hidden whitespace-no-wrap flex-grow flex items-center h-6;
141
+ letter-spacing: theme(digitv2.spacers.spacer0);
142
+ color: theme(digitv2.lightTheme.paper-primary);
143
+ margin: theme(digitv2.spacers.spacer0);
144
+ text-overflow: ellipsis;
145
+ }
146
+ }
147
+
148
+ @keyframes slideInFromBottom {
149
+ from {
150
+ bottom: -100%;
151
+ }
152
+ to {
153
+ bottom: 4rem;
154
+ }
155
+ }
156
+
79
157
  .digit-toast-success.animate {
80
158
  animation: slideInFromBottom 0.5s ease forwards;
81
159
  }
@@ -376,6 +376,25 @@
376
376
  .digit-topbar-ulb-mobileview {
377
377
  @apply overflow-hidden whitespace-no-wrap;
378
378
  @extend .typography.body-s;
379
+ font-family: theme(digitv2.fontFamily.sans);
380
+ font-style: theme(digitv2.fontStyle.normal);
381
+ font-weight: theme(digitv2.fontWeight.regular);
382
+ line-height: theme(digitv2.lineHeight.lineheight2);
383
+
384
+ @media (max-aspect-ratio: 9/16) {
385
+ /* Media query for mobile */
386
+ font-size: theme(digitv2.fontSize.body-s.mobile);
387
+ }
388
+
389
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
390
+ /* Media query for tablets */
391
+ font-size: theme(digitv2.fontSize.body-s.tablet);
392
+ }
393
+
394
+ @media (min-aspect-ratio: 3/4) {
395
+ /* Media query for desktop */
396
+ font-size: theme(digitv2.fontSize.body-s.desktop);
397
+ }
379
398
  text-overflow: ellipsis;
380
399
  color: theme(digitv2.lightTheme.text-primary);
381
400
 
@@ -125,6 +125,25 @@
125
125
  }
126
126
  .digit-option-label {
127
127
  @extend .typography.body-s;
128
+ font-family: theme(digitv2.fontFamily.sans);
129
+ font-style: theme(digitv2.fontStyle.normal);
130
+ font-weight: theme(digitv2.fontWeight.regular);
131
+ line-height: theme(digitv2.lineHeight.lineheight2);
132
+
133
+ @media (max-aspect-ratio: 9/16) {
134
+ /* Media query for mobile */
135
+ font-size: theme(digitv2.fontSize.body-s.mobile);
136
+ }
137
+
138
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
139
+ /* Media query for tablets */
140
+ font-size: theme(digitv2.fontSize.body-s.tablet);
141
+ }
142
+
143
+ @media (min-aspect-ratio: 3/4) {
144
+ /* Media query for desktop */
145
+ font-size: theme(digitv2.fontSize.body-s.desktop);
146
+ }
128
147
  @apply overflow-hidden w-full;
129
148
  flex: 1;
130
149
  color: theme(digitv2.lightTheme.text-primary);}
@@ -131,6 +131,25 @@
131
131
 
132
132
  .drag-drop-text {
133
133
  @extend .typography.body-s;
134
+ font-family: theme(digitv2.fontFamily.sans);
135
+ font-style: theme(digitv2.fontStyle.normal);
136
+ font-weight: theme(digitv2.fontWeight.regular);
137
+ line-height: theme(digitv2.lineHeight.lineheight2);
138
+
139
+ @media (max-aspect-ratio: 9/16) {
140
+ /* Media query for mobile */
141
+ font-size: theme(digitv2.fontSize.body-s.mobile);
142
+ }
143
+
144
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
145
+ /* Media query for tablets */
146
+ font-size: theme(digitv2.fontSize.body-s.tablet);
147
+ }
148
+
149
+ @media (min-aspect-ratio: 3/4) {
150
+ /* Media query for desktop */
151
+ font-size: theme(digitv2.fontSize.body-s.desktop);
152
+ }
134
153
  @apply items-center;
135
154
  color: theme(digitv2.lightTheme.text-disabled);
136
155
  display: flex;
@@ -149,6 +168,25 @@
149
168
 
150
169
  .digit-uploadpopup-label {
151
170
  @extend .typography.body-s;
171
+ font-family: theme(digitv2.fontFamily.sans);
172
+ font-style: theme(digitv2.fontStyle.normal);
173
+ font-weight: theme(digitv2.fontWeight.regular);
174
+ line-height: theme(digitv2.lineHeight.lineheight2);
175
+
176
+ @media (max-aspect-ratio: 9/16) {
177
+ /* Media query for mobile */
178
+ font-size: theme(digitv2.fontSize.body-s.mobile);
179
+ }
180
+
181
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
182
+ /* Media query for tablets */
183
+ font-size: theme(digitv2.fontSize.body-s.tablet);
184
+ }
185
+
186
+ @media (min-aspect-ratio: 3/4) {
187
+ /* Media query for desktop */
188
+ font-size: theme(digitv2.fontSize.body-s.desktop);
189
+ }
152
190
  color: theme(digitv2.lightTheme.text-disabled);
153
191
  }
154
192
 
@@ -158,6 +196,25 @@
158
196
 
159
197
  .digit-uploader-input {
160
198
  @extend .typography.body-s;
199
+ font-family: theme(digitv2.fontFamily.sans);
200
+ font-style: theme(digitv2.fontStyle.normal);
201
+ font-weight: theme(digitv2.fontWeight.regular);
202
+ line-height: theme(digitv2.lineHeight.lineheight2);
203
+
204
+ @media (max-aspect-ratio: 9/16) {
205
+ /* Media query for mobile */
206
+ font-size: theme(digitv2.fontSize.body-s.mobile);
207
+ }
208
+
209
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
210
+ /* Media query for tablets */
211
+ font-size: theme(digitv2.fontSize.body-s.tablet);
212
+ }
213
+
214
+ @media (min-aspect-ratio: 3/4) {
215
+ /* Media query for desktop */
216
+ font-size: theme(digitv2.fontSize.body-s.desktop);
217
+ }
161
218
  @apply h-10;
162
219
  background-color: transparent;
163
220
  border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
@@ -318,6 +375,25 @@
318
375
 
319
376
  .digit-upload-helptext {
320
377
  @extend .typography.body-s;
378
+ font-family: theme(digitv2.fontFamily.sans);
379
+ font-style: theme(digitv2.fontStyle.normal);
380
+ font-weight: theme(digitv2.fontWeight.regular);
381
+ line-height: theme(digitv2.lineHeight.lineheight2);
382
+
383
+ @media (max-aspect-ratio: 9/16) {
384
+ /* Media query for mobile */
385
+ font-size: theme(digitv2.fontSize.body-s.mobile);
386
+ }
387
+
388
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
389
+ /* Media query for tablets */
390
+ font-size: theme(digitv2.fontSize.body-s.tablet);
391
+ }
392
+
393
+ @media (min-aspect-ratio: 3/4) {
394
+ /* Media query for desktop */
395
+ font-size: theme(digitv2.fontSize.body-s.desktop);
396
+ }
321
397
  @apply text-left;
322
398
  margin: theme(digitv2.spacers.spacer0);
323
399
  color: theme(digitv2.lightTheme.text-secondary);
@@ -14,6 +14,25 @@
14
14
 
15
15
  .digit-viewcard-value{
16
16
  @extend .typography.body-s;
17
+ font-family: theme(digitv2.fontFamily.sans);
18
+ font-style: theme(digitv2.fontStyle.normal);
19
+ font-weight: theme(digitv2.fontWeight.regular);
20
+ line-height: theme(digitv2.lineHeight.lineheight2);
21
+
22
+ @media (max-aspect-ratio: 9/16) {
23
+ /* Media query for mobile */
24
+ font-size: theme(digitv2.fontSize.body-s.mobile);
25
+ }
26
+
27
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
28
+ /* Media query for tablets */
29
+ font-size: theme(digitv2.fontSize.body-s.tablet);
30
+ }
31
+
32
+ @media (min-aspect-ratio: 3/4) {
33
+ /* Media query for desktop */
34
+ font-size: theme(digitv2.fontSize.body-s.desktop);
35
+ }
17
36
  @apply whitespace-pre-wrap break-words w-full;
18
37
  color: theme(digitv2.lightTheme.text-primary);
19
38
  }