appearence overhall

This commit is contained in:
Brandon4466
2025-06-07 03:08:38 -07:00
parent 5b86d31cfd
commit f2503d5ec9
4 changed files with 337 additions and 78 deletions

215
style.css
View File

@@ -4,30 +4,168 @@ body {
margin: 0;
padding: 0;
}
.container {
.layout {
display: flex;
min-height: 100vh;
}
.sidebar {
width: 240px;
background: #e0e0e0; /* Changed from #222e3c to a light grey */
color: #222e3c;
display: flex;
flex-direction: column;
align-items: stretch;
padding: 32px 0 0 0;
box-shadow: 2px 0 8px rgba(0,0,0,0.04);
}
.sidebar h2 {
color: #222e3c;
text-align: center;
margin-bottom: 32px;
font-size: 1.5em;
letter-spacing: 1px;
}
.sidebar nav ul {
list-style: none;
padding: 0;
margin: 0 0 24px 0;
}
.sidebar nav li {
margin: 0 0 8px 0;
}
.sidebar-btn {
width: 100%;
background: none;
border: none;
color: #222e3c;
padding: 14px 0;
font-size: 1.1em;
text-align: left;
padding-left: 32px;
cursor: pointer;
transition: background 0.2s;
}
.sidebar-btn.active, .sidebar-btn:hover {
background: #cccccc;
}
.compose-btn, .logout-btn {
margin: 12px 24px 0 24px;
padding: 12px 0;
border-radius: 4px;
border: none;
font-size: 1em;
font-weight: bold;
cursor: pointer;
}
.compose-btn {
background: #0077cc;
color: #fff;
}
.compose-btn:hover {
background: #005fa3;
}
.logout-btn {
background: #fff;
max-width: 400px;
margin: 40px auto;
padding: 30px 40px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
color: #222e3c;
border: 1px solid #eee;
margin-bottom: 24px;
}
h1, h2 {
text-align: center;
.logout-btn:hover {
background: #f4f4f4;
}
nav {
text-align: center;
margin-bottom: 20px;
.main-content {
flex: 1;
background: #fff;
padding: 40px 32px;
display: flex;
gap: 32px;
}
nav a {
margin: 0 10px;
#email-list {
width: 340px;
border-right: 1px solid #eee;
padding-right: 24px;
overflow-y: auto;
max-height: 70vh;
}
.email-list-section {
margin-bottom: 32px;
}
.email-list-title {
font-size: 1.1em;
color: #0077cc;
text-decoration: none;
margin-bottom: 8px;
}
nav a:hover {
text-decoration: underline;
.email-list-item {
padding: 12px 10px;
border-radius: 4px;
margin-bottom: 6px;
cursor: pointer;
border: 1px solid transparent;
transition: background 0.15s, border 0.15s;
}
input, textarea, button {
.email-list-item.selected, .email-list-item:hover {
background: #f0f6fa;
border: 1px solid #0077cc;
}
.email-list-item .subject {
font-weight: bold;
color: #222e3c;
}
.email-list-item .fromto {
font-size: 0.95em;
color: #555;
}
.email-detail {
flex: 1;
min-width: 0;
padding-left: 24px;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.email-detail-content {
background: #f8fafc;
border-radius: 8px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.email-detail-header {
margin-bottom: 16px;
}
.email-detail-header strong {
color: #0077cc;
}
.email-detail-body {
margin-top: 16px;
white-space: pre-wrap;
color: #222e3c;
}
.error {
color: #d8000c;
text-align: center;
}
/* Modal overlay for compose */
.modal-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.35);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-content {
background: #fff;
padding: 32px 32px 24px 32px;
border-radius: 10px;
box-shadow: 0 4px 24px rgba(0,0,0,0.18);
min-width: 340px;
max-width: 95vw;
max-height: 90vh;
overflow-y: auto;
position: relative;
}
#composeForm input, #composeForm textarea, #composeForm button {
width: 100%;
margin: 8px 0;
padding: 10px;
@@ -35,30 +173,39 @@ input, textarea, button {
border-radius: 4px;
box-sizing: border-box;
}
button {
#composeForm button[type="submit"] {
background: #0077cc;
color: #fff;
border: none;
cursor: pointer;
font-weight: bold;
margin-bottom: 0;
}
button:hover {
#composeForm button[type="submit"]:hover {
background: #005fa3;
}
.error {
color: #d8000c;
text-align: center;
#composeForm button[type="button"] {
background: #eee;
color: #222e3c;
border: none;
margin-top: 0;
}
#inboxList {
margin-top: 20px;
#composeForm button[type="button"]:hover {
background: #ddd;
}
.email-item {
border-bottom: 1px solid #eee;
padding: 10px 0;
}
.email-item:last-child {
border-bottom: none;
}
.email-item strong {
color: #0077cc;
@media (max-width: 900px) {
.main-content {
flex-direction: column;
padding: 24px 8px;
}
#email-list {
width: 100%;
max-height: 200px;
border-right: none;
border-bottom: 1px solid #eee;
padding-right: 0;
padding-bottom: 16px;
}
.email-detail {
padding-left: 0;
}
}