@djb25/digit-ui-css 1.0.35 → 1.0.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djb25/digit-ui-css",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -68,12 +68,15 @@
68
68
  }
69
69
 
70
70
  .stepper-container {
71
- width: 240px;
71
+ min-width: 240px;
72
72
  background: #fff;
73
73
  padding: 24px 0;
74
74
  border-radius: 8px;
75
75
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
76
76
  overflow-y: scroll;
77
+ @media (min-width: 768px) {
78
+ max-width: 25%;
79
+ }
77
80
  }
78
81
 
79
82
  .stepper-item {
@@ -113,6 +116,7 @@
113
116
  .stepper-label {
114
117
  font-size: 14px;
115
118
  color: #505a5f;
119
+ word-wrap: anywhere;
116
120
  }
117
121
 
118
122
  .stepper-label.active {
@@ -26,6 +26,22 @@
26
26
  box-sizing: border-box;
27
27
  }
28
28
 
29
+ .workflow-timeline-wrapper.hide-workflow {
30
+ @media (max-width: 768px) {
31
+ width: fit-content;
32
+ }
33
+ }
34
+
35
+ .workflow-timeline-wrapper {
36
+ overflow-y: scroll;
37
+ @media (max-width: 768px) {
38
+ width: 100%;
39
+ }
40
+ @media (min-width: 768px) {
41
+ max-width: 25%;
42
+ }
43
+ }
44
+
29
45
  .hidden-content {
30
46
  display: none !important;
31
47
  }
@@ -2,172 +2,152 @@
2
2
  position: fixed;
3
3
  top: 0;
4
4
  width: 100%;
5
- padding: 10px 58px;
5
+ padding: 0 58px;
6
6
  background: white;
7
7
  box-shadow: rgba(0, 0, 0, 0.24) 0 1px 4px;
8
8
  z-index: 9999999;
9
- @apply flex items-center;
9
+ display: flex;
10
+ align-items: center;
11
+ height: 64px !important;
12
+ max-height: 64px !important;
13
+
14
+ @media (max-width: 640px) {
15
+ padding: 8px 16px;
16
+ }
10
17
 
11
18
  .topbar-content {
12
19
  display: flex;
13
20
  justify-content: space-between;
14
21
  align-items: center;
15
22
  width: 100%;
23
+ gap: 12px;
24
+ height: 52px;
16
25
  }
17
26
 
18
- img {
19
- display: inline;
27
+ /* Swachh Bharat Icons - Fixed size to prevent explosion */
28
+ .spect-icon,
29
+ .state {
30
+ height: 42px !important;
31
+ max-height: 42px !important;
32
+ width: auto !important;
33
+ object-fit: contain !important;
34
+ flex-shrink: 0 !important;
35
+ margin-left: 10px !important;
36
+ display: block !important;
37
+ }
20
38
 
21
- &.city {
22
- height: 60px;
23
- }
39
+ .brand {
40
+ display: flex;
41
+ align-items: center;
42
+ gap: 12px;
43
+ cursor: pointer;
44
+ flex-shrink: 0;
24
45
 
25
- &.spect-icon {
26
- width: auto;
27
- padding-right: 20px;
28
- max-height: 50px;
46
+ @media (max-width: 640px) {
47
+ gap: 8px;
29
48
  }
30
49
 
31
- &.state {
50
+ .brand-mark {
51
+ width: 50px;
32
52
  height: 50px;
33
- max-height: 30px;
34
- width: auto;
35
- }
36
- }
37
-
38
- .ulb {
39
- font-weight: bold;
40
- display: inline-block;
41
- }
42
-
43
- .right {
44
- float: right;
45
- position: relative;
46
-
47
- svg {
48
- display: inline;
49
- }
53
+ border-radius: 10px;
54
+ background: #065297;
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ box-shadow: 0 4px 14px rgba(12, 35, 64, 0.35);
59
+ overflow: hidden;
60
+ flex-shrink: 0;
61
+
62
+ @media (max-width: 640px) {
63
+ width: 36px;
64
+ height: 36px;
65
+ border-radius: 8px;
66
+ }
50
67
 
51
- .user-img-txt {
52
- background: theme(colors.primary.main);
53
- padding: 10px 15px;
54
- border-radius: 2px;
55
- color: white;
56
- height: 43px;
57
- width: 43px;
58
- font-weight: 700;
59
- text-align: center;
68
+ img {
69
+ width: 100%;
70
+ height: 100%;
71
+ object-fit: contain;
72
+ }
60
73
  }
61
- }
62
-
63
- .left {
64
- float: left;
65
- }
66
-
67
- .w-80 {
68
- width: 70%;
69
- }
70
-
71
- .width-20 {
72
- width: 30%;
73
- }
74
-
75
- .margin-top-6 {
76
- margin-top: 6px;
77
- }
78
-
79
- .margin-right-30 {
80
- margin-right: 30px;
81
- }
82
-
83
- .margin-top-10 {
84
- margin-top: 10px;
85
- }
86
-
87
- .icon {
88
- display: block;
89
- color: rgb(117, 117, 117);
90
- fill: rgb(117, 117, 117);
91
- height: 21px;
92
- width: 21px;
93
- }
94
74
 
95
- .column-gap-15 {
96
- column-gap: 15px;
97
- }
75
+ .btx {
76
+ display: flex;
77
+ flex-direction: column;
78
+ justify-content: center;
79
+
80
+ h1 {
81
+ font-family: "'Crimson Pro', serif";
82
+ font-size: 17px;
83
+ font-weight: 700;
84
+ color: #003366;
85
+ margin: 0;
86
+ line-height: 1.2;
87
+
88
+ @media (max-width: 640px) {
89
+ font-size: 14px;
90
+ }
91
+
92
+ @media (max-width: 360px) {
93
+ font-size: 12px;
94
+ }
95
+ }
98
96
 
99
- .column-gap-5 {
100
- column-gap: 5px;
101
- }
97
+ p {
98
+ font-size: 10.5px;
99
+ font-weight: 500;
100
+ color: #0070b4;
101
+ margin: 0;
102
+ line-height: 1.2;
102
103
 
103
- .select-wrap,
104
- .employee-select-wrap {
105
- margin-bottom: 0px;
104
+ @media (max-width: 640px) {
105
+ font-size: 8.5px;
106
+ }
106
107
 
107
- .profile-dropdown--item {
108
- span {
109
- white-space: pre;
108
+ @media (max-width: 360px) {
109
+ display: none;
110
+ }
110
111
  }
111
112
  }
112
113
  }
113
- }
114
-
115
- .cp {
116
- cursor: pointer;
117
114
 
118
- .hamburger {
119
- display: none;
120
- }
115
+ .right,
116
+ .flex-right {
117
+ display: flex;
118
+ align-items: center;
119
+ gap: 15px;
120
+ margin-left: auto;
121
121
 
122
- @media (max-width: 780px) {
123
- .hamburger {
124
- display: none;
122
+ @media (max-width: 768px) {
123
+ gap: 8px;
125
124
  }
126
- }
127
- }
128
-
129
- .citizen {
130
- .right {
131
- margin-top: 5px;
132
- margin-bottom: 5px;
133
- }
134
125
 
135
- .topbar-select-wrap {
136
- margin-bottom: 0;
137
- }
126
+ .spect-icon,
127
+ .state {
128
+ @media (max-width: 1200px) {
129
+ display: none !important;
130
+ }
131
+ }
138
132
 
139
- .flex-between {
140
- @apply flex items-center justify-between;
141
- }
142
- }
133
+ .financial-year-wrapper {
134
+ @media (max-width: 1050px) {
135
+ display: none !important;
136
+ }
137
+ }
143
138
 
144
- .profile-dropdown--item {
145
- display: flex;
146
- flex-direction: row;
147
- padding: 10px;
148
- column-gap: 10px;
149
- color: theme(colors.text.secondary);
139
+ .v-divider {
140
+ width: 2px;
141
+ height: 28px;
142
+ background-color: rgb(203, 213, 225);
150
143
 
151
- &:hover {
152
- background: theme(colors.grey.mid);
144
+ @media (max-width: 768px) {
145
+ display: none;
146
+ }
147
+ }
153
148
  }
154
149
  }
155
150
 
156
- .flex-right {
157
- @apply flex items-center justify-end;
158
- min-width: 85px;
159
- }
160
-
161
- video::-webkit-media-controls-panel {
162
- top: 55%;
163
- position: absolute;
164
- width: 100%;
165
- }
166
-
167
- .topbarOptionsClassName {
168
- right: -3rem !important;
169
- }
170
-
171
151
  .user-profile-pill {
172
152
  display: flex;
173
153
  align-items: center;
@@ -180,15 +160,30 @@ video::-webkit-media-controls-panel {
180
160
  transition: all 0.2s ease;
181
161
  min-width: fit-content;
182
162
 
163
+ @media (max-width: 900px) {
164
+ padding: 4px;
165
+ gap: 0;
166
+ }
167
+
183
168
  &:hover {
184
169
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
185
170
  border-color: #00497e;
186
171
  }
187
172
 
188
- .user-profile-avatar {
173
+ .user-profile-avatar,
174
+ .user-profile-img {
189
175
  width: 42px;
190
176
  height: 42px;
191
177
  border-radius: 50%;
178
+ flex-shrink: 0;
179
+
180
+ @media (max-width: 640px) {
181
+ width: 32px;
182
+ height: 32px;
183
+ }
184
+ }
185
+
186
+ .user-profile-avatar {
192
187
  background: #00497e;
193
188
  color: white;
194
189
  display: flex;
@@ -196,15 +191,10 @@ video::-webkit-media-controls-panel {
196
191
  justify-content: center;
197
192
  font-weight: 700;
198
193
  font-size: 18px;
199
- flex-shrink: 0;
200
- }
201
194
 
202
- .user-profile-img {
203
- width: 42px;
204
- height: 42px;
205
- border-radius: 50%;
206
- object-fit: cover;
207
- flex-shrink: 0;
195
+ @media (max-width: 640px) {
196
+ font-size: 14px;
197
+ }
208
198
  }
209
199
 
210
200
  .user-profile-info {
@@ -213,6 +203,10 @@ video::-webkit-media-controls-panel {
213
203
  justify-content: center;
214
204
  line-height: 1.2;
215
205
 
206
+ @media (max-width: 900px) {
207
+ display: none;
208
+ }
209
+
216
210
  .user-profile-name {
217
211
  font-weight: 700;
218
212
  font-size: 15px;
@@ -232,5 +226,101 @@ video::-webkit-media-controls-panel {
232
226
  margin-left: 2px;
233
227
  color: #6b778c;
234
228
  flex-shrink: 0;
229
+
230
+ @media (max-width: 900px) {
231
+ display: none;
232
+ }
233
+ }
234
+ }
235
+
236
+ /* Unified TopBar Pills (City, FY, Language) */
237
+ .language-selector-wrapper,
238
+ .city-selector-wrapper,
239
+ .financial-year-wrapper {
240
+ display: flex;
241
+ align-items: center;
242
+ gap: 10px;
243
+ padding: 8px 14px;
244
+ border: 1px solid #e5e7eb;
245
+ border-radius: 8px;
246
+ background: #ffffff;
247
+ cursor: pointer;
248
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
249
+ min-width: fit-content;
250
+ justify-content: center;
251
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
252
+
253
+ @media (max-width: 768px) {
254
+ padding: 6px 10px;
255
+ gap: 6px;
256
+ }
257
+
258
+ &:hover {
259
+ border-color: #00497e;
260
+ background-color: #f8fafc;
261
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
262
+ }
263
+
264
+ .language-code,
265
+ .city-label {
266
+ @media (max-width: 768px) {
267
+ display: none;
268
+ }
269
+ }
270
+
271
+ span {
272
+ font-weight: 500;
273
+ font-size: 14px;
274
+ color: #111827;
275
+ letter-spacing: 0.01em;
276
+ }
277
+
278
+ .chevron-icon {
279
+ width: 12px;
280
+ height: 12px;
281
+ color: #4b5563;
282
+ transition: transform 0.2s ease;
283
+ margin-top: 1px;
284
+
285
+ @media (max-width: 768px) {
286
+ display: none;
287
+ }
288
+ }
289
+
290
+ svg:not(.chevron-icon):not(.flag-icon) {
291
+ width: 20px;
292
+ height: 20px;
293
+ color: #1f2937;
294
+ flex-shrink: 0;
295
+
296
+ @media (max-width: 640px) {
297
+ width: 16px;
298
+ height: 16px;
299
+ }
300
+ }
301
+ }
302
+
303
+ .language-selector-container,
304
+ .city-selector-container {
305
+ display: flex;
306
+ align-items: center;
307
+
308
+ &.open .chevron-icon {
309
+ transform: rotate(180deg);
310
+ }
311
+
312
+ .select-wrap,
313
+ .employee-select-wrap {
314
+ margin-bottom: 0 !important;
315
+ }
316
+
317
+ .options-card {
318
+ min-width: 130px !important;
319
+ width: max-content !important;
320
+ top: calc(100% + 4px) !important;
321
+ right: 0 !important;
322
+ left: auto !important;
323
+ border-radius: 8px;
324
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
235
325
  }
236
326
  }
package/src/index.scss CHANGED
@@ -304,6 +304,7 @@ input[readonly] {
304
304
  }
305
305
 
306
306
  .disabled {
307
+ background-color: #eee;
307
308
  @apply border-grey-dark text-grey-dark !important;
308
309
  pointer-events: none !important;
309
310
  }
@@ -738,7 +739,7 @@ input[type="number"] {
738
739
 
739
740
  .employee-app-wrapper {
740
741
  min-height: calc(100vh - 8em);
741
- height: calc(100vh - 110px);
742
+ height: calc(100vh - 102px);
742
743
  }
743
744
 
744
745
  .ws-custom-wrapper {
@@ -678,7 +678,7 @@
678
678
  .main {
679
679
  display: flex;
680
680
  flex-direction: column;
681
- padding-top: 80px;
681
+ padding-top: 72px;
682
682
  height: 100vh;
683
683
  /* margin-left: 72px; */
684
684
  /* width: calc(100%-83px); */