@djb25/digit-ui-css 1.0.5 → 1.0.7

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.5",
3
+ "version": "1.0.7",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -11,7 +11,7 @@
11
11
  "prefix": ""
12
12
  },
13
13
  "scripts": {
14
- "start": "gulp build",
14
+ "start": "gulp watch",
15
15
  "watch": "gulp watch",
16
16
  "build:prod": "NODE_ENV=production gulp build",
17
17
  "prepublish": "yarn build:prod",
@@ -26,7 +26,6 @@
26
26
  "gulp-sass": "^5.1.0",
27
27
  "normalize.css": "8.0.1",
28
28
  "postcss-scss": "3.0.5",
29
- "sass": "^1.72.0",
30
29
  "tailwindcss": "1.9.6"
31
30
  },
32
31
  "devDependencies": {
@@ -39,7 +38,6 @@
39
38
  "gulp-livereload": "4.0.2",
40
39
  "gulp-postcss": "9.0.1",
41
40
  "gulp-rename": "2.0.0",
42
- "gulp-sass": "4.1.1",
43
41
  "postcss": "8.4.26",
44
42
  "postcss-cli": "8.3.1",
45
43
  "postcss-header": "2.0.0",
@@ -63,9 +61,5 @@
63
61
  "dpg",
64
62
  "digit-ui",
65
63
  "css"
66
- ],
67
- "description": "<!-- TODO: update this -->",
68
- "directories": {
69
- "example": "example"
70
- }
64
+ ]
71
65
  }
