rmdzav commited on
Commit
58db9c9
·
verified ·
1 Parent(s): 9df6400

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +66 -125
static/style.css CHANGED
@@ -1,15 +1,15 @@
 
1
  * {
2
  box-sizing: border-box;
3
  margin: 0;
4
  padding: 0;
5
- -webkit-tap-highlight-color: transparent;
6
  }
7
 
8
  html, body {
9
  height: 100%;
10
- overflow: hidden; /* Mengunci scroll utama browser */
11
  background-color: #eef1f5;
12
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
13
  }
14
 
15
  .app-container {
@@ -19,138 +19,93 @@ html, body {
19
  padding: 16px;
20
  display: flex;
21
  flex-direction: column;
22
- gap: 14px;
23
- }
24
-
25
- /* Header Bar */
26
- .app-bar {
27
- background: #ffffff;
28
- padding: 16px 20px;
29
- border-radius: 14px;
30
- display: flex;
31
- justify-content: space-between;
32
- align-items: center;
33
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
34
- }
35
-
36
- .app-title {
37
- color: #666666;
38
- font-size: 1.25rem;
39
- font-weight: 500;
40
- letter-spacing: -0.3px;
41
- }
42
-
43
- .menu-dots {
44
- display: flex;
45
- flex-direction: column;
46
- gap: 3px;
47
- padding: 4px;
48
- }
49
-
50
- .menu-dots span {
51
- width: 4px;
52
- height: 4px;
53
- background-color: #888888;
54
- border-radius: 50%;
55
  }
56
 
57
- /* Responsive Grid Input */
58
- .input-row {
59
- display: grid;
60
- grid-template-columns: 1fr 1fr 1fr;
61
- gap: 10px;
62
- }
63
-
64
- .field-box {
65
- position: relative;
66
- background: #ffffff;
67
- border-radius: 12px;
68
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
69
- transition: transform 0.2s, box-shadow 0.2s;
70
- }
71
-
72
- .field-box:focus-within {
73
- transform: translateY(-2px);
74
- box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
75
- }
76
-
77
- .field-box input {
78
  width: 100%;
79
- background: transparent;
 
80
  border: none;
81
  outline: none;
82
- padding: 18px 10px 8px 10px;
83
- color: #333333;
84
- font-size: 0.95rem;
85
- text-align: center;
86
- font-weight: 500;
 
 
87
  }
88
 
89
- /* Floating Label Animation */
90
- .field-box label {
91
- position: absolute;
92
- left: 50%;
93
- top: 50%;
94
- transform: translate(-50%, -50%);
95
- color: #999999;
96
- font-size: 0.85rem;
97
- transition: all 0.2s ease;
98
- pointer-events: none;
99
- white-space: nowrap;
100
  }
101
 
102
- .field-box input:focus + label,
103
- .field-box input:not(:placeholder-shown) + label {
104
- top: 10px;
105
- font-size: 0.7rem;
106
- color: #4a90e2;
107
- font-weight: 600;
108
  }
109
 
110
- .select-wrapper .arrow-down {
111
- position: absolute;
112
- right: 12px;
113
- top: 55%;
114
- transform: translateY(-50%);
115
- font-size: 0.6rem;
116
- color: #b0b0b0;
117
- pointer-events: none;
118
  }
119
 
120
- /* Master Display Box (Full Height Config) */
121
  .display-box {
122
  background: #ffffff;
123
  border-radius: 18px;
124
- flex: 1; /* Mengisi sisa ruang ke bawah secara penuh */
125
- padding: 8px;
126
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
127
  display: flex;
128
  flex-direction: column;
129
  overflow: hidden;
 
130
  }
131
 
132
- .table-responsive {
133
- flex: 1;
134
- overflow-y: auto;
135
- overflow-x: auto;
136
- scroll-behavior: smooth; /* Efek scrolling interaktif */
137
- border-radius: 12px;
 
 
 
138
  }
139
 
140
- /* Custom Scrollbar */
141
- .table-responsive::-webkit-scrollbar {
142
- width: 6px;
143
  height: 6px;
 
 
 
144
  }
145
- .table-responsive::-webkit-scrollbar-thumb {
146
- background: #dbdbdb;
 
 
 
147
  border-radius: 10px;
 
148
  }
149
- .table-responsive::-webkit-scrollbar-thumb:hover {
150
- background: #b5b5b5;
 
 
 
 
 
 
 
 
 
 
151
  }
152
 
153
- /* Table Presentation */
154
  table {
155
  width: 100%;
156
  border-collapse: separate;
@@ -172,25 +127,20 @@ table th {
172
 
173
  table td {
174
  color: #666666;
175
- padding: 12px 10px;
176
  border-bottom: 1px solid #fcfcfc;
177
  }
178
 
179
- /* Efek Transisi Baris Hanya Saat Terlihat di Layar */
180
  table tbody tr {
181
- opacity: 0;
182
- transform: translateY(12px);
183
- transition: opacity 0.25s ease-out, transform 0.25s ease-out;
184
- will-change: transform, opacity; /* Optimasi performa render GPU */
185
  }
186
 
187
- /* Class ini akan ditambahkan secara otomatis oleh JavaScript saat baris masuk ke viewport */
188
- table tbody tr.visible {
189
- opacity: 1;
190
- transform: translateY(0);
191
  }
192
 
193
- /* Empty View State */
194
  .empty-state {
195
  margin: auto;
196
  text-align: center;
@@ -201,12 +151,3 @@ table tbody tr.visible {
201
  }
202
 
203
  .hidden { display: none !important; }
204
-
205
- input::-webkit-outer-spin-button,
206
- input::-webkit-inner-spin-button {
207
- -webkit-appearance: none;
208
- margin: 0;
209
- }
210
- input[type=number] {
211
- -moz-appearance: textfield;
212
- }
 
1
+ /* Sifat dasar html & container tetap mengunci layar agar full height bawah */
2
  * {
3
  box-sizing: border-box;
4
  margin: 0;
5
  padding: 0;
 
6
  }
7
 
8
  html, body {
9
  height: 100%;
10
+ overflow: hidden;
11
  background-color: #eef1f5;
12
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
13
  }
14
 
15
  .app-container {
 
19
  padding: 16px;
20
  display: flex;
21
  flex-direction: column;
22
+ gap: 12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  }
24
 
25
+ /* Tombol Aksi Kustom */
26
+ .btn-action {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  width: 100%;
28
+ background: #4a90e2;
29
+ color: white;
30
  border: none;
31
  outline: none;
32
+ padding: 14px;
33
+ border-radius: 12px;
34
+ font-size: 1rem;
35
+ font-weight: 600;
36
+ cursor: pointer;
37
+ box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
38
+ transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
39
  }
40
 
41
+ .btn-action:hover {
42
+ background: #357abd;
 
 
 
 
 
 
 
 
 
43
  }
44
 
45
+ .btn-action:active {
46
+ transform: scale(0.98);
47
+ box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2);
 
 
 
48
  }
49
 
50
+ .btn-action:disabled {
51
+ background: #a0c2ed;
52
+ cursor: not-allowed;
53
+ transform: none;
 
 
 
 
54
  }
55
 
56
+ /* Master Display Box (Mengisi sisa ruang) */
57
  .display-box {
58
  background: #ffffff;
59
  border-radius: 18px;
60
+ flex: 1;
61
+ padding: 12px;
62
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
63
  display: flex;
64
  flex-direction: column;
65
  overflow: hidden;
66
+ position: relative;
67
  }
68
 
69
+ /* Progress Bar Style */
70
+ .progress-wrapper {
71
+ display: flex;
72
+ flex-direction: column;
73
+ align-items: center;
74
+ justify-content: center;
75
+ gap: 10px;
76
+ margin: auto;
77
+ width: 80%;
78
  }
79
 
80
+ .progress-track {
81
+ width: 100%;
 
82
  height: 6px;
83
+ background: #f0f0f0;
84
+ border-radius: 10px;
85
+ overflow: hidden;
86
  }
87
+
88
+ .progress-bar {
89
+ width: 0%;
90
+ height: 100%;
91
+ background: linear-gradient(90deg, #4a90e2, #00f0ff);
92
  border-radius: 10px;
93
+ transition: width 0.1s ease;
94
  }
95
+
96
+ .progress-text {
97
+ font-size: 0.85rem;
98
+ color: #777777;
99
+ }
100
+
101
+ /* Table Settings */
102
+ .table-responsive {
103
+ flex: 1;
104
+ overflow-y: auto;
105
+ overflow-x: auto;
106
+ border-radius: 10px;
107
  }
108
 
 
109
  table {
110
  width: 100%;
111
  border-collapse: separate;
 
127
 
128
  table td {
129
  color: #666666;
130
+ padding: 10px 8px;
131
  border-bottom: 1px solid #fcfcfc;
132
  }
133
 
134
+ /* Efek Fade In baris tabel tipis saat selesai di-load */
135
  table tbody tr {
136
+ animation: fadeInRow 0.3s ease-in forwards;
 
 
 
137
  }
138
 
139
+ @keyframes fadeInRow {
140
+ from { opacity: 0; }
141
+ to { opacity: 1; }
 
142
  }
143
 
 
144
  .empty-state {
145
  margin: auto;
146
  text-align: center;
 
151
  }
152
 
153
  .hidden { display: none !important; }