From fadc8b304941f3e1d79fb1968d65f130e05d35d1 Mon Sep 17 00:00:00 2001 From: Trung Le Date: Thu, 5 Dec 2024 00:25:09 -0800 Subject: [PATCH] Update rt-ai-html.css --- css/rt-ai-html.css | 72 +++++++++++++++++++++++++++++----------------- 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/css/rt-ai-html.css b/css/rt-ai-html.css index 924cc5c..52e9dc7 100644 --- a/css/rt-ai-html.css +++ b/css/rt-ai-html.css @@ -7,66 +7,86 @@ body { } .email-container { - max-width: 600px; + max-width: 100%; + padding: 1rem; margin: 0 auto; - background-color: white; - padding: 2rem; - border-radius: 8px; - box-shadow: 0 2px 4px rgba(0,0,0,0.1); } -.email-header { - border-bottom: 2px solid var(--primary-color); - padding-bottom: 1rem; - margin-bottom: 1rem; +@media screen and (min-width: 768px) { + .email-container { + max-width: 750px; + padding: 2rem; + } } .email-info-box { - background-color: var(--background-color); + display: grid; + gap: 0.5rem; padding: 1rem; + background-color: var(--background-color); border-radius: 4px; - margin-bottom: 1rem; } .email-field { - margin-bottom: 0.5rem; + display: grid; + grid-template-columns: 80px 1fr; + align-items: center; } -.email-label { - font-weight: bold; - color: var(--primary-color); - display: inline-block; - width: 70px; +@media screen and (max-width: 480px) { + .email-field { + grid-template-columns: 1fr; + gap: 0.25rem; + } } .message-area { width: 100%; min-height: 150px; - padding: 0.5rem; - border: 1px solid #ccc; + padding: 1rem; + margin-top: 1rem; + border: 1px solid var(--primary-color); border-radius: 4px; resize: vertical; } .action-buttons { display: flex; - gap: 1rem; - margin-top: 2rem; + flex-wrap: wrap; + gap: 0.5rem; + margin-top: 1.5rem; } .btn { - padding: 0.5rem 1rem; + flex: 1 1 auto; + min-width: 120px; + padding: 0.75rem; border: none; border-radius: 4px; + background-color: var(--secondary-color); + color: white; cursor: pointer; display: flex; align-items: center; + justify-content: center; gap: 0.5rem; - background-color: var(--secondary-color); - color: white; transition: opacity 0.2s; } -.btn:hover { - opacity: 0.9; +@media screen and (max-width: 600px) { + .btn { + flex: 1 1 100%; + } +} + +@media (hover: hover) { + .btn:hover { + opacity: 0.9; + } +} + +@media (prefers-reduced-motion: reduce) { + .btn { + transition: none; + } } \ No newline at end of file