Skip to content

Commit

Permalink
Update rt-ai-html.css
Browse files Browse the repository at this point in the history
  • Loading branch information
ledangtrung committed Dec 5, 2024
1 parent 5097857 commit fadc8b3
Showing 1 changed file with 46 additions and 26 deletions.
72 changes: 46 additions & 26 deletions css/rt-ai-html.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit fadc8b3

Please sign in to comment.