212 lines
3.9 KiB
CSS
212 lines
3.9 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
background: #f4f4f4;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.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;
|
|
color: #222e3c;
|
|
border: 1px solid #eee;
|
|
margin-bottom: 24px;
|
|
}
|
|
.logout-btn:hover {
|
|
background: #f4f4f4;
|
|
}
|
|
.main-content {
|
|
flex: 1;
|
|
background: #fff;
|
|
padding: 40px 32px;
|
|
display: flex;
|
|
gap: 32px;
|
|
}
|
|
#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;
|
|
margin-bottom: 8px;
|
|
}
|
|
.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;
|
|
}
|
|
.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;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
box-sizing: border-box;
|
|
}
|
|
#composeForm button[type="submit"] {
|
|
background: #0077cc;
|
|
color: #fff;
|
|
border: none;
|
|
font-weight: bold;
|
|
margin-bottom: 0;
|
|
}
|
|
#composeForm button[type="submit"]:hover {
|
|
background: #005fa3;
|
|
}
|
|
#composeForm button[type="button"] {
|
|
background: #eee;
|
|
color: #222e3c;
|
|
border: none;
|
|
margin-top: 0;
|
|
}
|
|
#composeForm button[type="button"]:hover {
|
|
background: #ddd;
|
|
}
|
|
@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;
|
|
}
|
|
}
|