@@ -0,0 +1,106 @@
1
+ .vertical-timeline-container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 16px;
5
+ /* Reduced padding slightly to fit better if needed, or keep 24 */
6
+ height: 100%;
7
+ }
8
+
9
+ .vertical-timeline-step {
10
+ display: flex;
11
+ position: relative;
12
+ padding-bottom: 20px;
13
+ min-height: 80px;
14
+ }
15
+
16
+ .vertical-timeline-step:last-child {
17
+ padding-bottom: 0;
18
+ min-height: auto;
19
+ }
20
+
21
+ .vertical-timeline-connector {
22
+ position: absolute;
23
+ top: 36px;
24
+ left: 17px;
25
+ width: 3px;
26
+ height: calc(100% - 10px);
27
+ /* Adjust based on padding/spacing */
28
+ background-color: #e0e0e0;
29
+ z-index: 0;
30
+ }
31
+
32
+ .vertical-timeline-step:last-child .vertical-timeline-connector {
33
+ display: none;
34
+ }
35
+
36
+ .vertical-timeline-connector.completed {
37
+ background-color: #667eea;
38
+ }
39
+
40
+ .vertical-timeline-pill {
41
+ width: 38px;
42
+ /* Larger pill */
43
+ height: 38px;
44
+ border-radius: 50%;
45
+ background-color: #fff;
46
+ border: 3px solid #D1D5DB;
47
+ /* Thicker border */
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ font-weight: bold;
52
+ font-size: 16px;
53
+ /* Larger text */
54
+ color: #6B7280;
55
+ z-index: 1;
56
+ margin-right: 16px;
57
+ flex-shrink: 0;
58
+ transition: all 0.3s ease;
59
+ }
60
+
61
+ .vertical-timeline-step.active .vertical-timeline-pill {
62
+ background-color: #667eea;
63
+ border-color: #667eea;
64
+ color: #fff;
65
+ box-shadow: 0 0 0 5px rgba(244, 119, 56, 0.2);
66
+ /* Enhanced glow */
67
+ transform: scale(1.1);
68
+ /* Slight pulse effect */
69
+ }
70
+
71
+ .vertical-timeline-step.completed .vertical-timeline-pill {
72
+ background-color: #667eea;
73
+ border-color: #667eea;
74
+ color: #fff;
75
+ }
76
+
77
+ .vertical-timeline-content {
78
+ display: flex;
79
+ flex-direction: column;
80
+ min-height: 38px;
81
+ margin-top: 10px;
82
+ }
83
+
84
+ .vertical-timeline-label {
85
+ font-size: 16px;
86
+ color: #4B5563;
87
+ font-weight: 500;
88
+ line-height: normal;
89
+ /* Reset line height */
90
+ }
91
+
92
+ .vertical-timeline-step.active .vertical-timeline-label {
93
+ color: #667eea;
94
+ font-weight: 700;
95
+ }
96
+
97
+ .vertical-timeline-step.completed .vertical-timeline-label {
98
+ color: #111827;
99
+ }
100
+
101
+ /* Responsive: Hide on small screens or move to top */
102
+ @media (max-width: 768px) {
103
+ .vertical-timeline-container {
104
+ display: none;
105
+ }
106
+ }
@@ -1,165 +1,202 @@
1
- .timeline-container {
2
- display: flex;
3
- flex-direction: column;
4
- position: relative;
5
- margin: 20px 0;
6
- padding-left: 20px;
7
- }
8
-
9
- .timeline-item {
10
- display: flex;
11
- position: relative;
12
- padding-bottom: 20px;
13
- }
14
-
15
- .timeline-item:last-child {
16
- padding-bottom: 0;
17
- }
18
-
19
- .timeline-marker {
20
- display: flex;
21
- flex-direction: column;
22
- align-items: center;
23
- margin-right: 15px;
24
- position: relative;
25
- }
26
-
27
- .timeline-circle {
28
- width: 16px;
29
- height: 16px;
30
- border-radius: 50%;
31
- border: 2px solid #ccc;
32
- background-color: #fff;
33
- z-index: 10;
34
- transition: all 0.3s ease;
35
- }
36
-
37
- .timeline-item.completed .timeline-circle {
38
- background-color: #4caf50;
39
- border-color: #4caf50;
40
- }
41
-
42
- .timeline-item.current .timeline-circle {
43
- background-color: #2196f3;
44
- border-color: #2196f3;
45
- transform: scale(1.2);
46
- }
47
-
48
- .timeline-item.pending .timeline-circle {
49
- background-color: #f5f5f5;
50
- border-color: #ccc;
51
- }
52
-
53
- .timeline-line {
54
- position: absolute;
55
- top: 16px;
56
- bottom: -20px;
57
- /* Connect to next item */
58
- width: 2px;
59
- background-color: #e0e0e0;
60
- z-index: 1;
61
- }
62
-
63
- .timeline-item:last-child .timeline-line {
64
- display: none;
65
- }
66
-
67
- .timeline-content {
68
- flex: 1;
69
- background: #e8e8e8;
70
- padding: 10px 15px;
71
- border-radius: 8px;
72
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
73
- transition: transform 0.2s;
74
- }
75
-
76
- .timeline-content:hover {
77
- transform: translateX(5px);
78
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
79
- }
80
-
81
- .timeline-title {
82
- font-weight: 600;
83
- font-size: 14px;
84
- color: #333;
85
- margin-bottom: 4px;
86
- }
87
-
88
- .timeline-date {
89
- font-size: 12px;
90
- color: #000000;
91
- margin-bottom: 6px;
92
- display: block;
93
- }
94
-
95
- .timeline-comment {
96
- font-size: 13px;
97
- color: #555;
98
- line-height: 1.4;
99
- background-color: #f9f9f9;
100
- padding: 8px;
101
- border-radius: 4px;
102
- margin-top: 5px;
103
- }
104
-
105
- .timeline-status-tag {
106
- display: inline-block;
107
- padding: 10px;
108
- border-radius: 12px;
109
- font-size: 11px;
110
- font-weight: bold;
111
- text-transform: uppercase;
112
- margin-top: 5px;
113
- }
114
-
115
- .status-completed {
116
- background-color: #e8f5e9;
117
- color: #2e7d32;
118
- }
119
-
120
- .status-current {
121
- background-color: #e3f2fd;
122
- color: #1565c0;
123
- }
124
-
125
- .status-pending {
126
- background-color: #f5f5f5;
127
- color: #757575;
128
- }
129
-
130
- /* Animations */
131
- @keyframes fadeIn {
132
- from {
133
- opacity: 0;
134
- transform: translateY(10px);
135
- }
136
-
137
- to {
138
- opacity: 1;
139
- transform: translateY(0);
140
- }
141
- }
142
-
143
- .timeline-item {
144
- animation: fadeIn 0.5s ease-out forwards;
145
- }
146
-
147
- .timeline-item:nth-child(1) {
148
- animation-delay: 0.1s;
149
- }
150
-
151
- .timeline-item:nth-child(2) {
152
- animation-delay: 0.2s;
153
- }
154
-
155
- .timeline-item:nth-child(3) {
156
- animation-delay: 0.3s;
157
- }
158
-
159
- .timeline-item:nth-child(4) {
160
- animation-delay: 0.4s;
161
- }
162
-
163
- .timeline-item:nth-child(5) {
164
- animation-delay: 0.5s;
1
+ :root {
2
+ /* -- Core Colors -- */
3
+ --tl-color-primary: #3b82f6; /* Blue */
4
+ --tl-color-success: #10b981; /* Emerald */
5
+ --tl-color-line: #e5e7eb; /* Light Gray */
6
+ --tl-bg-card: #ffffff;
7
+ /* -- Text Colors -- */
8
+ --tl-text-main: #1f2937; /* Dark Slate */
9
+ --tl-text-muted: #6b7280; /* Medium Gray */
10
+ /* -- Sizing Variables -- */
11
+ --tl-circle-size: 26px;
12
+ --tl-line-width: 2px;
13
+ --tl-item-spacing: 20px;
14
+ --tl-card-padding: 12px;
15
+ }
16
+
17
+ /* Ensure standard box sizing */
18
+ .workflow-timeline-card2 *,
19
+ .workflow-timeline-card2 *::before,
20
+ .workflow-timeline-card2 *::after {
21
+ box-sizing: border-box;
22
+ }
23
+
24
+ .timeline-container2 {
25
+ display: flex;
26
+ flex-direction: column;
27
+ position: relative;
28
+ padding: 10px 0;
29
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
30
+ }
31
+
32
+ .timeline-item2 {
33
+ display: flex;
34
+ position: relative;
35
+ padding-bottom: var(--tl-item-spacing);
36
+ }
37
+
38
+ .timeline-item2:last-child {
39
+ padding-bottom: 0;
40
+ }
41
+
42
+ /* --- Left Column: Marker & Line --- */
43
+ .timeline-marker2 {
44
+ display: flex;
45
+ flex-direction: column;
46
+ align-items: center;
47
+ margin-right: 16px;
48
+ min-width: var(--tl-circle-size);
49
+ position: relative;
50
+ }
51
+
52
+ /* The vertical connecting line */
53
+ .timeline-line2 {
54
+ position: absolute;
55
+ top: var(--tl-circle-size);
56
+ bottom: calc(-1 * var(--tl-item-spacing));
57
+ width: var(--tl-line-width);
58
+ background-color: var(--tl-color-line);
59
+ z-index: 0;
60
+ }
61
+
62
+ /* Color the line green if the *current* step is completed */
63
+ .timeline-item2.completed2 .timeline-line2 {
64
+ background-color: var(--tl-color-success);
65
+ }
66
+
67
+ /* The Circle Node */
68
+ .timeline-circle2 {
69
+ width: var(--tl-circle-size);
70
+ height: var(--tl-circle-size);
71
+ border-radius: 50%;
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: center;
75
+ background-color: #fff;
76
+ border: 2px solid var(--tl-color-line);
77
+ z-index: 10;
78
+ transition: all 0.3s ease;
79
+ color: #fff;
80
+ overflow: hidden;
81
+ }
82
+
83
+ /* Status Styles */
84
+ .timeline-item2.completed2 .timeline-circle2 {
85
+ background-color: var(--tl-color-success);
86
+ border-color: var(--tl-color-success);
87
+ }
88
+
89
+ .timeline-item2.current2 .timeline-circle2 {
90
+ background-color: var(--tl-color-primary);
91
+ border-color: var(--tl-color-primary);
92
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
93
+ }
94
+
95
+ /* --- Right Column: Card Content --- */
96
+ .timeline-content2 {
97
+ flex: 1;
98
+ background: var(--tl-bg-card);
99
+ border: 1px solid #f0f0f0;
100
+ border-radius: 8px;
101
+ padding: var(--tl-card-padding);
102
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
103
+ position: relative;
104
+ min-width: 0;
105
+ }
106
+
107
+ /* Tiny triangle pointer pointing to the circle */
108
+ .timeline-content2::before {
109
+ content: '';
110
+ position: absolute;
111
+ left: -5px;
112
+ top: calc(var(--tl-circle-size) / 2 - 5px);
113
+ width: 10px;
114
+ height: 10px;
115
+ background: var(--tl-bg-card);
116
+ border-left: 1px solid #f0f0f0;
117
+ border-bottom: 1px solid #f0f0f0;
118
+ transform: rotate(45deg);
119
+ }
120
+
121
+ /* Header section: Title and Date */
122
+ .timeline-header2 {
123
+ display: flex;
124
+ justify-content: space-between;
125
+ align-items: flex-start;
126
+ margin-bottom: 8px;
127
+ flex-wrap: nowrap;
128
+ }
129
+
130
+ .timeline-title2 {
131
+ font-weight: 600;
132
+ font-size: 13.5px;
133
+ color: var(--tl-text-main);
134
+ margin-right: 8px;
135
+ line-height: 1.3;
136
+ }
137
+
138
+ .timeline-date2 {
139
+ font-size: 11px;
140
+ color: var(--tl-text-muted);
141
+ white-space: nowrap;
142
+ background: #f9fafb;
143
+ padding: 2px 6px;
144
+ border-radius: 4px;
145
+ }
146
+
147
+ /* Body section: Status tag and comment */
148
+ .timeline-body2 {
149
+ margin-bottom: 8px;
150
+ }
151
+
152
+ .timeline-status-tag2 {
153
+ display: inline-block;
154
+ font-size: 10px;
155
+ font-weight: 700;
156
+ text-transform: uppercase;
157
+ letter-spacing: 0.5px;
158
+ padding: 3px 8px;
159
+ border-radius: 10px;
160
+ margin-bottom: 6px;
161
+ }
162
+ .status-completed2 { color: #065f46; background: #d1fae5; }
163
+ .status-current2 { color: #1e40af; background: #dbeafe; }
164
+
165
+ .timeline-comment2 {
166
+ font-size: 12.5px;
167
+ color: #4b5563;
168
+ line-height: 1.4;
169
+ background-color: #f9fafb;
170
+ padding: 8px;
171
+ border-radius: 6px;
172
+ border-left: 2px solid #d1d5db;
173
+ }
174
+
175
+ /* Footer section: Assignee */
176
+ .timeline-footer2 {
177
+ margin-top: 8px;
178
+ padding-top: 8px;
179
+ border-top: 1px solid #f3f4f6;
180
+ font-size: 11px;
181
+ color: var(--tl-text-muted);
182
+ }
183
+
184
+ @keyframes spin-time2 {
185
+ from {
186
+ transform: rotate(0deg);
187
+ }
188
+ to {
189
+ transform: rotate(360deg);
190
+ }
191
+ }
192
+
193
+ /* Apply animation ONLY to the hands of the clock when the item is 'current' */
194
+ .timeline-item2.current2 .clock-hands2 {
195
+ transform-origin: 12px 12px;
196
+ animation: spin-time2 3s linear infinite;
197
+ }
198
+
199
+ /* Optional: Make the whole clock pulse gently if it's the current item */
200
+ .timeline-item2.current2 .timeline-circle2 svg {
201
+ filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.5));
165
202
  }
@@ -8,10 +8,12 @@ body {
8
8
 
9
9
  .navbar {
10
10
  @apply text-white bg-secondary p-md w-full mb-md;
11
+
11
12
  img {
12
13
  height: 24px;
13
14
  }
14
15
  }
16
+
15
17
  /* .navbar-header{
16
18
  @apply text-navbarheader float-left px-sm
17
19
  }
@@ -53,6 +55,7 @@ body {
53
55
  list-style: none;
54
56
  padding: 0;
55
57
  }
58
+
56
59
  .bread-crumb--item {
57
60
  margin-left: 5px;
58
61
 
@@ -90,20 +93,27 @@ body {
90
93
  @screen dt {
91
94
  .employee-app-container {
92
95
  @apply w-full;
96
+ display: flex;
97
+ flex-direction: column;
98
+ gap: 12px;
99
+ padding: 12px 24px;
93
100
  }
94
101
 
95
102
  .app-container {
96
103
  width: 100%;
104
+
97
105
  form {
98
106
  .card {
99
107
  max-width: 960px;
108
+
100
109
  h2 {
101
110
  text-align: left;
102
111
  }
103
-
112
+
104
113
  button {
105
114
  max-width: 240px;
106
115
  }
116
+
107
117
  .input-otp-wrap,
108
118
  .card-text-button {
109
119
  text-align: left;
@@ -133,6 +143,7 @@ body {
133
143
  .body-container::-webkit-scrollbar {
134
144
  display: none;
135
145
  }
146
+
136
147
  .audit-card {
137
148
  width: 80%;
138
149
  margin-left: -21%;