Enhance UX/UI proportions and unified design system across all devices

This commit is contained in:
pongpon pitisuk
2026-09-12 15:59:22 +07:00
parent f5a302bf9f
commit fb5b4b4c95
8 changed files with 159 additions and 46 deletions
+114 -1
View File
@@ -2583,7 +2583,119 @@ table {
border-collapse: collapse !important;
}
/* 9. Standalone Editor Auto-Fit & Clean Scroll */
/* ============================================================
Action Buttons & Card Proportions (Tapee University Design System)
============================================================ */
.card-tapi {
background: #ffffff;
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.card-tapi:hover {
border-color: #cbd5e1;
box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
transform: translateY(-1px);
}
.btn-action {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
padding: 6px 10px;
font-size: 11.5px;
font-weight: 700;
border-radius: 8px;
border: 1px solid transparent;
cursor: pointer;
white-space: nowrap;
transition: all 0.18s ease;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
user-select: none;
-webkit-tap-highlight-color: transparent;
}
.btn-action:active {
transform: scale(0.96);
}
.btn-action-edit {
background: #fbbf24;
color: #78350f;
border-color: #f59e0b;
}
.btn-action-edit:hover {
background: #f59e0b;
color: #ffffff;
}
.btn-action-copy {
background: #3b82f6;
color: #ffffff;
border-color: #2563eb;
}
.btn-action-copy:hover {
background: #1d4ed8;
}
.btn-action-link {
background: #1e3a8a;
color: #ffffff;
border-color: #172554;
}
.btn-action-link:hover {
background: #1e40af;
}
.btn-action-import {
background: #10b981;
color: #ffffff;
border-color: #059669;
}
.btn-action-import:hover {
background: #047857;
}
.btn-action-stats {
background: #6366f1;
color: #ffffff;
border-color: #4f46e5;
}
.btn-action-stats:hover {
background: #4338ca;
}
.btn-action-delete {
background: #f43f5e;
color: #ffffff;
border-color: #e11d48;
}
.btn-action-delete:hover {
background: #be123c;
}
.btn-status-select {
background: #f8fafc;
border: 1px solid #cbd5e1;
color: #334155;
padding: 5px 8px;
font-size: 11.5px;
font-weight: 700;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-status-select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
/* Standalone Editor Auto-Fit & Clean Scroll */
.editor-container {
max-width: 960px;
width: 100%;
@@ -2633,3 +2745,4 @@ table {
}
}