fix(css): Safari/iOS parity + @layer base ให้ utility ยังชนะ

- iOS Safari: ฟอร์ม ≥16px บนมือถือ (กัน auto-zoom โดยไม่ต้องล็อก user-scalable), input[type=search] appearance:none, tap-highlight transparent, text-size-adjust 100%
- ย้ายบล็อก cross-engine เข้า @layer base — เดิม unlayered ทับ text-sm ทำให้ desktop เพี้ยนเป็น 16px
- admin 3 จุด min-h-screen → min-h-dvh
- DESIGN.md: ขยายหัวข้อเป็น Chromium/Firefox/Safari + กฎ @layer · sw VERSION v2.0.3
This commit is contained in:
Bkk1234 committed 2026-11-14 13:11:45 +07:00
1 parent 301ad22a39
commit 2eb625c8bc
7 files changed
+68 -37

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
* (ห้ามประกาศ inputClass/labelClass ซ้ำใน component)
*/
export const inputClass =
"w-full rounded-lg border border-[#303030] bg-[#141414] px-3 py-2 text-sm text-white outline-none transition focus:border-[#A92626] focus-visible:ring-2 focus-visible:ring-[#A92626]/40";
"w-full rounded-lg border border-[#303030] bg-[#141414] px-3 py-2 text-base text-white outline-none transition focus:border-[#A92626] focus-visible:ring-2 focus-visible:ring-[#A92626]/40 sm:text-sm";
export const labelClass = "flex flex-col gap-1.5 text-xs text-[#999]";
+1 -1
View File
@@ -90,7 +90,7 @@ export function HeroSection({
aria-label={messages.search.placeholder}
type="search"
enterKeyHint="search"
className="min-w-0 flex-1 bg-transparent text-sm text-white outline-none placeholder:text-[#8A8A8A] [&::-webkit-search-cancel-button]:hidden"
className="min-w-0 flex-1 bg-transparent text-base text-white outline-none placeholder:text-[#8A8A8A] md:text-sm [&::-webkit-search-cancel-button]:hidden"
/>
<button
type="button"