Skip to content

Commit aa982c2

Browse files
authored
Merge pull request #6 from J2TeamNNL/cursor/chuy-n-i-giao-di-n-th-nh-d-ng-tab-v-t-i-u-h-a-cho-di-ng-e0a1
Chuyển đổi giao diện thành dạng tab và tối ưu hóa cho di động
2 parents a348a9e + a6dc8f8 commit aa982c2

File tree

4 files changed

+196
-188
lines changed

4 files changed

+196
-188
lines changed

css/style.css

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -202,28 +202,33 @@ label {
202202
/* Step Wizard Tabs */
203203
.tab {
204204
position: relative;
205-
padding: 1rem 1.5rem;
205+
padding: 0.75rem 1rem;
206206
cursor: pointer;
207207
transition: all 0.3s ease;
208+
border-bottom: 3px solid transparent;
208209
}
209210

210211
.tab.active {
211212
color: #6366f1;
212213
font-weight: 600;
214+
border-bottom-color: #6366f1;
213215
}
214216

215-
.tab.active::after {
216-
content: '';
217-
position: absolute;
218-
bottom: 0;
219-
left: 0;
220-
right: 0;
221-
height: 3px;
222-
background: linear-gradient(to right, #6366f1, #8b5cf6);
217+
.tab:not(.active) {
218+
color: #6b7280;
223219
}
224220

225221
.tab:not(.active):hover {
226-
background-color: rgba(99, 102, 241, 0.1);
222+
background-color: rgba(99, 102, 241, 0.05);
223+
color: #6366f1;
224+
}
225+
226+
.tab-content {
227+
display: block;
228+
}
229+
230+
.tab-content.hidden {
231+
display: none;
227232
}
228233

229234
/* Data Type Cards */
@@ -261,6 +266,22 @@ label {
261266
border-color: #818cf8 !important;
262267
}
263268

269+
/* Mobile: Smaller icons in data cards */
270+
@media (max-width: 768px) {
271+
.data-card .text-4xl {
272+
font-size: 1.75rem !important;
273+
line-height: 1.75rem !important;
274+
}
275+
276+
.data-card {
277+
padding: 0.75rem !important;
278+
}
279+
280+
.data-card .text-sm {
281+
font-size: 0.7rem !important;
282+
}
283+
}
284+
264285
/* Icon Fallback System */
265286
.icon-fallback {
266287
display: none;
@@ -327,6 +348,24 @@ body.no-icons .icon-fallback {
327348
}
328349
}
329350

351+
/* Header buttons responsive */
352+
.header-buttons {
353+
z-index: 10;
354+
}
355+
356+
@media (max-width: 768px) {
357+
.header-buttons {
358+
position: absolute !important;
359+
top: 0;
360+
right: 0;
361+
justify-content: flex-end;
362+
}
363+
364+
.header-buttons button {
365+
font-size: 0.875rem;
366+
}
367+
}
368+
330369
/* Error report button responsive */
331370
#errorReportBtn {
332371
transition: all 0.3s ease;

0 commit comments

Comments
 (0)