design improvments
redesigned compose panel added icons added read reciept functionality fixed dark mode
This commit is contained in:
225
style.css
225
style.css
@@ -4,6 +4,10 @@ body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body.dark-mode {
|
||||
background: #181a1b;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
.layout {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
@@ -18,6 +22,11 @@ body {
|
||||
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;
|
||||
@@ -25,6 +34,13 @@ body {
|
||||
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;
|
||||
@@ -45,6 +61,9 @@ body {
|
||||
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;
|
||||
}
|
||||
@@ -61,6 +80,10 @@ body {
|
||||
background: #0077cc;
|
||||
color: #fff;
|
||||
}
|
||||
body.dark-mode .compose-btn {
|
||||
background: #005fa3;
|
||||
color: #fff;
|
||||
}
|
||||
.compose-btn:hover {
|
||||
background: #005fa3;
|
||||
}
|
||||
@@ -70,9 +93,17 @@ body {
|
||||
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;
|
||||
@@ -80,6 +111,9 @@ body {
|
||||
display: flex;
|
||||
gap: 32px;
|
||||
}
|
||||
body.dark-mode .main-content {
|
||||
background: #111317;
|
||||
}
|
||||
#email-list {
|
||||
width: 340px;
|
||||
border-right: 1px solid #eee;
|
||||
@@ -87,6 +121,9 @@ body {
|
||||
overflow-y: auto;
|
||||
max-height: 70vh;
|
||||
}
|
||||
body.dark-mode #email-list {
|
||||
border-color: #333;
|
||||
}
|
||||
.email-list-section {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
@@ -95,6 +132,9 @@ body {
|
||||
color: #0077cc;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
body.dark-mode .email-list-title {
|
||||
color: #fff;
|
||||
}
|
||||
.email-list-item {
|
||||
padding: 12px 10px;
|
||||
border-radius: 4px;
|
||||
@@ -103,14 +143,25 @@ body {
|
||||
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;
|
||||
@@ -129,6 +180,10 @@ body {
|
||||
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;
|
||||
}
|
||||
@@ -140,10 +195,16 @@ body {
|
||||
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;
|
||||
@@ -153,6 +214,7 @@ body {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1000;
|
||||
pointer-events: none;
|
||||
}
|
||||
.modal-content {
|
||||
background: #fff;
|
||||
@@ -165,24 +227,138 @@ body {
|
||||
overflow-y: auto;
|
||||
position: relative;
|
||||
}
|
||||
#composeForm input, #composeForm textarea, #composeForm button {
|
||||
body.dark-mode .modal-content {
|
||||
background: #111317;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
/* Compose panel for bottom right, non-blocking */
|
||||
.compose-panel {
|
||||
position: fixed;
|
||||
right: 32px;
|
||||
bottom: 32px;
|
||||
z-index: 2000;
|
||||
min-width: 340px;
|
||||
max-width: 95vw;
|
||||
max-height: 90vh;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 24px rgba(0,0,0,0.18);
|
||||
padding: 32px 32px 0 32px;
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
}
|
||||
body.dark-mode .compose-panel {
|
||||
background: #111317;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
/* Remove all borders and spacing from compose fields, only a line between them */
|
||||
.compose-panel input,
|
||||
.compose-panel textarea {
|
||||
border: none;
|
||||
border-bottom: 2px solid #d0d0d0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
margin: 0;
|
||||
padding: 10px 0 6px 0;
|
||||
font-size: 1em;
|
||||
transition: border-color 0.2s;
|
||||
width: 100%;
|
||||
margin: 8px 0;
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.compose-panel input:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.compose-panel input + input,
|
||||
.compose-panel input + textarea,
|
||||
.compose-panel textarea + input,
|
||||
.compose-panel textarea + textarea {
|
||||
margin-top: 0;
|
||||
}
|
||||
.compose-panel input:focus,
|
||||
.compose-panel textarea:focus {
|
||||
border-bottom: 2px solid #0077cc;
|
||||
background: transparent;
|
||||
}
|
||||
body.dark-mode .compose-panel input,
|
||||
body.dark-mode .compose-panel textarea {
|
||||
background: transparent;
|
||||
color: #e0e0e0;
|
||||
border-bottom: 2px solid #444;
|
||||
}
|
||||
body.dark-mode .compose-panel input:focus,
|
||||
body.dark-mode .compose-panel textarea:focus {
|
||||
border-bottom: 2px solid #4da3ff;
|
||||
}
|
||||
.compose-panel input::placeholder,
|
||||
.compose-panel textarea::placeholder {
|
||||
color: #888;
|
||||
opacity: 1;
|
||||
}
|
||||
body.dark-mode .compose-panel input::placeholder,
|
||||
body.dark-mode .compose-panel textarea::placeholder {
|
||||
color: #aaa;
|
||||
}
|
||||
#composeForm input, #composeForm textarea {
|
||||
border: none !important;
|
||||
border-bottom: 2px solid #d0d0d0 !important;
|
||||
border-radius: 0 !important;
|
||||
background: transparent !important;
|
||||
margin: 0 !important;
|
||||
padding: 10px 0 6px 0 !important;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body.dark-mode #composeForm input, body.dark-mode #composeForm textarea {
|
||||
border-bottom: 2px solid #444 !important;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
#composeForm input:focus, #composeForm textarea:focus {
|
||||
border-bottom: 2px solid #0077cc !important;
|
||||
}
|
||||
body.dark-mode #composeForm input:focus, body.dark-mode #composeForm textarea:focus {
|
||||
border-bottom: 2px solid #4da3ff !important;
|
||||
}
|
||||
#composeForm input::placeholder, #composeForm textarea::placeholder {
|
||||
color: #888;
|
||||
}
|
||||
body.dark-mode #composeForm input::placeholder, body.dark-mode #composeForm textarea::placeholder {
|
||||
color: #aaa;
|
||||
}
|
||||
#composeForm {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: auto;
|
||||
position: static;
|
||||
}
|
||||
#composeForm button[type="submit"] {
|
||||
align-self: flex-end;
|
||||
margin-top: 16px;
|
||||
margin-bottom: 0;
|
||||
margin-right: 0;
|
||||
position: static;
|
||||
min-width: 100px;
|
||||
min-height: 40px;
|
||||
background: #0077cc;
|
||||
color: #fff;
|
||||
border: none;
|
||||
font-weight: bold;
|
||||
margin-bottom: 0;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
transition: background 0.2s;
|
||||
}
|
||||
#composeForm button[type="submit"]:hover {
|
||||
background: #005fa3;
|
||||
}
|
||||
body.dark-mode #composeForm button[type="submit"] {
|
||||
background: #005fa3;
|
||||
color: #fff;
|
||||
}
|
||||
body.dark-mode #composeForm button[type="submit"]:hover {
|
||||
background: #0077cc;
|
||||
}
|
||||
#composeForm button[type="button"] {
|
||||
background: #eee;
|
||||
color: #222e3c;
|
||||
@@ -192,6 +368,38 @@ body {
|
||||
#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;
|
||||
}
|
||||
.sidebar-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: middle;
|
||||
margin-right: 12px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.main-content {
|
||||
flex-direction: column;
|
||||
@@ -209,3 +417,8 @@ body {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
.compose-panel textarea,
|
||||
#composeForm textarea {
|
||||
min-height: 120px !important;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user