Files
bang-web/style-v1.css
brandon bdcc82bc3f design improvments
redesigned compose panel
added icons
added read reciept functionality
fixed dark mode
2025-06-07 21:08:20 -07:00

307 lines
5.8 KiB
CSS

body {
font-family: Arial, sans-serif;
background: #f4f4f4;
margin: 0;
padding: 0;
}
body.dark-mode {
background: #181a1b;
color: #e0e0e0;
}
.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);
}
body.dark-mode .sidebar {
background: #23272e;
color: #e0e0e0;
box-shadow: 2px 0 8px rgba(0,0,0,0.18);
}
.sidebar h2 {
color: #222e3c;
text-align: center;
margin-bottom: 32px;
font-size: 1.5em;
letter-spacing: 1px;
}
body.dark-mode .sidebar h2,
body.dark-mode .sidebar-btn,
body.dark-mode .sidebar-btn.active,
body.dark-mode .sidebar-btn:hover {
color: #e0e0e0;
background: #23272e;
}
.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;
}
body.dark-mode .sidebar-btn.active, body.dark-mode .sidebar-btn:hover {
background: #2d3138;
}
.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;
}
body.dark-mode .compose-btn {
background: #005fa3;
color: #fff;
}
.compose-btn:hover {
background: #005fa3;
}
.logout-btn {
background: #fff;
color: #222e3c;
border: 1px solid #eee;
margin-bottom: 24px;
}
body.dark-mode .logout-btn {
background: #23272e;
color: #e0e0e0;
border: 1px solid #444;
}
.logout-btn:hover {
background: #f4f4f4;
}
body.dark-mode .logout-btn:hover {
background: #181a1b;
}
.main-content {
flex: 1;
background: #fff;
padding: 40px 32px;
display: flex;
gap: 32px;
}
body.dark-mode .main-content {
background: #111317;
}
#email-list {
width: 340px;
border-right: 1px solid #eee;
padding-right: 24px;
overflow-y: auto;
max-height: 70vh;
}
body.dark-mode #email-list {
border-color: #333;
}
.email-list-section {
margin-bottom: 32px;
}
.email-list-title {
font-size: 1.1em;
color: #0077cc;
margin-bottom: 8px;
}
body.dark-mode .email-list-title {
color: #fff;
}
.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;
}
body.dark-mode .email-list-item {
background: #111317;
color: #fff;
}
.email-list-item.selected, .email-list-item:hover {
background: #f0f6fa;
border: 1px solid #0077cc;
}
body.dark-mode .email-list-item.selected, body.dark-mode .email-list-item:hover {
background: #2d3138;
border-color: #0077cc;
}
.email-list-item .subject {
font-weight: bold;
color: #222e3c;
}
body.dark-mode .email-list-item .subject {
color: #fff;
}
.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);
}
body.dark-mode .email-detail-content {
background: #181a1b;
color: #e0e0e0;
}
.email-detail-header {
margin-bottom: 16px;
}
.email-detail-header strong {
color: #0077cc;
}
.email-detail-body {
margin-top: 16px;
white-space: pre-wrap;
color: #222e3c;
}
body.dark-mode .email-detail-body {
color: #fff;
}
.error {
color: #d8000c;
text-align: center;
}
body.dark-mode .error {
color: #ffb3b3;
}
/* 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;
}
body.dark-mode .modal-content {
background: #111317;
color: #e0e0e0;
}
#composeForm input, #composeForm textarea, #composeForm button {
width: 100%;
margin: 8px 0;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
body.dark-mode input, body.dark-mode textarea {
background: #181a1b;
color: #e0e0e0;
border: 1px solid #444;
}
#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;
}
body.dark-mode input::placeholder, body.dark-mode textarea::placeholder {
color: #aaa;
}
.darkmode-btn {
margin: 12px 24px 0 24px;
padding: 12px 0;
border-radius: 4px;
border: none;
font-size: 1em;
font-weight: bold;
cursor: pointer;
background: #eee;
color: #222e3c;
}
body.dark-mode .darkmode-btn {
background: #444;
color: #fff;
border: none;
}
body.dark-mode .darkmode-btn:hover {
background: #222;
}
.darkmode-btn:hover {
background: #ccc;
}
@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;
}
}