@djb25/digit-ui-css 1.0.35 → 1.0.36

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