From fb5b4b4c95bbc97f7a39673539a5552f43f319c4 Mon Sep 17 00:00:00 2001 From: pongpon pitisuk Date: Sat, 12 Sep 2026 15:59:22 +0700 Subject: [PATCH] Enhance UX/UI proportions and unified design system across all devices --- admin.html | 6 +-- css/style.css | 115 +++++++++++++++++++++++++++++++++++++++++++++++++- edit.html | 6 +-- index.html | 2 +- js/admin.js | 38 ++++++++--------- js/teacher.js | 26 ++++++------ respond.php | 6 +-- teacher.html | 6 +-- 8 files changed, 159 insertions(+), 46 deletions(-) diff --git a/admin.html b/admin.html index 2418b87..5e12003 100644 --- a/admin.html +++ b/admin.html @@ -28,7 +28,7 @@ } } - + @@ -358,8 +358,8 @@ - - + + \ No newline at end of file diff --git a/css/style.css b/css/style.css index 17ad6a2..052b087 100644 --- a/css/style.css +++ b/css/style.css @@ -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 { } } + diff --git a/edit.html b/edit.html index 2237aee..7f3fda0 100644 --- a/edit.html +++ b/edit.html @@ -24,7 +24,7 @@ } } - +