@egovernments/digit-ui-components-css 0.0.2-beta.7 → 0.2.0
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/CHANGELOG.md +154 -0
- package/README.md +11 -2
- package/dist/index.css +10295 -3600
- package/dist/index.min.css +3 -3
- package/package.json +8 -8
- package/src/digitv2/components/accordionV2.scss +214 -0
- package/src/digitv2/components/{infoCardV2.scss → alertCardV2.scss} +1 -4
- package/src/digitv2/components/backLinkV2.scss +1 -1
- package/src/digitv2/components/bottomSheetV2.scss +121 -0
- package/src/digitv2/components/breadcrumbV2.scss +38 -0
- package/src/digitv2/components/buttonsV2.scss +82 -31
- package/src/digitv2/components/cardV2.scss +498 -0
- package/src/digitv2/components/cardbasedoptionsV2.scss +47 -0
- package/src/digitv2/components/cardlabelV2.scss +8 -0
- package/src/digitv2/components/checkboxV2.scss +54 -6
- package/src/digitv2/components/chipV2.scss +39 -0
- package/src/digitv2/components/dividerV2.scss +13 -0
- package/src/digitv2/components/errorMessageV2.scss +29 -8
- package/src/digitv2/components/fieldV1.scss +47 -2
- package/src/digitv2/components/{uploaderV2.scss → fileUploadV2.scss} +209 -22
- package/src/digitv2/components/filterCardV2.scss +417 -0
- package/src/digitv2/components/footerV2.scss +208 -0
- package/src/digitv2/components/formCardV2.scss +234 -0
- package/src/digitv2/components/hamburgerV2.scss +555 -0
- package/src/digitv2/components/headerV2.scss +426 -0
- package/src/digitv2/components/headerdropdownV2.scss +233 -0
- package/src/digitv2/components/labelFieldPairV2.scss +37 -11
- package/src/digitv2/components/landingpagecardV2.scss +278 -0
- package/src/digitv2/components/loaderV2.scss +47 -0
- package/src/digitv2/components/menuCardV2.scss +116 -0
- package/src/digitv2/components/metricCardV2.scss +151 -0
- package/src/digitv2/components/mobileNumberV2.scss +1 -1
- package/src/digitv2/components/multiSelectDropdownV2.scss +219 -8
- package/src/digitv2/components/otpInputV2.scss +99 -0
- package/src/digitv2/components/panelCardV2.scss +19 -0
- package/src/digitv2/components/panelV2.scss +19 -0
- package/src/digitv2/components/popUpV2.scss +86 -2
- package/src/digitv2/components/radiobtnV2.scss +35 -6
- package/src/digitv2/components/selectDropdownV2.scss +257 -13
- package/src/digitv2/components/selectionTagV2.scss +102 -0
- package/src/digitv2/components/sidePanelV2.scss +222 -0
- package/src/digitv2/components/sidenavV2.scss +516 -0
- package/src/digitv2/components/stepperV2.scss +106 -6
- package/src/digitv2/components/summaryCardFieldPairV2.scss +83 -0
- package/src/digitv2/components/summaryCardV2.scss +100 -0
- package/src/digitv2/components/switchV2.scss +112 -0
- package/src/digitv2/components/tabV2.scss +126 -0
- package/src/digitv2/components/tableV2.scss +697 -0
- package/src/digitv2/components/tagV2.scss +108 -0
- package/src/digitv2/components/textInputV2.scss +5 -3
- package/src/digitv2/components/textareaV2.scss +1 -1
- package/src/digitv2/components/textblockV2.scss +38 -0
- package/src/digitv2/components/timelineV2.scss +144 -14
- package/src/digitv2/components/toastV2.scss +79 -1
- package/src/digitv2/components/toggleV2.scss +38 -0
- package/src/digitv2/components/tooltipwrapperV2.scss +365 -0
- package/src/digitv2/components/treeSelectV2.scss +58 -1
- package/src/digitv2/index.scss +171 -5
- package/src/digitv2/pages/employee/workbench.scss +9 -9
- package/src/digitv2/typography.scss +24 -9
- package/src/index.scss +0 -4
|
@@ -3,40 +3,66 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
@media (min-aspect-ratio: 9/16) {
|
|
6
|
-
|
|
6
|
+
@apply items-start;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
10
|
+
gap: theme(digitv2.spacers.spacer5);
|
|
7
11
|
}
|
|
8
12
|
|
|
9
13
|
@media (max-aspect-ratio: 9/16) {
|
|
10
|
-
|
|
14
|
+
@apply flex-col items-start;
|
|
15
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (min-aspect-ratio: 3/4) {
|
|
19
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
11
20
|
}
|
|
12
21
|
|
|
13
|
-
|
|
14
|
-
|
|
22
|
+
.digit-text-block-wrap {
|
|
23
|
+
margin-top: 0.565rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.digit-radio-options-wrap {
|
|
27
|
+
margin-top: 0.565rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.vertical {
|
|
31
|
+
@apply flex-col items-start;
|
|
32
|
+
gap: theme(digitv2.spacers.spacer2);
|
|
33
|
+
|
|
34
|
+
.digit-text-block-wrap {
|
|
35
|
+
margin-top: theme(digitv2.spacers.spacer0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.digit-radio-options-wrap {
|
|
39
|
+
margin-top: theme(digitv2.spacers.spacer0);
|
|
40
|
+
}
|
|
41
|
+
|
|
15
42
|
}
|
|
16
43
|
|
|
17
44
|
& .label,
|
|
18
45
|
& header {
|
|
19
|
-
margin-right: theme(digitv2.spacers.spacer6);
|
|
20
46
|
width: 33%;
|
|
21
47
|
|
|
22
48
|
@media (max-aspect-ratio: 9/16) {
|
|
23
|
-
|
|
24
|
-
|
|
49
|
+
@apply w-full;
|
|
50
|
+
}
|
|
25
51
|
}
|
|
26
52
|
|
|
27
53
|
& .digit-field {
|
|
28
54
|
width: 60%;
|
|
29
55
|
|
|
30
56
|
@media (max-aspect-ratio: 9/16) {
|
|
31
|
-
|
|
32
|
-
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
33
59
|
}
|
|
34
60
|
}
|
|
35
61
|
|
|
36
|
-
@screen dt {
|
|
62
|
+
@screen dt {
|
|
37
63
|
.digit-employee-card {
|
|
38
64
|
.digit-label-field-pair {
|
|
39
|
-
@apply mb-lg flex
|
|
65
|
+
@apply mb-lg flex;
|
|
40
66
|
|
|
41
67
|
h2 {
|
|
42
68
|
width: 30%;
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
.digit-landing-page-card {
|
|
2
|
+
width: fit-content;
|
|
3
|
+
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
4
|
+
box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000029;
|
|
5
|
+
min-width: 15%;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
9
|
+
border-radius: theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0);
|
|
10
|
+
|
|
11
|
+
.icon-module-header {
|
|
12
|
+
display: flex !important;
|
|
13
|
+
align-items: center !important;
|
|
14
|
+
gap: theme(digitv2.spacers.spacer2);
|
|
15
|
+
|
|
16
|
+
.digit-landingpagecard-icon {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
|
|
21
|
+
@media (max-aspect-ratio: 9/16) {
|
|
22
|
+
/* Media query for mobile */
|
|
23
|
+
width: theme(digitv2.spacers.spacer11);
|
|
24
|
+
height:theme(digitv2.spacers.spacer11);
|
|
25
|
+
|
|
26
|
+
svg {
|
|
27
|
+
width: theme(digitv2.spacers.spacer7);
|
|
28
|
+
height:theme(digitv2.spacers.spacer7);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
33
|
+
/* Media query for tablets */
|
|
34
|
+
width: theme(digitv2.spacers.spacer12);
|
|
35
|
+
height:theme(digitv2.spacers.spacer12);
|
|
36
|
+
|
|
37
|
+
svg {
|
|
38
|
+
width: theme(digitv2.spacers.spacer8);
|
|
39
|
+
height:theme(digitv2.spacers.spacer8);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (min-aspect-ratio: 3/4) {
|
|
44
|
+
/* Media query for desktop */
|
|
45
|
+
width: theme(digitv2.spacers.spacer13);
|
|
46
|
+
height:theme(digitv2.spacers.spacer13);
|
|
47
|
+
|
|
48
|
+
svg {
|
|
49
|
+
width: theme(digitv2.spacers.spacer10);
|
|
50
|
+
height:theme(digitv2.spacers.spacer10);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.iconBg {
|
|
55
|
+
background-color: theme(digitv2.lightTheme.primary-1);
|
|
56
|
+
border-radius: 0.125rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.right{
|
|
61
|
+
&.iconBg {
|
|
62
|
+
gap:theme(digitv2.spacers.spacer4);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
svg {
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ladingcard-moduleName {
|
|
71
|
+
@extend .typography.heading-m;
|
|
72
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
73
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
74
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
75
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
76
|
+
|
|
77
|
+
@media (max-aspect-ratio: 9/16) {
|
|
78
|
+
/* Media query for mobile */
|
|
79
|
+
font-size: theme(digitv2.fontSize.heading-m.mobile);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
83
|
+
/* Media query for tablets */
|
|
84
|
+
font-size: theme(digitv2.fontSize.heading-m.tablet);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-aspect-ratio: 3/4) {
|
|
88
|
+
/* Media query for desktop */
|
|
89
|
+
font-size: theme(digitv2.fontSize.heading-m.desktop);
|
|
90
|
+
}
|
|
91
|
+
color: theme(digitv2.lightTheme.primary-2);
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
word-wrap: break-word;
|
|
94
|
+
word-break: break-word;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
line-height: normal;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
text-overflow: ellipsis;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.left {
|
|
102
|
+
justify-content: space-between;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.metric-container {
|
|
107
|
+
display: flex !important;
|
|
108
|
+
align-items: flex-start;
|
|
109
|
+
justify-content: space-evenly;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
text-overflow: ellipsis;
|
|
112
|
+
flex-wrap: wrap;
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
&.left {
|
|
116
|
+
justify-content: unset;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.metric-item {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
align-items: center;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
flex: 1;
|
|
125
|
+
|
|
126
|
+
&.left {
|
|
127
|
+
align-items: flex-start;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.metric-count {
|
|
131
|
+
@extend .typography.heading-m;
|
|
132
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
133
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
134
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
135
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
136
|
+
|
|
137
|
+
@media (max-aspect-ratio: 9/16) {
|
|
138
|
+
/* Media query for mobile */
|
|
139
|
+
font-size: theme(digitv2.fontSize.heading-m.mobile);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
143
|
+
/* Media query for tablets */
|
|
144
|
+
font-size: theme(digitv2.fontSize.heading-m.tablet);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media (min-aspect-ratio: 3/4) {
|
|
148
|
+
/* Media query for desktop */
|
|
149
|
+
font-size: theme(digitv2.fontSize.heading-m.desktop);
|
|
150
|
+
}
|
|
151
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.metric-label {
|
|
155
|
+
@extend .typography.body-xs;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
word-wrap: break-word;
|
|
158
|
+
word-break: break-word;
|
|
159
|
+
line-height: normal;
|
|
160
|
+
white-space: nowrap;
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
text-overflow: ellipsis;
|
|
163
|
+
color: theme(digitv2.lightTheme.generic-inputborder);
|
|
164
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
165
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
166
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
167
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
168
|
+
|
|
169
|
+
@media (max-aspect-ratio: 9/16) {
|
|
170
|
+
/* Media query for mobile */
|
|
171
|
+
font-size: theme(digitv2.fontSize.body-xs.mobile);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
175
|
+
/* Media query for tablets */
|
|
176
|
+
font-size: theme(digitv2.fontSize.body-xs.tablet);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@media (min-aspect-ratio: 3/4) {
|
|
180
|
+
/* Media query for desktop */
|
|
181
|
+
font-size: theme(digitv2.fontSize.body-xs.desktop);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.digit-button-teritiary {
|
|
188
|
+
justify-content: flex-start;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@media (max-aspect-ratio: 9/16) {
|
|
192
|
+
/* Media query for mobile */
|
|
193
|
+
width: 100%;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.digit-landingpage-divider {
|
|
199
|
+
width: 100%;
|
|
200
|
+
margin: theme(digitv2.spacers.spacer0);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.landingpagecard-section{
|
|
204
|
+
display: flex;
|
|
205
|
+
flex-direction: column;
|
|
206
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
207
|
+
@extend .typography.body-s;
|
|
208
|
+
text-align: left;
|
|
209
|
+
justify-content: flex-start;
|
|
210
|
+
@media (max-aspect-ratio: 9/16) {
|
|
211
|
+
/* Media query for mobile */
|
|
212
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
213
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
214
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
215
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
216
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
220
|
+
/* Media query for tablets */
|
|
221
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
222
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
223
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
224
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
225
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@media (min-aspect-ratio: 3/4) {
|
|
229
|
+
/* Media query for desktop */
|
|
230
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
231
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
232
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
233
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
234
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@media (max-aspect-ratio: 9/16) {
|
|
238
|
+
/* Media query for mobile */
|
|
239
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
243
|
+
/* Media query for tablets */
|
|
244
|
+
gap: theme(digitv2.spacers.spacer5);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
@media (min-aspect-ratio: 3/4) {
|
|
248
|
+
/* Media query for desktop */
|
|
249
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.digit-landing-page-wrapper {
|
|
254
|
+
display: flex;
|
|
255
|
+
justify-content: flex-start;
|
|
256
|
+
flex-wrap: wrap;
|
|
257
|
+
|
|
258
|
+
&.mobile{
|
|
259
|
+
flex-direction: column;
|
|
260
|
+
align-items: center;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@media (max-aspect-ratio: 9/16) {
|
|
264
|
+
/* Media query for mobile */
|
|
265
|
+
flex-direction: column;
|
|
266
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
270
|
+
/* Media query for tablets */
|
|
271
|
+
gap: theme(digitv2.spacers.spacer5);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@media (min-aspect-ratio: 3/4) {
|
|
275
|
+
/* Media query for desktop */
|
|
276
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.digit-animation{
|
|
2
|
+
width: fit-content;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.digit-loader-new {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
width: fit-content;
|
|
10
|
+
align-items: center;
|
|
11
|
+
|
|
12
|
+
.digit-loader-text {
|
|
13
|
+
@extend .typography.caption-s;
|
|
14
|
+
color: theme(digitv2.lightTheme.primary-2);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.PageLoader {
|
|
18
|
+
position: fixed;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.OverlayLoader {
|
|
26
|
+
|
|
27
|
+
position: fixed;
|
|
28
|
+
top: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
background-color: rgba(11, 12, 12, 0.7);
|
|
33
|
+
z-index: 9999;
|
|
34
|
+
backdrop-filter: blur(0.125rem);
|
|
35
|
+
-webkit-backdrop-filter: blur(0.125rem);
|
|
36
|
+
|
|
37
|
+
.digit-loader-text{
|
|
38
|
+
color: theme(digitv2.lightTheme.paper-primary);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.custom-loader-example{
|
|
44
|
+
.digit-loader-text{
|
|
45
|
+
color: theme(digitv2.lightTheme.primary-1);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
.digit-menu-card {
|
|
2
|
+
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: theme(digitv2.spacers.spacer3);
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
|
|
9
|
+
&.clickable:hover{
|
|
10
|
+
border: 0.063rem solid theme(digitv2.lightTheme.primary-1);
|
|
11
|
+
box-shadow: 0.063rem theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) #00000029;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.icon-menu-header {
|
|
15
|
+
|
|
16
|
+
display: flex !important;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: theme(digitv2.spacers.spacer2);
|
|
19
|
+
|
|
20
|
+
.digit-menucard-icon {
|
|
21
|
+
|
|
22
|
+
@media (max-aspect-ratio: 9/16) {
|
|
23
|
+
/* Media query for mobile */
|
|
24
|
+
width: theme(digitv2.spacers.spacer6);
|
|
25
|
+
height: theme(digitv2.spacers.spacer6);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
29
|
+
/* Media query for tablets */
|
|
30
|
+
width: theme(digitv2.spacers.spacer8);
|
|
31
|
+
height: theme(digitv2.spacers.spacer8);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (min-aspect-ratio: 3/4) {
|
|
35
|
+
/* Media query for desktop */
|
|
36
|
+
width: theme(digitv2.spacers.spacer10);
|
|
37
|
+
height: theme(digitv2.spacers.spacer10);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
svg {
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.digit-menuacard-menuName {
|
|
46
|
+
@extend .typography.heading-m;
|
|
47
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
48
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
49
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
50
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
51
|
+
|
|
52
|
+
@media (max-aspect-ratio: 9/16) {
|
|
53
|
+
/* Media query for mobile */
|
|
54
|
+
font-size: theme(digitv2.fontSize.heading-m.mobile);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
58
|
+
/* Media query for tablets */
|
|
59
|
+
font-size: theme(digitv2.fontSize.heading-m.tablet);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (min-aspect-ratio: 3/4) {
|
|
63
|
+
/* Media query for desktop */
|
|
64
|
+
font-size: theme(digitv2.fontSize.heading-m.desktop);
|
|
65
|
+
}
|
|
66
|
+
line-height: normal;
|
|
67
|
+
color: theme(digitv2.lightTheme.primary-2);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.digit-menucard-description {
|
|
72
|
+
@extend .typography.body-s;
|
|
73
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
74
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
75
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
76
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
77
|
+
|
|
78
|
+
@media (max-aspect-ratio: 9/16) {
|
|
79
|
+
/* Media query for mobile */
|
|
80
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
84
|
+
/* Media query for tablets */
|
|
85
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (min-aspect-ratio: 3/4) {
|
|
89
|
+
/* Media query for desktop */
|
|
90
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.digit-menu-card-wrapper{
|
|
98
|
+
display: flex !important;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
|
|
101
|
+
@media (max-aspect-ratio: 9/16) {
|
|
102
|
+
/* Media query for mobile */
|
|
103
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
107
|
+
/* Media query for tablets */
|
|
108
|
+
gap: theme(digitv2.spacers.spacer5);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (min-aspect-ratio: 3/4) {
|
|
112
|
+
/* Media query for desktop */
|
|
113
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
.digit-metric-card {
|
|
2
|
+
position: relative;
|
|
3
|
+
@media (max-aspect-ratio: 9/16) {
|
|
4
|
+
/* Media query for mobile */
|
|
5
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
9
|
+
/* Media query for tablets */
|
|
10
|
+
gap: theme(digitv2.spacers.spacer5);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (min-aspect-ratio: 3/4) {
|
|
14
|
+
/* Media query for desktop */
|
|
15
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.metric-divider{
|
|
19
|
+
margin: theme(digitv2.spacers.spacer0);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.vertical-metric-divider{
|
|
23
|
+
position: absolute;
|
|
24
|
+
|
|
25
|
+
@media (max-aspect-ratio: 9/16) {
|
|
26
|
+
/* Media query for mobile */
|
|
27
|
+
top: theme(digitv2.spacers.spacer4);
|
|
28
|
+
height: calc(100% - 2rem);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
32
|
+
/* Media query for tablets */
|
|
33
|
+
top: theme(digitv2.spacers.spacer5);
|
|
34
|
+
height: calc(100% - 2.5rem);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (min-aspect-ratio: 3/4) {
|
|
38
|
+
/* Media query for desktop */
|
|
39
|
+
top: theme(digitv2.spacers.spacer6);
|
|
40
|
+
height: calc(100% - 3rem);
|
|
41
|
+
}
|
|
42
|
+
border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
|
|
43
|
+
z-index: 1;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.metric-item {
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: theme(digitv2.spacers.spacer1);
|
|
54
|
+
padding: theme(digitv2.spacers.spacer4);
|
|
55
|
+
|
|
56
|
+
.metric-value {
|
|
57
|
+
@extend .typography.heading-l;
|
|
58
|
+
color: theme(digitv2.lightTheme.primary-2);
|
|
59
|
+
line-height: normal;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.metric-description {
|
|
63
|
+
@extend .typography.body-s;
|
|
64
|
+
text-align: center;
|
|
65
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
66
|
+
|
|
67
|
+
@media (max-aspect-ratio: 9/16) {
|
|
68
|
+
/* Media query for mobile */
|
|
69
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
70
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
71
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
72
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
73
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
77
|
+
/* Media query for tablets */
|
|
78
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
79
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
80
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
81
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
82
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media (min-aspect-ratio: 3/4) {
|
|
86
|
+
/* Media query for desktop */
|
|
87
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
88
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
89
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
90
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
91
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.metric-status {
|
|
96
|
+
@extend .typography.body-xs;
|
|
97
|
+
display: flex;
|
|
98
|
+
text-align: center;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
gap: theme(digitv2.spacers.spacer1);
|
|
102
|
+
|
|
103
|
+
@media (max-aspect-ratio: 9/16) {
|
|
104
|
+
/* Media query for mobile */
|
|
105
|
+
font-size: theme(digitv2.fontSize.body-xs.mobile);
|
|
106
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
107
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
108
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
109
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
113
|
+
/* Media query for tablets */
|
|
114
|
+
font-size: theme(digitv2.fontSize.body-xs.tablet);
|
|
115
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
116
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
117
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
118
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@media (min-aspect-ratio: 3/4) {
|
|
122
|
+
/* Media query for desktop */
|
|
123
|
+
font-size: theme(digitv2.fontSize.body-xs.desktop);
|
|
124
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
125
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
126
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
127
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
svg {
|
|
132
|
+
flex-shrink: 0;
|
|
133
|
+
width: theme(digitv2.spacers.spacer4);
|
|
134
|
+
height: theme(digitv2.spacers.spacer4);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
color: theme(digitv2.lightTheme.primary-1);
|
|
138
|
+
|
|
139
|
+
&.Increased {
|
|
140
|
+
color: theme(digitv2.lightTheme.alert-success);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.Decreased {
|
|
144
|
+
color: theme(digitv2.lightTheme.alert-error);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.Nochange {
|
|
148
|
+
color: theme(digitv2.lightTheme.alert-info);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|